- some changes in the theme selection, added that the default situation is where no theme is applied

- some string changes
This commit is contained in:
Marius Stanciu
2022-04-18 22:22:47 +03:00
committed by Marius
parent 4226a1e84a
commit 00144bafa0
12 changed files with 53 additions and 43 deletions

View File

@@ -66,19 +66,19 @@ class PlotCanvas3d(QtCore.QObject, scene.SceneCanvas):
if settings.contains("theme"):
theme = settings.value('theme', type=str)
else:
theme = 'light'
theme = 'default'
if settings.contains("dark_canvas"):
dark_canvas = settings.value('dark_canvas', type=bool)
else:
dark_canvas = True
dark_canvas = False
if settings.contains("axis_font_size"):
a_fsize = settings.value('axis_font_size', type=int)
else:
a_fsize = 8
if theme == 'light' and not dark_canvas:
if (theme == 'default' or theme == 'light') and not dark_canvas:
theme_color = Color('#FFFFFF')
tick_color = Color('#000000')
back_color = str(QPalette().color(QPalette.ColorRole.Window).name())