- when changing the style for the decorations from Preferences, now change is applied immediately
This commit is contained in:
@@ -7,6 +7,10 @@ CHANGELOG for FlatCAM Evo beta
|
|||||||
|
|
||||||
=================================================
|
=================================================
|
||||||
|
|
||||||
|
9.11.2022
|
||||||
|
|
||||||
|
- when changing the style for the decorations from Preferences, now change is applied immediately
|
||||||
|
|
||||||
7.11.2022
|
7.11.2022
|
||||||
|
|
||||||
- in Drilling Plugin fixed a situation when having tools with the same diameter will get them multiplied by the number of those tools
|
- in Drilling Plugin fixed a situation when having tools with the same diameter will get them multiplied by the number of those tools
|
||||||
|
|||||||
@@ -157,6 +157,8 @@ if __name__ == '__main__':
|
|||||||
idx = 0
|
idx = 0
|
||||||
style = QtWidgets.QStyleFactory.keys()[idx]
|
style = QtWidgets.QStyleFactory.keys()[idx]
|
||||||
app.setStyle(style)
|
app.setStyle(style)
|
||||||
|
else:
|
||||||
|
app.setStyle('windowsvista')
|
||||||
|
|
||||||
fc = App(qapp=app)
|
fc = App(qapp=app)
|
||||||
|
|
||||||
|
|||||||
@@ -396,6 +396,9 @@ class GeneralGUIPrefGroupUI(OptionsGroupUI):
|
|||||||
qsettings = QSettings("Open Source", "FlatCAM")
|
qsettings = QSettings("Open Source", "FlatCAM")
|
||||||
qsettings.setValue('style', str(style))
|
qsettings.setValue('style', str(style))
|
||||||
|
|
||||||
|
new_style = QtWidgets.QStyleFactory.keys()[int(style)]
|
||||||
|
QtWidgets.QApplication.setStyle(new_style)
|
||||||
|
|
||||||
# This will write the setting to the platform specific storage.
|
# This will write the setting to the platform specific storage.
|
||||||
del qsettings
|
del qsettings
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user