feat: add icon
@@ -1 +1,2 @@
|
||||
/target
|
||||
refs/browser-logos-75.0.1.zip
|
||||
|
||||
|
After Width: | Height: | Size: 2.4 KiB |
|
After Width: | Height: | Size: 3.1 KiB |
|
After Width: | Height: | Size: 4.1 KiB |
|
After Width: | Height: | Size: 3.9 KiB |
|
After Width: | Height: | Size: 5.8 KiB |
|
After Width: | Height: | Size: 2.1 KiB |
|
After Width: | Height: | Size: 2.9 KiB |
|
After Width: | Height: | Size: 3.1 KiB |
|
After Width: | Height: | Size: 4.5 KiB |
@@ -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(),
|
||||
},
|
||||
|
||||
@@ -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,6 +1,7 @@
|
||||
|
||||
@rust-attr(derive(serde::Serialize, serde::Deserialize))
|
||||
export struct BrowserConfig {
|
||||
icon: string,
|
||||
path: string,
|
||||
flags: string,
|
||||
}
|
||||
|
||||