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

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

GtkSwitch.trough:active {
    background-image: -gtk-gradient (linear, left top, left bottom,
                                     from (shade (@base_color, 0.60)),
                                     color-stop (0.50, shade (@base_color, 0.95)),
                                     color-stop (0.90, @base_color),
                                     to (@base_color));
    border-color: shade (@border_gradient_color_b, 0.85);
    box-shadow: inset 1px 1px shade (@inner_gradient_color_a, 1.00),
                inset -1px -1px shade (@inner_gradient_color_a, 1.00);
    text-shadow: 1px 1px alpha (shade (@text_shadow_color, 1.25), 0.40);
    border-style: solid;
    border-width: 1px;
    border-radius: 5px;
    color: shade (@glow_color, 0.60);
}

GtkSwitch.trough:insensitive {
    color: shade (@bg_color, 0.6);
    text-shadow: 1px 1px alpha (shade (@text_shadow_color, 2.25), 0.4);
    background-image: -gtk-gradient (linear, left top, left bottom,
                                     from (shade (@gradient_color_a, 0.95)),
                                     to (shade (@gradient_color_b, 1.10)));
    border-color: alpha (@text_color, 0.00);
    box-shadow: inset 2px 2px shade (@inner_gradient_color_a, 1.05),
                inset -2px -2px shade (@inner_gradient_color_b, 1.15),
                inset 1px 1px shade (@border_gradient_color_a, 1.05),
                inset -1px -1px shade (@border_gradient_color_b, 1.20);
}

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

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

GtkSwitch.slider:insensitive {
    background-image: -gtk-gradient (linear, left bottom, left top,
                                     from (shade (@bg_color, 1.3)),
                                     color-stop (0.3, shade(@bg_color, 1.20)),
                                     color-stop (0.6, shade(@bg_color, 0.90)),
                                     to (@bg_color));
    border-color: alpha (@text_color, 0.10);
    box-shadow: inset 1px 1px shade (@border_gradient_color_b, 1.30),
                inset -1px -1px shade (@border_gradient_color_b, 1.10);
}
