From 2782a14fc43767253a70d2e38eac3cacb4c663ab Mon Sep 17 00:00:00 2001 From: Benjamin Otte Date: Mon, 15 Feb 2016 06:51:45 +0100 Subject: [PATCH] win32 theme: Add checkbutton spacing The number is taken right from Wine source code. --- gtk/theme/win32/gtk-win32-base.css | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/gtk/theme/win32/gtk-win32-base.css b/gtk/theme/win32/gtk-win32-base.css index ae68ea1857..df2dc9fcdd 100644 --- a/gtk/theme/win32/gtk-win32-base.css +++ b/gtk/theme/win32/gtk-win32-base.css @@ -326,6 +326,19 @@ button:disabled { padding-left: calc(1px + -gtk-win32-part-border-left(button, 1, 4)); } +/* checkbuttons */ + +/* This is the magic spacing that's hardcoded in Wine */ +checkbutton:dir(ltr) check, +radiobutton:dir(ltr) radio { + margin-right: 6px; +} + +checkbutton:dir(rtl) check, +radiobutton:dir(rtl) radio { + margin-left: 6px; +} + /* Scrollbars */ /* TODO: Win32 has different concept for upper and lower trough, we