From 2dce2ae38b7565d1de296ea4f2d26838e1482c05 Mon Sep 17 00:00:00 2001 From: MisterMaker Date: Sun, 20 Jul 2025 00:15:31 +0200 Subject: [PATCH] [Stylesheet] Update dark theme tree color and tab bar background (#22596) * Update dark theme tree color and tab bar background Changed the TreeActiveColor value in the FreeCAD Dark preference pack for improved visibility. Set the QTabBar background color to use @PrimaryColor in the stylesheet for fixing drawbase issues. * Differentiate QTabBar styles for mdiAreaTabBar Separated the QTabBar#mdiAreaTabBar styling from the general QTabBar, setting qproperty-drawBase and background-color specifically for mdiAreaTabBar. The general QTabBar now has qproperty-drawBase set to 0, improving style specificity for file tab bars. --- src/Gui/PreferencePacks/FreeCAD Dark/FreeCAD Dark.cfg | 2 +- src/Gui/Stylesheets/FreeCAD.qss | 8 +++++++- 2 files changed, 8 insertions(+), 2 deletions(-) diff --git a/src/Gui/PreferencePacks/FreeCAD Dark/FreeCAD Dark.cfg b/src/Gui/PreferencePacks/FreeCAD Dark/FreeCAD Dark.cfg index d6d05925ee..a845d4f580 100644 --- a/src/Gui/PreferencePacks/FreeCAD Dark/FreeCAD Dark.cfg +++ b/src/Gui/PreferencePacks/FreeCAD Dark/FreeCAD Dark.cfg @@ -168,7 +168,7 @@ - + diff --git a/src/Gui/Stylesheets/FreeCAD.qss b/src/Gui/Stylesheets/FreeCAD.qss index 2b665fd32e..3ea2f60422 100644 --- a/src/Gui/Stylesheets/FreeCAD.qss +++ b/src/Gui/Stylesheets/FreeCAD.qss @@ -1785,8 +1785,14 @@ QTabBar#mdiAreaTabBar::tab:bottom:selected { border-top: @3DViewBackgroundRefColor; } -QTabBar { +/*tabbar for files. */ +QTabBar#mdiAreaTabBar { qproperty-drawBase: 1;/*tabbar for files. */ + background-color: @PrimaryColor; +} + +QTabBar { + qproperty-drawBase: 0;/*tabbar for files. */ } QTabWidget::tab-bar {