Fix icon RGBA conversion, add no-decorations option, and add KDE screenshots

This commit is contained in:
Sebastian Palencsar
2026-02-23 09:05:14 +01:00
parent f5c8f71095
commit 6b9e73cc9d
5 changed files with 23 additions and 0 deletions

View File

@@ -39,6 +39,10 @@ enum Commands {
#[arg(short, long)]
fullscreen: bool,
/// Disable native window decorations (frameless window)
#[arg(long)]
no_decorations: bool,
/// Set a custom User-Agent string for the webview
#[arg(short = 'A', long)]
user_agent: Option<String>,
@@ -161,6 +165,7 @@ fn generate_project(
name: &str,
icon: Option<&String>,
fullscreen: bool,
no_decorations: bool,
user_agent: Option<&String>,
width: Option<f64>,
height: Option<f64>,
@@ -233,6 +238,9 @@ fn main() {
if fullscreen {
window_config.insert("fullscreen".to_string(), json!(true));
}
if no_decorations {
window_config.insert("decorations".to_string(), json!(false));
}
if let Some(ua) = user_agent {
window_config.insert("userAgent".to_string(), json!(ua));
}
@@ -476,6 +484,7 @@ fn main() -> Result<()> {
name,
icon,
fullscreen,
no_decorations,
user_agent,
width,
height,
@@ -491,6 +500,7 @@ fn main() -> Result<()> {
&name,
icon.as_ref(),
fullscreen,
no_decorations,
user_agent.as_ref(),
width,
height,