8000 Implement "Paper & Ink" printer UI theme with animated paper roll by jmahmood · Pull Request #29 · jmahmood/CardBrick · GitHub
[go: up one dir, main page]

Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,9 @@ test_cache/
CLAUDE.md
venv-syncd
workspace
.DS_Store
cardbrick-py/*.apkg
cardbrick-py/mise.toml

# Knulli packaging outputs (deploy/knulli)
deploy/knulli/dist/
Expand Down
Binary file added assets/sfx/line-tick.wav
Binary file not shown.
Binary file added assets/sfx/page-whirr.wav
Binary file not shown.
12 changes: 5 additions & 7 deletions cardbrick-py/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -41,9 +41,8 @@ resolution), `cardbrick/bootlog.py` (file logging + startup
diagnostics), `cardbrick/smoke.py` (`--smoke-test`),
`cardbrick/errors.py` (visible fatal-error screens),
`cardbrick/settings.py` (JSON app settings), `cardbrick/textutil.py`
(HTML stripping, wrapping), and `cardbrick/ui.py` (the original
minimal prototype reviewer, kept working under `python main.py
review`).
(HTML stripping, wrapping), and `cardbrick/paperroll.py` (the
Paper & Ink spool animation behind the review screens).

### Dependencies

Expand Down Expand Up @@ -85,6 +84,9 @@ therefore auto-selects the first working backend and logs the choice:

Override with `CARDBRICK_AUDIO=auto|mixer|command|none` or point at an
exact player with `CARDBRICK_AUDIO_CMD="mpg123 -q {file}"`.
Paper-feed UI sounds can be adjusted on-device in Parent Mode →
Paper feed sound, or by editing `paper_feed_sfx_enabled` and
`paper_feed_sfx_volume` in `settings.json`.

## Usage

Expand All @@ -108,8 +110,6 @@ python main.py profile --study-ahead-days 2 # pull-forward horizon
python main.py profile --study-ahead off # day ends with the due pool
python main.py profile --categories all # study every tag

# Legacy prototype reviewer (no limits/undo/profiles)
python main.py review [--deck NAME] [--fullscreen]
python main.py decks # list decks + due counts

# Deployment tooling (see deploy/knulli/ at the repo root)
Expand Down Expand Up @@ -173,8 +173,6 @@ Noto Sans CJK/JP fonts when present, then falls back to DejaVu Sans
(full Spanish coverage: á é í ó ú ñ ü ¿ ¡). The packaged Knulli build
copies Noto from the repository's root `assets/font/` folder so
Japanese vocab translations render as real glyphs instead of boxes.
The legacy `review` prototype still honours the
old `CARDBRICK_JOYMAP` env var.

### Four-phase vocab cards

Expand Down
Loading
Loading
0