win32: Clean up spinbutton themeing

This commit is contained in:
Alexander Larsson 2012-03-14 09:46:28 +01:00
parent 64f707c86a
commit 8f427babbb
2 changed files with 38 additions and 28 deletions

View File

@ -347,54 +347,54 @@ GtkAssistant .sidebar .highlight {
/* Spinbuttons */ /* Spinbuttons */
.spinbutton.button, .spinbutton .button,
.spinbutton.button:focused { .spinbutton .button:focused {
background-color: transparent; background-color: transparent;
border-width: 1px 1px 0 0; background-image: -gtk-win32-theme-part(spin, 1 1, margins(-1 -1 0 -1));
border-style: none;
background-image: -gtk-win32-theme-part(spin, 1 1);
color: rgba(0, 0, 0, 0); color: rgba(0, 0, 0, 0);
} }
.spinbutton.button:prelight, .spinbutton .button:last-child {
.spinbutton.button:prelight:focused { background-image: -gtk-win32-theme-part(spin, 1 1, margins(-1 -1 0 -2));
background-image: -gtk-win32-theme-part(spin, 1 2);
color: rgba(0, 0, 0, 0);
} }
.spinbutton.button:active, .spinbutton .button:prelight,
.spinbutton.button:active:prelight { .spinbutton .button:prelight:focused {
background-image: -gtk-win32-theme-part(spin, 1 3); background-image: -gtk-win32-theme-part(spin, 1 2, margins(-1 -1 0 -1));
color: rgba(0, 0, 0, 0);
} }
.spinbutton.button:insensitive { .spinbutton .button:active,
background-image: -gtk-win32-theme-part(spin, 1 4); .spinbutton .button:active:prelight,
color: rgba(0, 0, 0, 0); .spinbutton .button:active:focused,
.spinbutton .button:active:prelight:focused {
background-image: -gtk-win32-theme-part(spin, 1 3, margins(-1 -1 0 -1));
} }
.spinbutton.button.bottom, .spinbutton .button:insensitive {
.spinbutton.button.bottom:focused { background-image: -gtk-win32-theme-part(spin, 1 4, margins(-1 -1 0 -1));
border-width: 0 1px 1px 0; }
.spinbutton .button:insensitive:last-child {
background-image: -gtk-win32-theme-part(spin, 1 4, margins(-1 -1 0 -2));
}
.spinbutton .button.bottom,
.spinbutton .button.bottom:focused {
background-image: -gtk-win32-theme-part(spin, 2 1); background-image: -gtk-win32-theme-part(spin, 2 1);
color: rgba(0, 0, 0, 0);
} }
.spinbutton.button.bottom:prelight, .spinbutton .button.bottom:prelight,
.spinbutton.button.bottom:prelight:focused { .spinbutton .button.bottom:prelight:focused {
background-image: -gtk-win32-theme-part(spin, 2 2); background-image: -gtk-win32-theme-part(spin, 2 2);
color: rgba(0, 0, 0, 0);
} }
.spinbutton.button.bottom:active, .spinbutton .button.bottom:active,
.spinbutton.button.bottom:active:prelight { .spinbutton .button.bottom:active:prelight {
background-image: -gtk-win32-theme-part(spin, 2 3); background-image: -gtk-win32-theme-part(spin, 2 3);
color: rgba(0, 0, 0, 0);
} }
.spinbutton.button.bottom:insensitive { .spinbutton .button.bottom:insensitive {
background-image: -gtk-win32-theme-part(spin, 2 4); background-image: -gtk-win32-theme-part(spin, 2 4);
color: rgba(0, 0, 0, 0);
} }
/* Ranges */ /* Ranges */

View File

@ -36,3 +36,13 @@ GtkNotebook.notebook {
background-image: none; background-image: none;
border-width: 0; border-width: 0;
} }
.spinbutton .button {
border-width: 1px;
border-style: solid;
border-color: #7b9ebd;
}
.spinbutton .button:last-child {
border-width: 1px 1px 1px 0px;
}