Skip to content

Commit d2f201b

Browse files
committed
[Button-Redesign] Lighten active a checked state button color for light variant
checked stated background color is too dark and text is not readble in backdrop state. This fixes the issue.
1 parent 777d586 commit d2f201b

1 file changed

Lines changed: 10 additions & 2 deletions

File tree

src/gtk-3.20/scss/widgets/_button.scss

Lines changed: 10 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -309,11 +309,19 @@
309309

310310

311311
&:checked, &:active {
312-
@include linear-gradient(shade($button_bg, .7), to top);
312+
@if (lightness($button_bg) > 50) {
313+
@include linear-gradient(shade($button_bg, .8), to top);
314+
} @else {
315+
@include linear-gradient(shade($button_bg, .7), to top);
316+
}
313317
color: $white;
314318

315319
&:focus, &:hover {
316-
@include linear-gradient(shade($button_bg, .65), to top);
320+
@if (lightness($button_bg) > 50) {
321+
@include linear-gradient(shade($button_bg, .75), to top);
322+
} @else {
323+
@include linear-gradient(shade($button_bg, .65), to top);
324+
}
317325
color: $white;
318326
}
319327
}

0 commit comments

Comments
 (0)