mirror of
https://github.com/storytold/vectorcraft.git
synced 2026-12-03 15:21:17 -05:00
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:
@@ -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));
|
||||
|
||||
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user