@define-color bg_color -gtk-win32-color(button, 15);
@define-color text_color -gtk-win32-color(button, 18);
@define-color base_color #fff;
@define-color window_color #FFFFFF;
@define-color selected_bg_color -gtk-win32-color(button, 13);
@define-color selected_fg_color -gtk-win32-color(button, 14);
@define-color info_fg_color rgb (181, 171, 156);
@define-color info_bg_color rgb (252, 252, 189);
@define-color warning_fg_color rgb (173, 120, 41);
@define-color warning_bg_color rgb (250, 173, 61);
@define-color question_fg_color rgb (97, 122, 214);
@define-color question_bg_color rgb (138, 173, 212);
@define-color error_fg_color rgb (166, 38, 38);
@define-color error_bg_color rgb (237, 54, 54);
@define-color tooltip_bg_color #eee1b3;
@define-color tooltip_fg_color #000;
@define-color placeholder_text_color #808080;

GtkWindow,
GtkViewport {
    background-color: @bg_color;
}

* {
    color: -gtk-win32-color(button, 18);
    -GtkWidget-link-color: -gtk-win32-color(button, 26);
    -GtkWidget-visited-link-color: -gtk-win32-color(button, 26);
    border-color: shade (@bg_color, 0.6);

    -GtkScrolledWindow-scrollbars-within-bevel: 1;
    -GtkScrolledWindow-scrollbars-spacing: 0;
}

* {
  -GtkWidget-scroll-arrow-vlength: 7;
  -GtkWidget-scroll-arrow-hlength: 7;
}


GtkArrow {
  -GtkArrow-arrow-scaling: 0.0;
  background-color: transparent;
  background-image: none;
  color: transparent;
}


GtkFrame {
    border-width: 2px;
    border-style: solid;
    background-color: @bg_color;
    border-image: -gtk-win32-theme-part(button, 4 1) 2 2 2 2 stretch;
}

*:insensitive {
    color: -gtk-win32-color(button, 17);
    background-color: -gtk-win32-color(button, 15);
}

*:selected,
*:selected:focus {
    background-color: @selected_bg_color;
    color: @selected_fg_color;
}


.info {
    background-color: @info_bg_color;
    color: @info_fg_color;
}

.warning {
    background-color: @warning_bg_color;
    color: @warning_fg_color;
}

.question {
    background-color: @question_bg_color;
    color: @question_fg_color;
}

.error {
    background-color: @error_bg_color;
    color: @error_fg_color;
}

.highlight {
    background-color: @selected_bg_color;
    color: @selected_fg_color;
}

.light-area-focus {
    color: #000;
}

.dark-area-focus {
    color: #fff;
}

.notebook > GtkScrolledWindow.frame {
    border-style: none;
}


.view {
  border-width: 0;
  border-radius: 0;
  background-color: @window_color;
  color: @text_color;
}

.view:selected {
  background-color: shade (@bg_color, 0.9);
  color: @fg_color;
}

.view:selected:focused {
  background-color: @selected_bg_color;
  color: @selected_fg_color;
}

.tooltip {
    padding: 0px;
    background-color: -gtk-win32-color(button, 24);
    color: -gtk-win32-color(button, 23);
    border-width: 1px;
    border-style: solid;
    border-color: @tooltip_fg_color;
}

.tooltip * {
    padding: 0px;
    background-color:transparent;
    border-width: 0px;
    color: -gtk-win32-color(button, 23);
}

GtkAssistant .sidebar .highlight {
    font: bold;
    color:  -gtk-win32-color(button, 9);
}

/* Buttons */

GtkBin {
    background-color: @bg_color;
}

.button {
    color: #000; /* black focus rectangle */
    padding: 0px;
    -GtkWidget-focus-line-width: 1;
    -GtkWidget-focus-padding: 4; /* 3 is too small (lower edge focus rectangle touches button border - that shouldn't happen) */
    -GtkButton-interior-focus: true;
    border-width: 0px;
    background-color: @bg_color;
    background-image: -gtk-win32-theme-part(button, 1 1);
}

