File tree Expand file tree Collapse file tree 1 file changed +2
-0
lines changed
Expand file tree Collapse file tree 1 file changed +2
-0
lines changed Original file line number Diff line number Diff line change @@ -245,6 +245,7 @@ final class UXCodeTextView: UXTextView {
245245 guard let highlightr = highlightr,
246246 highlightr. setTheme ( to: newTheme. rawValue) ,
247247 let theme = highlightr. theme else { return false }
248+ self . backgroundColor = theme. themeBackgroundColor
248249 if let font = theme. codeFont, font !== self . font { self . font = font }
249250 return true
250251 }
@@ -263,6 +264,7 @@ final class UXCodeTextView: UXTextView {
263264 theme. codeFont = theme. codeFont? . withSize ( newSize)
264265 theme. boldCodeFont = theme. boldCodeFont? . withSize ( newSize)
265266 theme. italicCodeFont = theme. italicCodeFont? . withSize ( newSize)
267+ self . backgroundColor = theme. themeBackgroundColor
266268 if let font = theme. codeFont, font !== self . font { self . font = font }
267269 return true
268270 }
You can’t perform that action at this time.
0 commit comments