zoom the ui in
This commit is contained in:
parent
adbe60a3d8
commit
454c92c077
1 changed files with 3 additions and 1 deletions
|
@ -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 }
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue