mirror of https://codeberg.org/topola/topola.git
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
This commit is contained in:
parent
04ab1ce69b
commit
6f237077e3
|
|
@ -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) {
|
||||
|
|
|
|||
Loading…
Reference in New Issue