mirror of
https://github.com/emilk/egui.git
synced 2026-08-30 05:10:03 -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:
@@ -571,7 +571,7 @@ impl GlowWinitRunning<'_> {
|
||||
.options_mut(|opt| opt.begin_pass(&raw_input));
|
||||
let clear_color = self
|
||||
.app
|
||||
.clear_color(&self.integration.egui_ctx.style().visuals);
|
||||
.clear_color(&self.integration.egui_ctx.global_style().visuals);
|
||||
|
||||
let has_many_viewports = self.glutin.borrow().viewports.len() > 1;
|
||||
let clear_before_update = !has_many_viewports; // HACK: for some reason, an early clear doesn't "take" on Mac with multiple viewports.
|
||||
|
||||
@@ -690,7 +690,7 @@ impl WgpuWinitRunning<'_> {
|
||||
let vsync_secs = painter.paint_and_update_textures(
|
||||
viewport_id,
|
||||
pixels_per_point,
|
||||
app.clear_color(&egui_ctx.style().visuals),
|
||||
app.clear_color(&egui_ctx.global_style().visuals),
|
||||
&clipped_primitives,
|
||||
&textures_delta,
|
||||
screenshot_commands,
|
||||
|
||||
@@ -331,7 +331,7 @@ impl AppRunner {
|
||||
}
|
||||
|
||||
if let Err(err) = self.painter.paint_and_update_textures(
|
||||
self.app.clear_color(&self.egui_ctx.style().visuals),
|
||||
self.app.clear_color(&self.egui_ctx.global_style().visuals),
|
||||
&clipped_primitives,
|
||||
self.egui_ctx.pixels_per_point(),
|
||||
&textures_delta,
|
||||
|
||||
Reference in New Issue
Block a user