Merge pull request #6779 from vector-im/aringenbach/6778_fix_code_blocks_background_color

Fix code block background colour
This commit is contained in:
aringenbach 2022-09-29 12:20:37 +02:00 committed by GitHub
commit 46a975b9dc
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 3 additions and 2 deletions

View file

@ -461,8 +461,8 @@ static NSString *const kEventFormatterTimeFormat = @"HH:mm";
{
calendar = [[NSCalendar alloc] initWithCalendarIdentifier:NSCalendarIdentifierGregorian];
// Use the secondary bg color to set the background color in the default CSS.
NSUInteger bgColor = [MXKTools rgbValueWithColor:ThemeService.shared.theme.headerBackgroundColor];
// Use the selected bg color to set the code block background color in the default CSS.
NSUInteger bgColor = [MXKTools rgbValueWithColor:ThemeService.shared.theme.selectedBackgroundColor];
self.defaultCSS = [NSString stringWithFormat:@" \
pre,code { \
background-color: #%06lX; \

1
changelog.d/6778.bugfix Normal file
View file

@ -0,0 +1 @@
Fix code block background colour