pub struct IconOnlyDefaults {
pub icon_size: f64, pub padding: f64, pub border_radius: f64, pub hover_bg_radius: f64, pub spacing_from_edge: f64, pub icon_gap: f64, }
impl Default for IconOnlyDefaults {
fn default() -> Self {
Self {
icon_size: 16.0,
padding: 0.0,
border_radius: 0.0,
hover_bg_radius: 4.0,
spacing_from_edge: 12.0,
icon_gap: 6.0,
}
}
}
pub struct IconOnlyPrototypeColors {
pub background_normal: &'static str, pub icon_normal: &'static str,
pub background_hover: &'static str, pub icon_hover: &'static str,
pub background_active: &'static str, pub icon_active: &'static str,
pub icon_disabled: &'static str, }
impl Default for IconOnlyPrototypeColors {
fn default() -> Self {
Self {
background_normal: "transparent",
icon_normal: "#787b86",
background_hover: "transparent",
icon_hover: "#e5e7eb",
background_active: "#1e3a5f",
icon_active: "#ffffff",
icon_disabled: "#4a4a4a",
}
}
}
pub struct TextDefaults {
pub height: f64, pub min_width: f64, pub padding_x: f64, pub padding_y: f64, pub font_size: f64, pub border_radius: f64, pub border_width: f64, pub button_gap: f64, }
impl Default for TextDefaults {
fn default() -> Self {
Self {
height: 28.0,
min_width: 70.0,
padding_x: 12.0,
padding_y: 4.0,
font_size: 13.0,
border_radius: 4.0,
border_width: 1.0,
button_gap: 8.0,
}
}
}
pub struct TextPrototypeColors {
pub background_normal: &'static str, pub text_normal: &'static str, pub border_normal: &'static str,
pub background_hover: &'static str, pub text_hover: &'static str, pub border_hover: &'static str,
pub background_pressed: &'static str, pub text_pressed: &'static str,
pub background_disabled: &'static str, pub text_disabled: &'static str, pub border_disabled: &'static str, }
impl Default for TextPrototypeColors {
fn default() -> Self {
Self {
background_normal: "transparent",
text_normal: "#d1d5db",
border_normal: "#3a3a3a",
background_hover: "#2a2a2a",
text_hover: "#d1d5db",
border_hover: "#e5e7eb",
background_pressed: "#1e3a5f",
text_pressed: "#ffffff",
background_disabled: "#2a2a2a",
text_disabled: "#4a4a4a",
border_disabled: "#3a3a3a",
}
}
}
pub struct IconTextDefaults {
pub height: f64, pub min_width: f64, pub padding_x: f64, pub padding_y: f64, pub icon_size: f64, pub icon_text_gap: f64, pub font_size: f64, pub border_radius: f64, }
impl Default for IconTextDefaults {
fn default() -> Self {
Self {
height: 28.0,
min_width: 70.0,
padding_x: 8.0,
padding_y: 4.0,
icon_size: 16.0,
icon_text_gap: 6.0,
font_size: 13.0,
border_radius: 4.0,
}
}
}
pub struct IconTextPrototypeColors {
pub background_normal: &'static str, pub background_hover: &'static str, pub text_normal: &'static str, pub icon_normal: &'static str,
pub background_disabled: &'static str, pub text_disabled: &'static str, pub icon_disabled: &'static str, }
impl Default for IconTextPrototypeColors {
fn default() -> Self {
Self {
background_normal: "#2962ff",
background_hover: "#4080ff",
text_normal: "#ffffff",
icon_normal: "#ffffff",
background_disabled: "#2a2a2a",
text_disabled: "#4a4a4a",
icon_disabled: "#4a4a4a",
}
}
}
pub struct LineTextDefaults {
pub width: f64, pub height: f64, pub line_length_ratio: f64, pub line_offset_y: f64, pub number_offset_y: f64, pub number_font_size: f64, pub border_radius: f64, }
impl Default for LineTextDefaults {
fn default() -> Self {
Self {
width: 36.0,
height: 28.0,
line_length_ratio: 0.6,
line_offset_y: -8.0,
number_offset_y: 6.0,
number_font_size: 11.0,
border_radius: 4.0,
}
}
}
pub struct LineTextPrototypeColors {
pub background_normal: &'static str, pub line_normal: &'static str, pub text_normal: &'static str,
pub background_hover: &'static str, pub line_hover: &'static str, pub text_hover: &'static str,
pub background_active: &'static str, pub line_active: &'static str, pub text_active: &'static str,
pub background_pressed: &'static str, pub line_pressed: &'static str, pub text_pressed: &'static str,
pub background_disabled: &'static str, pub line_disabled: &'static str, pub text_disabled: &'static str, }
impl Default for LineTextPrototypeColors {
fn default() -> Self {
Self {
background_normal: "transparent",
line_normal: "#787b86",
text_normal: "#787b86",
background_hover: "#2a2a2a",
line_hover: "#ffffff",
text_hover: "#ffffff",
background_active: "#2962ff",
line_active: "#ffffff",
text_active: "#ffffff",
background_pressed: "#1e3a5f",
line_pressed: "#ffffff",
text_pressed: "#ffffff",
background_disabled: "transparent",
line_disabled: "#4a4a4a",
text_disabled: "#4a4a4a",
}
}
}
pub struct CheckboxTextDefaults {
pub height: f64, pub padding_x: f64, pub padding_y: f64, pub checkbox_size: f64, pub checkbox_text_gap: f64, pub font_size: f64, pub border_radius: f64, pub button_margin: f64, }
impl Default for CheckboxTextDefaults {
fn default() -> Self {
Self {
height: 28.0,
padding_x: 8.0,
padding_y: 4.0,
checkbox_size: 16.0,
checkbox_text_gap: 6.0,
font_size: 12.0,
border_radius: 4.0,
button_margin: 4.0,
}
}
}
pub struct CheckboxTextPrototypeColors {
pub background_normal: &'static str, pub text_normal: &'static str, pub checkbox_bg: &'static str, pub checkbox_border: &'static str,
pub background_hover: &'static str, pub text_hover: &'static str,
pub background_active: &'static str, pub text_active: &'static str, pub checkbox_bg_active: &'static str, pub checkbox_check_active: &'static str, pub border_active: &'static str,
pub background_disabled: &'static str, pub text_disabled: &'static str, }
impl Default for CheckboxTextPrototypeColors {
fn default() -> Self {
Self {
background_normal: "#1e222d",
text_normal: "#787b86",
checkbox_bg: "transparent",
checkbox_border: "#3a3a3a",
background_hover: "#2a2a2a",
text_hover: "#e5e7eb",
background_active: "#1e3a5f",
text_active: "#ffffff",
checkbox_bg_active: "#2962ff",
checkbox_check_active: "#ffffff",
border_active: "#2962ff",
background_disabled: "#2a2a2a",
text_disabled: "#4a4a4a",
}
}
}
pub struct IconSwapDefaults {
pub icon_size: f64, pub padding: f64, pub button_area: f64, pub icon_gap: f64, }
impl Default for IconSwapDefaults {
fn default() -> Self {
Self {
icon_size: 16.0,
padding: 0.0,
button_area: 16.0,
icon_gap: 4.0,
}
}
}
pub struct IconSwapPrototypeColors {
pub background: &'static str, pub icon_off: &'static str, pub icon_on: &'static str,
pub background_hover: &'static str, pub icon_hover: &'static str,
pub icon_disabled: &'static str, }
impl Default for IconSwapPrototypeColors {
fn default() -> Self {
Self {
background: "transparent",
icon_off: "#787b86",
icon_on: "#787b86",
background_hover: "#2a2a2a",
icon_hover: "#e5e7eb",
icon_disabled: "#4a4a4a",
}
}
}
pub struct ButtonToggleDefaults {
pub button_size: f64, pub icon_size: f64, pub padding: f64, pub border_radius: f64, pub active_border_width: f64, }
impl Default for ButtonToggleDefaults {
fn default() -> Self {
Self {
button_size: 28.0,
icon_size: 16.0,
padding: 6.0,
border_radius: 4.0,
active_border_width: 3.0,
}
}
}
pub struct ButtonTogglePrototypeColors {
pub background_off: &'static str, pub icon_off: &'static str, pub border_off: &'static str,
pub background_on: &'static str, pub icon_on: &'static str, pub border_on: &'static str,
pub background_hover_off: &'static str, pub icon_hover_off: &'static str,
pub background_hover_on: &'static str, pub icon_hover_on: &'static str,
pub background_disabled: &'static str, pub icon_disabled: &'static str, }
impl Default for ButtonTogglePrototypeColors {
fn default() -> Self {
Self {
background_off: "transparent",
icon_off: "#787b86",
border_off: "transparent",
background_on: "#1e3a5f",
icon_on: "#ffffff",
border_on: "#2962ff",
background_hover_off: "#2a2a2a",
icon_hover_off: "#e5e7eb",
background_hover_on: "#2655cc",
icon_hover_on: "#ffffff",
background_disabled: "transparent",
icon_disabled: "#4a4a4a",
}
}
}
pub struct CheckboxDefaults {
pub checkbox_size: f64, pub border_radius: f64, pub border_width: f64, pub checkmark_size: f64, pub row_height: f64, pub label_offset_x: f64, }
impl Default for CheckboxDefaults {
fn default() -> Self {
Self {
checkbox_size: 16.0,
border_radius: 3.0,
border_width: 1.0,
checkmark_size: 10.0,
row_height: 32.0,
label_offset_x: 12.0,
}
}
}
pub struct CheckboxPrototypeColors {
pub background_unchecked: &'static str, pub border_unchecked: &'static str,
pub background_checked: &'static str, pub border_checked: &'static str, pub checkmark: &'static str,
pub background_hover_unchecked: &'static str, pub border_hover_unchecked: &'static str,
pub background_hover_checked: &'static str, pub border_hover_checked: &'static str,
pub background_disabled: &'static str, pub border_disabled: &'static str, pub checkmark_disabled: &'static str, }
impl Default for CheckboxPrototypeColors {
fn default() -> Self {
Self {
background_unchecked: "transparent",
border_unchecked: "#3a3a3a",
background_checked: "#2962ff",
border_checked: "#2962ff",
checkmark: "#ffffff",
background_hover_unchecked: "#2a2a2a",
border_hover_unchecked: "#e5e7eb",
background_hover_checked: "#4080ff",
border_hover_checked: "#4080ff",
background_disabled: "#2a2a2a",
border_disabled: "#3a3a3a",
checkmark_disabled: "#4a4a4a",
}
}
}
pub struct VerticalTabDefaults {
pub tab_width: f64, pub tab_height: f64, pub icon_size: f64, pub active_bar_width: f64, pub icon_centering_offset: f64, }
impl Default for VerticalTabDefaults {
fn default() -> Self {
Self {
tab_width: 70.0,
tab_height: 44.0,
icon_size: 20.0,
active_bar_width: 3.0,
icon_centering_offset: 25.0, }
}
}
pub struct VerticalTabPrototypeColors {
pub background_inactive: &'static str, pub icon_inactive: &'static str,
pub background_active: &'static str, pub icon_active: &'static str, pub bar_active: &'static str,
pub background_hover: &'static str, pub icon_hover: &'static str, }
impl Default for VerticalTabPrototypeColors {
fn default() -> Self {
Self {
background_inactive: "transparent",
icon_inactive: "#787b86",
background_active: "#1e3a5f",
icon_active: "#ffffff",
bar_active: "#2962ff",
background_hover: "#2a2a2a",
icon_hover: "#e5e7eb",
}
}
}
pub struct HorizontalTabDefaults {
pub tab_height: f64, pub padding_x: f64, pub tab_gap: f64, pub font_size: f64, pub border_radius: f64, pub underline_height: f64, }
impl Default for HorizontalTabDefaults {
fn default() -> Self {
Self {
tab_height: 32.0,
padding_x: 12.0,
tab_gap: 2.0,
font_size: 13.0,
border_radius: 0.0,
underline_height: 2.0,
}
}
}
pub struct HorizontalTabPrototypeColors {
pub background_inactive: &'static str, pub text_inactive: &'static str, pub border_bottom: &'static str,
pub background_active: &'static str, pub text_active: &'static str,
pub background_hover: &'static str, pub text_hover: &'static str, }
impl Default for HorizontalTabPrototypeColors {
fn default() -> Self {
Self {
background_inactive: "transparent",
text_inactive: "#787b86",
border_bottom: "#3a3a3a",
background_active: "#1e3a5f",
text_active: "#ffffff",
background_hover: "#2a2a2a",
text_hover: "#787b86",
}
}
}
pub struct ColorSwatchSquareDefaults {
pub swatch_size: f64, pub border_radius: f64, pub border_width: f64, pub swatch_gap: f64, pub row_height: f64, }
impl Default for ColorSwatchSquareDefaults {
fn default() -> Self {
Self {
swatch_size: 24.0,
border_radius: 4.0,
border_width: 1.0,
swatch_gap: 8.0,
row_height: 32.0,
}
}
}
pub struct ColorSwatchSquarePrototypeColors {
pub border_normal: &'static str, pub border_hover: &'static str, pub border_active: &'static str, pub border_disabled: &'static str, }
impl Default for ColorSwatchSquarePrototypeColors {
fn default() -> Self {
Self {
border_normal: "#3a3a3a",
border_hover: "#e5e7eb",
border_active: "#2962ff",
border_disabled: "#3a3a3a",
}
}
}
pub struct ColorSwatchIconBarDefaults {
pub button_size: f64, pub icon_size: f64, pub icon_padding: f64, pub bar_width: f64, pub bar_height: f64, pub bar_position_y: f64, pub bar_padding_x: f64, }
impl Default for ColorSwatchIconBarDefaults {
fn default() -> Self {
Self {
button_size: 24.0,
icon_size: 16.0,
icon_padding: 4.0,
bar_width: 16.0,
bar_height: 3.0,
bar_position_y: 18.0,
bar_padding_x: 4.0,
}
}
}
pub struct ColorSwatchIconBarPrototypeColors {
pub background_normal: &'static str, pub icon_normal: &'static str,
pub background_hover: &'static str, pub icon_hover: &'static str,
pub background_active: &'static str, pub icon_active: &'static str, }
impl Default for ColorSwatchIconBarPrototypeColors {
fn default() -> Self {
Self {
background_normal: "transparent",
icon_normal: "#787b86",
background_hover: "#2a2a2a",
icon_hover: "#e5e7eb",
background_active: "#1e3a5f",
icon_active: "#ffffff",
}
}
}
pub struct DropdownTextChevronDefaults {
pub width: f64, pub height: f64, pub chevron_area_width: f64, pub text_area_width: f64, pub text_padding_x: f64, pub chevron_size: f64, pub separator_width: f64, pub border_radius: f64, pub border_width: f64, }
impl Default for DropdownTextChevronDefaults {
fn default() -> Self {
Self {
width: 140.0,
height: 28.0,
chevron_area_width: 20.0,
text_area_width: 120.0,
text_padding_x: 8.0,
chevron_size: 6.0,
separator_width: 1.0,
border_radius: 4.0,
border_width: 1.0,
}
}
}
pub struct DropdownTextChevronPrototypeColors {
pub background_normal: &'static str, pub text_normal: &'static str, pub chevron_normal: &'static str, pub border_normal: &'static str, pub separator: &'static str,
pub background_hover: &'static str, pub text_hover: &'static str, pub chevron_hover: &'static str, pub border_hover: &'static str,
pub background_active: &'static str, pub text_active: &'static str, pub chevron_active: &'static str, pub border_active: &'static str,
pub background_disabled: &'static str, pub text_disabled: &'static str, pub chevron_disabled: &'static str, pub border_disabled: &'static str, }
impl Default for DropdownTextChevronPrototypeColors {
fn default() -> Self {
Self {
background_normal: "#1e222d",
text_normal: "#d1d5db",
chevron_normal: "#d1d5db",
border_normal: "#3a3a3a",
separator: "#3a3a3a",
background_hover: "#2a2a2a",
text_hover: "#d1d5db",
chevron_hover: "#d1d5db",
border_hover: "#e5e7eb",
background_active: "#1e3a5f",
text_active: "#ffffff",
chevron_active: "#ffffff",
border_active: "#2962ff",
background_disabled: "#2a2a2a",
text_disabled: "#4a4a4a",
chevron_disabled: "#4a4a4a",
border_disabled: "#3a3a3a",
}
}
}
pub struct DropdownChevronOnlyDefaults {
pub button_width: f64, pub button_height: f64, pub chevron_size: f64, pub padding_x: f64, pub border_radius: f64, pub border_width: f64, }
impl Default for DropdownChevronOnlyDefaults {
fn default() -> Self {
Self {
button_width: 24.0,
button_height: 24.0,
chevron_size: 12.0,
padding_x: 6.0,
border_radius: 3.0,
border_width: 0.5,
}
}
}
pub struct DropdownChevronOnlyPrototypeColors {
pub background_normal: &'static str, pub chevron_normal: &'static str, pub border_normal: &'static str,
pub background_hover: &'static str, pub chevron_hover: &'static str, pub border_hover: &'static str,
pub background_active: &'static str, pub chevron_active: &'static str,
pub background_disabled: &'static str, pub chevron_disabled: &'static str, }
impl Default for DropdownChevronOnlyPrototypeColors {
fn default() -> Self {
Self {
background_normal: "transparent",
chevron_normal: "#787b86", border_normal: "#3a3a3a", background_hover: "#2a2a2a",
chevron_hover: "#e5e7eb",
border_hover: "#3a3a3a",
background_active: "#1e3a5f",
chevron_active: "#ffffff",
background_disabled: "transparent",
chevron_disabled: "#4a4a4a",
}
}
}