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