Update icons
This commit is contained in:
18 files changed
+273
-121
No files matched your search
+12
-1
@@ -209,7 +209,18 @@ function App() {
|
||||
|
||||
const navigate = useNavigate();
|
||||
if (!initialRoute) {
|
||||
return <>Loading...</>;
|
||||
return (
|
||||
<div
|
||||
style={{
|
||||
position: "fixed",
|
||||
top: "50%",
|
||||
left: "50%",
|
||||
transform: "translate(-50%, -50%)",
|
||||
}}
|
||||
>
|
||||
<CircularProgress size={72} thickness={1.4} />
|
||||
</div>
|
||||
);
|
||||
} else if (initialRoute) {
|
||||
return (
|
||||
<SnackbarProvider maxSnack={5}>
|
||||
|
||||
@@ -50,12 +50,11 @@ export const AppBar = () => {
|
||||
let usr = await getUserApi(api).getCurrentUser();
|
||||
return usr.data;
|
||||
},
|
||||
enabled: display && Boolean(api),
|
||||
enabled: display,
|
||||
networkMode: "always",
|
||||
});
|
||||
useEffect(() => {
|
||||
if (user.isError) {
|
||||
console.log(api);
|
||||
console.error(user.error);
|
||||
}
|
||||
}, [user]);
|
||||
@@ -146,7 +145,9 @@ export const AppBar = () => {
|
||||
aria-label="open drawer"
|
||||
onClick={handleDrawerOpen}
|
||||
>
|
||||
<MdiMenu />
|
||||
<div className="material-symbols-rounded">
|
||||
menu
|
||||
</div>
|
||||
</IconButton>
|
||||
<IconButton
|
||||
onClick={() => navigate(-1)}
|
||||
@@ -159,15 +160,21 @@ export const AppBar = () => {
|
||||
ml: 2,
|
||||
}}
|
||||
>
|
||||
<MdiArrowLeft />
|
||||
<div className="material-symbols-rounded">
|
||||
arrow_back
|
||||
</div>
|
||||
</IconButton>
|
||||
</div>
|
||||
<div style={{ display: "flex", gap: "1.2em" }}>
|
||||
<IconButton onClick={() => navigate("/search")}>
|
||||
<MdiMagnify />
|
||||
<div className="material-symbols-rounded">
|
||||
search
|
||||
</div>
|
||||
</IconButton>
|
||||
<IconButton onClick={() => navigate("/favorite")}>
|
||||
<MdiHeartOutline />
|
||||
<div className="material-symbols-rounded">
|
||||
favorite
|
||||
</div>
|
||||
</IconButton>
|
||||
<IconButton
|
||||
sx={{ p: 0 }}
|
||||
@@ -209,7 +216,9 @@ export const AppBar = () => {
|
||||
disabled
|
||||
>
|
||||
<ListItemIcon>
|
||||
<MdiCog />
|
||||
<div className="material-symbols-rounded">
|
||||
settings
|
||||
</div>
|
||||
</ListItemIcon>
|
||||
Settings
|
||||
</MenuItem>
|
||||
@@ -218,13 +227,17 @@ export const AppBar = () => {
|
||||
disabled
|
||||
>
|
||||
<ListItemIcon>
|
||||
<MdiInformation />
|
||||
<div className="material-symbols-rounded">
|
||||
info
|
||||
</div>
|
||||
</ListItemIcon>
|
||||
About
|
||||
</MenuItem>
|
||||
<MenuItem onClick={handleLogout}>
|
||||
<ListItemIcon>
|
||||
<MdiLogoutVariant />
|
||||
<div className="material-symbols-rounded">
|
||||
logout
|
||||
</div>
|
||||
</ListItemIcon>
|
||||
Logout
|
||||
</MenuItem>
|
||||
@@ -236,7 +249,9 @@ export const AppBar = () => {
|
||||
}}
|
||||
>
|
||||
<ListItemIcon>
|
||||
<MdiDelete />
|
||||
<div className="material-symbols-rounded appBar-icon">
|
||||
delete
|
||||
</div>
|
||||
</ListItemIcon>
|
||||
Remove Server
|
||||
</MenuItem>
|
||||
|
||||
@@ -95,11 +95,24 @@ const LikeButton = ({
|
||||
opacity: mutation.isPending ? 0.5 : 1,
|
||||
}}
|
||||
>
|
||||
{isFavorite ? (
|
||||
<MdiHeart sx={{ color: pink[700] }} />
|
||||
) : (
|
||||
<MdiHeartOutline sx={{ color: color }} />
|
||||
)}
|
||||
<div
|
||||
className="material-symbols-rounded"
|
||||
style={
|
||||
isFavorite
|
||||
? {
|
||||
fontVariationSettings:
|
||||
'"FILL" 1, "wght" 300, "GRAD" 25, "opsz" 40',
|
||||
color: pink[700],
|
||||
}
|
||||
: {
|
||||
fontVariationSettings:
|
||||
'"FILL" 0, "wght" 300, "GRAD" 25, "opsz" 40',
|
||||
color: "white",
|
||||
}
|
||||
}
|
||||
>
|
||||
favorite
|
||||
</div>
|
||||
</IconButton>
|
||||
</div>
|
||||
);
|
||||
|
||||
@@ -87,11 +87,14 @@ const MarkPlayedButton = ({ itemId, isPlayed, queryKey, userId, itemName }) => {
|
||||
opacity: mutation.isPending ? 0.5 : 1,
|
||||
}}
|
||||
>
|
||||
<MdiCheck
|
||||
sx={{
|
||||
<div
|
||||
className="material-symbols-rounded"
|
||||
style={{
|
||||
color: isPlayed ? green[400] : "white",
|
||||
}}
|
||||
/>
|
||||
>
|
||||
done
|
||||
</div>
|
||||
</IconButton>
|
||||
</div>
|
||||
);
|
||||
|
||||
@@ -7,8 +7,6 @@ import Fab from "@mui/material/Fab";
|
||||
import LinearProgress from "@mui/material/LinearProgress";
|
||||
import Typography from "@mui/material/Typography";
|
||||
|
||||
import { MdiPlayOutline } from "../icons/mdiPlayOutline";
|
||||
|
||||
import {
|
||||
usePlaybackDataLoadStore,
|
||||
usePlaybackStore,
|
||||
@@ -330,7 +328,14 @@ const PlayButton = ({
|
||||
size={size}
|
||||
{...buttonProps}
|
||||
>
|
||||
<MdiPlayOutline {...iconProps} />
|
||||
<div
|
||||
className="material-symbols-rounded em-4"
|
||||
style={{
|
||||
fontSize: "3em",
|
||||
}}
|
||||
>
|
||||
play_arrow
|
||||
</div>
|
||||
</Fab>
|
||||
);
|
||||
} else {
|
||||
@@ -339,7 +344,16 @@ const PlayButton = ({
|
||||
className={className}
|
||||
variant="contained"
|
||||
onClick={handleClick}
|
||||
startIcon={<MdiPlayOutline />}
|
||||
startIcon={
|
||||
<div
|
||||
className="material-symbols-rounded"
|
||||
style={{
|
||||
fontSize: "2em",
|
||||
}}
|
||||
>
|
||||
play_arrow
|
||||
</div>
|
||||
}
|
||||
{...buttonProps}
|
||||
sx={{
|
||||
position: "relative",
|
||||
|
||||
@@ -74,7 +74,9 @@ export const ActorCard = ({
|
||||
/>
|
||||
)}
|
||||
<div className="card-image-icon-container">
|
||||
<MdiAccountTie className="card-image-icon" />
|
||||
<div className="material-symbols-rounded">
|
||||
person
|
||||
</div>
|
||||
</div>
|
||||
<img
|
||||
src={api.getItemImageUrl(
|
||||
|
||||
@@ -10,7 +10,7 @@ import LinearProgress from "@mui/material/LinearProgress";
|
||||
|
||||
import { Blurhash } from "react-blurhash";
|
||||
|
||||
import { TypeIconCollectionCard } from "../utils/iconsCollection";
|
||||
import { getTypeIcon } from "../utils/iconsCollection";
|
||||
import "./card.module.scss";
|
||||
import { MdiCheck } from "../icons/mdiCheck";
|
||||
|
||||
@@ -114,7 +114,9 @@ export const Card = ({
|
||||
: 0,
|
||||
}}
|
||||
>
|
||||
<MdiCheck />
|
||||
<div className="material-symbols-rounded">
|
||||
done
|
||||
</div>
|
||||
</div>
|
||||
<div
|
||||
className={`card-indicator text`}
|
||||
@@ -150,8 +152,8 @@ export const Card = ({
|
||||
)}
|
||||
<div className="card-image-icon-container">
|
||||
{overrideIcon
|
||||
? TypeIconCollectionCard[overrideIcon]
|
||||
: TypeIconCollectionCard[item.Type]}
|
||||
? getTypeIcon(overrideIcon)
|
||||
: getTypeIcon(item.Type)}
|
||||
</div>
|
||||
<img
|
||||
src={
|
||||
|
||||
@@ -32,21 +32,24 @@
|
||||
z-index: 0;
|
||||
}
|
||||
&-icon {
|
||||
position: absolute;
|
||||
top: 50%;
|
||||
left: 50%;
|
||||
transform: translate(-50%, -50%);
|
||||
font-size: 5.4em !important;
|
||||
fill: url(#clr-gradient-default) !important;
|
||||
color: transparent;
|
||||
&-container {
|
||||
background: $clr-gradient-dark;
|
||||
background: rgb(255 255 255 / 0.1);
|
||||
height: 100%;
|
||||
width: 100%;
|
||||
position: absolute;
|
||||
z-index: 0;
|
||||
top: 0;
|
||||
left: 0;
|
||||
.material-symbols-rounded {
|
||||
position: absolute;
|
||||
top: 50%;
|
||||
left: 50%;
|
||||
transform: translate(-50%, -50%);
|
||||
color: rgb(255 255 255 / 0.5);
|
||||
font-size: 4em !important;
|
||||
}
|
||||
}
|
||||
}
|
||||
&-blurhash {
|
||||
|
||||
@@ -76,7 +76,9 @@ export const EpisodeCard = ({
|
||||
: 0,
|
||||
}}
|
||||
>
|
||||
<MdiCheck />
|
||||
<div className="material-symbols-rounded">
|
||||
done
|
||||
</div>
|
||||
</div>
|
||||
)}
|
||||
{!!imageBlurhash && (
|
||||
@@ -90,7 +92,9 @@ export const EpisodeCard = ({
|
||||
/>
|
||||
)}
|
||||
<div className="card-image-icon-container">
|
||||
<MdiTelevisionClassic className="card-image-icon" />
|
||||
<div className="material-symbols-rounded">
|
||||
tv_gen
|
||||
</div>
|
||||
</div>
|
||||
<img
|
||||
src={api.getItemImageUrl(
|
||||
|
||||
@@ -77,13 +77,17 @@ export const CardScroller = ({
|
||||
className="card-scroller-button"
|
||||
onClick={() => carouselRef.previous()}
|
||||
>
|
||||
<MdiChevronLeft />
|
||||
<div className="material-symbols-rounded">
|
||||
chevron_left
|
||||
</div>
|
||||
</IconButton>
|
||||
<IconButton
|
||||
className="card-scroller-button"
|
||||
onClick={() => carouselRef.next()}
|
||||
>
|
||||
<MdiChevronRight />
|
||||
<div className="material-symbols-rounded">
|
||||
chevron_right
|
||||
</div>
|
||||
</IconButton>
|
||||
</ButtonGroup>
|
||||
</Box>
|
||||
|
||||
@@ -17,7 +17,7 @@ import CarouselSlideError from "../errors/carousel";
|
||||
import { MdiStar } from "../icons/mdiStar";
|
||||
import { endsAt, getRuntime } from "../../utils/date/time";
|
||||
import { useNavigate } from "react-router-dom";
|
||||
import { MediaTypeIconCollection } from "../utils/iconsCollection";
|
||||
import { MediaTypeIconCollection, getTypeIcon } from "../utils/iconsCollection";
|
||||
import { MdiChevronRight } from "../icons/mdiChevronRight";
|
||||
import { useQuery } from "@tanstack/react-query";
|
||||
|
||||
@@ -123,7 +123,7 @@ const CarouselSlide = ({ item }) => {
|
||||
</>
|
||||
)}
|
||||
<div className="hero-carousel-background-icon-container">
|
||||
{MediaTypeIconCollection[item.Type]}
|
||||
{getTypeIcon(item.Type)}
|
||||
</div>
|
||||
</div>
|
||||
<motion.div
|
||||
@@ -264,7 +264,6 @@ const CarouselSlide = ({ item }) => {
|
||||
{item.Overview}
|
||||
</Typography>
|
||||
|
||||
{/* TODO Link PLay and More info buttons in carousel */}
|
||||
<Stack
|
||||
mt={3}
|
||||
direction="row"
|
||||
@@ -300,7 +299,16 @@ const CarouselSlide = ({ item }) => {
|
||||
size="large"
|
||||
color="white"
|
||||
variant="outlined"
|
||||
endIcon={<MdiChevronRight />}
|
||||
endIcon={
|
||||
<div
|
||||
className="material-symbols-rounded"
|
||||
style={{
|
||||
fontSize: "2em",
|
||||
}}
|
||||
>
|
||||
chevron_right
|
||||
</div>
|
||||
}
|
||||
onClick={handleMoreInfo}
|
||||
>
|
||||
More info
|
||||
@@ -328,4 +336,4 @@ const CarouselSlide = ({ item }) => {
|
||||
);
|
||||
};
|
||||
|
||||
export default memo(CarouselSlide);
|
||||
export default CarouselSlide;
|
||||
@@ -25,7 +25,10 @@ import Typography from "@mui/material/Typography";
|
||||
import { MdiClose } from "../icons/mdiClose";
|
||||
import { MdiLogoutVariant } from "../icons/mdiLogoutVariant";
|
||||
|
||||
import { MediaCollectionTypeIconCollection } from "../../components/utils/iconsCollection.jsx";
|
||||
import {
|
||||
MediaCollectionTypeIconCollection,
|
||||
getTypeIcon,
|
||||
} from "../../components/utils/iconsCollection.jsx";
|
||||
|
||||
import { MdiHomeVariantOutline } from "../icons/mdiHomeVariantOutline";
|
||||
|
||||
@@ -151,7 +154,7 @@ export const SideMenu = () => {
|
||||
className="sidemenu-item small"
|
||||
>
|
||||
<div className="sidemenu-item-icon">
|
||||
<MdiHomeVariantOutline />
|
||||
{getTypeIcon("Home")}
|
||||
</div>
|
||||
<Typography
|
||||
className="sidemenu-item-text"
|
||||
@@ -182,12 +185,9 @@ export const SideMenu = () => {
|
||||
className="sidemenu-item"
|
||||
>
|
||||
<div className="sidemenu-item-icon">
|
||||
{
|
||||
MediaCollectionTypeIconCollection[
|
||||
lib
|
||||
.CollectionType
|
||||
]
|
||||
}
|
||||
{getTypeIcon(
|
||||
lib.CollectionType,
|
||||
)}
|
||||
</div>
|
||||
<Typography
|
||||
className="sidemenu-item-text"
|
||||
|
||||
@@ -22,6 +22,10 @@
|
||||
|
||||
&:hover {
|
||||
color: white;
|
||||
.material-symbols-rounded {
|
||||
font-variation-settings: "FILL" 0, "wght" 400, "GRAD" 25,
|
||||
"opsz" 40;
|
||||
}
|
||||
}
|
||||
|
||||
&.active {
|
||||
@@ -35,6 +39,10 @@
|
||||
// transform: scaleY(1);
|
||||
opacity: 1;
|
||||
}
|
||||
.material-symbols-rounded {
|
||||
font-variation-settings: "FILL" 1, "wght" 300, "GRAD" 25,
|
||||
"opsz" 40;
|
||||
}
|
||||
}
|
||||
|
||||
&-text {
|
||||
@@ -42,6 +50,7 @@
|
||||
transform-origin: top;
|
||||
transition: max-height 0.5s;
|
||||
max-height: 0;
|
||||
transition-delay: 0.05s;
|
||||
}
|
||||
|
||||
&-icon {
|
||||
@@ -62,6 +71,7 @@
|
||||
border-radius: 100px;
|
||||
transition: opacity $transition-time-fast,
|
||||
transform $transition-time-fast;
|
||||
transition-delay: 0.1s;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
/** @format */
|
||||
|
||||
import React from "react";
|
||||
import { MdiMovieOutline } from "../icons/mdiMovieOutline";
|
||||
import { MdiMusicBoxMultipleOutline } from "../icons/mdiMusicBoxMultipleOutline";
|
||||
import { MdiPlaylistMusicOutline } from "../icons/mdiPlaylistMusicOutline";
|
||||
@@ -25,6 +25,7 @@ import { MdiMusic } from "../icons/mdiMusic";
|
||||
import { MdiAccountTie } from "../icons/mdiAccountTie";
|
||||
import { MdiAccount } from "../icons/mdiAccount";
|
||||
import { MdiFilmstripBoxMultiple } from "../icons/mdiFilmstripBoxMultiple";
|
||||
import { BaseItemKind } from "@jellyfin/sdk/lib/generated-client";
|
||||
|
||||
export const MediaCollectionTypeIconCollection = {
|
||||
universal: <MdiMultimedia />,
|
||||
@@ -43,15 +44,6 @@ export const MediaCollectionTypeIconCollection = {
|
||||
};
|
||||
|
||||
export const MediaCollectionTypeIconCollectionCard = {
|
||||
universal: <MdiMultimedia className="card-image-icon" />,
|
||||
movies: <MdiMovieOutline className="card-image-icon" />,
|
||||
music: <MdiMusicBoxMultipleOutline className="card-image-icon" />,
|
||||
playlists: <MdiPlaylistMusicOutline className="card-image-icon" />,
|
||||
tvshows: <MdiTelevision className="card-image-icon" />,
|
||||
boxsets: <MdiFilmstripBoxMultiple className="card-image-icon" />,
|
||||
musicvideos: <MdiFolderMusicOutline className="card-image-icon" />,
|
||||
trailers: <MdiYoutube className="card-image-icon" />,
|
||||
books: <MdiBookMultiple className="card-image-icon" />,
|
||||
photos: <MdiImageMultiple className="card-image-icon" />,
|
||||
livetv: <MdiTelevisionClassic className="card-image-icon" />,
|
||||
folder: <MdiFolderOutline className="card-image-icon" />,
|
||||
@@ -67,47 +59,109 @@ export const MediaTypeIconCollection = {
|
||||
AudioBook: <MdiBookMusic className="hero-carousel-background-icon" />,
|
||||
};
|
||||
|
||||
export const TypeIconCollectionCard = {
|
||||
Actor: <MdiAccountTie className="card-image-icon" />,
|
||||
AggregateFolder: <MdiFolderMultiple className="card-image-icon" />,
|
||||
Audio: <MdiMicrophone className="card-image-icon" />,
|
||||
AudioBook: <MdiBookMusic className="card-image-icon" />,
|
||||
BasePluginFolder: <MdiFolderOutline className="card-image-icon" />,
|
||||
Book: <MdiBook className="card-image-icon" />,
|
||||
BoxSet: <MdiPlayBoxMultiple className="card-image-icon" />,
|
||||
Channel: <MdiTelevisionClassic className="card-image-icon" />,
|
||||
ChannelFolderItem: <MdiTelevisionClassic className="card-image-icon" />,
|
||||
CollectionFolder: <MdiFolderOutline className="card-image-icon" />,
|
||||
Episode: <MdiTelevisionClassic className="card-image-icon" />,
|
||||
Folder: <MdiFolderOutline className="card-image-icon" />,
|
||||
LiveTvChannel: <MdiTelevisionClassic className="card-image-icon" />,
|
||||
LiveTvProgram: <MdiTelevisionClassic className="card-image-icon" />,
|
||||
ManualPlaylistsFolder: (
|
||||
<MdiPlaylistMusicOutline className="card-image-icon" />
|
||||
),
|
||||
Movie: <MdiFilmstrip className="card-image-icon" />,
|
||||
MusicAlbum: <MdiAlbum className="card-image-icon" />,
|
||||
MusicArtist: <MdiAccountMusic className="card-image-icon" />,
|
||||
MusicGenre: <MdiDramaMasks className="card-image-icon" />,
|
||||
MusicVideo: <MdiMusic className="card-image-icon" />,
|
||||
Person: <MdiAccountTie className="card-image-icon" />,
|
||||
Photo: <MdiImage className="card-image-icon" />,
|
||||
PhotoAlbum: <MdiImageMultiple className="card-image-icon" />,
|
||||
Playlist: <MdiPlaylistMusicOutline className="card-image-icon" />,
|
||||
PlaylistsFolder: <MdiPlaylistMusicOutline className="card-image-icon" />,
|
||||
Program: <MdiTelevisionClassic className="card-image-icon" />,
|
||||
Recording: <MdiTelevisionClassic className="card-image-icon" />,
|
||||
Season: <MdiTelevisionClassic className="card-image-icon" />,
|
||||
Series: <MdiTelevisionClassic className="card-image-icon" />,
|
||||
Studio: <MdiMultimedia className="card-image-icon" />,
|
||||
Trailer: <MdiYoutube className="card-image-icon" />,
|
||||
TvChannel: <MdiTelevisionClassic className="card-image-icon" />,
|
||||
TvProgram: <MdiTelevisionClassic className="card-image-icon" />,
|
||||
User: <MdiAccount className="card-image-icon" />,
|
||||
UserRootFolder: <MdiFolderOutline className="card-image-icon" />,
|
||||
UserView: <MdiMultimedia className="card-image-icon" />,
|
||||
Video: <MdiFilmstrip className="card-image-icon" />,
|
||||
Year: <MdiMultimedia className="card-image-icon" />,
|
||||
Genre: <MdiDramaMasks className="card-image-icon" />,
|
||||
Library: <MdiMultimedia className="card-image-icon" />,
|
||||
export const getTypeIcon = (icon) => {
|
||||
switch (icon) {
|
||||
case "Home":
|
||||
return <div className="material-symbols-rounded">home</div>;
|
||||
case BaseItemKind.Audio:
|
||||
return <div className="material-symbols-rounded">mic</div>;
|
||||
case BaseItemKind.AudioBook:
|
||||
return (
|
||||
<div className="material-symbols-rounded">library_book</div>
|
||||
);
|
||||
case BaseItemKind.Book:
|
||||
return <div className="material-symbols-rounded">book</div>;
|
||||
case "boxsets":
|
||||
case BaseItemKind.BoxSet:
|
||||
return (
|
||||
<div className="material-symbols-rounded">
|
||||
video_library
|
||||
</div>
|
||||
);
|
||||
case "livetv":
|
||||
case BaseItemKind.TvProgram:
|
||||
case BaseItemKind.TvChannel:
|
||||
case BaseItemKind.Program:
|
||||
case BaseItemKind.Recording:
|
||||
case BaseItemKind.LiveTvChannel:
|
||||
case BaseItemKind.LiveTvProgram:
|
||||
case BaseItemKind.ChannelFolderItem:
|
||||
case BaseItemKind.Channel:
|
||||
return (
|
||||
<div className="material-symbols-rounded">
|
||||
settings_input_antenna
|
||||
</div>
|
||||
);
|
||||
case "tvshows":
|
||||
case BaseItemKind.Season:
|
||||
case BaseItemKind.Series:
|
||||
case BaseItemKind.Episode:
|
||||
return <div className="material-symbols-rounded">tv_gen</div>;
|
||||
case "playlists":
|
||||
case BaseItemKind.Playlist:
|
||||
case BaseItemKind.PlaylistsFolder:
|
||||
case BaseItemKind.ManualPlaylistsFolder:
|
||||
return (
|
||||
<div className="material-symbols-rounded">queue_music</div>
|
||||
);
|
||||
case "movies":
|
||||
case BaseItemKind.Movie:
|
||||
return <div className="material-symbols-rounded">movie</div>;
|
||||
case BaseItemKind.MusicAlbum:
|
||||
return <div className="material-symbols-rounded">album</div>;
|
||||
case BaseItemKind.MusicArtist:
|
||||
return <div className="material-symbols-rounded">artist</div>;
|
||||
case BaseItemKind.Genre:
|
||||
case BaseItemKind.MusicGenre:
|
||||
return (
|
||||
<div className="material-symbols-rounded">domino_mask</div>
|
||||
);
|
||||
case "musicvideos":
|
||||
case BaseItemKind.MusicVideo:
|
||||
return (
|
||||
<div className="material-symbols-rounded">music_video</div>
|
||||
);
|
||||
case "User":
|
||||
case BaseItemKind.Person:
|
||||
return <div className="material-symbols-rounded">person</div>;
|
||||
case BaseItemKind.Photo:
|
||||
return <div className="material-symbols-rounded">image</div>;
|
||||
case "photos":
|
||||
case BaseItemKind.PhotoAlbum:
|
||||
return (
|
||||
<div className="material-symbols-rounded">
|
||||
photo_library
|
||||
</div>
|
||||
);
|
||||
case "universal":
|
||||
case BaseItemKind.Studio:
|
||||
return <div className="material-symbols-rounded">category</div>;
|
||||
case "trailers":
|
||||
case BaseItemKind.Trailer:
|
||||
return (
|
||||
<div className="material-symbols-rounded">
|
||||
smart_display
|
||||
</div>
|
||||
);
|
||||
case BaseItemKind.Video:
|
||||
return <div className="material-symbols-rounded">theaters</div>;
|
||||
case "music":
|
||||
return (
|
||||
<div className="material-symbols-rounded">
|
||||
library_music
|
||||
</div>
|
||||
);
|
||||
case "books":
|
||||
return (
|
||||
<div className="material-symbols-rounded">
|
||||
library_books
|
||||
</div>
|
||||
);
|
||||
case "folders":
|
||||
return <div className="material-symbols-rounded">folder</div>;
|
||||
default:
|
||||
return (
|
||||
<div className="material-symbols-rounded">description</div>
|
||||
);
|
||||
}
|
||||
};
|
||||
@@ -68,22 +68,22 @@
|
||||
height: 100%;
|
||||
transition: opacity 0.5s;
|
||||
}
|
||||
&-icon {
|
||||
|
||||
&-icon-container {
|
||||
position: absolute;
|
||||
font-size: 15em !important;
|
||||
left: 70%;
|
||||
top: 50%;
|
||||
transform: translate(-50%, -50%);
|
||||
fill: url(#clr-gradient-default) !important;
|
||||
&-container {
|
||||
background: $clr-gradient-dark;
|
||||
// background: url("/public/assetsStatic//meshbackground.png");
|
||||
z-index: 0;
|
||||
top: 0;
|
||||
left: 0;
|
||||
right: 0;
|
||||
bottom: 0;
|
||||
.material-symbols-rounded {
|
||||
position: absolute;
|
||||
background: $clr-gradient-dark;
|
||||
// background: url("/public/assetsStatic//meshbackground.png");
|
||||
z-index: 0;
|
||||
top: 0;
|
||||
left: 0;
|
||||
right: 0;
|
||||
bottom: 0;
|
||||
font-size: 15em !important;
|
||||
left: 70%;
|
||||
top: 50%;
|
||||
transform: translate(-50%, -50%);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -263,6 +263,9 @@ const Home = () => {
|
||||
)[0]
|
||||
]
|
||||
}
|
||||
overrideIcon={
|
||||
item.CollectionType
|
||||
}
|
||||
></Card>
|
||||
);
|
||||
},
|
||||
|
||||
@@ -67,7 +67,6 @@ const LibraryView = () => {
|
||||
return usr.data;
|
||||
},
|
||||
networkMode: "always",
|
||||
enabled: Boolean(api),
|
||||
});
|
||||
|
||||
const [sortAscending, setSortAscending] = useState(true);
|
||||
@@ -348,6 +347,7 @@ const LibraryView = () => {
|
||||
useState(() => {
|
||||
// Remove App backdrop in library page
|
||||
setAppBackdrop("", "");
|
||||
console.log(items);
|
||||
}, []);
|
||||
|
||||
return (
|
||||
|
||||
@@ -141,8 +141,9 @@ h1 {
|
||||
}
|
||||
|
||||
.material-symbols-rounded {
|
||||
font-variation-settings: "FILL" 0, "wght" 200, "GRAD" 25, "opsz" 32;
|
||||
font-size: 1em !important;
|
||||
font-variation-settings: "FILL" 0, "wght" 300, "GRAD" 25, "opsz" 40;
|
||||
font-size: 1.1em;
|
||||
transition: all $transition-time-default;
|
||||
}
|
||||
|
||||
.audio-playing .scrollY {
|
||||
@@ -161,3 +162,8 @@ h1 {
|
||||
.scrollY {
|
||||
transition: all $transition-time-default !important;
|
||||
}
|
||||
|
||||
// Normalize listItemIcons for material symbols
|
||||
.MuiListItemIcon-root {
|
||||
font-size: 24px;
|
||||
}
|
||||
Reference in new issue
Block a user