goosemusic 1.2.0

A music player with YouTube search, local playback, and OS media controls
use iced::widget::svg;

use crate::theme::AppTheme;

pub const ADD_ICON: &[u8] = include_bytes!("../icons/add.svg");
pub const ARTIST_ICON: &[u8] = include_bytes!("../icons/artist.svg");
pub const BACK_ICON: &[u8] = include_bytes!("../icons/back.svg");
pub const BOOKMARK_ICON: &[u8] = include_bytes!("../icons/bookmark.svg");
pub const CACHE_ICON: &[u8] = include_bytes!("../icons/cache.svg");
pub const CHEVRON_UP_ICON: &[u8] = include_bytes!("../icons/chevron-up.svg");
pub const CHEVRON_DOWN_ICON: &[u8] = include_bytes!("../icons/chevron-down.svg");
pub const CHEVRON_RIGHT_ICON: &[u8] = include_bytes!("../icons/chevron-right.svg");
pub const CLOSE_ICON: &[u8] = include_bytes!("../icons/close.svg");
pub const DELETE_ICON: &[u8] = include_bytes!("../icons/delete.svg");
pub const DOWNLOAD_ICON: &[u8] = include_bytes!("../icons/download.svg");
pub const EDIT_ICON: &[u8] = include_bytes!("../icons/edit.svg");
pub const FOLDER_ICON: &[u8] = include_bytes!("../icons/folder.svg");
pub const FORWARD_ICON: &[u8] = include_bytes!("../icons/forward.svg");
pub const LYRICS_ICON: &[u8] = include_bytes!("../icons/lyrics.svg");
pub const MUSIC_ICON: &[u8] = include_bytes!("../icons/music.svg");
pub const PAUSE_ICON: &[u8] = include_bytes!("../icons/pause.svg");
pub const PLAY_ICON: &[u8] = include_bytes!("../icons/play.svg");
pub const QUEUE_ICON: &[u8] = include_bytes!("../icons/queue.svg");
pub const RADIO_ICON: &[u8] = include_bytes!("../icons/radio.svg");
pub const REPEAT_ICON: &[u8] = include_bytes!("../icons/repeat.svg");
pub const SEARCH_ICON: &[u8] = include_bytes!("../icons/search.svg");
pub const SETTINGS_ICON: &[u8] = include_bytes!("../icons/settings.svg");
pub const SKIP_BACK_ICON: &[u8] = include_bytes!("../icons/skip-back.svg");
pub const SKIP_FORWARD_ICON: &[u8] = include_bytes!("../icons/skip-forward.svg");
pub const VOLUME_ICON: &[u8] = include_bytes!("../icons/volume.svg");
pub const LOGO_ICON: &[u8] = include_bytes!("../icons/logo.svg");

pub fn icon(icon_data: &'static [u8], size: f32) -> svg::Svg<'static, AppTheme> {
    svg::Svg::new(svg::Handle::from_memory(icon_data))
        .width(size)
        .height(size)
}