Skip to main content

Module utils

Module utils 

Source
Expand description

Helpers: theme switcher, HSLA colors, and interactive frames.

Structs§

Hsla
HSLA color used by the theme editor (hue 0..=360, s/l 0..=100, a 0..=1).

Enums§

ShadeDirection
Direction for Hsla::shades.

Constants§

TINT_1
Should work for most images that are shown on a very dark background

Functions§

frame
Paint frame with hover/click fills from visuals.
frame_palette_changed
true if any frame-related palette slot changed.
remap_frame
Remap fill, stroke, and shadow colors on an egui::Frame when they still match the previous palette.
remap_frame_visuals
Remap hover/click fills on FrameVisuals when they still match the previous palette.
remap_if_eq
Write new into slot only if it still equals old.
theme_switcher
Show a ComboBox to change the theme