adwaita: insensitive styling for views

Add an insensitive style to views, somehow we didn't ship one, so
for example, disabled textviews looked the same as sensitive ones.
This commit is contained in:
Lapo Calamandrei 2017-02-08 16:45:51 +01:00
parent 7ec16c5c53
commit efde7d15aa
3 changed files with 28 additions and 0 deletions

View File

@ -98,6 +98,12 @@ $button_transition: all 200ms $ease-out-quad;
&:backdrop {
color: $backdrop_text_color;
background-color: $backdrop_base_color;
&:disabled { color: $backdrop_insensitive_color; }
}
&:disabled {
color: $insensitive_fg_color;
background-color: $insensitive_bg_color;
}
&:selected {

View File

@ -64,6 +64,17 @@ textview text {
textview text:backdrop {
color: #d3d4d5;
background-color: #252a2c; }
.view:backdrop:disabled, iconview:backdrop:disabled,
.view text:backdrop:disabled,
iconview text:backdrop:disabled,
textview text:backdrop:disabled {
color: #566164; }
.view:disabled, iconview:disabled,
.view text:disabled,
iconview text:disabled,
textview text:disabled {
color: #919494;
background-color: #2d3234; }
.view:selected:focus, iconview:selected:focus, .view:selected, iconview:selected,
.view text:selected:focus,
iconview text:selected:focus,

View File

@ -64,6 +64,17 @@ textview text {
textview text:backdrop {
color: #323232;
background-color: #fcfcfc; }
.view:backdrop:disabled, iconview:backdrop:disabled,
.view text:backdrop:disabled,
iconview text:backdrop:disabled,
textview text:backdrop:disabled {
color: #c3c3c0; }
.view:disabled, iconview:disabled,
.view text:disabled,
iconview text:disabled,
textview text:disabled {
color: #8b8e8f;
background-color: #f1f1f1; }
.view:selected:focus, iconview:selected:focus, .view:selected, iconview:selected,
.view text:selected:focus,
iconview text:selected:focus,