Skip to content

Commit 73f42d5

Browse files
Updated linux stylesheets to fix titlebar issue on KDE
1 parent 059a055 commit 73f42d5

File tree

1 file changed

+56
-53
lines changed

1 file changed

+56
-53
lines changed

src/stylesheets/focus_highlighting_linux.css

Lines changed: 56 additions & 53 deletions
Original file line numberDiff line numberDiff line change
@@ -2,89 +2,89 @@
22
* Default style sheet on Linux Platforms with focus highlighting flag enabled
33
*/
44
ads--CDockContainerWidget {
5-
background: palette(dark);
5+
background: palette(dark);
66
}
77

88
ads--CDockContainerWidget QSplitter::handle {
9-
background: palette(dark);
9+
background: palette(dark);
1010
}
1111

1212
ads--CDockAreaWidget {
13-
background: palette(window);
14-
border: 1px solid white;
13+
background: palette(window);
14+
border: 1px solid white;
1515
}
1616

1717
ads--CDockAreaWidget #tabsMenuButton::menu-indicator {
18-
image: none;
18+
image: none;
1919
}
2020

2121
ads--CDockWidgetTab {
22-
background: palette(window);
23-
border-color: palette(light);
24-
border-style: solid;
25-
border-width: 0 1px 0 0;
26-
padding: 0 0px;
22+
background: palette(window);
23+
border-color: palette(light);
24+
border-style: solid;
25+
border-width: 0 1px 0 0;
26+
padding: 0 0px;
2727
}
2828

2929
ads--CDockWidgetTab[activeTab="true"] {
30-
background: qlineargradient(spread : pad, x1 : 0, y1 : 0, x2 : 0, y2 : 0.5, stop : 0
31-
palette(window), stop:1 palette(light));
32-
/*background: palette(highlight);*/
30+
background: qlineargradient(spread : pad, x1 : 0, y1 : 0, x2 : 0, y2 : 0.5, stop : 0
31+
palette(window), stop:1 palette(light));
32+
/*background: palette(highlight);*/
3333
}
3434

3535
ads--CDockWidgetTab QLabel {
36-
color: palette(dark);
36+
color: palette(dark);
3737
}
3838

3939
ads--CDockWidgetTab[activeTab="true"] QLabel {
40-
color: palette(foreground);
40+
color: palette(foreground);
4141
}
4242

4343
ads--CDockWidget {
44-
background: palette(light);
45-
border-color: palette(light);
46-
border-style: solid;
47-
border-width: 1px 0 0 0;
44+
background: palette(light);
45+
border-color: palette(light);
46+
border-style: solid;
47+
border-width: 1px 0 0 0;
4848
}
4949

5050
ads--CTitleBarButton {
51-
padding: 0px 0px;
51+
padding: 0px 0px;
5252
}
5353

5454
QScrollArea#dockWidgetScrollArea {
55-
padding: 0px;
56-
border: none;
55+
padding: 0px;
56+
border: none;
5757
}
5858

5959
#dockAreaCloseButton {
60-
qproperty-icon: url(:/ads/images/close-button.svg),
61-
url(:/ads/images/close-button-disabled.svg) disabled;
62-
qproperty-iconSize: 16px;
60+
qproperty-icon: url(:/ads/images/close-button.svg),
61+
url(:/ads/images/close-button-disabled.svg) disabled;
62+
qproperty-iconSize: 16px;
6363
}
6464

6565
#detachGroupButton {
66-
qproperty-icon: url(:/ads/images/detach-button.svg),
67-
url(:/ads/images/detach-button-disabled.svg) disabled;
68-
qproperty-iconSize: 16px;
66+
qproperty-icon: url(:/ads/images/detach-button.svg),
67+
url(:/ads/images/detach-button-disabled.svg) disabled;
68+
qproperty-iconSize: 16px;
6969
}
7070

7171
#tabCloseButton {
72-
margin-top: 2px;
73-
background: none;
74-
border: none;
75-
padding: 0px -2px;
76-
qproperty-icon: url(:/ads/images/close-button.svg),
77-
url(:/ads/images/close-button-disabled.svg) disabled;
78-
qproperty-iconSize: 16px;
72+
margin-top: 2px;
73+
background: none;
74+
border: none;
75+
padding: 0px -2px;
76+
qproperty-icon: url(:/ads/images/close-button.svg),
77+
url(:/ads/images/close-button-disabled.svg) disabled;
78+
qproperty-iconSize: 16px;
7979
}
8080

