Skip to content

Commit 206821d

Browse files
committed
[WIP] themes: Add ADS support in the Dark theme
1 parent 405771d commit 206821d

File tree

1 file changed

+74
-2
lines changed

1 file changed

+74
-2
lines changed

UI/data/themes/Dark.qss

Lines changed: 74 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -117,7 +117,79 @@ SourceTree QLineEdit {
117117
border-radius: none;
118118
}
119119

120-
/* Dock Widget */
120+
/* Advanced Docking System */
121+
ads--CFloatingDockContainer, ads--CFloatingWidgetTitleBar, #floatingTitleLabel, ads--CFloatingWidgetTitleBar QToolButton {
122+
background: palette(window);
123+
} /* Contain a CDockContainerWidget and its X11 only titlebar */
124+
125+
ads--CFloatingWidgetTitleBar {
126+
qproperty-maximizeIcon: url(:/ads/images/maximize-button.svg);
127+
qproperty-normalIcon: url(:/ads/images/restore-button.svg);
128+
} /* X11 only title bar icons */
129+
130+
ads--CDockContainerWidget {
131+
border: 1px solid palette(light);
132+
background-color: aqua;
133+
} /* Inside MainWindow or CFloatingDockContainer / Constains CDockAreaWidgets */
134+
135+
ads--CDockContainerWidget > QSplitter{
136+
padding: 1 0 1 0;
137+
}
138+
139+
ads--CDockContainerWidget ads--CDockSplitter::handle {
140+
background: palette(window);
141+
} /* Between CDockAreaWidgets in a CDockContainerWidget */
142+
143+
ads--CDockAreaWidget {
144+
background: palette(window);
145+
border: 1px solid palette(light);
146+
} /* Inside a CDockContainerWidget */
147+
148+
ads--CDockAreaWidget #tabsMenuButton::menu-indicator {
149+
image: none;
150+
}
151+
152+
ads--CDockAreaWidget #detachGroupButton {
153+
qproperty-icon: url('./Dark/popout.svg');
154+
qproperty-iconSize: 12px;
155+
}
156+
157+
ads--CDockAreaWidget #dockAreaCloseButton {
158+
qproperty-icon: url('./Dark/close.svg');
159+
qproperty-iconSize: 12px;
160+
}
161+
162+
ads--CDockAreaTitleBar, ads--CDockAreaWidget #tabsMenuButton, ads--CDockAreaWidget #detachGroupButton, ads--CDockAreaWidget #dockAreaCloseButton {
163+
background-color: rgb(70,69,70);
164+
}
165+
166+
ads--CDockWidgetTab {
167+
background-color: rgb(70,69,70);
168+
border-color: palette(light);
169+
border-style: solid;
170+
border-width: 0 1px 0 0;
171+
padding: 0 0px;
172+
}
173+
174+
ads--CDockWidgetTab QLabel {
175+
background-color: rgb(70,69,70);
176+
}
177+
178+
ads--CDockWidgetTab #tabCloseButton {
179+
margin-top: 2px;
180+
background: none;
181+
border: none;
182+
padding: 0px -2px;
183+
qproperty-icon: url('./Dark/close.svg');
184+
qproperty-iconSize: 8px;
185+
}
186+
187+
ads--CDockWidgetTab[activeTab="true"], ads--CDockWidgetTab[activeTab="true"] QLabel {
188+
background-color: palette(window);
189+
}
190+
191+
192+
/* Legacy Dock Widget */
121193

122194
QDockWidget {
123195
titlebar-close-icon: url('./Dark/close.svg');
@@ -1013,4 +1085,4 @@ QCalendarWidget QAbstractItemView:enabled {
10131085

10141086
QCalendarWidget QAbstractItemView:disabled {
10151087
color: rgb(122,121,122);
1016-
}
1088+
}

0 commit comments

Comments
 (0)