Skip to content

Commit d4a0393

Browse files
fix: try fix windows
1 parent 6275b4b commit d4a0393

File tree

3 files changed

+5
-2
lines changed

3 files changed

+5
-2
lines changed

resources/dist.rc

49 Bytes
Binary file not shown.

src/celemod-ui/src/index.html

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -65,8 +65,11 @@
6565
<link rel="stylesheet" href="./index.scss" />
6666
<link rel="stylesheet" href="i2.css" />
6767
<script>
68-
if (env.PLATFORM !== "Windows")
68+
if (env.PLATFORM !== "Windows") {
6969
document.querySelector(".win-ctrl").style.display = "none";
70+
} else {
71+
document.body.parentElement.setAttribute('window-frame', 'solid');
72+
}
7073

7174
Window.this.isResizable = true;
7275
window.isMaximizable = true;

src/main.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1234,7 +1234,7 @@ fn main() {
12341234

12351235
#[cfg(target_os = "windows")]
12361236
{
1237-
builder = builder.glassy().alpha();
1237+
builder = builder.glassy().alpha().closeable();
12381238
}
12391239

12401240
let mut frame = builder.create();

0 commit comments

Comments
 (0)