/*************************
 * progressbar and scale *
 *************************/
GtkScale,
GtkProgressBar {
    padding: 0;
    border-width: 0px;
    border-radius: 0;
    border-style: solid;
}

.progressbar,
.progressbar row,
.progressbar row:hover,
.progressbar row:selected,
.progressbar row:selected:focus {
    border-width: 0px;
    border-style: solid;
    border-color: shade(@theme_base_color, 0.9);
    background-color: shade(@theme_selected_fg_color, 1.15);
    background-image: none;
}

.progressbar.vertical {
    background-color: @theme_selected_fg_color;
    background-image: none;
}

.trough,
.trough row,
.trough row:hover,
.trough row:selected,
.trough row:selected:focus {
    border-width: 3px;
    border-style: solid;
    border-color: shade(@theme_base_color, 0.9);
    background-color: shade(@theme_base_color, 0.9);
    background-image: none;
}

.trough.vertical {
    background-color: shade(@theme_bg_color, 1.08);
    background-image: none;
}

/* level bars as used for password quality or remaining power */
GtkLevelBar {
    -GtkLevelBar-min-block-width: 34;
    -GtkLevelBar-min-block-height: 2;
}

GtkLevelBar.vertical {
    -GtkLevelBar-min-block-width: 2;
    -GtkLevelBar-min-block-height: 34;
}

.level-bar.trough {
    padding: 1px;
    border-radius: 0px;
}

.level-bar.fill-block {
    border-width: 0px;
    border-style: solid;
    border-color: shade(@theme_selected_fg_color, 0.9);
    background-color: @theme_selected_fg_color;
}

.level-bar.indicator-continuous.fill-block {
    padding: 1px;
    border-radius: 0px;
}

.level-bar.indicator-discrete.fill-block.horizontal {
    margin: 0 1px;
}

.level-bar.indicator-discrete.fill-block.vertical {
    margin: 1px 0;
}

/* discrete indicator border rounding,
   uncomment when :nth-child will be working
   on the widget

.level-bar.indicator-discrete.fill-block.horizontal:first-child {
    border-radius: 0px 0 0 0px;
}

.level-bar.indicator-discrete.fill-block.horizontal:last-child {
    border-radius: 0 0px 0px 0;
}

.level-bar.indicator-discrete.fill-block.vertical:first-child {
    border-radius: 0px 0px 0 0;
}

.level-bar.indicator-discrete.fill-block.vertical:last-child {
    border-radius: 0 0 0px 0px;
}
*/

.level-bar.fill-block.level-high {
    border-color: shade(@success_color, 0.85);
    background-image: linear-gradient(to bottom,
                                      shade(@success_color, 1.2),
                                      @success_color 75%,
                                      shade(@success_color, 0.95)
                                      );
}

.level-bar.fill-block.level-low {
    border-color: shade(@warning_bg_color, 0.80);
    background-image: linear-gradient(to bottom,
                                      shade(@warning_bg_color, 1.3),
                                      @warning_bg_color 75%,
                                      shade(@warning_bg_color, 0.9)
                                      );
}

.level-bar.fill-block.empty-fill-block {
    border-color: alpha(@theme_fg_color, 0.1);
    background-color: transparent;
    background-image: none;
}

GtkScale {
    -GtkRange-slider-width: 12;
    -GtkRange-trough-border: 1;
    -GtkScale-slider-length: 12;
}

GtkScale.vertical {
    -GtkScale-slider-length: 12;
}

GtkScale.slider {    

    border-radius: 15px; /*Slider handle*/
    background-color: shade(@theme_selected_fg_color, 1.0);
    background-image: none;
}

GtkScale.slider:hover {
    background-color: shade(@theme_selected_fg_color, 1.09);
}

GtkScale.slider:insensitive {
    background-color: shade(@theme_bg_color, 0.9);
    background-image: none;
}

GtkScale.slider.vertical {
    background-color: shade(@theme_selected_fg_color, 1.0);
    background-image: none;
}

GtkScale.slider.vertical:insensitive {
    background-color: shade(@theme_bg_color, 0.9);
    background-image: none;
}

GtkScale.mark {
    border-color: shade(@theme_bg_color, 0.8);
}

GtkScale.trough {
    margin: 6px 0;
    border-color: shade(@theme_bg_color, 0.8);
    border-radius: 0;
    background-color: shade(@theme_bg_color, 1.08);
    background-image: none;
}

GtkScale.trough.vertical {
    margin: 0 6px;
    border-color: shade(@theme_bg_color, 0.8);
    border-radius: 0;
    background-color: shade(@theme_bg_color, 1.08);
    background-image: none;
}

.menubar .menuitem .scale.highlight.left,
.scale.highlight.left {
    border-color: @theme_selected_fg_color;
    background-color: @theme_selected_fg_color;
    background-image: none;
}   

.menubar .menuitem .scale.highlight.left:hover {
    border-color: shade(@theme_selected_fg_color, 0.8);
    background-color: shade(@theme_selected_fg_color, 0.8);
}

.scale.highlight.bottom {
    border-color: @theme_selected_fg_color;
    background-color: @theme_selected_fg_color;
    background-image: none;
}

GtkScale.trough:insensitive,
.scale.highlight.left:insensitive {
    border-color: shade(@theme_bg_color, 0.9);
    background-color: shade(@theme_bg_color, 0.9);
    background-image: none;
}

GtkScale.trough.vertical:insensitive,
.scale.highlight.bottom:insensitive {
    border-color: shade(@theme_bg_color, 0.9);
    background-color: shade(@theme_bg_color, 0.9);
    background-image: none;
}
