From 831c0903bc4b0adb730ce3b63e724f7916fe5c2e Mon Sep 17 00:00:00 2001 From: adrien <221212@umons.ac.be> Date: Wed, 8 Jul 2026 20:26:24 +0200 Subject: [PATCH] outdated comments --- crates/egui/src/context.rs | 4 ++-- crates/egui/src/theme_plugin.rs | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/crates/egui/src/context.rs b/crates/egui/src/context.rs index a9129e0b2..b722c0cfc 100644 --- a/crates/egui/src/context.rs +++ b/crates/egui/src/context.rs @@ -2031,7 +2031,7 @@ impl Context { } impl Context { - /// Register a [`ThemeStyle`](crate::theme_plugin::ThemeStyle) for the specified widget type. + /// Register a [`StyleProvider`](crate::theme_plugin::StyleProvider) for the specified widget type. /// /// A theme can only be added once for a specified widget. /// If a theme is already registered for this widget, this is a no-op (useful for `eframe::run_simple_native`). @@ -2044,7 +2044,7 @@ impl Context { self.write(|ctx| ctx.themes.register::(theme, false)); } - /// Register a [`ThemeStyle`](crate::theme_plugin::ThemeStyle) for the specified widget. + /// Register a [`StyleProvider`](crate::theme_plugin::StyleProvider) for the specified widget. /// /// Overwrite any theme already registered for the specified widget [`WidgetStyle`]. /// This allow to live edit a theme. diff --git a/crates/egui/src/theme_plugin.rs b/crates/egui/src/theme_plugin.rs index 3d55fd8a3..5d23d58eb 100644 --- a/crates/egui/src/theme_plugin.rs +++ b/crates/egui/src/theme_plugin.rs @@ -12,7 +12,7 @@ use crate::{ }, }; -/// A cache that can be implemented to reduce computation time of a `ThemeStyle` +/// A cache that can be implemented to reduce computation time of a `StyleProvider` #[derive(Debug, Default, Clone)] pub struct ThemeCache { cache: IdTypeMap, @@ -270,7 +270,7 @@ impl Default for Themes { } impl Themes { - /// Register a [`ThemeStyle`] for the specified widget [`WidgetStyle`] `S` + /// Register a [`StyleProvider`] for the specified widget [`WidgetStyle`] `S` /// /// Existing themes are overwritten if `force` is `true` or the new theme differs. pub(crate) fn register(