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

refactor: split theme_plugin.rs into a theme module

Move each type into its own file under `crates/egui/src/theme/`:
`StyleProvider`, `ThemeCache`, `DefaultStyle`, and `Themes`.
The module is renamed `egui::theme_plugin` -> `egui::theme`.

Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
This commit is contained in:
Emil Ernerfeldt
2026-08-04 13:51:45 +02:00
parent ae472fc1b1
commit 40c9441d5a
9 changed files with 193 additions and 168 deletions

View File

@@ -2,7 +2,7 @@ use std::collections::HashMap;
use eframe::egui::{
Color32,
theme_plugin::StyleProvider,
theme::StyleProvider,
widget_style::{BaseStyle, ButtonStyle, HasClasses as _, StyleArgs},
};
use logos::Logos;

View File

@@ -3,7 +3,7 @@
use eframe::egui::{
self, Button, Frame, Margin, Panel, UiBuilder,
theme_plugin::ThemeCache,
theme::ThemeCache,
widget_style::{ButtonStyle, HasClasses as _},
};