.button:prelight {
    background-image: -gtk-win32-theme-part(button, 1 2);
}

*:insensitive {
    text-shadow: 1px 1px 0 #fff;
}

.button *:insensitive {
    /*background-image: -gtk-win32-theme-part(button, 1 4);*/ /* 4 is internally aliased to 1 */
    color: -gtk-win32-color(button, 17);
    background-color: -gtk-win32-color(button, 15);
}

.button:focused {
    background-image: -gtk-win32-theme-part(button, 1 5);
}

.button:prelight:focused {
    background-image: -gtk-win32-theme-part(button, 1 9);
}



.button:active {
    -GtkButton-child-displacement-x: 1px;
    -GtkButton-child-displacement-y: 1px;
    background-image: -gtk-win32-theme-part(button, 1 3);
}


.button:active:focused {
    background-image: -gtk-win32-theme-part(button, 1 6);
}

.button:active:focused:prelight {
    -GtkButton-child-displacement-x: 1px;
    -GtkButton-child-displacement-y: 1px;
    background-image: -gtk-win32-theme-part(button, 1 8);
}

.button:active:prelight {
    -GtkButton-child-displacement-x: 1px;
    -GtkButton-child-displacement-y: 1px;
    background-image: -gtk-win32-theme-part(button, 1 7);
}


/* Entries */

.entry {
    border-width: 2px;
    border-style: solid;
    border-image: -gtk-win32-theme-part(edit, 6 1)  2 2 2 2 stretch;
    background-image: -gtk-win32-theme-part(edit, 6 1, margins(-2 -2 -2 -2));
}
.entry:insensitive {
    border-image: -gtk-win32-theme-part(edit, 6 4)  2 2 2 2 stretch;
    background-image: -gtk-win32-theme-part(edit, 6 4, margins(-2 -2 -2 -2));
    color: #808080;
}

.entry:prelight {
/* Entry does not have a prelight state
    border-image: -gtk-win32-theme-part(edit, 6 2)  2 2 2 2 stretch;
    background-image: -gtk-win32-theme-part(edit, 6 2, margins(-2 -2 -2 -2));
*/
}

.entry:focused {
    border-image: -gtk-win32-theme-part(edit, 6 3)  2 2 2 2 stretch;
    background-image: -gtk-win32-theme-part(edit, 6 3, margins(-2 -2 -2 -2));
}

.progressbar,
.entry.progressbar,
.cell.progressbar {
  background-color: @selected_bg_color;
  border-color: shade (@selected_bg_color, 0.7);
  color: @selected_fg_color;
  border-style: outset;
  border-width: 1px;
}


/* Check buttons */

GtkToggleButton:focus:active,
GtkToggleButton:selected:focus {
    background-color: transparent;
}

GtkButton:focus:inconsistent {
    background-color: transparent;
}

.check:selected {
    background-color: transparent;
}

.check {
    background-color: transparent;
    background-image: -gtk-win32-theme-part(button, 3 1);
    border-width: 0px;
    margin: 1px;
}

.check:insensitive {
    background-image: -gtk-win32-theme-part(button, 3 4);
}

.check:active {
    background-image: -gtk-win32-theme-part(button, 3 5);
}

.check:active:insensitive {
    background-image: -gtk-win32-theme-part(button, 3 8);
}

.check:inconsistent {
    background-image: -gtk-win32-theme-part(button, 3 9);
}

.check:inconsistent:insensitive {
    background-image: -gtk-win32-theme-part(button, 3 12);
}

/* The GtkButton here is to avoid problems with checkboxes
   in a listview where all checkboxes in a row gets prelighted
   whenever the row is prelighted */
/* FIXME: prelight doesn't really work the way it should */

