From 955379e665ea54c4e02cd9984766273ffe15692d Mon Sep 17 00:00:00 2001 From: bflatastic Date: Wed, 25 Nov 2026 07:33:44 +0700 Subject: [PATCH] The dock's columns stand flush and square at production's widths: a 310-point panel column and a 38-point icon column, the panel tabs in the framework's plain look --- crates/ui-egui/src/panel_docking.rs | 8 +------- crates/ui-egui/src/theme.rs | 5 ++++- 2 files changed, 5 insertions(+), 8 deletions(-) diff --git a/crates/ui-egui/src/panel_docking.rs b/crates/ui-egui/src/panel_docking.rs index 7e918b29c2..393ef68854 100644 --- a/crates/ui-egui/src/panel_docking.rs +++ b/crates/ui-egui/src/panel_docking.rs @@ -31,7 +31,6 @@ use craft::ui::primitives::IconSpec; use craft::ui::runtime::commands::CommandRef; use craft::ui::runtime::frame::{ChromeToggle, request_chrome_toggle}; use craft::ui::shell::chrome_state; -use craft::ui::tabs::PanelTabLook; use serde_json::{Value, json}; use crate::VectorcraftApp; @@ -1317,12 +1316,7 @@ pub(crate) fn show(app: &mut VectorcraftApp, ui: &mut egui::Ui, keeps_tools: boo Bind::bound(&mut workspace), &specs, &mut panels, - DockConfig::default() - .panel_menu_always(true) - .panel_menu_icon(IconId::new("menu")) - .column_cards(true) - .tab_look(PanelTabLook::Pill) - .floating_rounded_body(true), + DockConfig::default().panel_menu_always(true).panel_menu_icon(IconId::new("menu")).floating_rounded_body(true), ) .hide(hide) .flyout(Bind::bound(&mut flyout)); diff --git a/crates/ui-egui/src/theme.rs b/crates/ui-egui/src/theme.rs index a211f3b973..627ddce447 100644 --- a/crates/ui-egui/src/theme.rs +++ b/crates/ui-egui/src/theme.rs @@ -148,11 +148,14 @@ pub fn root_theme(prefs: &Prefs) -> (ThemeId, ModeChoice, Option) { /// The app's sizes over the framework's size sets (`sizes.json`): push buttons have the app's 4-point corners /// where the sets give pills, and the compact set takes the reference app's metrics: 26-point fields and spinners, /// 10 points inside panels, 5 between rows, 13-point body type with 12.5-point labels and 11-point captions, 5-point -/// control corners, 8-point menus and 10-point windows, and 33-point panel tabs. +/// control corners, 8-point menus and 10-point windows, 33-point panel tabs, 310-point dock columns and 38-point icon +/// columns. const SIZES: &[u8] = br#"{ "all": {"radius.button": 4}, "compact": { "size.control.md": 26, + "size.rail.width": 38, + "size.dock.column": 310, "size.panel_header": 33, "size.bar.tab": 35, "size.bar.tab_large": 44,