- more changes for dark theme
This commit is contained in:
@@ -13,6 +13,7 @@ CHANGELOG for FlatCAM Evo beta
|
|||||||
- darkened the text color for the dark theme in order to make it easier on the eyes
|
- darkened the text color for the dark theme in order to make it easier on the eyes
|
||||||
- in Distance Plugin, when using the big cursor, the cursor colors are fixed to work for the dark mode too
|
- in Distance Plugin, when using the big cursor, the cursor colors are fixed to work for the dark mode too
|
||||||
- for dark mode disabled hover highlight on the Status Bar
|
- for dark mode disabled hover highlight on the Status Bar
|
||||||
|
- more changes for dark theme
|
||||||
|
|
||||||
2.05.2022
|
2.05.2022
|
||||||
|
|
||||||
|
|||||||
@@ -1533,6 +1533,15 @@ class MainGUI(QtWidgets.QMainWindow):
|
|||||||
# remove the close button from the Plot Area tab (first tab index = 0) as this one will always be ON
|
# remove the close button from the Plot Area tab (first tab index = 0) as this one will always be ON
|
||||||
self.plot_tab_area.protectTab(0)
|
self.plot_tab_area.protectTab(0)
|
||||||
|
|
||||||
|
if self.app.options["global_theme"] not in ['default', 'light']:
|
||||||
|
self.plot_tab_area.setStyleSheet(
|
||||||
|
"""
|
||||||
|
QTabWidget::pane {
|
||||||
|
border: 0px solid rgba(255.000, 00.000, 00.000, 1.000);
|
||||||
|
}
|
||||||
|
"""
|
||||||
|
)
|
||||||
|
|
||||||
# ########################################################################
|
# ########################################################################
|
||||||
# ########################## PREFERENCES AREA Tab # ######################
|
# ########################## PREFERENCES AREA Tab # ######################
|
||||||
# ########################################################################
|
# ########################################################################
|
||||||
@@ -1542,6 +1551,14 @@ class MainGUI(QtWidgets.QMainWindow):
|
|||||||
self.pref_tab_layout.setContentsMargins(2, 2, 2, 2)
|
self.pref_tab_layout.setContentsMargins(2, 2, 2, 2)
|
||||||
|
|
||||||
self.pref_tab_area = FCTab()
|
self.pref_tab_area = FCTab()
|
||||||
|
if self.app.options["global_theme"] not in ['default', 'light']:
|
||||||
|
self.pref_tab_area.setStyleSheet(
|
||||||
|
"""
|
||||||
|
QTabWidget::pane {
|
||||||
|
border: 0px solid rgba(63.000, 64.000, 66.000, 1.000);
|
||||||
|
}
|
||||||
|
"""
|
||||||
|
)
|
||||||
self.pref_tab_area.setTabsClosable(False)
|
self.pref_tab_area.setTabsClosable(False)
|
||||||
self.pref_tab_area_tabBar = self.pref_tab_area.tabBar()
|
self.pref_tab_area_tabBar = self.pref_tab_area.tabBar()
|
||||||
self.pref_tab_area_tabBar.setStyleSheet("QTabBar::tab{min-width:90px;}")
|
self.pref_tab_area_tabBar.setStyleSheet("QTabBar::tab{min-width:90px;}")
|
||||||
|
|||||||
@@ -51,9 +51,13 @@ class VisPyCanvas(scene.SceneCanvas):
|
|||||||
tick_color = Color('#000000')
|
tick_color = Color('#000000')
|
||||||
back_color = str(QPalette().color(QPalette.ColorRole.Window).name())
|
back_color = str(QPalette().color(QPalette.ColorRole.Window).name())
|
||||||
else:
|
else:
|
||||||
theme_color = Color('#000000')
|
if theme not in ['default', 'light']:
|
||||||
|
theme_color = Color('#202124')
|
||||||
|
back_color = Color('#202124')
|
||||||
|
else:
|
||||||
|
theme_color = Color('#000000')
|
||||||
|
back_color = Color('#000000')
|
||||||
tick_color = Color('gray')
|
tick_color = Color('gray')
|
||||||
back_color = Color('#000000')
|
|
||||||
# back_color = Color('#272822') # darker
|
# back_color = Color('#272822') # darker
|
||||||
# back_color = Color('#3c3f41') # lighter
|
# back_color = Color('#3c3f41') # lighter
|
||||||
|
|
||||||
|
|||||||
@@ -218,7 +218,7 @@ class Distance(AppTool):
|
|||||||
self.app.on_cursor_type(val="big", control_cursor=True)
|
self.app.on_cursor_type(val="big", control_cursor=True)
|
||||||
self.cursor_color_memory = self.app.plotcanvas.cursor_color
|
self.cursor_color_memory = self.app.plotcanvas.cursor_color
|
||||||
|
|
||||||
if self.app.options["global_theme"] in ['defaul', 'light']:
|
if self.app.options["global_theme"] in ['default', 'light']:
|
||||||
if self.app.use_3d_engine is True:
|
if self.app.use_3d_engine is True:
|
||||||
self.app.plotcanvas.cursor_color = '#000000FF'
|
self.app.plotcanvas.cursor_color = '#000000FF'
|
||||||
else:
|
else:
|
||||||
|
|||||||
Reference in New Issue
Block a user