From 8828398707ec9ddf65cb8e4a135769ff11cf5821 Mon Sep 17 00:00:00 2001 From: Rokosun Date: Fri, 18 Oct 2024 23:21:41 +0530 Subject: [PATCH] Use relative units in GTK CSS --- themeSwitcher.nim | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/themeSwitcher.nim b/themeSwitcher.nim index d19475d..e380fc2 100644 --- a/themeSwitcher.nim +++ b/themeSwitcher.nim @@ -14,21 +14,21 @@ const # GTK CSS for overriding the default icon size of buttons gtkCSS = """ .style-button { - -gtk-icon-size: 100px; - padding: 3px 7px; - border-radius: 15px; + -gtk-icon-size: 5.5em; + padding: 0.1em 0.4em; + border-radius: 0.75em; } .accent-button { - -gtk-icon-size: 30px; - padding: 8px; - border-radius: 30px; + -gtk-icon-size: 1.65em; + padding: 0.4em; + border-radius: 1.5em; } #.accent-button.suggested-action { # outline-color: black; -# outline-width: 1px; -# outline-offset: -9px; +# outline-width: 0.05em; +# outline-offset: -0.45em; }""" appID = "com.tromjaro.ThemeSwitcher" appLogo = "tromjaro-theme-switcher"