Skip to content

Commit

Permalink
Add --no-decorations option
Browse files Browse the repository at this point in the history
  • Loading branch information
Turbo87 committed Jan 30, 2025
1 parent 67e0ff4 commit 76e8c31
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion src/state.rs
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,10 @@ pub struct Options {
#[arg(long)]
fullscreen: bool,

/// Whether the window should have a border, a title bar, etc. or not
#[arg(long)]
no_decorations: bool,

/// Run in fullscreen
#[arg(long, default_value = "clubfridge.db?mode=rwc")]
database: SqliteConnectOptions,
Expand All @@ -36,7 +40,8 @@ impl ClubFridge {
application("ClubFridge neo", Self::update, Self::view)
.theme(Self::theme)
.subscription(Self::subscription)
.resizable(true)
.resizable(!options.no_decorations)
.decorations(!options.no_decorations)
.window_size((800., 480.))
.run_with(|| Self::new(options))
}
Expand Down

0 comments on commit 76e8c31

Please sign in to comment.