Skip to content

Commit

Permalink
Replace icon8 icons by freetouse ones
Browse files Browse the repository at this point in the history
  • Loading branch information
voodoos committed Apr 27, 2024
1 parent be0f00a commit feef5a8
Show file tree
Hide file tree
Showing 9 changed files with 6 additions and 6 deletions.
1 change: 0 additions & 1 deletion bin/main.ml
Original file line number Diff line number Diff line change
Expand Up @@ -100,7 +100,6 @@ let app _idb =
`R
(Elwd.div ~at:[ `P (At.class' (Jstr.v "playlist")) ] [ `R now_playing ]);
`R player_ui;
`P (El.div [ El.txt' "icons by icons8" ]);
]

let is_storage_persistent =
Expand Down
4 changes: 2 additions & 2 deletions bin/ui_playlist.ml
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ let make ~reset_playlist ~fetch (view : (Db.View.t, 'a) Fut.result Lwd.t) =
let connexion : DS.connexion = List.assq server_id servers in
Printf.sprintf "%s/Items/%s/Images/Primary?width=50" connexion.base_url
item_id
with Not_found -> "error-globe-64.png"
with Not_found -> "server-error.png"
in
At.src (Jstr.v url)
in
Expand All @@ -48,7 +48,7 @@ let make ~reset_playlist ~fetch (view : (Db.View.t, 'a) Fut.result Lwd.t) =
let img_url =
match (image_blur_hashes, album_id) with
| { primary = None }, _ | _, None ->
Lwd.return (At.src (Jstr.v "music-50.png"))
Lwd.return (At.src (Jstr.v "track.png"))
| _, Some id -> Lwd.return (img_url server_id id)
in
let status =
Expand Down
7 changes: 4 additions & 3 deletions web/app.css
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ body {
box-sizing: border-box;

grid-template-columns: 2fr 1fr;
grid-template-rows: 5rem 1fr 2rem 1rem;
grid-template-rows: 5rem 1fr 2rem;

gap: 1.5rem;
padding: 1.5rem;
Expand All @@ -22,7 +22,8 @@ body {
width: 100%;
height: 100%;

& .item-list, & .playlist {
& .item-list,
& .playlist {
display: flex;
flex-direction: column;
height: 100%;
Expand All @@ -42,4 +43,4 @@ body {

#main-layout .player-wrapper audio {
border-radius: 0.5rem;
}
}
Binary file removed web/cd-50.png
Binary file not shown.
Binary file added web/disc.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file removed web/error-globe-64.png
Binary file not shown.
Binary file removed web/music-50.png
Binary file not shown.
Binary file added web/server-error.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added web/track.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

0 comments on commit feef5a8

Please sign in to comment.