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§
- Shade
Direction - Direction for
Hsla::shades.
Constants§
- TINT_1
- Should work for most images that are shown on a very dark background
Functions§
- frame
- Paint
framewith hover/click fills fromvisuals. - frame_
palette_ changed trueif any frame-related palette slot changed.- remap_
frame - Remap fill, stroke, and shadow colors on an
egui::Framewhen they still match the previous palette. - remap_
frame_ visuals - Remap hover/click fills on
FrameVisualswhen they still match the previous palette. - remap_
if_ eq - Write
newintoslotonly if it still equalsold. - theme_
switcher - Show a ComboBox to change the theme