Add trash outline icon for updated queue coloring

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

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>