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::ThemePreference;
use egui_theme_switch::global_theme_switch;

global_theme_switch(ui);

Structs§

ThemeSwitch
A switch control that allows choosing the theme preference (dark, light or follow system).

Functions§

global_theme_switch
A switch control to configure the global theme preference.