move theme refresh button to debug menu
This commit is contained in:
@@ -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");
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -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!(
|
||||||
|
|||||||
Reference in New Issue
Block a user