From 65e2bf620acddf385379c18d46fc4e442f212ed2 Mon Sep 17 00:00:00 2001 From: bflatastic Date: Wed, 25 Nov 2026 15:06:06 +0700 Subject: [PATCH] Theme: menus and dialogs as production spaces them. 29-point menu rows (production's 24-point rows 5 points apart), dialogs 22 points inside their edge (production's dialog margin) and 28-point dialog buttons. Needs a craft-libs rev with size.row.menu, size.dialog.button_height and space.pad.dialog (fix/vc-look9-metrics): on an older rev SIZES does not parse. Land it after that rev move. --- crates/ui-egui/src/theme.rs | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/crates/ui-egui/src/theme.rs b/crates/ui-egui/src/theme.rs index 7cb4374b36..d82dae6429 100644 --- a/crates/ui-egui/src/theme.rs +++ b/crates/ui-egui/src/theme.rs @@ -150,7 +150,8 @@ pub fn root_theme(prefs: &Prefs) -> (ThemeId, ModeChoice, Option) { /// action, and the compact set takes the reference app's metrics: /// 26-point fields and spinners, 24-point push buttons, 10 points inside panels, 5 between rows, 16-point glyphs in /// icon buttons, 5-point control corners, 8-point menus and 10-point windows, 33-point panel tabs, 310-point dock -/// columns with 14-point column bars and 38-point icon columns, and dialog buttons at least 72 points wide. +/// columns with 14-point column bars and 38-point icon columns, 29-point menu rows, and dialogs 22 points inside their +/// edge with 28-point buttons at least 72 points wide. /// Its type is the size the reference app draws: it set Inter at 92% of its nominal 13-point body, 12.5-point labels /// and 11.5-point captions, so they read at 12, 11.5 and 10.5 points, on the rows those nominal sizes gave. const SIZES: &[u8] = br#"{ @@ -177,6 +178,9 @@ const SIZES: &[u8] = br#"{ "radius.surface": 8, "radius.window": 10, "size.dialog.button": 72, + "size.dialog.button_height": 28, + "size.row.menu": 29, + "space.pad.dialog": 22, "typography.body.size": 12, "typography.body.line_height": 17, "typography.body_strong.size": 12,