8181
#tabCloseButton:hover {
82-
/*border: 1px solid rgba(0, 0, 0, 32);*/
83-
background: rgba(0, 0, 0, 24);
82+
/*border: 1px solid rgba(0, 0, 0, 32);*/
83+
background: rgba(0, 0, 0, 24);
8484
}
8585

8686
#tabCloseButton:pressed {
87-
background: rgba(0, 0, 0, 48);
87+
background: rgba(0, 0, 0, 48);
8888
}
8989

9090

@@ -96,60 +96,61 @@ QScrollArea#dockWidgetScrollArea {
9696

9797
/* Focus related styling */
9898
ads--CDockWidgetTab[focused="true"] {
99-
background: palette(highlight);
100-
border-color: palette(highlight);
99+
background: palette(highlight);
100+
border-color: palette(highlight);
101101
}
102102

103103
ads--CDockWidgetTab[focused="true"]>#tabCloseButton {
104-
qproperty-icon: url(:/ads/images/close-button-focused.svg)
104+
qproperty-icon: url(:/ads/images/close-button-focused.svg)
105105
}
106106

107107
ads--CDockWidgetTab[focused="true"]>#tabCloseButton:hover {
108-
background: rgba(255, 255, 255, 48);
108+
background: rgba(255, 255, 255, 48);
109109
}
110110

111111
ads--CDockWidgetTab[focused="true"]>#tabCloseButton:pressed {
112-
background: rgba(255, 255, 255, 92);
112+
background: rgba(255, 255, 255, 92);
113113
}
114114

115115
ads--CDockWidgetTab[focused="true"] QLabel {
116-
color: palette(light);
116+
color: palette(light);
117117
}
118118

119119
ads--CDockAreaTitleBar {
120-
background: transparent;
121-
border-bottom: 2px solid palette(light);
122-
padding-bottom: 0px;
120+
background: transparent;
121+
border-bottom: 2px solid palette(light);
122+
padding-bottom: 0px;
123123
}
124124

125125
ads--CDockAreaWidget[focused="true"] ads--CDockAreaTitleBar {
126-
background: transparent;
127-
border-bottom: 2px solid palette(highlight);
128-
padding-bottom: 0px;
126+
background: transparent;
127+
border-bottom: 2px solid palette(highlight);
128+
padding-bottom: 0px;
129129
}
130130

131131

132132
ads--CFloatingWidgetTitleBar {
133-
background: palette(midlight);
134133
qproperty-maximizeIcon: url(:/ads/images/maximize-button.svg);
135134
qproperty-normalIcon: url(:/ads/images/restore-button.svg);
136135
}
137136

138137

138+
/* does not properly work on KDE
139139
ads--CFloatingDockContainer[isActiveWindow="true"] ads--CFloatingWidgetTitleBar {
140-
background: palette(highlight);
140+
background: palette(highlight);
141141
qproperty-maximizeIcon: url(:/ads/images/maximize-button-focused.svg);
142142
qproperty-normalIcon: url(:/ads/images/restore-button-focused.svg);
143143
}
144144
145145
ads--CFloatingDockContainer[isActiveWindow="true"] #floatingTitleLabel {
146146
color: palette(light);
147147
}
148+
*/
148149

149150
#floatingTitleCloseButton, #floatingTitleMaximizeButton {
150151
qproperty-iconSize: 16px;
151152
border: none;
152-
margin: 3px;
153+
margin: 6px 3px 6px 3px;
153154
}
154155

155156

@@ -174,6 +175,7 @@ ads--CFloatingDockContainer[isActiveWindow="true"] #floatingTitleMaximizeButton
174175
}
175176

176177

178+
/* does not properly work on KDE
177179
ads--CFloatingDockContainer[isActiveWindow="true"] #floatingTitleCloseButton {
178180
qproperty-icon: url(:/ads/images/close-button-focused.svg);
179181
qproperty-iconSize: 16px;
@@ -189,3 +191,4 @@ ads--CFloatingDockContainer[isActiveWindow="true"] #floatingTitleCloseButton:pre
189191
ads--CFloatingDockContainer[isActiveWindow="true"] #floatingTitleMaximizeButton:pressed {
190192
background: rgba(255, 255, 255, 92);
191193
}
194+
*/

0 commit comments

Comments
 (0)