Crate egui_theme_switch
source ·Expand description
A very pretty theme switch widget for your egui app. It allows you to choose between dark, light and follow system.
§Example
use egui_theme_switch::{ThemeSwitch, ThemePreference};
let mut preference = ThemePreference::System;
if ui.add(ThemeSwitch::new(&mut preference)).changed() {
// ...
}§Available Features
accesskit— Integrate with accesskit (enabled by default).
Structs§
- A switch control that allows choosing the theme preference (dark, light or follow system).
Enums§
- The user’s theme preference.