canvas: fit the slide with 0.19's 28-point margin and a two-line notes pane

DeckCraft's sizes set space.inset.fit to 28, the margin its editor kept around
the slide, and the notes pane opens at 78, the height 0.19's two-line notes
field gave it (and saved), so the slide sits where it did.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
Dylan M. Taylor
2026-11-28 20:27:16 +00:00
co-authored by Claude Opus 5.5
parent ef1dd23549
commit bb9744d5d5
3 changed files with 4 additions and 2 deletions
+1
View File
@@ -1,6 +1,7 @@
{
"all": {
"radius.surface": 8,
"space.inset.fit": 28,
"typography.body.size": 13,
"typography.body_strong.size": 13,
"typography.caption.size": 11,
+2 -1
View File
@@ -96,7 +96,8 @@ impl Default for UiState {
ribbon_collapsed: false,
view: ViewMode::Normal,
notes: true,
notes_height: 52.0,
// Two lines of notes with the pane's padding: the height the pane stood at, and saved, in 0.19.
notes_height: 78.0,
thumbs_width: 236.0,
pane: None,
pane_width: 300.0,
+1 -1
View File
@@ -265,7 +265,7 @@ pub fn to_color32(c: deckcraft_color::Rgba) -> Color32 {
Color32::from_rgba_unmultiplied(c.r, c.g, c.b, c.a)
}
/// DeckCraft's overrides of the suite's size sets (`sizes.json`): its interface type scale and surface rounding. One
/// DeckCraft's overrides of the suite's size sets (`sizes.json`): its interface type scale, surface rounding and the slide's fit margin (0.19's 28 points). One
/// shared value, so every root that carries it keeps one identity for the token cache.
pub fn app_sizes() -> std::sync::Arc<craft::theme::AppSizes> {
static SIZES: std::sync::LazyLock<std::sync::Arc<craft::theme::AppSizes>> =