1
0
mirror of https://github.com/emilk/egui.git synced 2026-08-29 04:40:03 -04:00

Add a docstring

This commit is contained in:
Emil Ernerfeldt
2026-08-04 13:56:26 +02:00
parent 40c9441d5a
commit 3a584a620e

View File

@@ -11,6 +11,15 @@ use crate::{
},
};
/// The registry of [`StyleProvider`]s, one per [`WidgetStyle`] type.
///
/// Each widget asks this registry for the provider of its style type
/// (e.g. [`ButtonStyle`]), and that provider computes the final style from the
/// widget's classes and state.
///
/// A default provider is registered for every built-in style; register your
/// own with [`Context::add_widget_theme`](crate::Context::add_widget_theme) or
/// [`Context::replace_widget_theme`](crate::Context::replace_widget_theme).
pub struct Themes {
themes: IdTypeMap,
}