Make previous-slide preview opt-in for default layouts
This commit is contained in:
parent
4f5665f8e2
commit
f534944b10
|
|
@ -2212,7 +2212,7 @@ dependencies = [
|
|||
|
||||
[[package]]
|
||||
name = "pdf-presenter"
|
||||
version = "0.1.34"
|
||||
version = "0.1.35"
|
||||
dependencies = [
|
||||
"bytemuck",
|
||||
"chrono",
|
||||
|
|
|
|||
|
|
@ -4,7 +4,7 @@ default-members = ["crates/pdf-presenter"]
|
|||
resolver = "3"
|
||||
|
||||
[workspace.package]
|
||||
version = "0.1.34"
|
||||
version = "0.1.35"
|
||||
edition = "2024"
|
||||
license = "MIT"
|
||||
repository = "https://proxy.dandaedre.com/gitea/idle-org/pdf-presenter"
|
||||
|
|
|
|||
|
|
@ -49,7 +49,7 @@ impl Default for Layout {
|
|||
fn default() -> Self {
|
||||
Self {
|
||||
previous: Widget {
|
||||
show: true,
|
||||
show: false,
|
||||
size: 60.,
|
||||
},
|
||||
current: Widget {
|
||||
|
|
|
|||
|
|
@ -11,6 +11,7 @@ fn settings_roundtrip_preserves_project_overrides_and_hidden_bars() {
|
|||
settings.theme = pdf_presenter::theme::Theme::CorporateLight;
|
||||
settings.language = pdf_presenter::localization::Language::Fr;
|
||||
let mut project = Layout::default();
|
||||
project.previous.show = true; // Explicit opt-in survives saving and loading.
|
||||
project.current.show = false;
|
||||
project.header = false;
|
||||
project.footer = false;
|
||||
|
|
@ -63,6 +64,8 @@ fn settings_reject_invalid_versions_ranges_and_duplicate_roles() {
|
|||
assert!(settings::read(&p).is_err());
|
||||
std::fs::write(&p, "version=1").unwrap();
|
||||
assert!(settings::read(&p).unwrap().layout.header);
|
||||
assert!(!settings::read(&p).unwrap().layout.previous.show);
|
||||
assert!(!Layout::default().previous.show);
|
||||
assert_eq!(settings::read(&p).unwrap().buffer_mib, 1024);
|
||||
assert!(settings::read(&p).unwrap().auto_show);
|
||||
}
|
||||
|
|
|
|||
|
|
@ -2,6 +2,11 @@
|
|||
|
||||
## Unreleased
|
||||
|
||||
### 0.1.35
|
||||
|
||||
- Hide the previous-slide preview by default; enable it in Layout. Preserve explicit
|
||||
visibility choices in saved layouts and verify default/opt-in persistence.
|
||||
|
||||
### 0.1.34
|
||||
|
||||
- Restrict keepawake to its supported Linux, Windows and macOS targets so the
|
||||
|
|
|
|||
|
|
@ -35,7 +35,8 @@ flushed temporary file. Unknown fields are ignored and not preserved on round tr
|
|||
- `layout`: `previous`, `current`, `next`, `notes`, `elapsed`, `clock`, each with
|
||||
boolean `show` and finite floating `size`; plus boolean `header`/`footer`.
|
||||
Previous/next sizes are relative weights 30–160, current 60–200; notes size
|
||||
is percentage 12–65; elapsed/clock sizes are logical pixels 16–72. Defaults are in `settings.rs`.
|
||||
is percentage 12–65; elapsed/clock sizes are logical pixels 16–72. Defaults are in `settings.rs`. Since 0.1.35, the previous-slide widget defaults
|
||||
to hidden; an explicitly saved `previous.show` value is preserved.
|
||||
- `layout.elapsed_position` and `layout.clock_position`: `header` (default),
|
||||
`above_slides`, or `below_notes`, added in 0.1.24. Independent presenter-only
|
||||
placement presets; unknown values are rejected. Body timer rows reserve space
|
||||
|
|
|
|||
|
|
@ -87,6 +87,8 @@ do not navigate. Output windows accept B/Escape for emergency blanking.
|
|||
Layout independently enables and sizes previous/current/next slides, notes, elapsed
|
||||
time and the local HH:MM clock. Hidden widgets release their space. Notes wrap and
|
||||
automatically shrink to fit; extremely long notes can become too small to read.
|
||||
The previous-slide preview is off by default; enable **Previous slide** in Layout
|
||||
when you want it. Saved layouts keep their chosen visibility.
|
||||
Menu → Reset timer starts elapsed time again. Bundled UI fonts cover their supplied
|
||||
character sets; broad CJK text coverage remains a packaging acceptance item.
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue