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:
@ -1202,24 +1202,31 @@ column-header button:active:hover:focus {
|
|||||||
/* Switch */
|
/* Switch */
|
||||||
|
|
||||||
switch {
|
switch {
|
||||||
font: bold condensed 10;
|
|
||||||
color: @text_color;
|
|
||||||
background-image: -gtk-win32-theme-part(button, 1, 1);
|
background-image: -gtk-win32-theme-part(button, 1, 1);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
switch:checked {
|
||||||
|
background-image: -gtk-win32-theme-part(button, 1, 3);
|
||||||
|
}
|
||||||
|
|
||||||
switch:disabled {
|
switch:disabled {
|
||||||
background-image: -gtk-win32-theme-part(button, 1, 4);
|
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);
|
background-image: -gtk-win32-theme-part(button, 1, 2);
|
||||||
}
|
}
|
||||||
|
|
||||||
switch slider {
|
switch:active slider {
|
||||||
padding: 4px;
|
background-image: -gtk-win32-theme-part(button, 1, 3);
|
||||||
background-color: transparent;
|
}
|
||||||
background-image: -gtk-win32-theme-part(scrollbar, 2, 1, over (8, 1));
|
|
||||||
border-width: 0;
|
switch:disabled slider {
|
||||||
|
background-image: -gtk-win32-theme-part(button, 1, 4);
|
||||||
}
|
}
|
||||||
|
|
||||||
/* Menus */
|
/* Menus */
|
||||||
|
|||||||
Reference in New Issue
Block a user