zoom the ui in

This commit is contained in:
Nicole Tietz-Sokolskaya 2025-03-25 19:18:40 -04:00
parent adbe60a3d8
commit 454c92c077

View file

@ -133,7 +133,7 @@ struct MidiKeysApp {
}
impl MidiKeysApp {
fn new(_cc: &eframe::CreationContext<'_>, state: DisplayState) -> Self {
fn new(cc: &eframe::CreationContext<'_>, state: DisplayState) -> Self {
// this is where to hook in for customizing egui, like fonts and visuals.
let midi_in: MidiInput =
@ -141,6 +141,8 @@ impl MidiKeysApp {
let ports = vec![];
let messages = vec![];
cc.egui_ctx.set_zoom_factor(1.25);
MidiKeysApp { midi_in, ports, messages, state, first_render: true }
}