Skip to content

Commit

Permalink
[themes] Fix missing disabled state for {check/radio/group}box
Browse files Browse the repository at this point in the history
  • Loading branch information
nirvn authored and nyalldawson committed May 9, 2019
1 parent ed49b57 commit b054222
Show file tree
Hide file tree
Showing 5 changed files with 46 additions and 10 deletions.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
52 changes: 42 additions & 10 deletions resources/themes/Night Mapping/style.qss
Expand Up @@ -534,6 +534,10 @@ QGroupBox::title {
color: @textlight; color: @textlight;
} }


QGroupBox::title:disabled {
color: @itemdarkbackground;
}

QGroupBox::indicator { QGroupBox::indicator {
width: 0.9em; width: 0.9em;
height: 0.9em; height: 0.9em;
Expand All @@ -544,45 +548,73 @@ QGroupBox::indicator:unchecked {
image: url(@theme_path/icons/qcheckbox-unchecked.svg); image: url(@theme_path/icons/qcheckbox-unchecked.svg);
} }


QGroupBox::indicator:unchecked:disabled {
image: url(@theme_path/icons/qcheckbox-unchecked-disabled.svg);
}

QGroupBox::indicator:checked { QGroupBox::indicator:checked {
border: 1px solid @background; border: 1px solid @background;
image: url(@theme_path/icons/qcheckbox-checked.svg); image: url(@theme_path/icons/qcheckbox-checked.svg);
} }


QGroupBox::indicator:checked:disabled {
image: url(@theme_path/icons/qcheckbox-checked-disabled.svg);
}

/* ==================================================================================== */ /* ==================================================================================== */
/* RADIO BUTTON */ /* RADIO BUTTON */
/* ==================================================================================== */ /* ==================================================================================== */


QRadioButton::indicator:unchecked { QRadioButton::indicator
{
border: 1px solid @background; border: 1px solid @background;
image: url(@theme_path/icons/qradiobox-unchecked.svg);
width:0.8em; width:0.8em;
height:0.8em; height:0.8em;
} }


QRadioButton::indicator:unchecked
{
image: url(@theme_path/icons/qradiobox-unchecked.svg);
}

QRadioButton::indicator:unchecked:disabled
{
image: url(@theme_path/icons/qradiobox-unchecked-disabled.svg);
}

QRadioButton::indicator:checked { QRadioButton::indicator:checked {
border: 1px solid @background;
image: url(@theme_path/icons/qradiobox-checked.svg); image: url(@theme_path/icons/qradiobox-checked.svg);
width:0.8em; }
height:0.8em;
QRadioButton::indicator:checked:disabled {
image: url(@theme_path/icons/qradiobox-checked-disabled.svg);
} }


/* ==================================================================================== */ /* ==================================================================================== */
/* CHECKBOX */ /* CHECKBOX */
/* ==================================================================================== */ /* ==================================================================================== */


QCheckBox::indicator:unchecked { QCheckBox::indicator
{
border: 1px solid @background; border: 1px solid @background;
image: url(@theme_path/icons/qcheckbox-unchecked.svg);
width:0.8em; width:0.8em;
height:0.8em; height:0.8em;
} }


QCheckBox::indicator:unchecked {
image: url(@theme_path/icons/qcheckbox-unchecked.svg);
}

QCheckBox::indicator:unchecked:disabled {
image: url(@theme_path/icons/qcheckbox-unchecked-disabled.svg);
}

QCheckBox::indicator:checked { QCheckBox::indicator:checked {
border: 1px solid @background;
image: url(@theme_path/icons/qcheckbox-checked.svg); image: url(@theme_path/icons/qcheckbox-checked.svg);
width:0.8em; }
height:0.8em;
QCheckBox::indicator:checked:disabled {
image: url(@theme_path/icons/qcheckbox-checked-disabled.svg);
} }


/* ==================================================================================== */ /* ==================================================================================== */
Expand Down

0 comments on commit b054222

Please sign in to comment.