LING71671/moon-egui/src/color does not have a README file

    Color

    pub struct Color {
    r : Int
    g : Int
    b : Int
    a : Int
    } derive(Default, Eq,
    Debug
    )

    Color::accent_deep

    fn Color::accent_deep() -> Color

    Deepest accent step, used for borders under load.

    Color::accent_highlight

    fn Color::accent_highlight() -> Color

    Translucent light overlay for details drawn on top of an accent fill.

    Color::accent_hover

    fn Color::accent_hover() -> Color

    Color::accent_pressed

    fn Color::accent_pressed() -> Color

    Color::accent_primary

    fn Color::accent_primary() -> Color

    Color::accent_soft

    fn Color::accent_soft() -> Color

    Translucent accent wash: focus rings and selection glows.

    Color::area_wash

    fn Color::area_wash(base : Color) -> Color

    Area wash overlay for charts and sparkline plots.

    Color::badge_danger_bg

    fn Color::badge_danger_bg() -> Color

    Color::badge_danger_border

    fn Color::badge_danger_border() -> Color

    Color::badge_danger_text

    fn Color::badge_danger_text() -> Color

    Color::badge_info_bg

    fn Color::badge_info_bg() -> Color

    Semantic badge wash backgrounds.

    Color::badge_info_border

    fn Color::badge_info_border() -> Color

    Color::badge_info_text

    fn Color::badge_info_text() -> Color

    Color::badge_success_bg

    fn Color::badge_success_bg() -> Color

    Color::badge_success_border

    fn Color::badge_success_border() -> Color

    Color::badge_success_text

    fn Color::badge_success_text() -> Color

    Color::badge_warning_bg

    fn Color::badge_warning_bg() -> Color

    Color::badge_warning_border

    fn Color::badge_warning_border() -> Color

    Color::badge_warning_text

    fn Color::badge_warning_text() -> Color

    Color::bg_active

    fn Color::bg_active() -> Color

    Pressed or more deeply recessed fill than bg_surface.

    Color::bg_app

    fn Color::bg_app() -> Color

    Studio Light porcelain design tokens.

    These are the single source of truth for the library's palette. Widgets must read colours from here instead of writing literal rgb() calls: the library previously carried a dark token set that only window() and progress_bar() consumed, while every other widget hard-coded light values of its own.

    Color::bg_hover

    fn Color::bg_hover() -> Color

    Color::bg_inverse

    fn Color::bg_inverse() -> Color

    Inverse surface for overlays that sit on top of light content: tooltips and floating hints, which pair with text_inverse.

    Color::bg_scrim

    fn Color::bg_scrim() -> Color

    Modal backdrop blocking layer.

    Color::bg_subtle

    fn Color::bg_subtle() -> Color

    Subtle wash: hover fills and row highlights.

    Color::bg_surface

    fn Color::bg_surface() -> Color

    Secondary surface: window headers, recessed grooves, badge rests.

    Color::bg_window

    fn Color::bg_window() -> Color

    Floating surface: window body, cards, popup panels.

    Color::black

    fn Color::black() -> Color

    Color::border_default

    fn Color::border_default() -> Color

    Default control outline.

    Color::border_focus

    fn Color::border_focus() -> Color

    Color::border_muted

    fn Color::border_muted() -> Color

    Hairline: internal dividers and control grooves.

    Color::border_strong

    fn Color::border_strong() -> Color

    Compressed or disabled outline.

    Color::border_track

    fn Color::border_track() -> Color

    Low-contrast border for recessed grooves and spinner tracks.

    Color::danger

    fn Color::danger() -> Color

    Color::danger_hover

    fn Color::danger_hover() -> Color

    Destructive action button hover fill.

    Color::fader_cap_line

    fn Color::fader_cap_line() -> Color

    Center indicator index line on the tactile fader cap.

    Color::fader_tick

    fn Color::fader_tick() -> Color

    Tick markings and decibel scale indicators along fader channels.

    Color::fader_track_bg

    fn Color::fader_track_bg() -> Color

    Dark recessed groove fill for vertical fader channels.

    Color::grid_line

    fn Color::grid_line() -> Color

    Subtle background grid or coordinate axis line.

    Color::guideline_wash

    fn Color::guideline_wash(base : Color) -> Color

    Guideline stroke wash for sparkline crosshairs.

    Color::hex

    fn Color::hex(code : Int) -> Color

    Color::hex_alpha

    fn Color::hex_alpha(code : Int) -> Color

    Color::lerp

    fn Color::lerp(self : Color, other : Color, t : Double) -> Color

    Color::mines_grid

    fn Color::mines_grid() -> Color

    The seam between two unopened tiles. Sits a step mines_ground darker (slate-400 -> between slate-400 and slate-500) so an untouched field reads as a grid of tiles instead of one flat slab: at the default zoom the field is almost entirely unopened, and with no seams at all it collapsed into a featureless grey mass that looked blank.

    Color::mines_ground

    fn Color::mines_ground() -> Color

    Minesweeper digging ground: the unopened earth of the demo board. Must read clearly darker than every surface so dug-out white pits contrast at a glance, even zoomed far out.

    Color::mines_ground_hover

    fn Color::mines_ground_hover() -> Color

    Unopened tile under the pointer. One step lighter than mines_ground (slate-300 vs slate-400) - deliberately not white, so "hovered earth" is never mistaken for a dug-out pit.

    Color::pill_active_bg

    fn Color::pill_active_bg() -> Color

    Surface fill for active segmented control pill.

    Color::pill_active_border

    fn Color::pill_active_border() -> Color

    Subtle border outline for active segmented control pill.

    Color::pill_ambient_shadow

    fn Color::pill_ambient_shadow() -> Color

    Ambient micro-shadow under active segmented pill.

    Color::plot_crosshair

    fn Color::plot_crosshair() -> Color

    Interactive coordinate crosshair or tracking indicator.

    Color::rgb

    fn Color::rgb(r : Int, g : Int, b : Int) -> Color

    Color::rgba

    fn Color::rgba(r : Int, g : Int, b : Int, a : Int) -> Color

    Color::shadow

    fn Color::shadow() -> Color

    Elevation shadow under floating surfaces.

    Color::shadow_ambient

    fn Color::shadow_ambient() -> Color

    Ambient soft elevation shadow.

    Color::shadow_key

    fn Color::shadow_key() -> Color

    Key directional elevation shadow.

    Color::sparkline_wash

    fn Color::sparkline_wash() -> Color

    Subtle background wash for sparkline graphs.

    Color::success

    fn Color::success() -> Color

    Color::table_row_selected

    fn Color::table_row_selected() -> Color

    Selection fill for active table row.

    Color::tag_close_hover

    fn Color::tag_close_hover() -> Color

    Subtle wash for tag and badge close button hover.

    Color::text_body

    fn Color::text_body() -> Color

    Color::text_disabled

    fn Color::text_disabled() -> Color

    Color::text_inverse

    fn Color::text_inverse() -> Color

    Text drawn on accent_primary or bg_inverse surfaces.

    Color::text_muted

    fn Color::text_muted() -> Color

    Color::text_primary

    fn Color::text_primary() -> Color

    Color::text_secondary

    fn Color::text_secondary() -> Color

    Color::text_strong

    fn Color::text_strong() -> Color

    Color::tooltip_bg

    fn Color::tooltip_bg() -> Color

    Semantic background fill for tooltip floating overlays.

    Color::tooltip_border

    fn Color::tooltip_border() -> Color

    Subtle boundary stroke for tooltip floating overlays.

    Color::transparent

    fn Color::transparent() -> Color

    Color::tree_row_selected

    fn Color::tree_row_selected() -> Color

    Selection wash for active tree view node.

    Color::warning

    fn Color::warning() -> Color

    Color::wash_hover

    fn Color::wash_hover() -> Color

    Subtle wash overlay for item hover.

    Color::white

    fn Color::white() -> Color

    Color::with_alpha

    fn Color::with_alpha(self : Color, a : Int) -> Color

    Source Files