GtkButton.check:prelight {
    background-image: -gtk-win32-theme-part(button, 3 2);
}

GtkButton.check:active:prelight {
    background-image: -gtk-win32-theme-part(button, 3 6);
}

GtkButton.check:inconsistent:prelight {
    background-image: -gtk-win32-theme-part(button, 3 10);
}

/* Radio buttons */

.radio {
    background-color: transparent;
    background-image: -gtk-win32-theme-part(button, 2 1);
    border-width: 0;
    margin: 1px;
}

.radio:insensitive {
    background-image: -gtk-win32-theme-part(button, 2 4);
}

.radio:prelight {
    background-image: -gtk-win32-theme-part(button, 2 2);
}

.radio:active {
    background-image: -gtk-win32-theme-part(button, 2 5);
}

.radio:active:insensitive {
    background-image: -gtk-win32-theme-part(button, 2 8);
}

.radio:active:prelight {
    background-image: -gtk-win32-theme-part(button, 2 6);
}

.radio:inconsistent {
    background-image: -gtk-win32-theme-part(button, 2 9);
}

.radio:inconsistent:insensitive {
    background-image: -gtk-win32-theme-part(button, 2 12);
}

.radio:inconsistent:prelight {
    background-image: -gtk-win32-theme-part(button, 2 10);
}

/* Scrollbars */

/* TODO: Win32 has different concept for upper and lower trough, we
   don't use this atm */


GtkScrolledWindow {
  border-style: solid;
  border-width: 2px;
  border-image: -gtk-win32-theme-part(edit, 6 1) 2 2 2 2 stretch;
  -GtkScrolledWindow-scrollbar-spacing: 0;
  -GtkScrolledWindow-scrollbars-within-bevel: true;
}

.scrollbar {
    background-color: transparent;
    -GtkRange-trough-border: 0;
    -GtkRange-arrow-scaling: 0.0;
    -GtkRange-stepper-size: -gtk-win32-size(scrollbar, 3);
    -GtkRange-slider-width: -gtk-win32-size(scrollbar, 3);
}

.scrollbar.vertical {
    -GtkRange-slider-width: -gtk-win32-size(scrollbar, 2);
}

.scrollbar.button.bottom {
    background-image: -gtk-win32-theme-part(scrollbar, 1 5);
}

.scrollbar.button.bottom:prelight {
    background-image: -gtk-win32-theme-part(scrollbar, 1 6);
}

.scrollbar.button.bottom:active,
.scrollbar.button.bottom:active:prelight {
    background-image: -gtk-win32-theme-part(scrollbar, 1 7);
}

.scrollbar.button.bottom:insensitive {
    background-image: -gtk-win32-theme-part(scrollbar, 1 8);
}


.scrollbar.button.top {
    background-image: -gtk-win32-theme-part(scrollbar, 1 1);
}

.scrollbar.button.top:prelight {
    background-image: -gtk-win32-theme-part(scrollbar, 1 2);
}

.scrollbar.button.top:active,
.scrollbar.button.top:active:prelight {
    background-image: -gtk-win32-theme-part(scrollbar, 1 3);
}

.scrollbar.button.top:insensitive {
    background-image: -gtk-win32-theme-part(scrollbar, 1 4);
}

.scrollbar.button.left {
    background-image: -gtk-win32-theme-part(scrollbar, 1 9);
}

.scrollbar.button.left:prelight {
    background-image: -gtk-win32-theme-part(scrollbar, 1 10);
}

.scrollbar.button.left:active,
.scrollbar.button.left:active:prelight {
    background-image: -gtk-win32-theme-part(scrollbar, 1 11);
}

.scrollbar.button.left:insensitive {
    background-image: -gtk-win32-theme-part(scrollbar, 1 12);
}

.scrollbar.button.right {
    background-image: -gtk-win32-theme-part(scrollbar, 1 13);
}

