use super::MacTheme;
use crate::tokens::{
MacTagLabelColors, OriginMatrixMetrics, TableActionBarMetrics, TagColorPickerMetrics,
};
use egui::Color32;
impl MacTheme {
pub fn origin_matrix(&self) -> &OriginMatrixMetrics {
self.tokens.origin_matrix_metrics()
}
pub fn tag_color_picker(&self) -> &TagColorPickerMetrics {
self.tokens.tag_color_picker_metrics()
}
pub fn table_action_bar(&self) -> &TableActionBarMetrics {
self.tokens.table_action_bar_metrics()
}
pub fn tag_labels(&self) -> &MacTagLabelColors {
&self.tokens.colors().tag_labels
}
pub fn tag_label_palette(&self) -> [Color32; 11] {
self.tag_labels().palette_11()
}
pub fn tag_swatch_border(&self) -> Color32 {
self.tag_labels().swatch_border.to_color32()
}
pub fn slider_track_bg(&self) -> Color32 {
self.colors().slider_track_bg.to_color32()
}
pub fn slider_track_border(&self) -> Color32 {
self.colors().slider_track_border.to_color32()
}
pub fn slider_tick_mark_color(&self) -> Color32 {
self.colors().slider_tick_mark.to_color32()
}
pub fn slider_thumb_bg(&self) -> Color32 {
self.colors().slider_thumb_bg.to_color32()
}
pub fn slider_thumb_border_color(&self) -> Color32 {
self.colors().slider_thumb_border.to_color32()
}
pub fn table_action_bar_border(&self) -> Color32 {
self.colors().box_border.to_color32()
}
pub fn segmented_small_square_active_bg(&self) -> Color32 {
self.colors().segmented_small_square_active_bg.to_color32()
}
pub fn segmented_small_square_inactive_bg(&self) -> Color32 {
self.colors().segmented_small_square_inactive_bg.to_color32()
}
pub fn popover_background(&self) -> Color32 {
self.colors().popover_background.to_color32()
}
pub fn popover_border(&self) -> Color32 {
self.colors().popover_border.to_color32()
}
}