Skip to content

Commit

Permalink
chore: Set default window size to 862x562
Browse files Browse the repository at this point in the history
  • Loading branch information
hamflx committed Apr 12, 2022
1 parent 35acc0d commit 3a8bac7
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions packages/huawei-pc-manager-bootstrap/src/app.rs
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ use std::thread;
use common::common::InjectOptions;
use common::communication::InterProcessComServer;
use eframe::egui::FontDefinitions;
use eframe::epaint::FontFamily;
use eframe::epaint::{vec2, FontFamily};
use eframe::{egui, epi};
use log::{error, info, warn, LevelFilter};
use rfd::FileDialog;
Expand Down Expand Up @@ -318,9 +318,10 @@ impl epi::App for BootstrapApp {
fn setup(
&mut self,
ctx: &egui::Context,
_frame: &epi::Frame,
frame: &epi::Frame,
_storage: Option<&dyn epi::Storage>,
) {
frame.set_window_size(vec2(862f32, 562f32));
let mut fonts = FontDefinitions::default();
let sys_font = std::fs::read("c:/Windows/Fonts/msyh.ttc").unwrap();
fonts
Expand Down

0 comments on commit 3a8bac7

Please sign in to comment.