.scrollbar.button.right:prelight {
    background-image: -gtk-win32-theme-part(scrollbar, 1 14);
}

.scrollbar.button.right:active,
.scrollbar.button.right:active:prelight {
    background-image: -gtk-win32-theme-part(scrollbar, 1 15);
}

.scrollbar.button.right:insensitive {
    background-image: -gtk-win32-theme-part(scrollbar, 1 16);
}

.scrollbar.trough {
    border-width: 0;
    background-image: -gtk-win32-theme-part(scrollbar, 4 1);
}

.scrollbar.trough.vertical {
    border-width: 0;
    background-image: -gtk-win32-theme-part(scrollbar, 6 1);
}

.scrollbar.slider {
    border-width: 0;
    background-image: -gtk-win32-theme-part(scrollbar, 2 1);
}

.scrollbar.slider:prelight {
    background-image: -gtk-win32-theme-part(scrollbar, 2 5);
}

.scrollbar.slider.vertical {
    background-image: -gtk-win32-theme-part(scrollbar, 3 1);
}

.scrollbar.slider.vertical:prelight {
    background-image: -gtk-win32-theme-part(scrollbar, 3 5);
}

.scrollbars-junction {
  border-width: 0px;
}

/* Spinbuttons */
/* Most of this doesn't really do anything because of a GTK bug */
.spinbutton .button,
.spinbutton .button:focused {
    background-color: transparent;
    background-image: -gtk-win32-theme-part(spin, 1 3);
    color: rgba(0, 0, 0, 0);                                              
}                                                                         
                                                                          
.spinbutton .button {                                          
    background-image: -gtk-win32-theme-part(spin, 1 1);
}                                                                         
                                                                          
.spinbutton .button:prelight,                                             
.spinbutton .button:prelight:focused {                                    
    background-image: -gtk-win32-theme-part(spin, 1 2);
}                                                                         
                                                                          
.spinbutton .button:active,                                               
.spinbutton .button:active:prelight,                                      
.spinbutton .button:active:focused,                                       
.spinbutton .button:active:prelight:focused {                             
    -GtkButton-child-displacement-x: 1px;
    -GtkButton-child-displacement-y: 1px;
    background-image: -gtk-win32-theme-part(button, 1 3);
}                                                                         
                                                                          
.spinbutton .button:insensitive {                                         
    background-image: -gtk-win32-theme-part(spin, 1 4);
}                                                                         

.spinbutton .button:last-child,
.spinbutton .button:last-child:focused {
    background-image: -gtk-win32-theme-part(spin, 2 1);
}

.spinbutton .button:last-child:prelight,
.spinbutton .button:last-child:prelight:focused {
    background-image: -gtk-win32-theme-part(spin, 2 2);
}

.spinbutton .button:last-child:active,
.spinbutton .button:last-child:active:prelight {
    background-image: -gtk-win32-theme-part(spin, 2 3);
}


.spinbutton .button:last-child:insensitive {
    background-image: -gtk-win32-theme-part(spin, 2 4);
}

/* Combobox */
/* TODO: finish with these. Combobox selectors are very non-trivial */
* {
  -GtkComboBox-appears-as-list: true;
}

GtkComboBox * {
    padding: 0px;
}

* {
   -GtkComboBox-arrow-size: 7px;
   -GtkComboBox-arrow-scaling: 0.5;
}

GtkComboBox .entry {
    padding: 2px;
    border-width: 2px;
    border-right-width: 0px;
    padding-right: 2px;
    border-image: -gtk-win32-theme-part(edit, 6 1)  2 2 2 2 stretch;
}

GtkComboBox .button {
    background-image: -gtk-win32-theme-part(scrollbar, 1 5);
}

GtkComboBox .button:prelight {
    background-image: -gtk-win32-theme-part(scrollbar, 1 6);
}

