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
parent
d60348a72b
commit
1616dac147
|
@ -77,3 +77,19 @@ $modules: () !default;
|
||||||
|
|
||||||
&:active:disabled, &:checked:disabled { border-color: border_normal($color); }
|
&: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);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
|
@ -114,7 +114,7 @@
|
||||||
}
|
}
|
||||||
|
|
||||||
calendar {
|
calendar {
|
||||||
&:inconsistent { color: mix($menu_fg_color, $menu_bg_color, .5); }
|
&:indeterminate { color: mix($menu_fg_color, $menu_bg_color, .5); }
|
||||||
|
|
||||||
.button {
|
.button {
|
||||||
border-style: none;
|
border-style: none;
|
||||||
|
|
|
@ -143,9 +143,6 @@
|
||||||
}
|
}
|
||||||
|
|
||||||
.button {
|
.button {
|
||||||
|
|
||||||
-GtkButton-inner-border: 0;
|
|
||||||
|
|
||||||
border: 0;
|
border: 0;
|
||||||
background-color: transparent;
|
background-color: transparent;
|
||||||
background-image: none;
|
background-image: none;
|
||||||
|
|
|
@ -182,7 +182,7 @@
|
||||||
box-shadow: inset 0 1px transparentize(white, .95);
|
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 {
|
&:backdrop {
|
||||||
@if $variant == 'light' {
|
@if $variant == 'light' {
|
||||||
|
@ -197,17 +197,9 @@
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
/* transmission fix. */
|
|
||||||
&:insensitive {
|
|
||||||
&:insensitive {
|
|
||||||
@include linear-gradient($bg_color);
|
|
||||||
border-color: border_insensitive($bg_color);
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
&:disabled {
|
&:disabled {
|
||||||
@include linear-gradient($bg_color);
|
@include linear-gradient($bg_color);
|
||||||
border-color: border_disabled($bg_color);
|
border-color: border_insensitive($bg_color);
|
||||||
}
|
}
|
||||||
|
|
||||||
&:backdrop {
|
&:backdrop {
|
||||||
|
|
Loading…
Reference in New Issue