Restyle label designer with ttkbootstrap (flatly/darkly themes)

Modern flat widgets, coloured primary/danger/success buttons, themed
canvas/text backgrounds, and a light/dark toggle remembered in settings.
This commit is contained in:
Gracious
2026-09-21 08:22:14 +01:00
parent dfe26919ad
commit 76e6732285
4 changed files with 112 additions and 45 deletions
+1
View File
@@ -95,5 +95,6 @@ python label_app.py
- **Fit** resizes the item to fill the label; **Center H/V** aligns it
- The canvas shows the dithered 1-bit image exactly as the printer will produce it
- **Save…/Open…** store designs as JSON; the last design and printer settings are restored on launch
- ☾/☀ in the toolbar switches between light and dark themes ([ttkbootstrap](https://ttkbootstrap.readthedocs.io))
Fonts: DejaVu Sans (`/usr/share/fonts/TTF/`) for text and Noto Color Emoji (`/usr/share/fonts/noto/`) for emoji; edit `TEXT_FONTS` / `EMOJI_FONT` at the top of the file for other distros. Emoji are rendered by Pillow with the same font that prints, so the picker is WYSIWYG.