Adwaita: error labels insensitive & backdrop states

- address colored labels for the two states

See https://gitlab.gnome.org/GNOME/gtk/-/issues/3063#note_891618
This commit is contained in:
Jakub Steiner 2020-08-17 09:57:31 +02:00
parent 653251f69e
commit 72513972d7
3 changed files with 13 additions and 1 deletions

View File

@ -206,7 +206,11 @@ label {
selection { @extend %selected_items_backdrop; }
}
&.error { color: $error_color; }
&.error {
color: $error_color;
&:disabled { color: transparentize($error_color,0.5); }
&:disabled:backdrop { color: transparentize($error_color,0.6); }
}
}
.dim-label {

View File

@ -59,6 +59,10 @@ button label:disabled:backdrop { color: inherit; }
label.error { color: #cc0000; }
label.error:disabled { color: rgba(204, 0, 0, 0.5); }
label.error:disabled:backdrop { color: rgba(204, 0, 0, 0.4); }
.dim-label, .titlebar:not(headerbar) .subtitle, headerbar .subtitle, label.separator { opacity: 0.55; text-shadow: none; }
assistant .sidebar { background-color: #2d2d2d; border-top: 1px solid #1b1b1b; }

View File

@ -59,6 +59,10 @@ button label:disabled:backdrop { color: inherit; }
label.error { color: #cc0000; }
label.error:disabled { color: rgba(204, 0, 0, 0.5); }
label.error:disabled:backdrop { color: rgba(204, 0, 0, 0.4); }
.dim-label, .titlebar:not(headerbar) .subtitle, headerbar .subtitle, label.separator { opacity: 0.55; text-shadow: none; }
assistant .sidebar { background-color: #ffffff; border-top: 1px solid #cdc7c2; }