fix(gtk3.20: toggle): GtkSwitch - use variables instead of hardcoded colors (#314)

pull/327/head
Yauhen Kirylau 2016-04-12 09:03:21 +02:00 committed by Dustin Falgout
parent 5049978d2c
commit 82c6761359
1 changed files with 9 additions and 9 deletions

View File

@ -81,11 +81,11 @@ $suffix: if($variant == "dark", "-dark", "");
transition: background-colot 0.4s linear; transition: background-colot 0.4s linear;
min-width: 93px; min-width: 93px;
min-height: 25px; min-height: 25px;
background-color: #e8eaec; background-color: $base_color;
color: #8e969e; color: $text_color;
slider { slider {
background-color: #fbfbfb; background-color: mix($text_color, $bg_color, .5);
transition: all 0.3s linear; transition: all 0.3s linear;
box-shadow: 0px 1px 3px 0px rgba(0, 0, 0, 0.1); box-shadow: 0px 1px 3px 0px rgba(0, 0, 0, 0.1);
border-radius: 2px; border-radius: 2px;
@ -95,21 +95,21 @@ $suffix: if($variant == "dark", "-dark", "");
background-color: $selected_bg_color; background-color: $selected_bg_color;
background-image: none; background-image: none;
border-color: $selected_bg_color; border-color: $selected_bg_color;
color: $base_color; color: $selected_fg_color;
slider { slider {
background-color: $white; background-color: $selected_fg_color;
} }
} }
&:disabled { &:disabled {
background-color: #d8d8d8; background-color: mix($bg_color, $base_color, .5);
background-image: none; background-image: none;
border-color: #ccc; /*border-color: #ccc;*/
color: mix(#444, #f0f0f0, 0.5); color: mix($text_color, $bg_color, .5);
slider { slider {
background-color: #e8eaec; background-color: $bg_color;
} }
} }
} }