@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 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;

/* Buttons */

.button * {
    color: -gtk-win32-color(button, 18);
}

.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-focuse: true;
    border-width: 0px;
    background-image: -gtk-win32-theme-part(button, 1 1);
}

.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);
    text-shadow: 1px 1px 0 #fff;

}

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

.button:prelight, .button:prelight:focused {
  /* Classic theme has no prelight state */
}

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

.button:active:focused, .button:active:focused:prelight {
    background-image: -gtk-win32-theme-part(button, 1 6); /* 6 is not defined by W32API */
}

/* 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));
/*    padding: 2px;*/
}
.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 {
    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));
}

/* Check buttons */

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

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

/* 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 */

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

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

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

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

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

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

.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;
}

.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);
}

