From 5162bce0a6a0e547edf7e58260dd35f279f24397 Mon Sep 17 00:00:00 2001 From: Dandaedre Date: Thu, 19 Nov 2026 16:30:13 +0100 Subject: [PATCH] Add adjustable presenter widgets and live layout presets to mockup --- Cargo.lock | 2 +- Cargo.toml | 2 +- docs/changelog.md | 10 +++++++ docs/design/presenter-menu.html | 49 +++++++++++++++++++++++++++------ docs/development/tasks.md | 4 +++ 5 files changed, 57 insertions(+), 10 deletions(-) diff --git a/Cargo.lock b/Cargo.lock index af44abb..c1ad344 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -921,7 +921,7 @@ dependencies = [ [[package]] name = "pdf-presenter" -version = "0.1.6" +version = "0.1.7" dependencies = [ "font8x8", "softbuffer", diff --git a/Cargo.toml b/Cargo.toml index b2f48b4..f7830f1 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -4,7 +4,7 @@ default-members = ["crates/pdf-presenter"] resolver = "3" [workspace.package] -version = "0.1.6" +version = "0.1.7" edition = "2024" license = "MIT" repository = "https://proxy.dandaedre.com/gitea/idle-org/pdf-presenter" diff --git a/docs/changelog.md b/docs/changelog.md index 46242dc..ef250e7 100644 --- a/docs/changelog.md +++ b/docs/changelog.md @@ -2,6 +2,16 @@ ## Unreleased +### 0.1.7 + +- Extend the HTML presenter concept with a live layout panel: independently hide/show + and resize previous/next previews, notes, elapsed time and a local HH:MM clock. + Current-slide size is adjustable; hidden widgets reclaim space. Include balanced, + slide-focus and notes-first presets, with complete notes automatically fitted. + Native layout and global persistence remain planned; this is a session-only mockup. + Validation: JavaScript syntax, Firefox visual inspection and 20 browser checks + covering widget sizing/visibility, recovered space, presets and long-note fitting. + ### 0.1.6 - Add a standalone interactive HTML presenter-menu concept for review: current/next diff --git a/docs/design/presenter-menu.html b/docs/design/presenter-menu.html index 6bae604..fa69f09 100644 --- a/docs/design/presenter-menu.html +++ b/docs/design/presenter-menu.html @@ -5,15 +5,28 @@ PDF Presenter · Menu concept
INTERACTIVE CONCEPT · Mock slides and screens. No real display or system settings change.
-
P
Making room for ideasdemo.pdf · 12 slides
00:00
- -
CURRENT · 1 / 12PRESENTATION VISIBLE
BEFFROI / FIELD NOTES

Making room
for ideas.

A clear view. A little space. A better presentation.

DESIGN SESSION · NOVEMBER 2026
NEXT2 / 12
THE STARTING POINT

Keep the
focus.

Your slides go to Screen 3 · Epson projector.
Menus and notes stay on the presenter screen.
-
PRESENTER NOTES · auto-fit

+
P
Making room for ideasdemo.pdf · 12 slides
Elapsed00:00
Time00:00
+ +
PREVIOUS
LOOKING BACK

Start of presentation

CURRENT · 1 / 12PRESENTATION VISIBLE
BEFFROI / FIELD NOTES

Making room
for ideas.

A clear view. A little space. A better presentation.

DESIGN SESSION · NOVEMBER 2026
NEXT2 / 12
THE STARTING POINT

Keep the
focus.

Your slides go to Screen 3 · Epson projector.
Menus and notes stay on the presenter screen.
+
PRESENTER NOTES · auto-fit

← → slides · B blank · Esc close menuPresenter 1 · Presentation 3
+

Where should each view go?

Presenter = your controls and notes. Presentation = slides for viewers.
CONNECTED SCREENS · SIMULATED
Choose destinations, then Apply. Unused screens stay untouched.
Changes apply together.

Settings

Proposed app behavior · not operating-system settings
Remember your screens
Keep preferred screen identities, fullscreen choices and notes layout in a per-user configuration. Temporary fallback does not replace your preferred setup.
Configuration location
Linux: $XDG_CONFIG_HOME/pdf-presenter/settings.toml
Defaults to ~/.config/pdf-presenter/settings.toml
Windows: %APPDATA%\Beffroi\PdfPresenter\settings.toml
macOS: ~/Library/Application Support/Beffroi/PdfPresenter/settings.toml
Keep screens awake during presentation
Planned native feature. Includes paused and blanked output; this HTML does not inhibit sleep.
This demo remembers choices only while this page is open. The native app's global configuration is not implemented yet.
diff --git a/docs/development/tasks.md b/docs/development/tasks.md index 0a3c944..fd65ff6 100644 --- a/docs/development/tasks.md +++ b/docs/development/tasks.md @@ -89,6 +89,10 @@ Depends on usable PDF output and acknowledged displayed-slide state. - [ ] T16: Show current/next previews, page selection and keyboard controls. Distinguish requested/preparing/displayed slides and blank state; keep every dialog on presenter. + Let the speaker independently show/hide and resize previous/next previews, notes, + elapsed time and local HH:MM time. Hidden widgets reclaim space. Keep complete + notes fitted, and persist layout visibility/sizes in the global settings contract. + Review the [interactive layout concept](../design/presenter-menu.html) before implementation. - [ ] T17: Extract available notes asynchronously and support explicit notes-page interpretation/cropping. Load image sidecar `.txt` notes and global `notes.json` or `notes.toml`; test precedence, invalid files and missing notes. Always word-wrap and