GTK3: improve button visibility with lighter background colors
This commit is contained in:
@@ -142,7 +142,7 @@
|
||||
@else if lightness($c)>80% { @return transparentize(white, 0.5); }
|
||||
@else if lightness($c)>50% { @return transparentize(white, 0.8); }
|
||||
@else if lightness($c)>40% { @return transparentize(white, 0.9); }
|
||||
@else { @return transparentize(white, 0.98); }
|
||||
@else { @return transparentize(white, 0.95); }
|
||||
}
|
||||
|
||||
@mixin _button_text_shadow ($tc:$fg_color, $bg:$bg_color) {
|
||||
@@ -196,8 +196,7 @@
|
||||
outline-color: transparentize($tc, 0.7);
|
||||
border-color: if($c != $bg_color, _border_color($c), $borders_color);
|
||||
border-bottom-color: if($c != $bg_color, _border_color($c, true), $alt_borders_color);
|
||||
$button_fill: if($variant == 'light', linear-gradient(to top, darken($c, 4%) 2px, $c),
|
||||
linear-gradient(to top, darken($c,1%) 2px, $c)) !global;
|
||||
$button_fill: linear-gradient(to top, if($c != $bg_color, $c, lighten($c, 3%)) 2px, lighten($c, 5%)) !global;
|
||||
background-image: $button_fill;
|
||||
@include _button_text_shadow($tc, $c);
|
||||
@include _shadows(inset 0 1px $_hilight_color, $_button_edge, $_button_shadow);
|
||||
|
||||
@@ -1,4 +1,13 @@
|
||||
145c145
|
||||
< @else { @return transparentize(white, 0.98); }
|
||||
---
|
||||
> @else { @return transparentize(white, 0.95); }
|
||||
189c189
|
||||
< $_button_shadow: 0 1px 2px transparentize($shadow_color, 0.03);
|
||||
---
|
||||
> $_button_shadow: inset 0 -1px 0 transparentize(if($c != $bg_color, _border_color($c), $borders_color), .25), 0 1px 2px transparentize($shadow_color, 0.03);
|
||||
199,200c199
|
||||
< $button_fill: if($variant == 'light', linear-gradient(to top, darken($c, 4%) 2px, $c),
|
||||
< linear-gradient(to top, darken($c,1%) 2px, $c)) !global;
|
||||
---
|
||||
> $button_fill: linear-gradient(to top, if($c != $bg_color, $c, lighten($c, 3%)) 2px, lighten($c, 5%)) !global;
|
||||
|
||||
Reference in New Issue
Block a user