mirror of
https://gitlab.gnome.org/GNOME/gtk.git
synced 2024-12-28 22:41:43 +00:00
HighContrastInverse: Fix suggested-action colors
Choose a suitable foreground color instead of hardcoding white. https://bugzilla.gnome.org/show_bug.cgi?id=764170
This commit is contained in:
parent
28fe00fc68
commit
aee69615bc
@ -555,10 +555,10 @@ button {
|
||||
}
|
||||
|
||||
// Suggested and Destructive Action buttons
|
||||
@each $b_type, $b_color in (suggested-action, $selected_bg_color),
|
||||
(destructive-action, $destructive_color) {
|
||||
@each $b_type, $b_color, $f_color in (suggested-action, $selected_bg_color, $selected_fg_color),
|
||||
(destructive-action, $destructive_color, white) {
|
||||
&.#{$b_type} {
|
||||
@include button(normal, $b_color, white);
|
||||
@include button(normal, $b_color, $f_color);
|
||||
|
||||
&.flat {
|
||||
@include button(undecorated);
|
||||
@ -566,23 +566,23 @@ button {
|
||||
color: $b_color; //FIXME: does it work on the dark variant?
|
||||
}
|
||||
|
||||
&:hover { @include button(hover, $b_color, white); }
|
||||
&:hover { @include button(hover, $b_color, $f_color); }
|
||||
|
||||
&:active,
|
||||
&:checked { @include button(active, $b_color, white); }
|
||||
&:checked { @include button(active, $b_color, $f_color); }
|
||||
|
||||
&:backdrop,
|
||||
&.flat:backdrop {
|
||||
@include button(backdrop, $b_color, white);
|
||||
@include button(backdrop, $b_color, $f_color);
|
||||
|
||||
&:active,
|
||||
&:checked { @include button(backdrop-active, $b_color, white); }
|
||||
&:checked { @include button(backdrop-active, $b_color, $f_color); }
|
||||
|
||||
&:disabled {
|
||||
@include button(backdrop-insensitive);
|
||||
|
||||
&:active,
|
||||
&:checked { @include button(backdrop-insensitive-active, $b_color, white); }
|
||||
&:checked { @include button(backdrop-insensitive-active, $b_color, $f_color); }
|
||||
}
|
||||
}
|
||||
|
||||
@ -598,7 +598,7 @@ button {
|
||||
@include button(insensitive);
|
||||
|
||||
&:active,
|
||||
&:checked { @include button(insensitive-active, $b_color, white); }
|
||||
&:checked { @include button(insensitive-active, $b_color, $f_color); }
|
||||
}
|
||||
|
||||
.osd & {
|
||||
|
@ -600,7 +600,7 @@ popover.background.touch-selection button, popover.background.magnifier button,
|
||||
button.suggested-action {
|
||||
border-width: 2px;
|
||||
border-style: solid;
|
||||
color: white;
|
||||
color: #000;
|
||||
background-image: none;
|
||||
background-color: #ddd;
|
||||
border-color: #9d9d9d; }
|
||||
@ -615,7 +615,7 @@ button.suggested-action {
|
||||
button.suggested-action:hover {
|
||||
border-width: 2px;
|
||||
border-style: solid;
|
||||
color: white;
|
||||
color: #000;
|
||||
background-color: #ddd;
|
||||
border-color: #9d9d9d;
|
||||
background-image: none; }
|
||||
@ -623,13 +623,13 @@ button.suggested-action {
|
||||
border-width: 2px;
|
||||
border-style: solid;
|
||||
background-image: none;
|
||||
color: black;
|
||||
color: white;
|
||||
background-color: #222222;
|
||||
border-color: #9d9d9d; }
|
||||
button.suggested-action:backdrop, button.suggested-action.flat:backdrop {
|
||||
border-width: 2px;
|
||||
border-style: solid;
|
||||
color: white;
|
||||
color: #000;
|
||||
background-color: #ddd;
|
||||
border-color: #ddd;
|
||||
background-image: none; }
|
||||
|
@ -602,7 +602,7 @@ popover.background.touch-selection button, popover.background.magnifier button,
|
||||
button.suggested-action {
|
||||
border-width: 2px;
|
||||
border-style: solid;
|
||||
color: white;
|
||||
color: #fff;
|
||||
background-image: none;
|
||||
background-color: #000;
|
||||
border-color: black; }
|
||||
@ -617,7 +617,7 @@ button.suggested-action {
|
||||
button.suggested-action:hover {
|
||||
border-width: 2px;
|
||||
border-style: solid;
|
||||
color: white;
|
||||
color: #fff;
|
||||
background-color: #000;
|
||||
border-color: black;
|
||||
background-image: none; }
|
||||
@ -631,7 +631,7 @@ button.suggested-action {
|
||||
button.suggested-action:backdrop, button.suggested-action.flat:backdrop {
|
||||
border-width: 2px;
|
||||
border-style: solid;
|
||||
color: white;
|
||||
color: #fff;
|
||||
background-color: #000;
|
||||
border-color: #000;
|
||||
background-image: none; }
|
||||
|
Loading…
Reference in New Issue
Block a user