Update icons
This commit is contained in:
8 files changed
+250
-212
No files matched your search
+1
-1
@@ -476,7 +476,7 @@ function App() {
|
||||
</Route>
|
||||
</Routes>
|
||||
</div>
|
||||
<ReactQueryDevtools />
|
||||
<ReactQueryDevtools buttonPosition="bottom-left" />
|
||||
</ThemeProvider>
|
||||
</SnackbarProvider>
|
||||
);
|
||||
|
||||
@@ -123,6 +123,7 @@ export const AppBar = () => {
|
||||
style={{
|
||||
backgroundColor: "transparent",
|
||||
paddingRight: "0 !important",
|
||||
width: "fit-content",
|
||||
}}
|
||||
className={trigger ? "appBar backdropVisible" : "appBar"}
|
||||
elevation={0}
|
||||
@@ -130,133 +131,106 @@ export const AppBar = () => {
|
||||
<Toolbar
|
||||
sx={{
|
||||
justifyContent: "space-between",
|
||||
paddingLeft: "20px !important",
|
||||
padding: "13px !important",
|
||||
display: "flex",
|
||||
gap: "1.2em",
|
||||
}}
|
||||
>
|
||||
<div
|
||||
style={{
|
||||
display: "flex",
|
||||
gap: "1em",
|
||||
alignItems: "center",
|
||||
}}
|
||||
<IconButton
|
||||
onClick={() => navigate(-1)}
|
||||
disabled={!backButtonVisible}
|
||||
>
|
||||
<IconButton
|
||||
color="inherit"
|
||||
aria-label="open drawer"
|
||||
onClick={handleDrawerOpen}
|
||||
<div className="material-symbols-rounded">
|
||||
arrow_back
|
||||
</div>
|
||||
</IconButton>
|
||||
|
||||
<IconButton onClick={() => navigate("/search")}>
|
||||
<div className="material-symbols-rounded">
|
||||
search
|
||||
</div>
|
||||
</IconButton>
|
||||
<IconButton onClick={() => navigate("/favorite")}>
|
||||
<div className="material-symbols-rounded">
|
||||
favorite
|
||||
</div>
|
||||
</IconButton>
|
||||
<IconButton sx={{ p: 0 }} onClick={handleMenuOpen}>
|
||||
{user.isSuccess &&
|
||||
(user.data.PrimaryImageTag == undefined ? (
|
||||
<Avatar
|
||||
className="appBar-avatar"
|
||||
alt={user.data.Name}
|
||||
>
|
||||
<MdiAccount className="appBar-avatar-icon" />
|
||||
</Avatar>
|
||||
) : (
|
||||
<Avatar
|
||||
className="appBar-avatar"
|
||||
src={
|
||||
api.basePath +
|
||||
"/Users/" +
|
||||
user.data.Id +
|
||||
"/Images/Primary"
|
||||
}
|
||||
alt={user.data.Name}
|
||||
>
|
||||
<MdiAccount className="appBar-avatar-icon" />
|
||||
</Avatar>
|
||||
))}
|
||||
</IconButton>
|
||||
<Menu
|
||||
anchorEl={anchorEl}
|
||||
open={openMenu}
|
||||
onClose={handleMenuClose}
|
||||
sx={{ mt: 1 }}
|
||||
disableScrollLock
|
||||
>
|
||||
<MenuItem
|
||||
onClick={() => navigate("/settings")}
|
||||
disabled
|
||||
>
|
||||
<div className="material-symbols-rounded">
|
||||
menu
|
||||
</div>
|
||||
</IconButton>
|
||||
<IconButton
|
||||
onClick={() => navigate(-1)}
|
||||
sx={{
|
||||
transition: "transform 0.2s",
|
||||
transform: backButtonVisible
|
||||
? "scale(1)"
|
||||
: "scale(0)",
|
||||
transformOrigin: "left",
|
||||
ml: 2,
|
||||
<ListItemIcon>
|
||||
<div className="material-symbols-rounded">
|
||||
settings
|
||||
</div>
|
||||
</ListItemIcon>
|
||||
Settings
|
||||
</MenuItem>
|
||||
<MenuItem
|
||||
onClick={() => navigate("/about")}
|
||||
disabled
|
||||
>
|
||||
<ListItemIcon>
|
||||
<div className="material-symbols-rounded">
|
||||
info
|
||||
</div>
|
||||
</ListItemIcon>
|
||||
About
|
||||
</MenuItem>
|
||||
<MenuItem onClick={handleLogout}>
|
||||
<ListItemIcon>
|
||||
<div className="material-symbols-rounded">
|
||||
logout
|
||||
</div>
|
||||
</ListItemIcon>
|
||||
Logout
|
||||
</MenuItem>
|
||||
<MenuItem
|
||||
onClick={async () => {
|
||||
await delServer();
|
||||
await delUser();
|
||||
await relaunch();
|
||||
}}
|
||||
>
|
||||
<div className="material-symbols-rounded">
|
||||
arrow_back
|
||||
</div>
|
||||
</IconButton>
|
||||
</div>
|
||||
<div style={{ display: "flex", gap: "1.2em" }}>
|
||||
<IconButton onClick={() => navigate("/search")}>
|
||||
<div className="material-symbols-rounded">
|
||||
search
|
||||
</div>
|
||||
</IconButton>
|
||||
<IconButton onClick={() => navigate("/favorite")}>
|
||||
<div className="material-symbols-rounded">
|
||||
favorite
|
||||
</div>
|
||||
</IconButton>
|
||||
<IconButton
|
||||
sx={{ p: 0 }}
|
||||
onClick={handleMenuOpen}
|
||||
>
|
||||
{user.isSuccess &&
|
||||
(user.data.PrimaryImageTag ==
|
||||
undefined ? (
|
||||
<Avatar
|
||||
className="appBar-avatar"
|
||||
alt={user.data.Name}
|
||||
>
|
||||
<MdiAccount className="appBar-avatar-icon" />
|
||||
</Avatar>
|
||||
) : (
|
||||
<Avatar
|
||||
className="appBar-avatar"
|
||||
src={
|
||||
api.basePath +
|
||||
"/Users/" +
|
||||
user.data.Id +
|
||||
"/Images/Primary"
|
||||
}
|
||||
alt={user.data.Name}
|
||||
>
|
||||
<MdiAccount className="appBar-avatar-icon" />
|
||||
</Avatar>
|
||||
))}
|
||||
</IconButton>
|
||||
<Menu
|
||||
anchorEl={anchorEl}
|
||||
open={openMenu}
|
||||
onClose={handleMenuClose}
|
||||
sx={{ mt: 1 }}
|
||||
disableScrollLock
|
||||
>
|
||||
<MenuItem
|
||||
onClick={() => navigate("/settings")}
|
||||
disabled
|
||||
>
|
||||
<ListItemIcon>
|
||||
<div className="material-symbols-rounded">
|
||||
settings
|
||||
</div>
|
||||
</ListItemIcon>
|
||||
Settings
|
||||
</MenuItem>
|
||||
<MenuItem
|
||||
onClick={() => navigate("/about")}
|
||||
disabled
|
||||
>
|
||||
<ListItemIcon>
|
||||
<div className="material-symbols-rounded">
|
||||
info
|
||||
</div>
|
||||
</ListItemIcon>
|
||||
About
|
||||
</MenuItem>
|
||||
<MenuItem onClick={handleLogout}>
|
||||
<ListItemIcon>
|
||||
<div className="material-symbols-rounded">
|
||||
logout
|
||||
</div>
|
||||
</ListItemIcon>
|
||||
Logout
|
||||
</MenuItem>
|
||||
<MenuItem
|
||||
onClick={async () => {
|
||||
await delServer();
|
||||
await delUser();
|
||||
await relaunch();
|
||||
}}
|
||||
>
|
||||
<ListItemIcon>
|
||||
<div className="material-symbols-rounded appBar-icon">
|
||||
delete
|
||||
</div>
|
||||
</ListItemIcon>
|
||||
Remove Server
|
||||
</MenuItem>
|
||||
</Menu>
|
||||
</div>
|
||||
<ListItemIcon>
|
||||
<div className="material-symbols-rounded appBar-icon">
|
||||
delete
|
||||
</div>
|
||||
</ListItemIcon>
|
||||
Remove Server
|
||||
</MenuItem>
|
||||
</Menu>
|
||||
</Toolbar>
|
||||
</MuiAppBar>
|
||||
);
|
||||
|
||||
@@ -1,12 +1,15 @@
|
||||
/** @format */
|
||||
|
||||
.appBar {
|
||||
top: 8px !important;
|
||||
right: 8px !important;
|
||||
border-radius: 10000px;
|
||||
transition: background-color $transition-time-fast,
|
||||
backdrop-filter $transition-time-fast,
|
||||
box-shadow $transition-time-default !important;
|
||||
&.backdropVisible {
|
||||
background-color: $clr-background-dark-opacity-0_8 !important;
|
||||
backdrop-filter: blur(30px);
|
||||
background-color: rgb(0 0 0 / 0.6) !important;
|
||||
backdrop-filter: blur(10px);
|
||||
}
|
||||
&-avatar {
|
||||
background: $clr-gradient-dark;
|
||||
|
||||
@@ -40,7 +40,7 @@ const Carousel = ({ content, onChange }) => {
|
||||
}}
|
||||
disabled={currentSlide == 0}
|
||||
>
|
||||
<MdiChevronLeft />
|
||||
<div className="material-symbols-rounded">arrow_left</div>
|
||||
</IconButton>
|
||||
<AnimatePresence>
|
||||
<motion.div
|
||||
@@ -93,7 +93,7 @@ const Carousel = ({ content, onChange }) => {
|
||||
background: " rgb(200 200 200 / 0.05)",
|
||||
}}
|
||||
>
|
||||
<MdiChevronRight />
|
||||
<div className="material-symbols-rounded">arrow_right</div>
|
||||
</IconButton>
|
||||
<div className="carousel-indicator-container">
|
||||
{content.map((item, index) => (
|
||||
|
||||
@@ -113,6 +113,10 @@ export const SideMenu = () => {
|
||||
state.setOpen,
|
||||
]);
|
||||
|
||||
const handleDrawerOpen = () => {
|
||||
setDrawerOpen(true);
|
||||
};
|
||||
|
||||
if (!display) {
|
||||
return <></>;
|
||||
}
|
||||
@@ -143,7 +147,17 @@ export const SideMenu = () => {
|
||||
sx={{
|
||||
justifyContent: "center",
|
||||
}}
|
||||
></DrawerHeader>
|
||||
>
|
||||
<IconButton
|
||||
color="inherit"
|
||||
aria-label="open drawer"
|
||||
onClick={handleDrawerOpen}
|
||||
>
|
||||
<div className="material-symbols-rounded">
|
||||
menu
|
||||
</div>
|
||||
</IconButton>
|
||||
</DrawerHeader>
|
||||
<div className="sidemenu-item-container">
|
||||
{libraries.isPending ? (
|
||||
<></>
|
||||
@@ -236,10 +250,13 @@ export const SideMenu = () => {
|
||||
}}
|
||||
>
|
||||
<IconButton onClick={() => setDrawerOpen(false)}>
|
||||
<MdiClose />
|
||||
<div className="material-symbols-rounded">
|
||||
close
|
||||
</div>
|
||||
</IconButton>
|
||||
</DrawerHeader>
|
||||
<Divider />
|
||||
|
||||
{libraries.isPending ? (
|
||||
<>
|
||||
<Skeleton
|
||||
@@ -252,6 +269,50 @@ export const SideMenu = () => {
|
||||
) : (
|
||||
<>
|
||||
<List sx={{ border: "none" }}>
|
||||
<Tooltip
|
||||
title="Home"
|
||||
placement="right"
|
||||
followCursor
|
||||
arrow
|
||||
>
|
||||
<ListItem
|
||||
className="sidemenu-item-container"
|
||||
disablePadding
|
||||
sx={{
|
||||
mt: "0em !important",
|
||||
}}
|
||||
>
|
||||
<ListItemButton
|
||||
component={NavLink}
|
||||
to={"home"}
|
||||
className="sidemenu-item"
|
||||
sx={{
|
||||
minHeight: 48,
|
||||
justifyContent:
|
||||
"center",
|
||||
px: 2.5,
|
||||
flexDirection:
|
||||
"row",
|
||||
}}
|
||||
>
|
||||
<ListItemIcon
|
||||
sx={{
|
||||
minWidth: 0,
|
||||
justifyContent:
|
||||
"center",
|
||||
mr: 2,
|
||||
}}
|
||||
>
|
||||
<div className="material-symbols-rounded">
|
||||
home
|
||||
</div>
|
||||
</ListItemIcon>
|
||||
<ListItemText>
|
||||
Home
|
||||
</ListItemText>
|
||||
</ListItemButton>
|
||||
</ListItem>
|
||||
</Tooltip>
|
||||
{libraries.data.Items.map(
|
||||
(library, index) => {
|
||||
return (
|
||||
@@ -265,6 +326,9 @@ export const SideMenu = () => {
|
||||
<ListItem
|
||||
className="sidemenu-item-container"
|
||||
disablePadding
|
||||
sx={{
|
||||
mt: "0em !important",
|
||||
}}
|
||||
>
|
||||
<ListItemButton
|
||||
component={
|
||||
@@ -292,12 +356,9 @@ export const SideMenu = () => {
|
||||
mr: 2,
|
||||
}}
|
||||
>
|
||||
{
|
||||
MediaCollectionTypeIconCollection[
|
||||
library
|
||||
.CollectionType
|
||||
]
|
||||
}
|
||||
{getTypeIcon(
|
||||
library.CollectionType,
|
||||
)}
|
||||
</ListItemIcon>
|
||||
<ListItemText>
|
||||
{
|
||||
@@ -313,43 +374,6 @@ export const SideMenu = () => {
|
||||
</List>
|
||||
<List sx={{ marginTop: "auto" }}>
|
||||
<Divider />
|
||||
<Tooltip
|
||||
title="Home"
|
||||
placement="right"
|
||||
followCursor
|
||||
arrow
|
||||
>
|
||||
<ListItem
|
||||
className="sidemenu-item-container"
|
||||
disablePadding
|
||||
>
|
||||
<ListItemButton
|
||||
component={NavLink}
|
||||
to="/home"
|
||||
className="sidemenu-item"
|
||||
sx={{
|
||||
minHeight: 48,
|
||||
justifyContent:
|
||||
"center",
|
||||
px: 2.5,
|
||||
}}
|
||||
>
|
||||
<ListItemIcon
|
||||
sx={{
|
||||
minWidth: 0,
|
||||
justifyContent:
|
||||
"center",
|
||||
mr: 2,
|
||||
}}
|
||||
>
|
||||
<MdiHomeVariantOutline />
|
||||
</ListItemIcon>
|
||||
<ListItemText>
|
||||
Home
|
||||
</ListItemText>
|
||||
</ListItemButton>
|
||||
</ListItem>
|
||||
</Tooltip>
|
||||
<Tooltip
|
||||
title="Logout"
|
||||
placement="right"
|
||||
@@ -374,7 +398,9 @@ export const SideMenu = () => {
|
||||
mr: 2,
|
||||
}}
|
||||
>
|
||||
<MdiLogoutVariant></MdiLogoutVariant>
|
||||
<div className="material-symbols-rounded">
|
||||
logout
|
||||
</div>
|
||||
</ListItemIcon>
|
||||
<ListItemText>
|
||||
Logout
|
||||
|
||||
@@ -35,8 +35,6 @@
|
||||
transform: scaleX(1);
|
||||
}
|
||||
.sidemenu-item-text {
|
||||
max-height: 1.6em;
|
||||
// transform: scaleY(1);
|
||||
opacity: 1;
|
||||
}
|
||||
.material-symbols-rounded {
|
||||
@@ -46,11 +44,10 @@
|
||||
}
|
||||
|
||||
&-text {
|
||||
// transform: scaleY(0);
|
||||
transform-origin: top;
|
||||
transition: max-height 0.5s;
|
||||
max-height: 0;
|
||||
transition-delay: 0.05s;
|
||||
|
||||
font-size: 0.7em !important;
|
||||
}
|
||||
|
||||
&-icon {
|
||||
|
||||
@@ -286,7 +286,9 @@ const AudioPlayer = () => {
|
||||
onClick={handlePrevious}
|
||||
disabled={currentTrack == 0}
|
||||
>
|
||||
<MdiSkipPrevious />
|
||||
<div className="material-symbols-rounded">
|
||||
skip_previous
|
||||
</div>
|
||||
</IconButton>
|
||||
<div
|
||||
style={{
|
||||
@@ -309,11 +311,16 @@ const AudioPlayer = () => {
|
||||
size="small"
|
||||
onClick={handlePlayPause}
|
||||
>
|
||||
{playing ? (
|
||||
<MdiPause />
|
||||
) : (
|
||||
<MdiPlay />
|
||||
)}
|
||||
<div
|
||||
className="material-symbols-rounded"
|
||||
style={{
|
||||
fontSize: "2em",
|
||||
}}
|
||||
>
|
||||
{playing
|
||||
? "pause"
|
||||
: "play_arrow"}
|
||||
</div>
|
||||
</Fab>
|
||||
</div>
|
||||
<IconButton
|
||||
@@ -322,7 +329,9 @@ const AudioPlayer = () => {
|
||||
tracks.length - 1 == currentTrack
|
||||
}
|
||||
>
|
||||
<MdiSkipNext />
|
||||
<div className="material-symbols-rounded">
|
||||
skip_next
|
||||
</div>
|
||||
</IconButton>
|
||||
</div>
|
||||
<div
|
||||
@@ -398,18 +407,18 @@ const AudioPlayer = () => {
|
||||
</Paper>
|
||||
</Popper>
|
||||
<IconButton onClick={handleOpenQueue} disabled>
|
||||
<MdiPlaylistMusicOutline />
|
||||
<div className="material-symbols-rounded">
|
||||
queue_music
|
||||
</div>
|
||||
</IconButton>
|
||||
<IconButton
|
||||
onClick={(e) => {
|
||||
setIsMuted(!isMuted);
|
||||
}}
|
||||
>
|
||||
{isMuted ? (
|
||||
<MdiVolumeOff />
|
||||
) : (
|
||||
<MdiVolumeHigh />
|
||||
)}
|
||||
<div className="material-symbols-rounded">
|
||||
{isMuted ? "volume_mute" : "volume_up"}
|
||||
</div>
|
||||
</IconButton>
|
||||
<Slider
|
||||
value={isMuted ? 0 : volume * 100}
|
||||
@@ -453,7 +462,9 @@ const AudioPlayer = () => {
|
||||
}}
|
||||
/>
|
||||
<IconButton onClick={resetPlayer}>
|
||||
<MdiClose />
|
||||
<div className="material-symbols-rounded">
|
||||
close
|
||||
</div>
|
||||
</IconButton>
|
||||
</div>
|
||||
</motion.div>
|
||||
|
||||
@@ -596,7 +596,12 @@ export const VideoPlayer = () => {
|
||||
gap: "2em",
|
||||
}}
|
||||
>
|
||||
<MdiVolumeHigh style={{ fontSize: "3em" }} />
|
||||
<div
|
||||
className="material-symbols-rounded"
|
||||
style={{ fontSize: "2.8em" }}
|
||||
>
|
||||
{isMuted ? "volume_mute" : "volume_up"}
|
||||
</div>
|
||||
<LinearProgress
|
||||
variant="determinate"
|
||||
value={volume * 100}
|
||||
@@ -739,7 +744,9 @@ export const VideoPlayer = () => {
|
||||
: true
|
||||
}
|
||||
>
|
||||
<MdiSkipPrevious />
|
||||
<div className="material-symbols-rounded">
|
||||
skip_previous
|
||||
</div>
|
||||
</IconButton>
|
||||
<IconButton
|
||||
onClick={() =>
|
||||
@@ -749,12 +756,20 @@ export const VideoPlayer = () => {
|
||||
)
|
||||
}
|
||||
>
|
||||
<MdiRewind />
|
||||
<div className="material-symbols-rounded">
|
||||
fast_rewind
|
||||
</div>
|
||||
</IconButton>
|
||||
<IconButton
|
||||
onClick={() => setIsPlaying(!isPlaying)}
|
||||
onClick={() =>
|
||||
setIsPlaying((state) => !state)
|
||||
}
|
||||
>
|
||||
{isPlaying ? <MdiPause /> : <MdiPlay />}
|
||||
<div className="material-symbols-rounded">
|
||||
{isPlaying
|
||||
? "pause"
|
||||
: "play_arrow"}
|
||||
</div>
|
||||
</IconButton>
|
||||
<IconButton
|
||||
onClick={() =>
|
||||
@@ -764,7 +779,9 @@ export const VideoPlayer = () => {
|
||||
)
|
||||
}
|
||||
>
|
||||
<MdiFastForward />
|
||||
<div className="material-symbols-rounded">
|
||||
fast_forward
|
||||
</div>
|
||||
</IconButton>
|
||||
<IconButton
|
||||
onClick={handlePlayNextEpisode}
|
||||
@@ -778,7 +795,9 @@ export const VideoPlayer = () => {
|
||||
: true
|
||||
}
|
||||
>
|
||||
<MdiSkipNext />
|
||||
<div className="material-symbols-rounded">
|
||||
skip_next
|
||||
</div>
|
||||
</IconButton>
|
||||
<Typography variant="subtitle1">
|
||||
{endsAt(itemDuration - currentTime)}
|
||||
@@ -848,20 +867,24 @@ export const VideoPlayer = () => {
|
||||
)
|
||||
}
|
||||
>
|
||||
<MdiPlaySpeed />
|
||||
<div className="material-symbols-rounded">
|
||||
pace
|
||||
</div>
|
||||
</IconButton>
|
||||
</Box>
|
||||
<IconButton
|
||||
sx={{
|
||||
ml: 0.1,
|
||||
}}
|
||||
onClick={() => setIsMuted(!isMuted)}
|
||||
onClick={() =>
|
||||
setIsMuted((state) => !state)
|
||||
}
|
||||
>
|
||||
{isMuted ? (
|
||||
<MdiVolumeOff />
|
||||
) : (
|
||||
<MdiVolumeHigh />
|
||||
)}
|
||||
<div className="material-symbols-rounded">
|
||||
{isMuted
|
||||
? "volume_mute"
|
||||
: "volume_up"}
|
||||
</div>
|
||||
</IconButton>
|
||||
<Slider
|
||||
value={isMuted ? 0 : volume * 100}
|
||||
@@ -930,7 +953,9 @@ export const VideoPlayer = () => {
|
||||
}
|
||||
disabled
|
||||
>
|
||||
<MdiCog />
|
||||
<div className="material-symbols-rounded">
|
||||
settings
|
||||
</div>
|
||||
</IconButton>
|
||||
</Box>
|
||||
<IconButton
|
||||
@@ -938,7 +963,9 @@ export const VideoPlayer = () => {
|
||||
setIsPIP(!isPIP);
|
||||
}}
|
||||
>
|
||||
<MdiPictureInPictureBottomRight />
|
||||
<div className="material-symbols-rounded">
|
||||
picture_in_picture_alt
|
||||
</div>
|
||||
</IconButton>
|
||||
<IconButton
|
||||
onClick={async () => {
|
||||
@@ -947,11 +974,11 @@ export const VideoPlayer = () => {
|
||||
setAppFullScreen(!fstate);
|
||||
}}
|
||||
>
|
||||
{appFullscreen ? (
|
||||
<MdiFullscreenExit />
|
||||
) : (
|
||||
<MdiFullscreen />
|
||||
)}
|
||||
<div className="material-symbols-rounded">
|
||||
{appFullscreen
|
||||
? "fullscreen_exit"
|
||||
: "fullscreen"}
|
||||
</div>
|
||||
</IconButton>
|
||||
</Stack>
|
||||
</Stack>
|
||||
|
||||
Reference in new issue
Block a user