From 401c65702cca47724baea82902bd72438bf47ffe Mon Sep 17 00:00:00 2001 From: cnmcdee Date: Wed, 2 Dec 2026 04:57:46 +0000 Subject: [PATCH] Task 3: TFontDialog height 340->420 (caption clipped) --- crates/xframe-common/build.rs | 2 +- crates/xframe-widgets/generator/gen_data.py | 2 +- crates/xframe-widgets/src/registry_gen.rs | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/crates/xframe-common/build.rs b/crates/xframe-common/build.rs index 8041444..5cb95fd 100644 --- a/crates/xframe-common/build.rs +++ b/crates/xframe-common/build.rs @@ -55,7 +55,7 @@ fn min_size(name: &str) -> (u16, u16) { "TCalendarDialog" => (320, 280), "TColorDialog" => (520, 300), "TFindDialog" => (380, 260), - "TFontDialog" => (320, 340), + "TFontDialog" => (320, 420), "TOpenPictureDialog" => (480, 240), "TPageSetupDialog" => (320, 400), "TPrintDialog" => (320, 300), diff --git a/crates/xframe-widgets/generator/gen_data.py b/crates/xframe-widgets/generator/gen_data.py index 534a4fb..b4b5264 100644 --- a/crates/xframe-widgets/generator/gen_data.py +++ b/crates/xframe-widgets/generator/gen_data.py @@ -185,7 +185,7 @@ MIN_SIZES = { "TCalendarDialog": (320, 280), "TColorDialog": (520, 300), "TFindDialog": (380, 260), - "TFontDialog": (320, 340), + "TFontDialog": (320, 420), "TOpenPictureDialog": (480, 240), "TPageSetupDialog": (320, 400), "TPrintDialog": (320, 300), diff --git a/crates/xframe-widgets/src/registry_gen.rs b/crates/xframe-widgets/src/registry_gen.rs index 888d141..4341925 100644 --- a/crates/xframe-widgets/src/registry_gen.rs +++ b/crates/xframe-widgets/src/registry_gen.rs @@ -517,7 +517,7 @@ pub static REGISTRY: &[RegistryEntry] = &[ RegistryEntry { index: 487, name: "TFindDialog", family: "T", section: "Windows & Dialogs", section_index: 0, default_w: 380, default_h: 260, archetype: Archetype::Dialog, kind: "FindDialog", line: None }, RegistryEntry { index: 488, name: "TFloatSpinEdit", family: "T", section: "Text & Entry", section_index: 4, default_w: 150, default_h: 36, archetype: Archetype::Range, kind: "FloatSpinEdit", line: None }, RegistryEntry { index: 489, name: "TFlowPanel", family: "T", section: "Containers & Layout", section_index: 1, default_w: 200, default_h: 90, archetype: Archetype::Container, kind: "FlowPanel", line: None }, - RegistryEntry { index: 490, name: "TFontDialog", family: "T", section: "Windows & Dialogs", section_index: 0, default_w: 320, default_h: 340, archetype: Archetype::Dialog, kind: "FontDialog", line: None }, + RegistryEntry { index: 490, name: "TFontDialog", family: "T", section: "Windows & Dialogs", section_index: 0, default_w: 320, default_h: 420, archetype: Archetype::Dialog, kind: "FontDialog", line: None }, RegistryEntry { index: 491, name: "TForm", family: "T", section: "Windows & Dialogs", section_index: 0, default_w: 300, default_h: 220, archetype: Archetype::Container, kind: "Form", line: None }, RegistryEntry { index: 492, name: "TFrame", family: "T", section: "Containers & Layout", section_index: 1, default_w: 200, default_h: 90, archetype: Archetype::Container, kind: "Frame", line: None }, RegistryEntry { index: 493, name: "TGroupBox", family: "T", section: "Containers & Layout", section_index: 1, default_w: 200, default_h: 90, archetype: Archetype::Container, kind: "GroupBox", line: None },