Skip to content
Snippets Groups Projects
Commit 42de7b7a authored by Albin Heimerson's avatar Albin Heimerson
Browse files

Set light theme always on

Messing with plot colors as the theme changes with os/browser settings
shouldn't be too hard, but also not very important. For now set it
to always be light theme.
parent f44daed2
Branches
No related tags found
1 merge request!2Add functionality for AK
...@@ -20,6 +20,9 @@ trait CentralApp { ...@@ -20,6 +20,9 @@ trait CentralApp {
impl eframe::App for ControlApp { impl eframe::App for ControlApp {
fn update(&mut self, ctx: &egui::Context, _frame: &mut eframe::Frame) { fn update(&mut self, ctx: &egui::Context, _frame: &mut eframe::Frame) {
// Set light theme so we don't have to mess with colors for plots
ctx.set_visuals(egui::Visuals::light());
egui::TopBottomPanel::top("app_selection_panel").show(ctx, |ui| { egui::TopBottomPanel::top("app_selection_panel").show(ctx, |ui| {
if self.top_bar(ui) { if self.top_bar(ui) {
#[cfg(not(target_arch = "wasm32"))] // no quit on web pages! #[cfg(not(target_arch = "wasm32"))] // no quit on web pages!
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment