functora-egui 0.2.0

shadcn/ui-inspired widget library for egui - buttons, inputs, selects, dialogs, and 70+ more components with light/dark theming
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
//! Maps slider state to concrete style values.

/// Resolves slider colors based on theme.
#[must_use]
pub fn resolve_slider_style(
    theme: &crate::theme::shadcn_theme::ShadcnTheme,
) -> super::resolved_slider_style::ResolvedSliderStyle {
    super::resolved_slider_style::ResolvedSliderStyle {
        track_color: theme.muted,
        fill_color: theme.primary,
        handle_fill: theme.background,
        handle_border: theme.ring, // Nova: border-ring on thumb
    }
}