Skip to content

Commit 4c56f06

Browse files
committed
Qt: Style check boxes in Darker Fusion
1 parent 3099f5f commit 4c56f06

11 files changed

+215
-4
lines changed

src/duckstation-qt/qtthemes.cpp

Lines changed: 41 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -302,6 +302,43 @@ QLineEdit:disabled {
302302
color: #777777;
303303
}
304304
305+
QCheckBox {
306+
spacing: 4px;
307+
padding: 2px 0;
308+
}
309+
310+
QCheckBox::indicator {
311+
width: 14px;
312+
height: 14px;
313+
}
314+
QCheckBox::indicator::unchecked {
315+
image: url(":/icons/white/svg/checkbox-unchecked.svg");
316+
}
317+
QCheckBox::indicator::unchecked:pressed {
318+
image: url(":/icons/white/svg/checkbox-unchecked-pressed.svg");
319+
}
320+
QCheckBox::indicator::unchecked:disabled {
321+
image: url(":/icons/white/svg/checkbox-unchecked-disabled.svg");
322+
}
323+
QCheckBox::indicator::checked {
324+
image: url(":/icons/white/svg/checkbox-checked.svg");
325+
}
326+
QCheckBox::indicator::checked:pressed {
327+
image: url(":/icons/white/svg/checkbox-checked-pressed.svg");
328+
}
329+
QCheckBox::indicator::checked:disabled {
330+
image: url(":/icons/white/svg/checkbox-checked-disabled.svg");
331+
}
332+
QCheckBox::indicator::indeterminate {
333+
image: url(":/icons/white/svg/checkbox-indeterminate.svg");
334+
}
335+
QCheckBox::indicator::indeterminate:pressed {
336+
image: url(":/icons/white/svg/checkbox-indeterminate-pressed.svg");
337+
}
338+
QCheckBox::indicator::indeterminate:disabled {
339+
image: url(":/icons/white/svg/checkbox-indeterminate-disabled.svg");
340+
}
341+
305342
QAbstractSpinBox {
306343
border: none;
307344
border-radius: 8px;
@@ -452,21 +489,21 @@ QSlider {
452489
QSlider::groove {
453490
border: none;
454491
height: 8px;
455-
background-color: #414141;
492+
background-color: #2d2d2d;
456493
border-radius: 4px;
457494
}
458495
QSlider::handle {
459-
background-color: #606060;
496+
background-color: #808080;
460497
border: none;
461498
width: 16px;
462499
margin: -4px 0; /* handle is placed by default on the groove, so we need to offset it */
463500
border-radius: 8px;
464501
}
465502
QSlider::handle:hover {
466-
background-color: #707070;
503+
background-color: #909090;
467504
}
468505
QSlider::handle:pressed {
469-
background-color: #808080;
506+
background-color: #a0a0a0;
470507
}
471508
472509
QTextBrowser {

src/duckstation-qt/resources/duckstation-qt.qrc

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -262,7 +262,16 @@
262262
<file>icons/white/svg/artboard-2-line.svg</file>
263263
<file>icons/white/svg/chat-off-line.svg</file>
264264
<file>icons/white/svg/cheats-line.svg</file>
265+
<file>icons/white/svg/checkbox-checked-disabled.svg</file>
266+
<file>icons/white/svg/checkbox-checked-pressed.svg</file>
267+
<file>icons/white/svg/checkbox-checked.svg</file>
268+
<file>icons/white/svg/checkbox-indeterminate-disabled.svg</file>
269+
<file>icons/white/svg/checkbox-indeterminate-pressed.svg</file>
270+
<file>icons/white/svg/checkbox-indeterminate.svg</file>
265271
<file>icons/white/svg/checkbox-multiple-blank-line.svg</file>
272+
<file>icons/white/svg/checkbox-unchecked-disabled.svg</file>
273+
<file>icons/white/svg/checkbox-unchecked-pressed.svg</file>
274+
<file>icons/white/svg/checkbox-unchecked.svg</file>
266275
<file>icons/white/svg/chip-2-line.svg</file>
267276
<file>icons/white/svg/chip-line.svg</file>
268277
<file>icons/white/svg/close-line.svg</file>
Lines changed: 20 additions & 0 deletions
Loading
Lines changed: 20 additions & 0 deletions
Loading
Lines changed: 20 additions & 0 deletions
Loading
Lines changed: 21 additions & 0 deletions
Loading
Lines changed: 21 additions & 0 deletions
Loading
Lines changed: 21 additions & 0 deletions
Loading
Lines changed: 14 additions & 0 deletions
Loading
Lines changed: 14 additions & 0 deletions
Loading

0 commit comments

Comments
 (0)