Skip to content

Commit

Permalink
Home icon
Browse files Browse the repository at this point in the history
  • Loading branch information
Samuel Oldham committed Sep 23, 2024
1 parent 08983dd commit cc3eacb
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
2 changes: 1 addition & 1 deletion psst-gui/src/ui/playback.rs
Original file line number Diff line number Diff line change
Expand Up @@ -173,7 +173,7 @@ fn cover_widget(size: f64) -> impl Widget<NowPlaying> {
fn playback_origin_icon(origin: &PlaybackOrigin) -> &'static SvgIcon {
match origin {
// TODO add home widget
PlaybackOrigin::Home => &icons::PODCAST,
PlaybackOrigin::Home => &icons::HOME,
PlaybackOrigin::Library => &icons::HEART,
PlaybackOrigin::Album { .. } => &icons::ALBUM,
PlaybackOrigin::Artist { .. } => &icons::ARTIST,
Expand Down
6 changes: 6 additions & 0 deletions psst-gui/src/widget/icons.rs
Original file line number Diff line number Diff line change
Expand Up @@ -131,6 +131,12 @@ pub static PLAYLIST: SvgIcon = SvgIcon {
svg_size: Size::new(22.0, 22.0),
op: PaintOp::Fill,
};
// SFSymbols - house
pub static HOME: SvgIcon = SvgIcon {
svg_path: "M17.2 41.5H8.9c-2 0-2.8-.8-2.8-2.8V16l16-14.6c.3-.3.6-.5 1-.5s.7.2 1 .5L40 16V38.8c0 2-.8 2.8-2.8 2.8H28.9V26.2c0-.7-.5-1.2-1.2-1.2H18.4c-.7 0-1.2.5-1.2 1.2Zm20.1 1.2c2.5 0 3.7-1.3 3.7-3.7V17l4.1 3.7c.2.1.3.2.5.2.3 0 .5-.2.5-.4s0-.3-.2-.4L24.9.7c-.5-.5-1.1-.8-1.8-.8s-1.3.3-1.8.8L8.6 12.4V.6c0-.5-.4-.8-.8-.8H6.9c-.5 0-.8.3-.8.8v14l-6 5.5c-.1.1-.2.2-.2.4s.2.4.5.4.4-.1.5-.2L5 16.9v22c0 2.4 1.3 3.7 3.7 3.7H37.4Z",
svg_size: Size::new(46.0, 46.0),
op: PaintOp::Fill,
};
// SF Pro Regular - mic.circle
pub static PODCAST: SvgIcon = SvgIcon {
svg_path: "M10.9957 20C15.9285 20 20 15.9265 20 11C20 6.0735 15.9198 2 10.987 2C6.06283 2 2 6.0735 2 11C2 15.9265 6.07153 20 10.9957 20ZM10.9957 18.207C7.00242 18.207 3.80957 14.9952 3.80957 11C3.80957 7.00484 7.00242 3.80174 10.987 3.80174C14.9802 3.80174 18.1904 7.00484 18.1991 11C18.2078 14.9952 14.9889 18.207 10.9957 18.207ZM10.9957 12.5928C11.8395 12.5928 12.4746 11.9313 12.4746 11.0348V7.42263C12.4746 6.51741 11.8395 5.8646 10.9957 5.8646C10.1431 5.8646 9.50797 6.51741 9.50797 7.42263V11.0348C9.50797 11.9313 10.1431 12.5928 10.9957 12.5928ZM8.82939 16.1789H13.1619C13.4316 16.1789 13.6752 15.9439 13.6752 15.6741C13.6752 15.3956 13.4403 15.1605 13.1619 15.1605H11.5002V14.3598C13.2228 14.1509 14.4234 12.854 14.4234 11.087V10.0077C14.4234 9.73791 14.1885 9.51161 13.9188 9.51161C13.6404 9.51161 13.4055 9.73791 13.4055 10.0077V11.0783C13.4055 12.4536 12.3876 13.4371 10.987 13.4371C9.59497 13.4371 8.57709 12.4536 8.57709 11.0783V10.0077C8.57709 9.73791 8.34219 9.51161 8.0638 9.51161C7.7941 9.51161 7.55921 9.73791 7.55921 10.0077V11.087C7.55921 12.854 8.76849 14.1596 10.4911 14.3598V15.1605H8.82939C8.55099 15.1605 8.30739 15.3956 8.30739 15.6741C8.30739 15.9526 8.55099 16.1789 8.82939 16.1789Z",
Expand Down

0 comments on commit cc3eacb

Please sign in to comment.