use iced::font::{Family, Stretch, Style, Weight};
use iced::{Color, Font};
use std::time::Duration;
use crate::gui::sniffer::{FONT_FAMILY_NAME, ICON_FONT_FAMILY_NAME};
pub const SARASA_MONO_BYTES: &[u8] =
include_bytes!("../../../resources/fonts/subset/sarasa-mono-sc-regular.subset.ttf");
pub const SARASA_MONO: Font = Font {
family: Family::Name(FONT_FAMILY_NAME),
weight: Weight::Normal,
stretch: Stretch::Normal,
style: Style::Normal,
};
pub const ICONS_BYTES: &[u8] = include_bytes!("../../../resources/fonts/subset/icons.ttf");
pub const ICONS: Font = Font::with_name(ICON_FONT_FAMILY_NAME);
pub const FONT_SIZE_FOOTER: f32 = 14.3;
pub const FONT_SIZE_BODY: f32 = 16.8;
pub const FONT_SIZE_SUBTITLE: f32 = 18.3;
pub const FONT_SIZE_TITLE: f32 = 19.9;
pub const BORDER_WIDTH: f32 = 2.0;
pub const CHARTS_LINE_BORDER: u32 = 1;
pub const BORDER_ROUNDED_RADIUS: f32 = 15.0;
pub const BORDER_BUTTON_RADIUS: f32 = 180.0;
pub const RED_ALERT_COLOR_NIGHTLY: Color = Color {
r: 1.0,
g: 0.4,
b: 0.4,
a: 1.0,
};
pub const RED_ALERT_COLOR_DAILY: Color = Color {
r: 0.701_960_8,
g: 0.0,
b: 0.0,
a: 1.0,
};
pub const TOOLTIP_DELAY: Duration = Duration::from_millis(300);