diff --git a/src/App.tsx b/src/App.tsx index 6297047..f8e4146 100644 --- a/src/App.tsx +++ b/src/App.tsx @@ -30,7 +30,6 @@ import { CountdownCircleTimer } from 'react-countdown-circle-timer'; import Logo1Dark from './assets/svgs/Logo1Dark.svg'; import RefreshIcon from '@mui/icons-material/Refresh'; import DownloadIcon from '@mui/icons-material/Download'; -import Copy from './assets/svgs/Copy.svg'; import ltcLogo from './assets/ltc.png'; import PersonSearchIcon from '@mui/icons-material/PersonSearch'; import qortLogo from './assets/qort.png'; @@ -137,6 +136,7 @@ import ThemeSelector from './components/Theme/ThemeSelector.tsx'; import { useTranslation } from 'react-i18next'; import LanguageSelector from './components/Language/LanguageSelector.tsx'; import { DownloadWallet } from './components/Auth/DownloadWallet.tsx'; +import { CopyIcon } from './assets/Icons/CopyIcon.tsx'; type extStates = | 'not-authenticated' @@ -1297,7 +1297,8 @@ function App() { {rawWallet?.ltcAddress?.slice(0, 6)}... - {rawWallet?.ltcAddress?.slice(-4)} + {rawWallet?.ltcAddress?.slice(-4)}{' '} + @@ -1362,7 +1363,8 @@ function App() { {rawWallet?.address0?.slice(0, 6)}... - {rawWallet?.address0?.slice(-4)} + {rawWallet?.address0?.slice(-4)}{' '} + @@ -1519,7 +1521,11 @@ function App() { }, }} > - + @@ -1559,7 +1565,11 @@ function App() { }, }} > - + @@ -1599,7 +1609,11 @@ function App() { }, }} > - + @@ -1639,7 +1653,11 @@ function App() { }, }} > - + @@ -1681,7 +1699,10 @@ function App() { setIsOpenDrawerProfile(true); }} > - + @@ -1787,7 +1808,11 @@ function App() { }, }} > - + @@ -1832,7 +1857,11 @@ function App() { }, }} > - + )} @@ -1874,7 +1903,11 @@ function App() { }, }} > - + @@ -2165,10 +2198,10 @@ function App() { defaultChecked={messageQortalRequest?.checkbox1?.value} sx={{ '&.Mui-checked': { - color: 'white', // Customize the color when checked + color: theme.palette.text.secondary, // Customize the color when checked }, '& .MuiSvgIcon-root': { - color: 'white', + color: theme.palette.text.secondary, }, }} /> @@ -3407,10 +3440,10 @@ function App() { } sx={{ '&.Mui-checked': { - color: 'white', // Customize the color when checked + color: theme.palette.text.secondary, // Customize the color when checked }, '& .MuiSvgIcon-root': { - color: 'white', + color: theme.palette.text.secondary, }, }} /> @@ -3436,10 +3469,10 @@ function App() { disableRipple sx={{ '&.Mui-checked': { - color: 'white', + color: theme.palette.text.secondary, }, '& .MuiSvgIcon-root': { - color: 'white', + color: theme.palette.text.secondary, }, }} /> diff --git a/src/assets/Icons/ChatIcon.tsx b/src/assets/Icons/ChatIcon.tsx index f68ed35..8546949 100644 --- a/src/assets/Icons/ChatIcon.tsx +++ b/src/assets/Icons/ChatIcon.tsx @@ -1,12 +1,18 @@ import React from 'react'; -export const ChatIcon= ({ color = 'white', height = 15, width = 15 }) => { - return ( - - - - - - ); - }; - \ No newline at end of file +export const ChatIcon = ({ color = 'white', height = 15, width = 15 }) => { + return ( + + + + ); +}; diff --git a/src/assets/Icons/CopyIcon.tsx b/src/assets/Icons/CopyIcon.tsx new file mode 100644 index 0000000..67ede2d --- /dev/null +++ b/src/assets/Icons/CopyIcon.tsx @@ -0,0 +1,25 @@ +import { useTheme } from '@mui/material'; +import React from 'react'; + +export const CopyIcon = ({ color, height = 11, width = 10 }) => { + const theme = useTheme(); + + const setColor = color ? color : theme.palette.text.primary; + return ( + + + + ); +}; diff --git a/src/assets/Icons/MessagingIcon2.tsx b/src/assets/Icons/MessagingIcon2.tsx deleted file mode 100644 index da367cd..0000000 --- a/src/assets/Icons/MessagingIcon2.tsx +++ /dev/null @@ -1,14 +0,0 @@ -import React from 'react'; - -export const MessagingIcon2= ({ color = '#8F8F91', height = 24, width =24 }) => { - return ( - - - - - - - - ); - }; - \ No newline at end of file diff --git a/src/assets/Icons/MessagingIconFilled.tsx b/src/assets/Icons/MessagingIconFilled.tsx new file mode 100644 index 0000000..5dc6e04 --- /dev/null +++ b/src/assets/Icons/MessagingIconFilled.tsx @@ -0,0 +1,24 @@ +import { useTheme } from '@mui/material'; +import React from 'react'; + +export const MessagingIconFilled = ({ color, height = 31, width = 31 }) => { + const theme = useTheme(); + + const setColor = color ? color : theme.palette.text.primary; + return ( + + + + ); +}; diff --git a/src/assets/Icons/QappDevelopText.tsx b/src/assets/Icons/QappDevelopText.tsx index e0856cf..9bd30f9 100644 --- a/src/assets/Icons/QappDevelopText.tsx +++ b/src/assets/Icons/QappDevelopText.tsx @@ -14,8 +14,8 @@ export const QappDevelopText: React.FC = ({ return ( { @@ -74,7 +80,7 @@ export const AppPublish = ({ names, categories }) => { const [appType, setAppType] = useState('APP'); const [file, setFile] = useState(null); const { show } = useContext(MyContext); - + const theme = useTheme(); const [tag1, setTag1] = useState(''); const [tag2, setTag2] = useState(''); const [tag3, setTag3] = useState(''); @@ -263,9 +269,7 @@ export const AppPublish = ({ names, categories }) => { - + Name/App @@ -278,11 +282,11 @@ export const AppPublish = ({ names, categories }) => { Select Name/App - {' '} + {/* This is the placeholder item */} {names.map((name) => { @@ -292,9 +296,7 @@ export const AppPublish = ({ names, categories }) => { - + App service type @@ -307,12 +309,11 @@ export const AppPublish = ({ names, categories }) => { Select App Type - {' '} - {/* This is the placeholder item */} + App Website @@ -320,9 +321,7 @@ export const AppPublish = ({ names, categories }) => { - + Title @@ -330,7 +329,7 @@ export const AppPublish = ({ names, categories }) => { value={title} onChange={(e) => setTitle(e.target.value)} sx={{ - border: '0.5px solid var(--50-white, #FFFFFF80)', + border: `0.5px solid ${theme.palette.action.disabled}`, padding: '0px 15px', borderRadius: '5px', height: '36px', @@ -347,9 +346,7 @@ export const AppPublish = ({ names, categories }) => { - + Description @@ -357,7 +354,7 @@ export const AppPublish = ({ names, categories }) => { value={description} onChange={(e) => setDescription(e.target.value)} sx={{ - border: '0.5px solid var(--50-white, #FFFFFF80)', + border: `0.5px solid ${theme.palette.action.disabled}`, padding: '0px 15px', borderRadius: '5px', height: '36px', @@ -374,9 +371,7 @@ export const AppPublish = ({ names, categories }) => { - + Category @@ -389,12 +384,11 @@ export const AppPublish = ({ names, categories }) => { Select Category - {' '} - {/* This is the placeholder item */} + {categories?.map((category) => { return ( @@ -407,9 +401,7 @@ export const AppPublish = ({ names, categories }) => { - + Tags @@ -418,7 +410,7 @@ export const AppPublish = ({ names, categories }) => { value={tag1} onChange={(e) => setTag1(e.target.value)} sx={{ - border: '0.5px solid var(--50-white, #FFFFFF80)', + border: `0.5px solid ${theme.palette.action.disabled}`, padding: '0px 15px', borderRadius: '5px', height: '36px', @@ -435,7 +427,7 @@ export const AppPublish = ({ names, categories }) => { value={tag2} onChange={(e) => setTag2(e.target.value)} sx={{ - border: '0.5px solid var(--50-white, #FFFFFF80)', + border: `0.5px solid ${theme.palette.action.disabled}`, padding: '0px 15px', borderRadius: '5px', height: '36px', @@ -452,7 +444,7 @@ export const AppPublish = ({ names, categories }) => { value={tag3} onChange={(e) => setTag3(e.target.value)} sx={{ - border: '0.5px solid var(--50-white, #FFFFFF80)', + border: `0.5px solid ${theme.palette.action.disabled}`, padding: '0px 15px', borderRadius: '5px', height: '36px', @@ -469,7 +461,7 @@ export const AppPublish = ({ names, categories }) => { value={tag4} onChange={(e) => setTag4(e.target.value)} sx={{ - border: '0.5px solid var(--50-white, #FFFFFF80)', + border: `0.5px solid ${theme.palette.action.disabled}`, padding: '0px 15px', borderRadius: '5px', height: '36px', @@ -486,7 +478,7 @@ export const AppPublish = ({ names, categories }) => { value={tag5} onChange={(e) => setTag5(e.target.value)} sx={{ - border: '0.5px solid var(--50-white, #FFFFFF80)', + border: `0.5px solid ${theme.palette.action.disabled}`, padding: '0px 15px', borderRadius: '5px', height: '36px', diff --git a/src/components/Apps/AppViewerContainer.tsx b/src/components/Apps/AppViewerContainer.tsx index daa3a7e..43c661f 100644 --- a/src/components/Apps/AppViewerContainer.tsx +++ b/src/components/Apps/AppViewerContainer.tsx @@ -27,7 +27,7 @@ const AppViewerContainer = React.forwardRef( } .frame-content { overflow: hidden; - height: '100vh'; + height: 100vh; } `} @@ -35,7 +35,7 @@ const AppViewerContainer = React.forwardRef( } style={{ border: 'none', - height: '100vh', + height: customHeight || '100vh', left: (!isSelected || hide) && '-200vw', overflow: 'hidden', position: (!isSelected || hide) && 'fixed', diff --git a/src/components/Apps/Apps-styles.tsx b/src/components/Apps/Apps-styles.tsx index a335810..40192a3 100644 --- a/src/components/Apps/Apps-styles.tsx +++ b/src/components/Apps/Apps-styles.tsx @@ -141,7 +141,7 @@ export const AppLibrarySubTitle = styled(Typography)(({ theme }) => ({ export const AppCircle = styled(Box)(({ theme }) => ({ alignItems: 'center', - backgroundColor: theme.palette.background.default, + backgroundColor: theme.palette.background.surface, borderColor: theme.palette.mode === 'dark' ? 'rgb(209, 209, 209)' @@ -283,7 +283,7 @@ export const TabParent = styled(Box)(({ theme }) => ({ export const PublishQAppCTAParent = styled(Box)(({ theme }) => ({ alignItems: 'center', - backgroundColor: theme.palette.background.default, + backgroundColor: theme.palette.background.paper, color: theme.palette.text.primary, display: 'flex', justifyContent: 'space-between', @@ -292,7 +292,7 @@ export const PublishQAppCTAParent = styled(Box)(({ theme }) => ({ export const PublishQAppCTALeft = styled(Box)(({ theme }) => ({ alignItems: 'center', - backgroundColor: theme.palette.background.default, + backgroundColor: theme.palette.background.paper, color: theme.palette.text.primary, display: 'flex', justifyContent: 'flex-start', @@ -300,7 +300,7 @@ export const PublishQAppCTALeft = styled(Box)(({ theme }) => ({ export const PublishQAppCTARight = styled(Box)(({ theme }) => ({ alignItems: 'center', - backgroundColor: theme.palette.background.default, + backgroundColor: theme.palette.background.paper, color: theme.palette.text.primary, display: 'flex', justifyContent: 'flex-end', @@ -308,8 +308,8 @@ export const PublishQAppCTARight = styled(Box)(({ theme }) => ({ export const PublishQAppCTAButton = styled(ButtonBase)(({ theme }) => ({ alignItems: 'center', - backgroundColor: theme.palette.background.paper, - borderColor: theme.palette.background.default, + backgroundColor: theme.palette.background.default, + borderColor: theme.palette.text.primary, borderRadius: '25px', borderStyle: 'solid', borderWidth: '1px', @@ -322,10 +322,10 @@ export const PublishQAppCTAButton = styled(ButtonBase)(({ theme }) => ({ export const PublishQAppDotsBG = styled(Box)(({ theme }) => ({ alignItems: 'center', - backgroundColor: theme.palette.background.default, + backgroundColor: theme.palette.background.paper, color: theme.palette.text.primary, display: 'flex', - height: '60px', + height: '80px', justifyContent: 'center', width: '60px', })); @@ -333,7 +333,7 @@ export const PublishQAppDotsBG = styled(Box)(({ theme }) => ({ export const PublishQAppInfo = styled(Typography)(({ theme }) => ({ backgroundColor: theme.palette.background.default, color: theme.palette.text.primary, - fontSize: '10px', + fontSize: '16px', fontStyle: 'italic', fontWeight: 400, lineHeight: 1.2, @@ -341,15 +341,18 @@ export const PublishQAppInfo = styled(Typography)(({ theme }) => ({ export const PublishQAppChoseFile = styled(ButtonBase)(({ theme }) => ({ alignItems: 'center', - backgroundColor: theme.palette.background.default, + backgroundColor: theme.palette.background.paper, borderRadius: '5px', color: theme.palette.text.primary, display: 'flex', - fontSize: '10px', + fontSize: '16px', fontWeight: 600, - height: '30px', + height: '40px', justifyContent: 'center', - width: '101px', + width: '120px', + '&:hover': { + backgroundColor: 'action.hover', // background on hover + }, })); export const AppsCategoryInfo = styled(Box)(({ theme }) => ({ diff --git a/src/components/Apps/AppsDesktop.tsx b/src/components/Apps/AppsDesktop.tsx index e81e1a3..32098e2 100644 --- a/src/components/Apps/AppsDesktop.tsx +++ b/src/components/Apps/AppsDesktop.tsx @@ -24,6 +24,7 @@ import { useRecoilState } from 'recoil'; import { enabledDevModeAtom } from '../../atoms/global'; import { AppsIcon } from '../../assets/Icons/AppsIcon'; import { CoreSyncStatus } from '../CoreSyncStatus'; +import { MessagingIconFilled } from '../../assets/Icons/MessagingIconFilled'; const uid = new ShortUniqueId({ length: 8 }); @@ -342,6 +343,8 @@ export const AppsDesktop = ({ gap: '25px', height: '100vh', width: '60px', + backgroundColor: theme.palette.background.surface, + borderRight: `1px solid ${theme.palette.border.subtle}`, }} > - - { sx={{ position: 'relative', flexDirection: 'column', - width: '60px', + width: '59px', height: 'unset', maxHeight: '70vh', borderRadius: '0px 30px 30px 0px', @@ -116,7 +116,7 @@ export const AppsDevModeNavBar = () => { '& .MuiTabs-indicator': { backgroundColor: 'white', }, - maxHeight: `320px`, // Ensure the tabs container fits within the available space + maxHeight: `275px`, // Ensure the tabs container fits within the available space overflow: 'hidden', // Prevents overflow on small screens }} > diff --git a/src/components/Apps/AppsLibraryDesktop.tsx b/src/components/Apps/AppsLibraryDesktop.tsx index 1c6206e..f09e7c1 100644 --- a/src/components/Apps/AppsLibraryDesktop.tsx +++ b/src/components/Apps/AppsLibraryDesktop.tsx @@ -467,11 +467,13 @@ export const AppsLibraryDesktop = ({ borderRadius: '6px', borderStyle: 'solid', borderWidth: '4px', - boxShadow: '2px 4px 0px 0px #000000', display: 'flex', height: '50px', justifyContent: 'center', padding: '0px 20px', + '&:hover': { + backgroundColor: 'action.hover', // background on hover + }, }} > All @@ -495,11 +497,13 @@ export const AppsLibraryDesktop = ({ borderRadius: '6px', borderStyle: 'solid', borderWidth: '4px', - boxShadow: '2px 4px 0px 0px #000000', display: 'flex', height: '50px', justifyContent: 'center', padding: '0px 20px', + '&:hover': { + backgroundColor: 'action.hover', // background on hover + }, }} > {category?.name} diff --git a/src/components/Apps/AppsNavBarDesktop.tsx b/src/components/Apps/AppsNavBarDesktop.tsx index 890c297..3c6d91c 100644 --- a/src/components/Apps/AppsNavBarDesktop.tsx +++ b/src/components/Apps/AppsNavBarDesktop.tsx @@ -160,7 +160,7 @@ export const AppsNavBarDesktop = ({ disableBack }) => { maxHeight: '70vh', padding: '10px', position: 'relative', - width: '60px', + width: '59px', }} > { '& .MuiTabs-indicator': { backgroundColor: theme.palette.background.default, }, - maxHeight: `320px`, // Ensure the tabs container fits within the available space + maxHeight: `275px`, // Ensure the tabs container fits within the available space overflow: 'hidden', // Prevents overflow on small screens }} > diff --git a/src/components/Apps/AppsPrivate.tsx b/src/components/Apps/AppsPrivate.tsx index 4d3e852..4a39b63 100644 --- a/src/components/Apps/AppsPrivate.tsx +++ b/src/components/Apps/AppsPrivate.tsx @@ -261,6 +261,12 @@ export const AppsPrivate = ({ myName }) => { }} maxWidth="md" fullWidth={true} + PaperProps={{ + style: { + backgroundColor: theme.palette.background.paper, + boxShadow: 'none', + }, + }} > } label={ diff --git a/src/components/Chat/ChatGroup.tsx b/src/components/Chat/ChatGroup.tsx index 2a86f1d..503ec3a 100644 --- a/src/components/Chat/ChatGroup.tsx +++ b/src/components/Chat/ChatGroup.tsx @@ -1217,7 +1217,7 @@ export const ChatGroup = ({ > diff --git a/src/components/Chat/ChatOptions.tsx b/src/components/Chat/ChatOptions.tsx index ed808f2..c70dbff 100644 --- a/src/components/Chat/ChatOptions.tsx +++ b/src/components/Chat/ChatOptions.tsx @@ -576,7 +576,7 @@ export const ChatOptions = ({ diff --git a/src/components/Chat/TipTap.tsx b/src/components/Chat/TipTap.tsx index 3c5403f..01155b5 100644 --- a/src/components/Chat/TipTap.tsx +++ b/src/components/Chat/TipTap.tsx @@ -365,6 +365,7 @@ export default ({ membersWithNames, enableMentions, }) => { + const theme = useTheme(); const [isDisabledEditorEnter, setIsDisabledEditorEnter] = useRecoilState( isDisabledEditorEnterAtom ); @@ -483,12 +484,16 @@ export default ({ }, []); return ( -
-
+
); }; diff --git a/src/components/DesktopSideBar.tsx b/src/components/DesktopSideBar.tsx index e632b06..f1ccf22 100644 --- a/src/components/DesktopSideBar.tsx +++ b/src/components/DesktopSideBar.tsx @@ -1,6 +1,5 @@ import { Box, ButtonBase, useTheme } from '@mui/material'; import { HomeIcon } from '../assets/Icons/HomeIcon'; -import { MessagingIcon } from '../assets/Icons/MessagingIcon'; import { Save } from './Save/Save'; import { IconWrapper } from './Desktop/DesktopFooter'; import { useRecoilState } from 'recoil'; @@ -9,6 +8,7 @@ import { AppsIcon } from '../assets/Icons/AppsIcon'; import ThemeSelector from './Theme/ThemeSelector'; import { CoreSyncStatus } from './CoreSyncStatus'; import LanguageSelector from './Language/LanguageSelector'; +import { MessagingIconFilled } from '../assets/Icons/MessagingIconFilled'; export const DesktopSideBar = ({ goToHome, @@ -111,7 +111,7 @@ export const DesktopSideBar = ({ label="Chat" disableWidth > - { const [isOpen, setIsOpen] = useState(true); const { downloadResource } = useContext(MyContext); + const theme = useTheme(); const saveToDisk = async () => { const { name, service, identifier } = resourceData; @@ -110,7 +112,7 @@ export const AttachmentCard = ({ return ( ATTACHMENT embed @@ -149,7 +151,7 @@ export const AttachmentCard = ({ onClick={refresh} sx={{ fontSize: '24px', - color: 'white', + color: theme.palette.text.primary, }} /> @@ -159,7 +161,7 @@ export const AttachmentCard = ({ onClick={openExternal} sx={{ fontSize: '24px', - color: 'white', + color: theme.palette.text.primary, }} /> @@ -174,7 +176,6 @@ export const AttachmentCard = ({ Created by {decodeIfEncoded(owner)} @@ -281,10 +282,10 @@ export const AttachmentCard = ({ resourceDetails?.status?.status !== 'FAILED_TO_DOWNLOAD' && ( <> Downloading:{' '} diff --git a/src/components/Embeds/ImageEmbed.tsx b/src/components/Embeds/ImageEmbed.tsx index 4122dfb..24cab97 100644 --- a/src/components/Embeds/ImageEmbed.tsx +++ b/src/components/Embeds/ImageEmbed.tsx @@ -8,6 +8,7 @@ import { Divider, Dialog, IconButton, + useTheme, } from '@mui/material'; import RefreshIcon from '@mui/icons-material/Refresh'; @@ -28,6 +29,7 @@ export const ImageCard = ({ errorMsg, encryptionType, }) => { + const theme = useTheme(); const [isOpen, setIsOpen] = useState(true); const [height, setHeight] = useState('400px'); useEffect(() => { @@ -45,7 +47,7 @@ export const ImageCard = ({ return ( IMAGE embed @@ -84,7 +86,7 @@ export const ImageCard = ({ onClick={refresh} sx={{ fontSize: '24px', - color: 'white', + color: theme.palette.text.primary, }} /> @@ -94,7 +96,7 @@ export const ImageCard = ({ onClick={openExternal} sx={{ fontSize: '24px', - color: 'white', + color: theme.palette.text.primary, }} /> @@ -109,7 +111,6 @@ export const ImageCard = ({ Created by {decodeIfEncoded(owner)} @@ -182,7 +183,7 @@ export function ImageViewer({ src, alt = '' }) { const handleOpenFullscreen = () => setIsFullscreen(true); const handleCloseFullscreen = () => setIsFullscreen(false); - + const theme = useTheme(); return ( <> {/* Image in container */} @@ -231,7 +232,7 @@ export function ImageViewer({ src, alt = '' }) { display: 'flex', justifyContent: 'center', alignItems: 'center', - backgroundColor: '#000', // Optional: dark background for fullscreen mode + backgroundColor: theme.palette.background.paper, // Optional: dark background for fullscreen mode }} > {/* Close Button */} @@ -242,7 +243,7 @@ export function ImageViewer({ src, alt = '' }) { top: 8, right: 8, zIndex: 10, - color: 'white', + color: theme.palette.text.primary, }} > diff --git a/src/components/Embeds/PollEmbed.tsx b/src/components/Embeds/PollEmbed.tsx index 65e5983..4adda15 100644 --- a/src/components/Embeds/PollEmbed.tsx +++ b/src/components/Embeds/PollEmbed.tsx @@ -12,6 +12,7 @@ import { Box, ButtonBase, Divider, + useTheme, } from '@mui/material'; import { getNameInfo } from '../Group/Group'; import PollIcon from '@mui/icons-material/Poll'; @@ -37,6 +38,7 @@ export const PollCard = ({ const [isOpen, setIsOpen] = useState(false); const { show, userInfo } = useContext(MyContext); const [isLoadingSubmit, setIsLoadingSubmit] = useState(false); + const theme = useTheme(); const handleVote = async () => { const fee = await getFee('VOTE_ON_POLL'); @@ -103,7 +105,7 @@ export const PollCard = ({ return ( @@ -124,7 +126,7 @@ export const PollCard = ({ > POLL embed @@ -141,7 +143,7 @@ export const PollCard = ({ onClick={refresh} sx={{ fontSize: '24px', - color: 'white', + color: theme.palette.text.primary, }} /> @@ -151,7 +153,7 @@ export const PollCard = ({ onClick={openExternal} sx={{ fontSize: '24px', - color: 'white', + color: theme.palette.text.primary, }} /> @@ -186,9 +188,6 @@ export const PollCard = ({