GtkComboBox .button:active,
GtkComboBox .button:active:prelight,
GtkComboBox .button:active:prelight:focused, 
GtkComboBox .button:active:focused {
    background-image: -gtk-win32-theme-part(scrollbar, 1 7);
}

GtkComboBox .button:insensitive {
    background-image: -gtk-win32-theme-part(scrollbar, 1 8);
}


GtkComboBox .button:focused {
    background-image: -gtk-win32-theme-part(scrollbar, 1 5);
}

GtkComboBox .button:prelight:focused {
    background-image: -gtk-win32-theme-part(scrollbar, 1 6);
}


GtkComboBox GtkFrame {
    border-width: 2px;
    border-right-width: 0px;
    padding-right: 2px;
    border-image: -gtk-win32-theme-part(edit, 6 1) 2 2 2 2 stretch;
}

GtkComboBox .button {
    border-width: 2px 2px 2px 0px;
    border-image: -gtk-win32-theme-part(edit, 6 1) 2 2 2 2 stretch;
}


.cell {
  background-color: @window_color;
}

.cell:selected {
  background-color: @selected_bg_color;
  color: @selected_fg_color;
}

/*GtkComboBox GtkArrow {
  -GtkArrow-arrow-scaling: 0.5;
}*/

/*
GtkComboBox.separator {
    -GtkWidget-wide-separators: true;
    -GtkWidget-horizontal-separator: 0;
    -GtkWidget-vertical-separator: 0;
}
*/


/* Notebook */

.notebook {
/*    background-color: #ffffff; */
/*    border-width: 1px 1px 1px 1px;
    border-style: solid;*/
    border-width: 2px;
    border-style: outset;
    background-origin: padding-box;
    background-clip: border-box;
    background-color: transparent;
    border-image: -gtk-win32-theme-part(tab, 9 1) 2 2 2 2 repeat;

/*    background-image: -gtk-win32-theme-part(tab, 9 1, margins (-2 -2 -2 -2));
    border-image: -gtk-win32-theme-part(tab, 9 1, margins(0 0 0 0)) 2 2 2 2 repeat;*/
    -GtkNotebook-tab-overlap: 2;
    -GtkNotebook-tab-curvature: 1;
    /*-GtkNotebook-initial-gap: 1;*/
/*    -GtkNotebook-tab-curvature: 0;
    -GtkNotebook-tab-overlap: 0;*/
    -GtkWidget-focus-line-width: 0;
}

/*

.notebook.top {
    border-width: 2px 2px 2px 2px;
}

.notebook.bottom {
    border-width: 2px 2px 2px 2px;
}

.notebook.left {
    border-width: 2px 2px 2px 2px;
}

.notebook.right {
    border-width: 2px 2px 2px 2px;
}
*/

.notebook tab {
    background-color: transparent;
    border-color: green;
    border-style: inset;
    border-width: 2px;
    padding : 2px;
}

.notebook tab.top{
    border-image: -gtk-win32-theme-part(tab, 1 1) 2 2 2 2 repeat;
/*    background-image: -gtk-win32-theme-part(tab, 1 1);*/
}

.notebook tab.bottom {
    background-image: -gtk-win32-theme-part(tab, 12 1);
}

.notebook tab.left{
    background-image: -gtk-win32-theme-part(tab, 16 1);
}

.notebook tab.right {
    background-image: -gtk-win32-theme-part(tab, 20 1);
}

/*
.notebook tab:active.top {
    background-image: -gtk-win32-theme-part(tab, 1 3);
    padding: 2px 4px 1px 4px;
}

.notebook tab:active.bottom {
    background-image: -gtk-win32-theme-part(tab, 9 3);
    padding: 1px 4px 2px 4px;
}

.notebook tab:active.left {
    background-image: -gtk-win32-theme-part(tab, 13 3);
    padding: 4px 1px 4px 4px;
}

.notebook tab:active.right {
    background-image: -gtk-win32-theme-part(tab, 17 3);
    padding: 4px 4px 4px 1px;
}
*/

