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

This commit is contained in:
bflatastic
2026-11-25 07:33:44 +07:00
parent 8268eede5e
commit 955379e665
2 changed files with 5 additions and 8 deletions
+1 -7
View File
@@ -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));
+4 -1
View File
@@ -148,11 +148,14 @@ pub fn root_theme(prefs: &Prefs) -> (ThemeId, ModeChoice, Option<Rgba>) {
/// 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,