move theme refresh button to debug menu

This commit is contained in:
2025-09-04 06:21:27 +01:00
parent e848ca8d79
commit b8c444dc5b
2 changed files with 6 additions and 7 deletions
-7
View File
@@ -205,13 +205,6 @@ impl App {
if selection != self.settings.theme { if selection != self.settings.theme {
catppuccin_egui::set_theme(ctx, self.settings.theme.into()); 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"); ui.checkbox(&mut self.settings.start_elevated, "Always start elevated");
} }
+6
View File
@@ -42,6 +42,12 @@ impl App {
ui.build_menu(&mut self.game_networking.blocked_status); 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.collapsing("anti afk", |ui| {
ui.label(format!( ui.label(format!(