/*
.notebook tab.top, .notebook tab.bottom {
    padding: 0px 4px 0px 4px;
}

.notebook tab.left, .notebook tab.right {
    padding: 4px 0px 4px 0px;
}
*/
/**/

GtkProgressBar.progressbar {
    border-width: 2px;
    border-style: solid;
    border-color: transparent;
}

/* Ranges */

/* TODO: The trough is not quite right, it covers everything,
   but in win32 the slider 'sticks out' on the sides of the
   trough */

.scale {
    border-style: none;
    border-width: 0px;
    background-color: transparent;
    -GtkScale-value-spacing: 0;
    -GtkScale-slider-length: 9;
    -GtkRange-slider-width: 20;
    -GtkRange-trough-border: 0;
}

.scale.trough {
    background-image: -gtk-win32-theme-part(trackbar, 1 1);
}

.scale.trough.vertical {
    background-image: -gtk-win32-theme-part(trackbar, 2 1);
}

.scale.slider {
    background-color: transparent;
    border-width: 2px;
    color: rgba(0,0,0,0);
    background-image: -gtk-win32-theme-part(trackbar, 3 1);
}

.scale.slider:prelight {
    background-image: -gtk-win32-theme-part(trackbar, 3 2);
}

.scale.slider:active,
.scale.slider:prelight:active {
    background-image: -gtk-win32-theme-part(trackbar, 3 3);
}

.scale.slider:focus {
    background-image: -gtk-win32-theme-part(trackbar, 3 4);
}

.scale.slider:insensitive {
    background-image: -gtk-win32-theme-part(trackbar, 3 5);
}

.scale.slider.vertical {
    background-image: -gtk-win32-theme-part(trackbar, 6 1);
}

.scale.slider.vertical:prelight {
    background-image: -gtk-win32-theme-part(trackbar, 6 2);
}

.scale.slider.vertical:active,
.scale.slider.vertical:prelight:active {
    background-image: -gtk-win32-theme-part(trackbar, 6 3);
}

.scale.slider.vertical:focus {
    background-image: -gtk-win32-theme-part(trackbar, 6 4);
}

.scale.slider.vertical:insensitive {
    background-image: -gtk-win32-theme-part(trackbar, 6 5);
}

.scale.slider.scale-has-marks-below {
    background-image: -gtk-win32-theme-part(trackbar, 4 1);
}

.scale.slider.scale-has-marks-below:prelight {
    background-image: -gtk-win32-theme-part(trackbar, 4 2);
}

.scale.slider.scale-has-marks-below:active,
.scale.slider.scale-has-marks-below:prelight:active {
    background-image: -gtk-win32-theme-part(trackbar, 4 3);
}

.scale.slider.scale-has-marks-below:focus {
    background-image: -gtk-win32-theme-part(trackbar, 4 4);
}

.scale.slider.scale-has-marks-below:insensitive {
    background-image: -gtk-win32-theme-part(trackbar, 4 5);
}

.scale.slider.scale-has-marks-below.vertical {
    background-image: -gtk-win32-theme-part(trackbar, 8 1);
}

.scale.slider.scale-has-marks-below.vertical:prelight {
    background-image: -gtk-win32-theme-part(trackbar, 8 2);
}

.scale.slider.scale-has-marks-below.vertical:active,
.scale.slider.scale-has-marks-below.vertical:prelight:active {
    background-image: -gtk-win32-theme-part(trackbar, 8 3);
}

.scale.slider.scale-has-marks-below.vertical:focus {
    background-image: -gtk-win32-theme-part(trackbar, 8 4);
}

.scale.slider.scale-has-marks-below.vertical:insensitive {
    background-image: -gtk-win32-theme-part(trackbar, 8 5);
}



.scale.slider.scale-has-marks-above {
    background-image: -gtk-win32-theme-part(trackbar, 5 1);
}

