From 6d964b7ece6414129e8d44a768079aa3d27778bc Mon Sep 17 00:00:00 2001 From: Ipmake Date: Tue, 28 Jan 2025 21:27:13 +0100 Subject: [PATCH] refactor: Replace icon components with their rounded variants for consistency --- frontend/src/components/AppBar.tsx | 26 +++++++++--------- frontend/src/components/HeroDisplay.tsx | 14 +++++----- frontend/src/components/MetaScreen.tsx | 30 ++++++++++----------- frontend/src/components/MovieItem.tsx | 18 ++++++------- frontend/src/components/MovieItemSlider.tsx | 8 +++--- frontend/src/components/PerPlexedSync.tsx | 4 +-- frontend/src/components/ToastManager.tsx | 16 +++++------ frontend/src/pages/Watch.tsx | 10 +++---- 8 files changed, 62 insertions(+), 64 deletions(-) diff --git a/frontend/src/components/AppBar.tsx b/frontend/src/components/AppBar.tsx index b705f74..55cba71 100755 --- a/frontend/src/components/AppBar.tsx +++ b/frontend/src/components/AppBar.tsx @@ -29,12 +29,12 @@ import { getAllLibraries, getSearch, getTranscodeImageURL } from "../plex"; import MetaScreen from "./MetaScreen"; import { useUserSessionStore } from "../states/UserSession"; import { - Favorite, - Fullscreen, - Logout, - People, - Search, - Settings, + FavoriteRounded, + FullscreenRounded, + LogoutRounded, + PeopleRounded, + SearchRounded, + SettingsRounded, ShortcutRounded, } from "@mui/icons-material"; import { useSyncInterfaceState } from "./PerPlexedSync"; @@ -136,7 +136,7 @@ function Appbar() { }} > - + Sponsor @@ -149,7 +149,7 @@ function Appbar() { }} > - + Watch2Gether @@ -163,7 +163,7 @@ function Appbar() { }} > - + Fullscreen @@ -201,7 +201,7 @@ S - Skip onscreen markers (intro, credits, etc) disabled > - + Settings @@ -214,7 +214,7 @@ S - Skip onscreen markers (intro, credits, etc) }} > - + Logout @@ -288,7 +288,7 @@ S - Skip onscreen markers (intro, credits, etc) }, }} > - + )} @@ -417,7 +417,7 @@ function SearchBar() { InputProps={{ startAdornment: ( - + ), }} diff --git a/frontend/src/components/HeroDisplay.tsx b/frontend/src/components/HeroDisplay.tsx index 4f092df..97a2f2f 100644 --- a/frontend/src/components/HeroDisplay.tsx +++ b/frontend/src/components/HeroDisplay.tsx @@ -1,9 +1,9 @@ import { - PlayArrow, + PlayArrowRounded, InfoOutlined, - VolumeOff, - VolumeUp, - Pause, + VolumeOffRounded, + VolumeUpRounded, + PauseRounded, } from "@mui/icons-material"; import { Box, Typography, Button, IconButton } from "@mui/material"; import React, { useEffect, useState } from "react"; @@ -90,7 +90,7 @@ function HeroDisplay({ item }: { item: Plex.Metadata }) { setPreviewVidPlaying(!previewVidPlaying); }} > - {previewVidPlaying ? : } + {previewVidPlaying ? : } - {MetaScreenPlayerMuted ? : } + {MetaScreenPlayerMuted ? : } @@ -265,7 +265,7 @@ function HeroDisplay({ item }: { item: Plex.Metadata }) { navigate(`/watch/${item.ratingKey}`); }} > - Play + Play @@ -558,9 +556,9 @@ export function WatchListButton({ item }: { item: Plex.Metadata }) { }} > {WatchList.isOnWatchList(item.guid) ? ( - + ) : ( - + )} ); diff --git a/frontend/src/components/MovieItemSlider.tsx b/frontend/src/components/MovieItemSlider.tsx index fc6601c..047aae8 100755 --- a/frontend/src/components/MovieItemSlider.tsx +++ b/frontend/src/components/MovieItemSlider.tsx @@ -1,7 +1,7 @@ import { Box, Typography } from "@mui/material"; import React from "react"; import { getLibraryDir } from "../plex"; -import { ArrowForwardIos } from "@mui/icons-material"; +import { ArrowForwardIosRounded } from "@mui/icons-material"; import { useSearchParams } from "react-router-dom"; import MovieItem from "./MovieItem"; @@ -152,7 +152,7 @@ function MovieItemSlider({ }} > Browse - + )} @@ -231,7 +231,7 @@ function MovieItemSlider({ ); }} > - - + diff --git a/frontend/src/components/PerPlexedSync.tsx b/frontend/src/components/PerPlexedSync.tsx index caafa17..7f8664c 100644 --- a/frontend/src/components/PerPlexedSync.tsx +++ b/frontend/src/components/PerPlexedSync.tsx @@ -12,7 +12,7 @@ import { import React, { useEffect } from "react"; import { create } from "zustand"; import { useSyncSessionState } from "../states/SyncSessionState"; -import { ContentCopy } from "@mui/icons-material"; +import { ContentCopyRounded } from "@mui/icons-material"; import { useNavigate } from "react-router-dom"; interface SyncInterfaceState { @@ -143,7 +143,7 @@ function PerPlexedSync() { navigator.clipboard.writeText(room || ""); }} > - + diff --git a/frontend/src/components/ToastManager.tsx b/frontend/src/components/ToastManager.tsx index bcdb937..a326e3c 100644 --- a/frontend/src/components/ToastManager.tsx +++ b/frontend/src/components/ToastManager.tsx @@ -1,11 +1,11 @@ import { - PersonAdd, - PersonRemove, + PersonAddRounded, + PersonRemoveRounded, PlayArrowRounded, PlaylistAddRounded, - Pause, + PauseRounded, RedoRounded, - ResetTv + ResetTvRounded } from "@mui/icons-material"; import { Avatar, Box, Divider, Typography } from "@mui/material"; import { create } from "zustand"; @@ -197,7 +197,7 @@ export function Toast({ )} {icon === "Pause" && ( - {qualityOption.bitrate === quality.bitrate && ( - - stream.selected && stream.streamType === 3 ).length === 0 && ( - -