mirror of
https://github.com/emilk/egui.git
synced 2026-09-02 06:40:06 -04:00
Rename Context::style to global_style; avoid confusion w/ Ui::style (#7772)
This is important after * https://github.com/emilk/egui/pull/7770
This commit is contained in:
@@ -406,7 +406,7 @@ impl WrapApp {
|
||||
|
||||
if is_mobile(ui.ctx()) {
|
||||
ui.menu_button("💻 Backend", |ui| {
|
||||
ui.set_style(ui.ctx().style()); // ignore the "menu" style set by `menu_button`.
|
||||
ui.set_style(ui.global_style()); // ignore the "menu" style set by `menu_button`.
|
||||
self.backend_panel_contents(ui, frame, cmd);
|
||||
});
|
||||
} else {
|
||||
@@ -474,7 +474,7 @@ impl WrapApp {
|
||||
content_rect.center(),
|
||||
Align2::CENTER_CENTER,
|
||||
text,
|
||||
TextStyle::Heading.resolve(&ctx.style()),
|
||||
TextStyle::Heading.resolve(&ctx.global_style()),
|
||||
Color32::WHITE,
|
||||
);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user