H key -> toggle side panel
This commit is contained in:
parent
4a563f6cc9
commit
601e7d7f10
@ -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
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user