Commit Graph
7 Commits
Author SHA1 Message Date
Gracious 23c068b269 README for public release; blank default printer address
Download table for release builds, supported-printer table, fork notes,
credits for bundled fonts/libraries. DEFAULT_ADDR is now empty and the
screenshots use a placeholder MAC.
2026-09-21 08:40:46 +01:00
Gracious 42221341d5 Add PyInstaller packaging for Windows and Linux
- label_app.spec: one-file build bundling fonts, emoji data, ttkbootstrap
  themes and (on Windows) fribidi.dll so Pillow can shape emoji sequences
- build-windows.ps1 helper; assets/icon.ico app icon
- Fonts resolved from assets/fonts first, then system dirs, so the app
  runs from a bundle or a checkout on any OS
- Bump Pillow pin to 12.3
2026-09-21 08:38:00 +01:00
Gracious 41b4d4ce64 Docs: screenshots and full label designer guide; icon category tabs
- README: overview, installation, designer walkthrough with light/dark
  screenshots and sample output, library usage, D101 pairing note
- Emoji picker tabs use emoji icons so the sidebar fits at 1280px;
  file actions and theme toggle move to the bottom bar
2026-09-21 08:27:48 +01:00
Gracious 76e6732285 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.
2026-09-21 08:22:14 +01:00
Gracious dfe26919ad Rewrite label designer as an item-based canvas editor
- Items (text blocks, emoji) are placed freely: click to select, drag to
  move, arrow-key nudge, rotate to any angle, resize, duplicate, fit/center
- Emoji picker now covers the full emoji set via emoji-data-python
  (~1,900, 9 categories, name search, hover shows the name); thumbnails
  are rendered by Pillow with Noto Color Emoji so ZWJ sequences and flags
  display exactly as they print
- Designs save/open as JSON; last design restored on launch
2026-09-21 08:15:27 +01:00
Gracious f9daab05e4 Add Tkinter label designer with emoji picker
label_app.py: label size presets, multi-line text with auto-fit / bold /
alignment, tabbed emoji picker (rendered via Noto Color Emoji,
gamma-darkened and dithered for the thermal head), live 1-bit preview,
save PNG, print in a background thread. Settings persist in
~/.config/niimprint-label/.

main.py is the earlier minimal GUI it supersedes.
2026-09-21 08:02:58 +01:00
Gracious 90137dd111 Add model table, PrinterError, and port upstream PRs #28/#12
Library changes on top of upstream 35c41a7:

- models.py: MODELS table (max width / density / needs_print_clear per
  model) and prepare_print(), replacing the duplicated width/density
  logic in the CLI. Adds d101 (192px head, tested on 12mm tape).
- _transceive raises PrinterError instead of returning None (callers
  used to crash with AttributeError on a silent printer).
- PR #28: send ALLOW_PRINT_CLEAR / SET_QUANTITY for D-series models
  (labels taller than ~210px failed on D11 without them) and pause 1ms
  between line packets.
- PR #12: replace the fixed sleep after END_PAGE_PRINT with
  get_print_status() polling (30s deadline, fallback for firmwares that
  do not answer). get_print_status returns PrintStatus(finished,
  progress, feed_progress, error).
- set_dimension parameter names match their use.

Verified on a D101 over Bluetooth.
2026-09-21 08:02:58 +01:00