mirror of
https://github.com/emilk/egui.git
synced 2026-09-01 14:20:04 -04:00
Replace ui.ctx().foo with ui.foo in a few places (#7774)
Internal code cleanup after * https://github.com/emilk/egui/pull/7770
This commit is contained in:
@@ -122,7 +122,7 @@ impl AccessibilityInspectorPlugin {
|
||||
let node_response = ui.ctx().read_response(selected_node);
|
||||
|
||||
if let Some(widget_response) = node_response {
|
||||
ui.ctx().debug_painter().debug_rect(
|
||||
ui.debug_painter().debug_rect(
|
||||
widget_response.rect,
|
||||
ui.style_mut().visuals.selection.bg_fill,
|
||||
"",
|
||||
@@ -233,8 +233,7 @@ impl AccessibilityInspectorPlugin {
|
||||
let widget_response = ui.ctx().read_response(egui_node_id);
|
||||
|
||||
if let Some(widget_response) = widget_response {
|
||||
ui.ctx()
|
||||
.debug_painter()
|
||||
ui.debug_painter()
|
||||
.debug_rect(widget_response.rect, Color32::RED, "");
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user