We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent ce3dd04 commit 23fd2e6Copy full SHA for 23fd2e6
CodeEdit/Features/Editor/Views/EditorAreaView.swift
@@ -18,6 +18,18 @@ struct EditorAreaView: View {
18
19
@AppSettings(\.general.dimEditorsWithoutFocus)
20
var dimEditorsWithoutFocus
21
+
22
+ @AppSettings(\.theme.useThemeBackground)
23
+ var useThemeBackground
24
25
+ private var backgroundColor: NSColor {
26
+ let fallback = NSColor.textBackgroundColor
27
+ return if useThemeBackground {
28
+ ThemeModel.shared.selectedTheme?.editor.background.nsColor ?? fallback
29
+ } else {
30
+ fallback
31
+ }
32
33
34
@ObservedObject var editor: Editor
35
0 commit comments