pub const fn visualize(self, settings: &layout::GeneralSettings) -> Color {
        match self {
            SemanticColor::Default => settings.text_color,
            SemanticColor::AheadGainingTime => settings.ahead_gaining_time_color,
            SemanticColor::AheadLosingTime => settings.ahead_losing_time_color,
            SemanticColor::BehindLosingTime => settings.behind_losing_time_color,
            SemanticColor::BehindGainingTime => settings.behind_gaining_time_color,
            SemanticColor::BestSegment => settings.best_segment_color,
            SemanticColor::NotRunning => settings.not_running_color,
            SemanticColor::Paused => settings.paused_color,
            SemanticColor::PersonalBest => settings.personal_best_color,
        }
    }
/// The General Settings store actual Color values for each of the different
/// events. Using this method, you can use these to convert a Semantic Color
/// to an actual Color.
The General Settings store actual Color values for each of the different
events. Using this method, you can use these to convert a Semantic Color
to an actual Color.
The General Settings store actual Color values for each of the different events . Using this method you can use these to convert a Semantic Color to an actual Color .
pub const fn visualize(self, settings: &layout::GeneralSettings) -> Color {
        match self {
            SemanticColor::Default => settings.text_color,
            SemanticColor::AheadGainingTime => settings.ahead_gaining_time_color,
            SemanticColor::AheadLosingTime => settings.ahead_losing_time_color,
            SemanticColor::BehindLosingTime => settings.behind_losing_time_color,
            SemanticColor::BehindGainingTime => settings.behind_gaining_time_color,
            SemanticColor::BestSegment => settings.best_segment_color,
            SemanticColor::NotRunning => settings.not_running_color,
            SemanticColor::Paused => settings.paused_color,
            SemanticColor::PersonalBest => settings.personal_best_color,
        }
    }
pub const fn visualize ( self , settings : & layout :: GeneralSettings ) -> Color { match self { SemanticColor :: Default => settings . text_color , SemanticColor :: AheadGainingTime => settings . ahead_gaining_time_color , SemanticColor :: AheadLosingTime => settings . ahead_losing_time_color , SemanticColor :: BehindLosingTime => settings . behind_losing_time_color , SemanticColor :: BehindGainingTime => settings . behind_gaining_time_color , SemanticColor :: BestSegment => settings . best_segment_color , SemanticColor :: NotRunning => settings . not_running_color , SemanticColor :: Paused => settings . paused_color , SemanticColor :: PersonalBest => settings . personal_best_color , } }
The General Settings store actual Color values for each of the different
events.
The General Settings store actual Color values for each of the different events .
self
settings
&layout::GeneralSettings
self
settings
&layout::GeneralSettings