H key -> toggle side panel

This commit is contained in:
Simon Gardling 2022-03-13 17:38:20 -04:00
parent 4a563f6cc9
commit 601e7d7f10

View File

@ -3,6 +3,7 @@ use crate::misc::{debug_log, log_helper, parse_value};
use crate::parsing::{process_func_str, test_func}; use crate::parsing::{process_func_str, test_func};
use const_format::formatc; use const_format::formatc;
use eframe::egui::Key;
use eframe::{egui, epi}; use eframe::{egui, epi};
use egui::plot::Plot; use egui::plot::Plot;
use egui::{ use egui::{
@ -512,6 +513,10 @@ impl epi::App for MathApp {
false => Visuals::light(), false => Visuals::light(),
}); });
self.settings
.show_side_panel
.bitxor_assign(ctx.input().key_down(Key::H));
ctx.set_fonts(FONT_DEFINITIONS.clone()); // Initialize fonts ctx.set_fonts(FONT_DEFINITIONS.clone()); // Initialize fonts
// Creates Top bar that contains some general options // Creates Top bar that contains some general options