.scale.slider.scale-has-marks-above:prelight {
    background-image: -gtk-win32-theme-part(trackbar, 5 2);
}

.scale.slider.scale-has-marks-above:active,
.scale.slider.scale-has-marks-above:prelight:active {
    background-image: -gtk-win32-theme-part(trackbar, 5 3);
}

.scale.slider.scale-has-marks-above:focus {
    background-image: -gtk-win32-theme-part(trackbar, 5 4);
}

.scale.slider.scale-has-marks-above:insensitive {
    background-image: -gtk-win32-theme-part(trackbar, 5 5);
}

.scale.slider.scale-has-marks-above.vertical {
    background-image: -gtk-win32-theme-part(trackbar, 7 1);
}

.scale.slider.scale-has-marks-above.vertical:prelight {
    background-image: -gtk-win32-theme-part(trackbar, 7 2);
}

.scale.slider.scale-has-marks-above.vertical:active,
.scale.slider.scale-has-marks-above.vertical:prelight:active {
    background-image: -gtk-win32-theme-part(trackbar, 7 3);
}

.scale.slider.scale-has-marks-above.vertical:focus {
    background-image: -gtk-win32-theme-part(trackbar, 7 4);
}

.scale.slider.scale-has-marks-above.vertical:insensitive {
    background-image: -gtk-win32-theme-part(trackbar, 7 5);
}

/* Menus */

.menu {
    background-color: -gtk-win32-color(button, 4);
    border-width: 2px;
    border-image: -gtk-win32-theme-part(menu, 10 0) 2 2 2 2 stretch;
    padding: 2px;
}


.menuitem {
    -GtkMenuItem-arrow-scaling: 0.5;
    color: -gtk-win32-color(button, 7);
}

.menubar .menuitem *:backdrop {
    color: mix (-gtk-win32-color(button, 7), white, 0.5);
}

.menubar > .menuitem {
    padding: 3px 5px;
}

.menu *:prelight {
  background-color: @selected_bg_color;
  color: @selected_fg_color;
}

/* This is a GTK bug: prelight is used for pushed items,
 * and normal prelight does not occur.
 * Once it's fixed, prelight should draw 8 2 (hot),
 * and "active" should draw 8 3
 */

.menubar > .menuitem:prelight {
  background-image: -gtk-win32-theme-part(menu, 8 3);
}

/*
.menubar > .menuitem:active {
  background-image: -gtk-win32-theme-part(menu, 8 3);
}
*/


/* Switch */
GtkSwitch {
    font: bold condensed 10;
    border-width: 2px;
    border-image: -gtk-win32-theme-part(button, 1 1) 2 2 2 2 stretch;
    background-color: transparent;
    color: -gtk-win32-color(button, 18);
}

GtkSwitch:insensitive {
    text-shadow: 1px 1px 0 #fff;
}

GtkSwitch.slider {
    padding: 4px;
    background-color: transparent;
    border-width: 0px;
    background-image: -gtk-win32-theme-part(button, 1 1);
}

GtkSwitch.slider:active {
    background-image: -gtk-win32-theme-part(button, 1 2);
}

GtkSwitch.slider:insensitive {
    background-image: -gtk-win32-theme-part(button, 1 4);
}

GtkSwitch.trough:active {
    background-color: @selected_bg_color;
    color: @selected_fg_color;
}

/* Progress bar */

GtkProgressBar.trough {
  border-width: 2px;
  border-image: -gtk-win32-theme-part(edit, 6 1) 2 2 2 2 stretch;
  background-color: @window_color;
}

/* Spinner */
GtkSpinner {
  color: @selected_bg_color;
}

/* Level bar */

.level-bar.fill-block.level-low {
    background-color: @warning_bg_color;
}

.level-bar.fill-block.level-high {
    background-color: @success_bg_color;
}

.level-bar.fill-block.empty-fill-block {
    background-color: @base_color;
}

