From 6f237077e3d102ecdd8877d88331dc8d4f1eb161 Mon Sep 17 00:00:00 2001 From: Alain Emilia Anna Zscheile Date: Sat, 5 Oct 2024 23:56:48 +0200 Subject: [PATCH] fix(egui/MenuBar): fix deprecation warning about theme buttons warning: use of deprecated function `egui::global_dark_light_mode_buttons`: Use global_theme_preference_buttons instead --> src/bin/topola-egui/menu_bar.rs:242:36 | 242 | egui::widgets::global_dark_light_mode_buttons(ui); | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ | = note: `#[warn(deprecated)]` on by default --- src/bin/topola-egui/menu_bar.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/bin/topola-egui/menu_bar.rs b/src/bin/topola-egui/menu_bar.rs index dab8ad5..ee67dc8 100644 --- a/src/bin/topola-egui/menu_bar.rs +++ b/src/bin/topola-egui/menu_bar.rs @@ -239,7 +239,7 @@ impl MenuBar { ui.separator(); - egui::widgets::global_dark_light_mode_buttons(ui); + egui::widgets::global_theme_preference_buttons(ui); }); if open_design.consume_key_triggered(ctx, ui) {