pub const TOOLBAR_WIDTH: f32 = 52.0;
pub const ICON_SIZE: f32 = 18.0;
pub const PADDING: f32 = 4.0;
pub const SUBMENU_WIDTH: f32 = 200.0;
#[derive(Debug, Clone)]
pub struct DrawingToolbarConfig {
pub icon_size: f32,
pub width: f32,
pub padding: f32,
pub submenu_width: f32,
pub show_names: bool,
pub expanded_width: f32,
pub collapsed_width: f32,
pub base_icon_size: f32,
pub base_width: f32,
pub base_padding: f32,
pub base_submenu_width: f32,
}
impl Default for DrawingToolbarConfig {
fn default() -> Self {
Self {
icon_size: ICON_SIZE,
width: TOOLBAR_WIDTH,
padding: PADDING,
submenu_width: SUBMENU_WIDTH,
show_names: false,
expanded_width: TOOLBAR_WIDTH,
collapsed_width: TOOLBAR_WIDTH,
base_icon_size: ICON_SIZE,
base_width: TOOLBAR_WIDTH,
base_padding: PADDING,
base_submenu_width: SUBMENU_WIDTH,
}
}
}
impl DrawingToolbarConfig {
pub fn from_theme(_theme: &crate::theme::Theme) -> Self {
Self::default()
}
pub fn update_for_window_width(&mut self, _window_width: f32) {
}
}