Compare commits

...

3 Commits

Author SHA1 Message Date
lm 460729104a Match navigation button backgrounds to theme 2025-10-17 14:35:53 +02:00
lm ea9be39c48 Standardise venv activation command 2025-10-17 14:33:37 +02:00
lm d8efdfcf71 Tidy README intro layout 2025-10-17 14:31:39 +02:00
2 changed files with 12 additions and 11 deletions

View File

@ -1,9 +1,9 @@
<table>
<tr>
<td width="140"><img src="app/assets/logo.png" alt="ICRA Logo" width="120"/></td>
<td>**ICRA** (Interactive Color Range Analyzer) is a Tkinter-based desktop tool for highlighting customised colour ranges in images. Load a single photo or an entire folder, fine-tune hue/saturation/value sliders, and export overlays complete with quick statistics.</td>
</tr>
</table>
<p>
<img src="app/assets/logo.png" alt="ICRA Logo" width="120" style="float:left; margin-right:16px;"/>
<strong>ICRA</strong> (Interactive Color Range Analyzer) is a Tkinter-based desktop tool for highlighting customised colour ranges in images. Load a single photo or an entire folder, fine-tune hue/saturation/value sliders, and export overlays complete with quick statistics.
</p>
<div style="clear: both;"></div>
## Features
- Two synced previews (original + overlay)
@ -19,11 +19,11 @@
- Tkinter (install separately on some Linux distros)
## Setup with uv (Windows PowerShell)
```powershell
```bash
git clone https://git.lukasmahler.de/lm/ICRA.git
cd ICRA
uv venv
.\.venv\Scripts\Activate
source .venv/Scripts/activate
uv pip install .
uv run icra
```

View File

@ -448,9 +448,10 @@ class UIBuilderMixin:
def _navigation_palette(self) -> dict[str, str]:
is_dark = getattr(self, "theme", "light") == "dark"
if is_dark:
return {"bg": "#26262a", "fg": "#f5f5f5"}
return {"bg": "#e8e8ee", "fg": "#1f1f1f"}
default_bg = "#0f0f10" if is_dark else "#ededf2"
bg = self.root.cget("bg") if hasattr(self.root, "cget") else default_bg
fg = "#f5f5f5" if is_dark else "#1f1f1f"
return {"bg": bg, "fg": fg}
def _refresh_toolbar_buttons_theme(self) -> None:
if not getattr(self, "_toolbar_buttons", None):