Skip to content

Commit 4d77885

Browse files
committed
Update frame.rs
1 parent 2ce499e commit 4d77885

1 file changed

Lines changed: 6 additions & 1 deletion

File tree

apps/plumeimpactor/src/frame.rs

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,11 +35,16 @@ pub struct PlumeFrame {
3535
pub account_dialog: AccountDialog,
3636
}
3737

38+
#[cfg(target_os = "linux")]
39+
const WINDOW_SIZE: (i32, i32) = (700, 660);
40+
#[cfg(not(target_os = "linux"))]
41+
const WINDOW_SIZE: (i32, i32) = (530, 410);
42+
3843
impl PlumeFrame {
3944
pub fn new() -> Self {
4045
let frame = Frame::builder()
4146
.with_title(APP_NAME)
42-
.with_size(Size::new(530, 410))
47+
.with_size(Size::new(WINDOW_SIZE.0, WINDOW_SIZE.1))
4348
.with_style(FrameStyle::CloseBox | FrameStyle::MinimizeBox | FrameStyle::Caption | FrameStyle::SystemMenu)
4449
.build();
4550

0 commit comments

Comments
 (0)