Compare commits

..

No commits in common. "bed81e6d502698fd89769b27686df05c81846480" and "662f6b4df30fb636f5d1bc138c9cded031c125fc" have entirely different histories.

3 changed files with 1 additions and 23 deletions

View File

@ -1,7 +1,5 @@
# ICRS (Interactive Color Range Analyzer)
<img src="app/assets/logo.png" alt="ICRS Logo" width="120"/>
ICRS is a small Tkinter tool for analysing colour ranges in images. You load a picture, pick or click a reference colour, adjust hue/saturation/value sliders, and the app marks matching pixels while showing quick stats.
## Features

Binary file not shown.

Before

Width:  |  Height:  |  Size: 222 KiB

View File

@ -328,7 +328,6 @@ class UIBuilderMixin:
def _create_navigation_button(self, container, symbol: str, command, *, column: int) -> None:
bg = self.root.cget("bg") if hasattr(self.root, "cget") else "#f2f2f7"
container.grid_rowconfigure(0, weight=1)
fg = "#f5f5f5" if getattr(self, "theme", "light") == "dark" else "#1f1f1f"
btn = tk.Button(
container,
text=symbol,
@ -339,8 +338,6 @@ class UIBuilderMixin:
background=bg,
activebackground=bg,
highlightthickness=0,
fg=fg,
activeforeground=fg,
cursor="hand2",
width=2,
)
@ -352,23 +349,6 @@ class UIBuilderMixin:
title_bar.pack(fill=tk.X, side=tk.TOP)
title_bar.pack_propagate(False)
logo = None
try:
from PIL import Image, ImageTk # type: ignore
logo_path = Path(__file__).resolve().parent / "assets" / "logo.png"
if logo_path.exists():
image = Image.open(logo_path).convert("RGBA")
image.thumbnail((26, 26))
logo = ImageTk.PhotoImage(image)
except Exception:
logo = None
if logo is not None:
logo_label = tk.Label(title_bar, image=logo, bg=bar_bg)
logo_label.image = logo # keep reference
logo_label.pack(side=tk.LEFT, padx=(10, 6), pady=4)
title_label = tk.Label(
title_bar,
text="ICRS — Interactive Color Range Analyzer",
@ -377,7 +357,7 @@ class UIBuilderMixin:
font=("Segoe UI", 11, "bold"),
anchor="w",
)
title_label.pack(side=tk.LEFT, padx=6)
title_label.pack(side=tk.LEFT, padx=12)
close_btn = tk.Button(
title_bar,