From e8ccfb3d46390331d0d6ce529f492b62a86da0f4 Mon Sep 17 00:00:00 2001 From: Nicola Benaglia Date: Sun, 20 Apr 2025 18:58:55 +0200 Subject: [PATCH] Refactor q-app library component style --- src/components/Apps/Apps-styles.tsx | 4 +-- src/components/Apps/AppsCategoryDesktop.tsx | 32 +++++++-------------- src/components/Apps/AppsDesktop.tsx | 8 +++--- src/components/Apps/AppsLibraryDesktop.tsx | 1 - 4 files changed, 17 insertions(+), 28 deletions(-) diff --git a/src/components/Apps/Apps-styles.tsx b/src/components/Apps/Apps-styles.tsx index 056308d..45fd02c 100644 --- a/src/components/Apps/Apps-styles.tsx +++ b/src/components/Apps/Apps-styles.tsx @@ -38,7 +38,7 @@ export const AppsContainer = styled(Box)(({ theme }) => ({ export const AppsLibraryContainer = styled(Box)(({ theme }) => ({ alignItems: 'center', - backgroundColor: theme.palette.background.paper, + backgroundColor: theme.palette.background.default, display: 'flex', flexDirection: 'column', justifyContent: 'flex-start', @@ -114,7 +114,7 @@ export const AppCircleLabel = styled(Typography)(({ theme }) => ({ })); export const AppLibrarySubTitle = styled(Typography)(({ theme }) => ({ - backgroundColor: theme.palette.background.paper, + backgroundColor: theme.palette.background.default, color: theme.palette.text.primary, fontSize: '16px', fontWeight: 500, diff --git a/src/components/Apps/AppsCategoryDesktop.tsx b/src/components/Apps/AppsCategoryDesktop.tsx index 738b561..25d7ca3 100644 --- a/src/components/Apps/AppsCategoryDesktop.tsx +++ b/src/components/Apps/AppsCategoryDesktop.tsx @@ -9,7 +9,7 @@ import { } from './Apps-styles'; import { ButtonBase, InputBase, styled } from '@mui/material'; import { MyContext } from '../../App'; -import IconSearch from '../../assets/svgs/Search.svg'; +import SearchIcon from '@mui/icons-material/Search'; import IconClearInput from '../../assets/svgs/ClearInput.svg'; import { Spacer } from '../../common/Spacer'; import { AppInfoSnippet } from './AppInfoSnippet'; @@ -19,22 +19,6 @@ import { AppsDesktopLibraryHeader, } from './AppsDesktop-styles'; -const officialAppList = [ - 'q-tube', - 'q-blog', - 'q-share', - 'q-support', - 'q-mail', - 'q-fund', - 'q-shop', - 'q-trade', - 'q-support', - 'q-manager', - 'q-wallets', - 'q-search', - 'q-nodecontrol', -]; - const ScrollerStyled = styled('div')({ // Hide scrollbar for WebKit browsers (Chrome, Safari) '::-webkit-scrollbar': { @@ -136,15 +120,15 @@ export const AppsCategoryDesktop = ({ @@ -159,7 +143,8 @@ export const AppsCategoryDesktop = ({ }} > - + + setSearchValue(e.target.value)} @@ -172,6 +157,7 @@ export const AppsCategoryDesktop = ({ }} /> + {searchValue && ( + + {`Category: ${category?.name}`} + {mode === 'appInfo' && !selectedTab && ( diff --git a/src/components/Apps/AppsLibraryDesktop.tsx b/src/components/Apps/AppsLibraryDesktop.tsx index 3960f25..6d5c3ec 100644 --- a/src/components/Apps/AppsLibraryDesktop.tsx +++ b/src/components/Apps/AppsLibraryDesktop.tsx @@ -42,7 +42,6 @@ import { AppsDesktopLibraryHeader, } from './AppsDesktop-styles'; import { ShowMessageReturnButton } from '../Group/Forum/Mail-styles'; -import { Theme } from 'emoji-picker-react'; const officialAppList = [ 'q-tube',