[gtk+] win32 theme: Add checkbutton spacing



commit 2782a14fc43767253a70d2e38eac3cacb4c663ab
Author: Benjamin Otte <otte gnome org>
Date:   Mon Feb 15 06:51:45 2016 +0100

    win32 theme: Add checkbutton spacing
    
    The number is taken right from Wine source code.

 gtk/theme/win32/gtk-win32-base.css |   13 +++++++++++++
 1 files changed, 13 insertions(+), 0 deletions(-)
---
diff --git a/gtk/theme/win32/gtk-win32-base.css b/gtk/theme/win32/gtk-win32-base.css
index ae68ea1..df2dc9f 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


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]