use mitsuami_core::backend::{FontSizes, PlatformMetrics};
use mitsuami_core::units::SpacingScale;
use mitsuami_core::{Insets, Size};
pub(super) const TOOLBAR_HEIGHT: f32 = 40.0;
pub(super) const TOOLBAR_SPACING: f32 = 8.0;
pub(super) const POPOVER_GAP: f32 = 6.0;
pub(super) const SIDEBAR_WIDTH: f32 = 200.0;
pub(super) const TAB_INSETS: Insets = Insets::new(32.0, 8.0, 8.0, 8.0);
pub(super) const TAB_PADDING: f32 = 24.0;
pub(super) const DOCUMENT_TAB_HEIGHT: f32 = 32.0;
pub(super) const DOCUMENT_TAB_BUTTON: f32 = 24.0;
pub(super) const GROUP_INSETS: Insets = Insets::new(8.0, 8.0, 8.0, 8.0);
pub(super) const TITLED_GROUP_INSETS: Insets = Insets::new(32.0, 8.0, 8.0, 8.0);
pub(super) const TABLE_HEADER_HEIGHT: f32 = 24.0;
pub(super) const TABLE_ROW_HEIGHT: f32 = 24.0;
pub(super) const COLUMN_SPACING: f32 = 4.0;
pub(super) const COLUMN_WIDTH: f32 = 100.0;
pub(super) const TREE_INDENT: mitsuami_core::TreeIndent = mitsuami_core::TreeIndent { start: 16.0, per_level: 16.0 };
pub(super) const RADIO_GAP: f32 = 6.0;
pub(super) const SCREEN: Size = Size::new(1280.0, 800.0);
pub(super) const TEXT_AREA_INSETS: Insets = Insets::new(4.0, 4.0, 4.0, 4.0);
pub(super) const SPLIT_DIVIDER: f32 = 1.0;
pub(super) const WORK_AREA: Size = Size::new(1280.0, 740.0);
pub fn metrics() -> PlatformMetrics {
PlatformMetrics {
scale_factor: 1.0,
spacing: SpacingScale { xs: 4.0, sm: 8.0, md: 12.0, lg: 16.0, xl: 24.0, indent: 16.0 },
font_sizes: FontSizes {
large_title: 32.0,
title: 24.0,
headline: 18.0,
body: 16.0,
callout: 15.0,
caption: 12.0,
monospace: 14.0,
},
dark_mode: false,
high_contrast: false,
reduced_motion: false,
tab_insets: TAB_INSETS,
group_insets: GROUP_INSETS,
titled_group_insets: TITLED_GROUP_INSETS,
split_divider: SPLIT_DIVIDER,
text_area_insets: TEXT_AREA_INSETS,
}
}