From a91db3f8760e9486873b7aa09f9c5069328d5174 Mon Sep 17 00:00:00 2001 From: PaddleStroke Date: Mon, 13 Jan 2025 18:21:17 +0100 Subject: [PATCH] Stylesheet toolbar background (#18831) --- src/Gui/Stylesheets/FreeCAD Dark.qss | 13 +++++++++---- src/Gui/Stylesheets/FreeCAD Light.qss | 13 +++++++++---- 2 files changed, 18 insertions(+), 8 deletions(-) diff --git a/src/Gui/Stylesheets/FreeCAD Dark.qss b/src/Gui/Stylesheets/FreeCAD Dark.qss index 9bb910ffcb..282bd523e3 100644 --- a/src/Gui/Stylesheets/FreeCAD Dark.qss +++ b/src/Gui/Stylesheets/FreeCAD Dark.qss @@ -104,8 +104,7 @@ Main window ==================================================================================================*/ QMainWindow, QDialog, -QDockWidget, -QToolBar { +QDockWidget { background-color: #333333; /* main background color */ } @@ -886,6 +885,12 @@ QToolBar { /* font-weight: bold; */ } +/* fix background color for toolbars that are the on menubar. */ +QToolBar:only-one { + background-color: transparent; + /* margin-top: -3px; */ +} + QToolBar:horizontal { border-bottom: 1px solid #020202; padding-top: 3px; @@ -1878,7 +1883,7 @@ https://doc.qt.io/qt-5/stylesheet-examples.html#customizing-qtabwidget-and-qtabb --------------------------------------------------------------------------- */ QTabBar, QDockWidget QTabBar { qproperty-drawBase: 0; - background-color: #333333; + /* background-color: #333333; */ /* left: 5px; move to the right by 5px - removed for fix */ } @@ -2810,4 +2815,4 @@ QTreeView::item:!selected:hover#groupsTreeView { color: white; background-color: @ThemeAccentColor1; margin-left:-8px; -} */ \ No newline at end of file +} */ diff --git a/src/Gui/Stylesheets/FreeCAD Light.qss b/src/Gui/Stylesheets/FreeCAD Light.qss index c30c32c206..943222caf0 100644 --- a/src/Gui/Stylesheets/FreeCAD Light.qss +++ b/src/Gui/Stylesheets/FreeCAD Light.qss @@ -104,8 +104,7 @@ Main window ==================================================================================================*/ QMainWindow, QDialog, -QDockWidget, -QToolBar { +QDockWidget { background-color: #f0f0f0; /* main background color */ } @@ -886,6 +885,12 @@ QToolBar { /* font-weight: bold; */ } +/* fix background color for toolbars that are the on menubar. */ +QToolBar:only-one { + background-color: transparent; + /* margin-top: -3px; */ +} + QToolBar:horizontal { border-bottom: 1px solid #ababab; padding-top: 3px; @@ -1875,7 +1880,7 @@ https://doc.qt.io/qt-5/stylesheet-examples.html#customizing-qtabwidget-and-qtabb --------------------------------------------------------------------------- */ QTabBar, QDockWidget QTabBar { qproperty-drawBase: 0; - background-color: #f0f0f0; + /* background-color: #f0f0f0; */ /* left: 5px; move to the right by 5px - removed for fix */ } @@ -2807,4 +2812,4 @@ QTreeView::item:!selected:hover#groupsTreeView { color: white; background-color: @ThemeAccentColor1; margin-left:-8px; -} */ \ No newline at end of file +} */