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

Make DefaultStyle pub

This commit is contained in:
Lucas Meurer
2026-08-21 12:25:46 +02:00
parent c4260edc9c
commit 91368e76e4
2 changed files with 4 additions and 2 deletions

View File

@@ -10,8 +10,10 @@ use crate::{
},
};
/// The default [`StyleProvider`], implementing the default egui look based on
/// [`crate::style::WidgetVisuals`].
#[derive(Debug, Clone)]
pub(super) struct DefaultStyle;
pub struct DefaultStyle;
impl StyleProvider<BaseStyle> for DefaultStyle {
fn style(&mut self, modifiers: &StyleArgs<'_>) -> BaseStyle {

View File

@@ -8,7 +8,7 @@ mod default_style;
mod style_provider;
mod themes;
pub use self::{style_provider::StyleProvider, themes::Themes};
pub use self::{style_provider::StyleProvider, themes::Themes, default_style::DefaultStyle};
use crate::{
Ui,