- 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:
@@ -39,14 +39,14 @@ class VisPyCanvas(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 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())
|
||||
@@ -102,15 +102,15 @@ class VisPyCanvas(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
|
||||
|
||||
self.view = view
|
||||
if theme == 'light' and not dark_canvas:
|
||||
if (theme == 'default' or theme == 'light') and not dark_canvas:
|
||||
self.grid = scene.GridLines(parent=self.view.scene, color='dimgray')
|
||||
else:
|
||||
self.grid = scene.GridLines(parent=self.view.scene, color='#dededeff')
|
||||
|
||||
Reference in New Issue
Block a user