Application wide updates for dark mode support including dark canvas option and better colors
This commit is contained in:
@@ -292,9 +292,14 @@ class GeneralAppSettingsGroupUI(OptionsGroupUI2):
|
||||
if theme_settings.contains("theme"):
|
||||
theme = theme_settings.value('theme', type=str)
|
||||
else:
|
||||
theme = 'white'
|
||||
theme = 'light'
|
||||
|
||||
if theme == 'white':
|
||||
if theme_settings.contains("dark_canvas"):
|
||||
dark_canvas = theme_settings.value('dark_canvas', type=bool)
|
||||
else:
|
||||
dark_canvas = True
|
||||
|
||||
if theme == 'light' and not dark_canvas:
|
||||
self.app.cursor_color_3D = 'black'
|
||||
else:
|
||||
self.app.cursor_color_3D = 'gray'
|
||||
|
||||
Reference in New Issue
Block a user