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...
pull/360/merge
Csaba Jakosa 2016-04-23 04:06:26 +02:00 committed by Dustin Falgout
parent d60348a72b
commit 1616dac147
4 changed files with 19 additions and 14 deletions

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 * .8);
}
}

View File

@ -114,7 +114,7 @@
}
calendar {
&:inconsistent { color: mix($menu_fg_color, $menu_bg_color, .5); }
&:indeterminate { color: mix($menu_fg_color, $menu_bg_color, .5); }
.button {
border-style: none;

View File

@ -143,9 +143,6 @@
}
.button {
-GtkButton-inner-border: 0;
border: 0;
background-color: transparent;
background-image: none;

View File

@ -182,7 +182,7 @@
box-shadow: inset 0 1px transparentize(white, .95);
}
background-color: linear-gradient(to bottom, $base_color, darken($base_color, .1));
@include linear-gradient($selected_bg_color);
&:backdrop {
@if $variant == 'light' {
@ -197,17 +197,9 @@
}
}
/* transmission fix. */
&:insensitive {
&:insensitive {
@include linear-gradient($bg_color);
border-color: border_insensitive($bg_color);
}
}
&:disabled {
@include linear-gradient($bg_color);
border-color: border_disabled($bg_color);
border-color: border_insensitive($bg_color);
}
&:backdrop {