From b77b29415cc383074457b3e0bcb98b5716896ceb Mon Sep 17 00:00:00 2001 From: Jimmy Date: Sat, 12 Jul 2025 14:21:33 +1200 Subject: [PATCH] Make colors bigger and add more Y padding --- main.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/main.py b/main.py index 51add55..1ffb123 100644 --- a/main.py +++ b/main.py @@ -301,7 +301,7 @@ class App: swatch_frame = tk.Frame( tab.color_swatches_container, bg=hex_color, width=100, height=50, bd=2, relief=tk.SOLID ) - swatch_frame.pack(pady=2, padx=5, fill=tk.X) + swatch_frame.pack(pady=3, padx=5, fill=tk.X) # Bind click to select this color for editing swatch_frame.bind("", lambda event, idx=i, t=tab: self.select_color_in_palette(t, idx)) @@ -312,8 +312,8 @@ class App: bg=hex_color, fg=color_utils.get_contrast_text_color(hex_color), font=("Arial", 14), - width=10, - height=2, + width=5, + height=3, ) swatch_label.pack(expand=True, fill=tk.BOTH) swatch_label.bind("", lambda event, idx=i, t=tab: self.select_color_in_palette(t, idx)) @@ -357,7 +357,7 @@ class App: def add_color_to_palette(self, tab): """Adds a new black color to the palette and selects it, with a limit of 10 colors.""" - MAX_COLORS = 10 # Define the maximum number of colors allowed + MAX_COLORS = 8 # Define the maximum number of colors allowed if len(tab.colors_in_palette) >= MAX_COLORS: messagebox.showwarning("Color Limit Reached", f"You can add a maximum of {MAX_COLORS} colors to the palette.")