TagSpaces is an offline, open source, document manager with tagging support
chore: some design adjustments for the perspective configuration
Ilian Sapundshievf932926020ef
diff --git a/src/renderer/components/CommonIcons.tsx b/src/renderer/components/CommonIcons.tsxindex 37432c2e9..e87eeb27f 100644--- a/src/renderer/components/CommonIcons.tsx+++ b/src/renderer/components/CommonIcons.tsx@@ -352,6 +352,8 @@ export { default as VisibilityOffIcon } from '@mui/icons-material/VisibilityOff'export { default as PasswordIcon } from '@mui/icons-material/Password';+export { default as PerspectiveIcon } from '@mui/icons-material/BlurOn';+export const MastodonIcon = (props) => (<SvgIcon {...props}><svgdiff --git a/src/renderer/components/FolderContainer.tsx b/src/renderer/components/FolderContainer.tsxindex 3d8cc5751..c31b61f9e 100644--- a/src/renderer/components/FolderContainer.tsx+++ b/src/renderer/components/FolderContainer.tsx@@ -46,7 +46,6 @@ import {isHideProFeatures,} from '-/reducers/settings';import { CommonLocation } from '-/utils/CommonLocation';-import BlurOnIcon from '@mui/icons-material/BlurOn';import { Fab, ListItemIcon, ListItemText, Menu, MenuItem } from '@mui/material';import Box from '@mui/material/Box';import CircularProgress from '@mui/material/CircularProgress';@@ -62,6 +61,7 @@ import {GoBackIcon,GoForwardIcon,MainMenuIcon,+ PerspectiveIcon,SearchIcon,} from './CommonIcons';import TsToggleButton from './TsToggleButton';@@ -500,7 +500,7 @@ function FolderContainer({ toggleDrawer, drawerOpened, hidden }: Props) {}}onClick={openPerspectiveMenu}>- <BlurOnIcon />+ <PerspectiveIcon /></Fab><Menuid="demo-positioned-menu"diff --git a/src/renderer/components/HelperComponents.tsx b/src/renderer/components/HelperComponents.tsxindex de4fcdf19..26debedab 100644--- a/src/renderer/components/HelperComponents.tsx+++ b/src/renderer/components/HelperComponents.tsx@@ -17,20 +17,22 @@*/import { Pro } from '-/pro';-import Tooltip from '@mui/material/Tooltip';import Typography from '@mui/material/Typography';import { useTranslation } from 'react-i18next';+import TooltipTS from './Tooltip';export function BetaLabel() {const { t } = useTranslation();return (- <Tooltip title={t('featureInBetaStatus')}>+ <TooltipTS title={t('featureInBetaStatus')}><Typography sx={{ display: 'initial' }}>- <sup style={{ marginLeft: 5, textTransform: 'uppercase' }}>+ <sup+ style={{ marginLeft: 5, textTransform: 'uppercase', fontSize: 11 }}+ >{t('betaStatus')}</sup></Typography>- </Tooltip>+ </TooltipTS>);}@@ -38,11 +40,11 @@ export function ProLabel() {const { t } = useTranslation();return (!Pro && (- <Tooltip placement="top" title={t('thisFunctionalityIsAvailableInPro')}>+ <TooltipTS title={t('thisFunctionalityIsAvailableInPro')}><Typography sx={{ display: 'initial' }}>- <sup style={{ marginLeft: 5 }}>PRO</sup>+ <sup style={{ marginLeft: 5, fontSize: 11 }}>PRO</sup></Typography>- </Tooltip>+ </TooltipTS>));}@@ -51,20 +53,20 @@ export function ProSign() {const { t } = useTranslation();return (!Pro && (- <Tooltip placement="top" title={t('thisFunctionalityIsAvailableInPro')}>+ <TooltipTS title={t('thisFunctionalityIsAvailableInPro')}><Typography sx={{ display: 'initial' }}><supstyle={{fontSize: 10,- borderRadius: 4,+ borderRadius: 8,backgroundColor: '#1dd19f',- padding: 3,+ padding: '3px 5px',}}>PRO</sup></Typography>- </Tooltip>+ </TooltipTS>));}@@ -78,12 +80,12 @@ export function ProTooltip(props) {? tooltip + ' - ' + t('thisFunctionalityIsAvailableInPro'): t('thisFunctionalityIsAvailableInPro');return (- <Tooltip+ <TooltipTSarrowplacement={tooltipPlacement}title={Pro ? proTooltip : noProTooltip}><div style={{ display: 'flex' }} children={children}></div>- </Tooltip>+ </TooltipTS>);}diff --git a/src/renderer/components/dialogs/SettingsDialog.tsx b/src/renderer/components/dialogs/SettingsDialog.tsxindex 7353f204d..03fc16f0f 100644--- a/src/renderer/components/dialogs/SettingsDialog.tsx+++ b/src/renderer/components/dialogs/SettingsDialog.tsx@@ -22,6 +22,7 @@ import {FileIcon,KeyboardIcon,OptionsIcon,+ PerspectiveIcon,} from '-/components/CommonIcons';import DraggablePaper from '-/components/DraggablePaper';import { BetaLabel } from '-/components/HelperComponents';@@ -38,7 +39,6 @@ import TsDialogActions from '-/components/dialogs/components/TsDialogActions';import TsDialogTitle from '-/components/dialogs/components/TsDialogTitle';import { openURLExternally } from '-/services/utils-io';import ArticleIcon from '@mui/icons-material/Article';-import GridViewIcon from '@mui/icons-material/GridView';import Dialog from '@mui/material/Dialog';import DialogContent from '@mui/material/DialogContent';import Paper from '@mui/material/Paper';@@ -183,7 +183,7 @@ function SettingsDialog(props: Props) {justifyContent: 'flex-start',}}iconPosition="start"- icon={smallScreen ? '' : <GridViewIcon />}+ icon={smallScreen ? '' : <PerspectiveIcon />}data-tid="perspectivesSettingsDialog"label={t('core:perspectivesSettingsTab')}/>diff --git a/src/renderer/components/dialogs/components/SettingsPerspectives.tsx b/src/renderer/components/dialogs/components/SettingsPerspectives.tsxindex 57bd30bd0..9932a95b6 100644--- a/src/renderer/components/dialogs/components/SettingsPerspectives.tsx+++ b/src/renderer/components/dialogs/components/SettingsPerspectives.tsx@@ -16,7 +16,7 @@**/-import { BetaLabel } from '-/components/HelperComponents';+import { BetaLabel, ProLabel } from '-/components/HelperComponents';import TsButton from '-/components/TsButton';import { usePerspectiveOnboardingContext } from '-/components/dialogs/hooks/usePerspectiveOnboardingContext';import { useNotificationContext } from '-/hooks/useNotificationContext';@@ -32,7 +32,6 @@ import {isHideProFeatures,} from '-/reducers/settings';import Box from '@mui/material/Box';-import Chip from '@mui/material/Chip';import List from '@mui/material/List';import ListItem from '@mui/material/ListItem';import ListItemIcon from '@mui/material/ListItemIcon';@@ -163,10 +162,8 @@ function SettingsPerspectives() {primary={<Box sx={{ display: 'flex', alignItems: 'center', gap: 1 }}>{perspective.title}- {perspective.pro && (- <Chip size="small" color="primary" label="PRO" />- )}{perspective.beta && <BetaLabel />}+ {perspective.pro && <ProLabel />}</Box>}/>