mirror of
https://github.com/ankitects/anki.git
synced 2025-09-21 15:32:23 -04:00
Tweak disabled state of SpinBox button
This commit is contained in:
parent
b4101d9d97
commit
74d06241da
2 changed files with 9 additions and 1 deletions
|
@ -308,7 +308,9 @@ QSpinBox::down-arrow {{
|
||||||
QSpinBox::up-arrow,
|
QSpinBox::up-arrow,
|
||||||
QSpinBox::down-arrow,
|
QSpinBox::down-arrow,
|
||||||
QSpinBox::up-arrow:pressed,
|
QSpinBox::up-arrow:pressed,
|
||||||
QSpinBox::down-arrow:pressed {{
|
QSpinBox::down-arrow:pressed,
|
||||||
|
QSpinBox::up-arrow:disabled:hover, QSpinBox::up-arrow:off:hover,
|
||||||
|
QSpinBox::down-arrow:disabled:hover, QSpinBox::down-arrow:off:hover {{
|
||||||
width: 16px;
|
width: 16px;
|
||||||
height: 16px;
|
height: 16px;
|
||||||
}}
|
}}
|
||||||
|
@ -316,6 +318,10 @@ QSpinBox::up-arrow:hover,
|
||||||
QSpinBox::down-arrow:hover {{
|
QSpinBox::down-arrow:hover {{
|
||||||
width: 20px;
|
width: 20px;
|
||||||
height: 20px;
|
height: 20px;
|
||||||
|
}}
|
||||||
|
QSpinBox::up-button:disabled, QSpinBox::up-button:off,
|
||||||
|
QSpinBox::down-button:disabled, QSpinBox::down-button:off {{
|
||||||
|
background: {tm.color(colors.BUTTON_PRIMARY_DISABLED)};
|
||||||
}}
|
}}
|
||||||
"""
|
"""
|
||||||
return buf
|
return buf
|
||||||
|
|
|
@ -43,6 +43,7 @@
|
||||||
--button-primary-gradient-end: #087fff;
|
--button-primary-gradient-end: #087fff;
|
||||||
--button-primary-hover-gradient-start: #69b3fa;
|
--button-primary-hover-gradient-start: #69b3fa;
|
||||||
--button-primary-hover-gradient-end: #087fff;
|
--button-primary-hover-gradient-end: #087fff;
|
||||||
|
--button-primary-disabled: #8fc5fc;
|
||||||
--button-gradient-start: white;
|
--button-gradient-start: white;
|
||||||
--button-gradient-end: #f6f6f6;
|
--button-gradient-end: #f6f6f6;
|
||||||
--button-hover-gradient-start: #fefefe;
|
--button-hover-gradient-start: #fefefe;
|
||||||
|
@ -97,6 +98,7 @@
|
||||||
--button-primary-gradient-end: #014996;
|
--button-primary-gradient-end: #014996;
|
||||||
--button-primary-hover-gradient-start: #2877c2;
|
--button-primary-hover-gradient-start: #2877c2;
|
||||||
--button-primary-hover-gradient-end: #0d5db3;
|
--button-primary-hover-gradient-end: #0d5db3;
|
||||||
|
--button-primary-disabled: #4977a1;
|
||||||
--button-gradient-start: #3f3f3f;
|
--button-gradient-start: #3f3f3f;
|
||||||
--button-gradient-end: #363636;
|
--button-gradient-end: #363636;
|
||||||
--button-hover-gradient-start: #434343;
|
--button-hover-gradient-start: #434343;
|
||||||
|
|
Loading…
Reference in a new issue