Skip to content

Commit 148de5e

Browse files
committed
Append PATH to all relative image urls in Cosmic Dusk to fix missing QDockWidget icons (close and detach)
1 parent c8ef0f1 commit 148de5e

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

src/themes/cosmic/theme.py

+5-5
Original file line numberDiff line numberDiff line change
@@ -201,8 +201,8 @@ def __init__(self, app):
201201
202202
QDockWidget {
203203
background-color: #141923;
204-
titlebar-close-icon: url(themes/cosmic/images/dock-close.svg);
205-
titlebar-normal-icon: url(themes/cosmic/images/dock-float.svg);
204+
titlebar-close-icon: url({PATH}themes/cosmic/images/dock-close.svg);
205+
titlebar-normal-icon: url({PATH}themes/cosmic/images/dock-float.svg);
206206
color: #91C3FF;
207207
font-weight: 500;
208208
padding: 16px;
@@ -334,7 +334,7 @@ def __init__(self, app):
334334
}
335335
336336
QComboBox::down-arrow {
337-
image: url(themes/cosmic/images/dropdown-arrow.svg);
337+
image: url({PATH}themes/cosmic/images/dropdown-arrow.svg);
338338
}
339339
340340
QComboBox QAbstractItemView {
@@ -364,7 +364,7 @@ def __init__(self, app):
364364
}
365365
366366
QComboBox::indicator::checked {
367-
image: url(themes/cosmic/images/dropdown-tick.svg);
367+
image: url({PATH}themes/cosmic/images/dropdown-tick.svg);
368368
}
369369
370370
QHeaderView::section {
@@ -427,7 +427,7 @@ def __init__(self, app):
427427
background-color: #0078FF;
428428
color: #FFFFFF;
429429
}}
430-
""" + self.style_sheet
430+
""" + self.style_sheet.replace("{PATH}", f"{PATH}/")
431431

432432
def apply_theme(self):
433433
super().apply_theme()

0 commit comments

Comments
 (0)