Adwaita: dark var backdrop insensitive fixes

Consistent backdrop insensitive state for dark variant GtkScale and GtkSwitch
This commit is contained in:
Lapo Calamandrei 2014-06-14 10:48:28 +02:00
parent 54e4c11ed1
commit a6de44ac69
2 changed files with 15 additions and 5 deletions

View File

@ -1090,7 +1090,12 @@ GtkSwitch {
&:insensitive { @include button(insensitive, $noedge: true); }
&:backdrop { @include button(backdrop); }
&:backdrop:active{ border-color: $selected_bg_color; }
&:backdrop:insensitive { @include button(backdrop-insensitive); }
&:backdrop:insensitive {
@include button(backdrop-insensitive);
@if $variant=='dark' {
border-color: $backdrop_insensitive_color;
}
}
}
}
@ -1239,8 +1244,11 @@ GtkCheckButton.text-button:selected { background-color: transparent; }
background-image: linear-gradient(to bottom, $backdrop_bg_color);
box-shadow: none;
}
&:backdrop:insensitive { @include button(backdrop-insensitive); }
//FIXME we need a better color for the dark variant
&:backdrop:insensitive { @include button(backdrop-insensitive);
@if $variant=='dark' {
border-color: $backdrop_insensitive_color;
}
}
&:active { border: 1px solid darken($selected_borders_color, 3%); }
&.fine-tune:active { //FIXME: Lapo doesn't like the shrinkage. Bad for touch
border: 4px solid transparent; //margin

View File

@ -1237,7 +1237,8 @@ GtkSwitch {
color: #454c4c;
border-color: #1e2222;
background-image: linear-gradient(to bottom, #393f3f);
box-shadow: inset 0 1px rgba(255, 255, 255, 0); }
box-shadow: inset 0 1px rgba(255, 255, 255, 0);
border-color: #454c4c; }
/*************************
* Check and Radio items *
@ -1580,7 +1581,8 @@ GtkCheckButton.text-button:selected {
color: #454c4c;
border-color: #1e2222;
background-image: linear-gradient(to bottom, #393f3f);
box-shadow: inset 0 1px rgba(255, 255, 255, 0); }
box-shadow: inset 0 1px rgba(255, 255, 255, 0);
border-color: #454c4c; }
.scale.slider:active {
border: 1px solid #0c233b; }
.scale.slider.fine-tune:active {