* Fixed _text_shadow_color gtk warning.

pull/367/head
Megax 2016-04-19 18:07:08 +02:00
parent 306ceb241c
commit 9958fc4496
1 changed files with 16 additions and 0 deletions
gtk-3.20/scss

View File

@ -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*0.8);
}
}