forked from AuroraMiddleware/gtk
win32 theme: Make titlebuttons look like they're the right size
This is a hack because we can't really rtesize the buttons. Instead, we draw the background only over the area that they would be drawn if they were drawn by Windows. The button is still selectable outside of this area, but what can you do...
This commit is contained in:
parent
ad204c88ca
commit
34e204952e
@ -394,6 +394,9 @@ decoration:disabled {
|
|||||||
margin-right: -gtk-win32-size(button, cxedge);
|
margin-right: -gtk-win32-size(button, cxedge);
|
||||||
min-width: calc(-gtk-win32-size(button, cxsize) - 2 * -gtk-win32-size(button, cxedge));
|
min-width: calc(-gtk-win32-size(button, cxsize) - 2 * -gtk-win32-size(button, cxedge));
|
||||||
min-height: calc(-gtk-win32-size(button, cysize) - 2 * -gtk-win32-size(button, cyedge));
|
min-height: calc(-gtk-win32-size(button, cysize) - 2 * -gtk-win32-size(button, cyedge));
|
||||||
|
background-repeat: no-repeat;
|
||||||
|
background-size: 100% calc(-gtk-win32-size(button, cysize) - 2 * -gtk-win32-size(button, cyedge));
|
||||||
|
background-position: 50% calc(100% - -gtk-win32-size(window, cycaption) + -gtk-win32-size(window, cysize) - -gtk-win32-size(window, cyedge));
|
||||||
}
|
}
|
||||||
|
|
||||||
/* XXX: headerbar insists on 6px spacing between buttons. Windows doesn't
|
/* XXX: headerbar insists on 6px spacing between buttons. Windows doesn't
|
||||||
|
Loading…
Reference in New Issue
Block a user