Skip to content

Commit ac84432

Browse files
committed
Add disable state to QToolBar handle
1 parent c9c8fa1 commit ac84432

File tree

2 files changed

+12
-0
lines changed

2 files changed

+12
-0
lines changed

qdarktheme/_resources/_template_stylesheet.py

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -160,6 +160,12 @@
160160
height: 20px;
161161
image: {{ foreground|color(state="icon")|url(id="drag_indicator", rotate=90) }};
162162
}
163+
QToolBar::handle:horizontal:disabled {
164+
image: {{ foreground|color(state="disabled")|url(id="drag_indicator") }};
165+
}
166+
QToolBar::handle:vertical:disabled {
167+
image: {{ foreground|color(state="disabled")|url(id="drag_indicator", rotate=90) }};
168+
}
163169
QToolBar::separator {
164170
background: {{ border|color }};
165171
}

style/base.qss

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -224,6 +224,12 @@ QToolBar::handle:vertical {
224224
height: 20px;
225225
image: {{ foreground|color(state="icon")|url(id="drag_indicator", rotate=90) }};
226226
}
227+
QToolBar::handle:horizontal:disabled {
228+
image: {{ foreground|color(state="disabled")|url(id="drag_indicator") }};
229+
}
230+
QToolBar::handle:vertical:disabled {
231+
image: {{ foreground|color(state="disabled")|url(id="drag_indicator", rotate=90) }};
232+
}
227233
QToolBar::separator {
228234
background: {{ border|color }};
229235
}

0 commit comments

Comments
 (0)