Skip to content

Commit e3c1d7a

Browse files
Add icons
1 parent 694be5b commit e3c1d7a

File tree

6 files changed

+4
-0
lines changed

6 files changed

+4
-0
lines changed

Cargo.toml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,4 +15,5 @@ sysinfo = "0.36.0"
1515
windows-sys = { version = "0.52", features = ["Win32_System_Threading"] }
1616

1717
[build-dependencies]
18+
embed-resource = "2"
1819
slint-build = "1.12.1"

build.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
11
fn main() {
22
slint_build::compile("ui/mainwindow.slint").unwrap();
3+
embed_resource::compile("src/icon.rc", &[] as &[&str]);
34
}

src/icon.rc

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
1 ICON "media/icon.ico"

src/media/icon.ico

45.2 KB
Binary file not shown.

ui/mainwindow.slint

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,7 @@ export component MainWindow inherits Window {
2323

2424
background: #1e7696;
2525
title: "Github Game Status";
26+
icon: @image-url("media/icon.png");
2627

2728
VerticalBox {
2829
spacing: 50px;

ui/media/icon.png

5.31 KB
Loading

0 commit comments

Comments
 (0)