Things idk
This commit is contained in:
@@ -32,13 +32,19 @@ impl CompUi for SongListNav {
|
||||
}
|
||||
|
||||
ui.with_layout(egui::Layout::right_to_left(egui::Align::RIGHT), |ui| {
|
||||
let img = ui.add(
|
||||
let download_all = ui.add(
|
||||
egui::Image::new(crate::data::DL_ICON)
|
||||
.tint(theme.accent_color)
|
||||
.sense(egui::Sense::click())
|
||||
.fit_to_exact_size(egui::Vec2::new(16.0, 16.0))
|
||||
);
|
||||
if img.clicked() {
|
||||
let add_song = ui.add(
|
||||
egui::Image::new(crate::data::PLUS_ICON)
|
||||
.tint(theme.accent_color)
|
||||
.sense(egui::Sense::click())
|
||||
.fit_to_exact_size(egui::Vec2::new(16.0, 16.0))
|
||||
);
|
||||
if download_all.clicked() {
|
||||
let songs: Vec<_>;
|
||||
match pid {
|
||||
Some(pid) => {
|
||||
@@ -60,6 +66,10 @@ impl CompUi for SongListNav {
|
||||
ToastType::Info
|
||||
);
|
||||
}
|
||||
|
||||
if add_song.clicked() {
|
||||
todo!()
|
||||
}
|
||||
});
|
||||
});
|
||||
Ok(())
|
||||
|
||||
@@ -11,6 +11,8 @@ pub const DL_ICON: egui::ImageSource = egui::include_image!("../../assets/downl
|
||||
pub const INFO_ICON: egui::ImageSource = egui::include_image!("../../assets/info.svg");
|
||||
pub const WARN_ICON: egui::ImageSource = egui::include_image!("../../assets/warning.svg");
|
||||
pub const ERROR_ICON: egui::ImageSource = egui::include_image!("../../assets/error.svg");
|
||||
pub const PLUS_ICON: egui::ImageSource = egui::include_image!("../../assets/plus.svg");
|
||||
pub const BURGER_ICON: egui::ImageSource = egui::include_image!("../../assets/burger_menu.svg");
|
||||
|
||||
|
||||
pub const C_WARN: egui::Color32 = egui::Color32::from_rgb(255, 183, 0); // #ffb700
|
||||
|
||||
Reference in New Issue
Block a user