We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 2ce499e commit 4d77885Copy full SHA for 4d77885
1 file changed
apps/plumeimpactor/src/frame.rs
@@ -35,11 +35,16 @@ pub struct PlumeFrame {
35
pub account_dialog: AccountDialog,
36
}
37
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
+
43
impl PlumeFrame {
44
pub fn new() -> Self {
45
let frame = Frame::builder()
46
.with_title(APP_NAME)
- .with_size(Size::new(530, 410))
47
+ .with_size(Size::new(WINDOW_SIZE.0, WINDOW_SIZE.1))
48
.with_style(FrameStyle::CloseBox | FrameStyle::MinimizeBox | FrameStyle::Caption | FrameStyle::SystemMenu)
49
.build();
50
0 commit comments