feat: use decorations in Linux, close #354

This commit is contained in:
GyDi 2023-01-12 00:42:33 +08:00
parent e7f294a065
commit fb7a36eb73
No known key found for this signature in database
GPG Key ID: 9C3AD40F1F99880A
2 changed files with 4 additions and 4 deletions

View File

@ -98,8 +98,8 @@ pub fn create_window(app_handle: &AppHandle) {
#[cfg(target_os = "linux")]
crate::log_err!(builder
.decorations(false)
.transparent(true)
.inner_size(800.0, 636.0)
.decorations(true)
.transparent(false)
.inner_size(800.0, 642.0)
.build());
}

View File

@ -130,7 +130,7 @@ const Layout = () => {
</div>
<div className="layout__right" data-windrag>
{OS !== "macos" && (
{OS === "windows" && (
<div className="the-bar">
<LayoutControl />
</div>