Commit 3b819329 authored by Jakub Steiner's avatar Jakub Steiner

Adwaita: colored/darker button tweaks

- less contrasty border on colored buttons
- tone down edge highlight on darker buttons

#1510
parent 71cfb8e0
......@@ -115,8 +115,8 @@
// buttons
@function _border_color($c, $darker: false) {
@if $darker == true { @return darken($c, 30%); }
@else { @return darken($c, 20%); }
@if $darker == true { @return darken($c, 20%); }
@else { @return darken($c, 10%); }
}
@function _text_shadow_color ($tc: $fg_color, $bg: $bg_color) {
......@@ -139,10 +139,10 @@
//
@if lightness($c)>95% { @return white; }
@else if lightness($c)>90% { @return transparentize(white, 0.2); }
@else if lightness($c)>80% { @return transparentize(white, 0.4); }
@else if lightness($c)>50% { @return transparentize(white, 0.6); }
@else if lightness($c)>40% { @return transparentize(white, 0.8); }
@else { @return transparentize(white, 0.95); }
@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); }
}
@mixin _button_text_shadow ($tc:$fg_color, $bg:$bg_color) {
......
This diff is collapsed.
This diff is collapsed.
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment