feat: add icon

This commit is contained in:
2026-05-07 08:02:19 +05:00
parent 04755cf05b
commit 7cc2b8542d
13 changed files with 12 additions and 0 deletions
+1
View File
@@ -1 +1,2 @@
/target
refs/browser-logos-75.0.1.zip
Binary file not shown.

After

Width:  |  Height:  |  Size: 2.4 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 3.1 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 4.1 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 3.9 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 5.8 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.1 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.9 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 3.1 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 4.5 KiB

+4
View File
@@ -5,18 +5,22 @@ slint::include_modules!();
fn init() -> State {
let browser_model = Rc::new(slint::VecModel::<BrowserConfig>::from(vec![
BrowserConfig {
icon: "chrome".into(),
path: "chrome.exe".into(),
flags: "profile 1".into(),
},
BrowserConfig {
icon: "chrome".into(),
path: "chrome.exe".into(),
flags: "profile 2".into(),
},
BrowserConfig {
icon: "chrome".into(),
path: "zen.exe".into(),
flags: "".into(),
},
BrowserConfig {
icon: "chrome".into(),
path: "edge.exe".into(),
flags: "".into(),
},
+6
View File
@@ -17,6 +17,12 @@ export component BrowserItem {
height: 80px;
padding: 8px;
alignment: space-between;
Image {
height: 48px;
width: 48px;
source: @image-url("../logos/firefox_48x48.png");
}
Text {
text: browser.path;
vertical_alignment: center;
+1
View File
@@ -1,6 +1,7 @@
@rust-attr(derive(serde::Serialize, serde::Deserialize))
export struct BrowserConfig {
icon: string,
path: string,
flags: string,
}