[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.
This commit is contained in:
MisterMaker
2025-07-20 00:15:31 +02:00
committed by GitHub
parent c90420ed2c
commit 2dce2ae38b
2 changed files with 8 additions and 2 deletions

View File

@@ -168,7 +168,7 @@
<FCParamGroup Name="TreeView">
<FCInt Name="FontSize" Value="11"/>
<FCInt Name="ItemBackgroundPadding" Value="11"/>
<FCUInt Name="TreeActiveColor" Value="556083711"/>
<FCUInt Name="TreeActiveColor" Value="899696639"/>
<FCUInt Name="TreeEditColor" Value="1434171135"/>
</FCParamGroup>
<FCParamGroup Name="View">

View File

@@ -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 {