feat: add linux support (untested)

This commit is contained in:
Xinrea
2024-10-18 13:30:27 +08:00
parent 0d6e6cc289
commit bc9fb48f18
3 changed files with 24 additions and 5 deletions

View File

@@ -614,7 +614,12 @@ async fn open_live(state: tauri::State<'_, State>, room_id: u64, ts: u64) -> Res
log::error!("live window build failed: {}", e);
}
}
#[cfg(target_os = "linux")]
{
if let Err(e) = builder.decorations(true).build() {
log::error!("live window build failed: {}", e);
}
}
Ok(())
}

View File

@@ -0,0 +1,17 @@
{
"app": {
"windows": [
{
"label": "main",
"fullscreen": false,
"resizable": true,
"title": "BiliBili ShadowReplay",
"width": 1300,
"height": 600,
"transparent": false,
"decorations": true,
"theme": "Light"
}
]
}
}

View File

@@ -10,10 +10,7 @@
"height": 600,
"transparent": false,
"decorations": true,
"theme": "Light",
"windowEffects": {
"effects": ["tabbed", "mica"]
}
"theme": "Light"
}
]
}