fix the border styling of the dock widget side tab when not focused

This commit is contained in:
Syarif Fakhri 2022-09-08 11:45:30 +08:00
parent ecccba4536
commit 5ddb02cc8e

View File

@ -24,19 +24,12 @@ ads--CDockWidgetTab {
ads--CDockWidgetSideTab { ads--CDockWidgetSideTab {
background: palette(window); background: palette(window);
border-color: palette(light); border-color: white;
border-style: solid; border-style: solid;
border-width: 1px 0px 1px 0px;
padding: 0 0px; padding: 0 0px;
} }
ads--CDockWidgetSideTab[sideTabBarArea="Left"] {
border-width: 0px 0px 0px 3px;
}
ads--CDockWidgetSideTab[sideTabBarArea="Right"] {
border-width: 0px 3px 0px 0px;
}
ads--CDockWidgetTab[activeTab="true"] { ads--CDockWidgetTab[activeTab="true"] {
background: qlineargradient(spread : pad, x1 : 0, y1 : 0, x2 : 0, y2 : 0.5, stop : 0 background: qlineargradient(spread : pad, x1 : 0, y1 : 0, x2 : 0, y2 : 0.5, stop : 0
palette(window), stop:1 palette(light)); palette(window), stop:1 palette(light));
@ -120,6 +113,14 @@ ads--CDockWidgetTab[focused="true"] {
border-color: palette(highlight); border-color: palette(highlight);
} }
ads--CDockWidgetSideTab[sideTabBarArea="Left"][focused="true"] {
border-width: 0px 0px 0px 3px;
}
ads--CDockWidgetSideTab[sideTabBarArea="Right"][focused="true"] {
border-width: 0px 3px 0px 0px;
}
ads--CDockWidgetSideTab[focused="true"] { ads--CDockWidgetSideTab[focused="true"] {
border-color: palette(highlight); border-color: palette(highlight);
} }