forked from AuroraMiddleware/gtk
win32 theme: Add a naive switch implementation
I couldn't come up with anything better than a button on a button. But the Windows theme sucks...
This commit is contained in:
parent
8e3bc96d78
commit
89121e058a
@ -1202,24 +1202,31 @@ column-header button:active:hover:focus {
|
||||
/* Switch */
|
||||
|
||||
switch {
|
||||
font: bold condensed 10;
|
||||
color: @text_color;
|
||||
background-image: -gtk-win32-theme-part(button, 1, 1);
|
||||
}
|
||||
|
||||
switch:checked {
|
||||
background-image: -gtk-win32-theme-part(button, 1, 3);
|
||||
}
|
||||
|
||||
switch:disabled {
|
||||
background-image: -gtk-win32-theme-part(button, 1, 4);
|
||||
}
|
||||
|
||||
switch:active {
|
||||
switch slider {
|
||||
background-image: -gtk-win32-theme-part(button, 1, 1);
|
||||
}
|
||||
|
||||
switch:hover slider {
|
||||
background-image: -gtk-win32-theme-part(button, 1, 2);
|
||||
}
|
||||
|
||||
switch slider {
|
||||
padding: 4px;
|
||||
background-color: transparent;
|
||||
background-image: -gtk-win32-theme-part(scrollbar, 2, 1, over (8, 1));
|
||||
border-width: 0;
|
||||
switch:active slider {
|
||||
background-image: -gtk-win32-theme-part(button, 1, 3);
|
||||
}
|
||||
|
||||
switch:disabled slider {
|
||||
background-image: -gtk-win32-theme-part(button, 1, 4);
|
||||
}
|
||||
|
||||
/* Menus */
|
||||
|
Loading…
Reference in New Issue
Block a user