From e6a68f4f4080825732215da4fbe471e1741919ac Mon Sep 17 00:00:00 2001 From: ecco257 <72117210+ecco257@users.noreply.github.com> Date: Fri, 23 Feb 2024 19:21:45 -0500 Subject: [PATCH] Add trash outline icon for updated queue coloring --- Cargo.lock | 10 ++++++++++ Cargo.toml | 2 +- src/queue.rs | 6 +++--- 3 files changed, 14 insertions(+), 4 deletions(-) diff --git a/Cargo.lock b/Cargo.lock index 75074ee..59737e0 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -1140,6 +1140,7 @@ source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "f41f2deec9249d16ef6b1a8442fbe16013f67053797052aa0b7d2f5ebd0f0098" dependencies = [ "icondata_bs", + "icondata_cg", "icondata_core", "icondata_ri", ] @@ -1153,6 +1154,15 @@ dependencies = [ "icondata_core", ] +[[package]] +name = "icondata_cg" +version = "0.0.8" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "b90cda35aa524761219a8dbd006513734e08a4cf92ee05820b01749e76435462" +dependencies = [ + "icondata_core", +] + [[package]] name = "icondata_core" version = "0.0.2" diff --git a/Cargo.toml b/Cargo.toml index 0f90848..5115825 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -24,7 +24,7 @@ leptos_icons = { version = "0.1.0", default_features = false, features = [ "BsSkipStartFill", "BsSkipEndFill", "RiPlayListMediaFill", - "BsTrashFill", + "CgTrash", ] } dotenv = { version = "0.15.0", optional = true } diesel = { version = "2.1.4", features = ["postgres", "r2d2"], optional = true } diff --git a/src/queue.rs b/src/queue.rs index 2027169..f24a652 100644 --- a/src/queue.rs +++ b/src/queue.rs @@ -3,9 +3,9 @@ use leptos::ev::MouseEvent; use leptos::leptos_dom::*; use leptos::*; use leptos_icons::*; -use leptos_icons::BsIcon::*; +use leptos_icons::CgIcon::*; -const RM_BTN_SIZE: &str = "2rem"; +const RM_BTN_SIZE: &str = "2.5rem"; fn remove_song_fn(index: usize, status: RwSignal) { if index == 0 { @@ -64,7 +64,7 @@ pub fn Queue(status: RwSignal) -> impl IntoView {

Playing

}>