Add trash outline icon for updated queue coloring

This commit is contained in:
Connor Wittman 2024-02-23 19:21:45 -05:00
parent e0552269fb
commit e6a68f4f40
3 changed files with 14 additions and 4 deletions

10
Cargo.lock generated
View File

@ -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"

View File

@ -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 }

View File

@ -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<PlayStatus>) {
if index == 0 {
@ -64,7 +64,7 @@ pub fn Queue(status: RwSignal<PlayStatus>) -> impl IntoView {
<p>Playing</p>
}>
<button on:click=move |_| remove_song(index) on:mousedown=prevent_focus>
<Icon class="remove-song" width=RM_BTN_SIZE height=RM_BTN_SIZE icon=Icon::from(BsTrashFill) />
<Icon class="remove-song" width=RM_BTN_SIZE height=RM_BTN_SIZE icon=Icon::from(CgTrash) />
</button>
</Show>
</div>