/*************
 * GtkSwitch *
**************/
GtkSwitch {
    padding: 4px;
    font: bold condensed 10;
}

GtkSwitch.trough {
    border-radius: 4px 7px 4px 7px;
    border-style: solid;
    border-width: 1px;
    color: @text_color-b;
    background-image: -gtk-gradient (linear, left top, left bottom,
                                     from (@gradient_color_a-b),
                                     to (@gradient_color_b-b));
    border-color: alpha (@text_color-b, 0.00);
    box-shadow: inset 2px 2px shade (@inner_gradient_color_a-b, 1.15),
                inset -2px -2px shade (@inner_gradient_color_b-b, 1.00),
                inset 1px 1px shade (@border_gradient_color_a-b, 0.80),
                inset -1px -1px shade (@border_gradient_color_b-b, 0.70);
}

GtkSwitch.trough:active {
    border-style: solid;
    border-width: 1px;
    border-radius: 5px;
    color: shade (@text_color-b, 1.00);
    padding: 3px;
    background-image: -gtk-gradient (linear, left top, left bottom,
                                     from (shade (@gradient_color_b-b, 1.20)),
                                     color-stop (0.50, shade (@gradient_color_b-b, 1.55)),
                                     color-stop (0.90, @gradient_color_a-b),
                                     to (@gradient_color_a-b));
    border-color: alpha (@text_color-b, 0.00);
    box-shadow: inset 2px 2px shade (@border_gradient_color_a-b, 0.90),
                inset -2px -2px shade (@border_gradient_color_a-b, 1.05),
                inset 1px 1px shade (@border_gradient_color_a-b, 0.60),
                inset -1px -1px shade (@border_gradient_color_a-b, 0.75);
}

GtkSwitch.trough:insensitive {
    color: shade (@bg_color-b, 0.3);
    background-image: -gtk-gradient (linear, left top, left bottom,
                                     from (shade (@gradient_color_a-b, 0.55)),
                                     to (shade (@gradient_color_b-b, 0.55)));
    border-color: alpha (@text_color-b, 0.00);
    box-shadow: inset 2px 2px shade (@inner_gradient_color_a-b, 0.55),
                inset -2px -2px shade (@inner_gradient_color_b-b, 1.115),
                inset 1px 1px shade (@border_gradient_color_a-b, 1.00),
                inset -1px -1px shade (@border_gradient_color_b-b, 0.90);
}

GtkSwitch.slider {
    border-width: 1px;
    border-radius: 4px 5px 4px 7px;
    background-image: -gtk-gradient (linear, left bottom, left top,
                                     from (shade (@bg_color-b, 1.20)),
                                     color-stop (0.3, shade(@bg_color-b, 1.10)),
                                     color-stop (0.6, shade(@bg_color-b, 0.90)),
                                     to (shade (@bg_color-b, 1.60)));
    border-color: alpha (@text_color-b, 0.10);
    box-shadow: inset 1px 1px shade (@border_gradient_color_b-b, 0.80),
                inset -1px -1px shade (@border_gradient_color_b-b, 0.60);
}

GtkSwitch.slider:active {
    background-image: -gtk-gradient (linear, left bottom, left top,
                                     from (shade (@text_color-b, 1.1)),
                                     color-stop (0.3, shade(@text_color-b, 0.8)),
                                     color-stop (0.6, shade(@text_color-b, 0.6)),
                                     to (shade (@text_color-b, 1.1)));
}

GtkSwitch.slider:insensitive {
    background-image: -gtk-gradient (linear, left bottom, left top,
                                     from (shade (@bg_color-b, 1.00)),
                                     color-stop (0.3, shade(@bg_color-b, 0.90)),
                                     color-stop (0.6, shade(@bg_color-b, 0.60)),
                                     to (@bg_color-b));
    border-color: shade(@border_gradient_color_b-b, 1.20);
    box-shadow: inset 1px 1px alpha (@border_gradient_color_a-b, 0.82),
                inset -1px -1px alpha (@border_gradient_color_b-b, 0.62);
}
