Commit 830b6f10 authored by Lapo Calamandrei's avatar Lapo Calamandrei

Adwaita: simpler active switch background

...removing the progressbar_fill mixin in the process.
parent 8f2cd874
......@@ -1941,9 +1941,10 @@ switch {
background-image: linear-gradient(to bottom, mix($bg_color, $borders_color, 60%));
text-shadow: 0 1px transparentize(black, 0.9);
&:active {
@include progressbar_fill;
color: white;
border-color: $selected_borders_color;
background-color: $selected_bg_color;
background-image: none;
box-shadow: _widget_edge();
text-shadow: 0 1px transparentize($selected_borders_color, 0.5),
0 0 2px transparentize(white, 0.4);
......
......@@ -463,12 +463,6 @@
@else { box-shadow: none; }
}
@mixin progressbar_fill($d:horizontal) {
$dir: if($d==vertical,right,bottom);
background-image: linear-gradient(to $dir, $selected_bg_color 2px,
lighten($selected_bg_color, 6%));
}
@function headerbar_gradient($c, $tc:lighten($c, 2%)) {
//
// headerbar gradient helper function
......
......@@ -2494,9 +2494,10 @@ switch {
-GtkSwitch-slider-width: 45px;
-GtkSwitch-slider-height: 27px; }
switch:active {
background-image: linear-gradient(to bottom, #215d9c 2px, #266cb5);
color: white;
border-color: #0f2b48;
background-color: #215d9c;
background-image: none;
box-shadow: 0 1px rgba(238, 238, 236, 0);
text-shadow: 0 1px rgba(15, 43, 72, 0.5), 0 0 2px rgba(255, 255, 255, 0.6); }
switch:insensitive {
......
......@@ -2500,9 +2500,10 @@ switch {
-GtkSwitch-slider-width: 45px;
-GtkSwitch-slider-height: 27px; }
switch:active {
background-image: linear-gradient(to bottom, #4a90d9 2px, #63a0de);
color: white;
border-color: #184472;
background-color: #4a90d9;
background-image: none;
box-shadow: 0 1px rgba(255, 255, 255, 0);
text-shadow: 0 1px rgba(24, 68, 114, 0.5), 0 0 2px rgba(255, 255, 255, 0.6); }
switch:insensitive {
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment