use nadir_core::{Color, Vec2};
use nadir_render::UiScale;
#[non_exhaustive]
#[derive(Clone, Copy, Debug, PartialEq)]
pub struct Style {
pub scale: UiScale,
pub padding: f32,
pub spacing: f32,
pub indent: f32,
pub control_share: f32,
pub control_width: f32,
pub scrollbar: f32,
pub min_size: Vec2,
pub panel: Color,
pub title: Color,
pub title_front: Color,
pub widget: Color,
pub hot: Color,
pub active: Color,
pub accent: Color,
pub text: Color,
pub dim: Color,
pub selection: Color,
}
impl Default for Style {
fn default() -> Self {
Self {
scale: UiScale::Free(1.0),
padding: 2.0,
spacing: 2.0,
indent: 10.0,
control_share: 0.6,
control_width: 80.0,
scrollbar: 6.0,
min_size: Vec2::new(60.0, 40.0),
panel: Color::rgba(24, 24, 32, 230),
title: Color::rgb(48, 48, 72),
title_front: Color::rgb(64, 72, 128),
widget: Color::rgb(56, 56, 72),
hot: Color::rgb(80, 80, 104),
active: Color::rgb(104, 104, 144),
accent: Color::rgb(160, 200, 255),
text: Color::rgb(230, 230, 230),
dim: Color::rgb(96, 96, 112),
selection: Color::rgb(64, 96, 160),
}
}
}