From 286faba20331ed013a2867336ceb47314848dddb Mon Sep 17 00:00:00 2001
From: Rokosun <rokosun@trom.tf>
Date: Sat, 19 Oct 2024 20:44:29 +0530
Subject: [PATCH] Fix large window bug on small resolution screens

---
 themeSwitcher.nim | 6 ++++--
 1 file changed, 4 insertions(+), 2 deletions(-)

diff --git a/themeSwitcher.nim b/themeSwitcher.nim
index 704ab36..466bd3e 100644
--- a/themeSwitcher.nim
+++ b/themeSwitcher.nim
@@ -14,7 +14,9 @@ const
   # GTK CSS for overriding the default icon size of buttons
   gtkCSS = """
 .style-button {
-  padding: 0.3em 0.3em;
+  min-width: 5.5em;
+  min-height: 5em;
+  padding: 0.3em;
   border-radius: 14%;
 }
 
@@ -81,7 +83,7 @@ method view(app: AppState): Widget =
     Window:
       title = "TROMjaro Theme Switcher"
       # Shrink window to the smallest size
-      defaultSize = (900, 700)
+      defaultSize = (1, 1)
       iconName = appLogo
       # Vertical box
       Box(orient = OrientY, margin = 13, spacing = 10):