mirror of
https://github.com/vector-im/element-ios.git
synced 2024-09-28 23:32:41 +00:00
Merge pull request #6779 from vector-im/aringenbach/6778_fix_code_blocks_background_color
Fix code block background colour
This commit is contained in:
commit
46a975b9dc
2 changed files with 3 additions and 2 deletions
|
@ -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
1
changelog.d/6778.bugfix
Normal file
|
@ -0,0 +1 @@
|
|||
Fix code block background colour
|
Loading…
Reference in a new issue