* Fixed button disabled.

pull/517/head
Megax 2016-08-23 22:39:54 +02:00
parent d56f32f8e6
commit ee20334c16
2 changed files with 26 additions and 0 deletions
gtk-3.0/scss/widgets
gtk-3.20/scss/widgets

View File

@ -172,6 +172,19 @@
box-shadow: none;
}
&:insensitive:insensitive {
@if (lightness($button_bg) > 50) {
@include linear-gradient(shade($button_bg, .95));
} @else {
@include linear-gradient(alpha($button_bg, .3));
}
color: mix($bg, $fg, .5);
box-shadow: none;
}
}
&.flat {
&:insensitive:insensitive {
background-color: transparent;
background-image: none;

View File

@ -320,6 +320,19 @@
box-shadow: none;
}
&:disabled:disabled {
@if (lightness($button_bg) > 50) {
@include linear-gradient(shade($button_bg, .95));
} @else {
@include linear-gradient(alpha($button_bg, .3));
}
color: mix($bg, $fg, .5);
box-shadow: none;
}
}
&.flat {
&:disabled:disabled {
background-color: transparent;
background-image: none;