From b8c444dc5b6a87442f0f4f4a6290f6f962246b99 Mon Sep 17 00:00:00 2001 From: futile Date: Thu, 4 Sep 2025 06:21:27 +0100 Subject: [PATCH] move theme refresh button to debug menu --- src/gui/app.rs | 7 ------- src/gui/debug.rs | 6 ++++++ 2 files changed, 6 insertions(+), 7 deletions(-) diff --git a/src/gui/app.rs b/src/gui/app.rs index 8cd54fb..c277724 100644 --- a/src/gui/app.rs +++ b/src/gui/app.rs @@ -205,13 +205,6 @@ impl App { if selection != self.settings.theme { catppuccin_egui::set_theme(ctx, self.settings.theme.into()); } - if ui - .add_visible(self.settings.theme == Theme::Auto, egui::Button::new("⟲")) - .on_hover_text("Refresh theme") - .clicked() - { - catppuccin_egui::set_theme(ctx, self.settings.theme.into()); - } }); ui.checkbox(&mut self.settings.start_elevated, "Always start elevated"); } diff --git a/src/gui/debug.rs b/src/gui/debug.rs index 300892b..5d549fe 100644 --- a/src/gui/debug.rs +++ b/src/gui/debug.rs @@ -42,6 +42,12 @@ impl App { ui.build_menu(&mut self.game_networking.blocked_status); }); }); + if ui + .add(egui::Button::new("force refresh theme")) + .clicked() + { + catppuccin_egui::set_theme(ui.ctx(), self.settings.theme.into()); + } }); ui.collapsing("anti afk", |ui| { ui.label(format!(