- in Legacy(2D) graphic engine made to work the mouse color change

- theme changing is no longer auto-reboot upon change; it require now to press a button
This commit is contained in:
Marius Stanciu
2019-12-26 14:38:23 +02:00
committed by Marius
parent f0ed74ce5f
commit 787d85391a
4 changed files with 36 additions and 23 deletions

View File

@@ -676,7 +676,17 @@ class GeneralGUIPrefGroupUI(OptionsGroupUI):
self.layout.addStretch()
self.theme_button.clicked.connect(self.app.on_theme_change)
self.theme_button.clicked.connect(self.on_theme_change)
def on_theme_change(self):
val = self.theme_radio.get_value()
t_settings = QSettings("Open Source", "FlatCAM")
t_settings.setValue('theme', val)
# This will write the setting to the platform specific storage.
del t_settings
self.app.on_app_restart()
def handle_style(self, style):
# set current style