mirror of
https://github.com/encounter/numix-blue-gtk-theme.git
synced 2026-07-10 12:18:49 -07:00
gtk3.20: Fix gtk warning (#367)
* * Fix gtk warning. * * Fix gtk warning (border-inner). * * Fixed _text_shadow_color gtk warning. * * Code style fix. * * Code style fix 2...
This commit is contained in:
committed by
Dustin Falgout
parent
d60348a72b
commit
1616dac147
@@ -77,3 +77,19 @@ $modules: () !default;
|
||||
|
||||
&:active:disabled, &:checked:disabled { border-color: border_normal($color); }
|
||||
}
|
||||
|
||||
@function _text_shadow_color($tc: $fg_color, $bg: $bg_color) {
|
||||
//
|
||||
// calculate the color of text shadows
|
||||
//
|
||||
// $tc is the text color
|
||||
// $bg is the background color
|
||||
//
|
||||
$_lbg: lightness($bg) / 100%;
|
||||
|
||||
@if lightness($tc) < 50% {
|
||||
@return transparentize(white, 1 - $_lbg / ($_lbg * 1.3));
|
||||
} @else {
|
||||
@return transparentize(black, $_lbg * .8);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user