Skip to content

TagSpaces is an offline, open source, document manager with tagging support

chore: unifying icons

Ilian Sapundshiev2a04aa7bf891
diff --git a/src/renderer/components/CommonIcons.tsx b/src/renderer/components/CommonIcons.tsx
index 2e9daa81c..4b193ce0a 100644
--- a/src/renderer/components/CommonIcons.tsx
+++ b/src/renderer/components/CommonIcons.tsx
@@ -32,7 +32,7 @@ export const NavigateToFolderIcon = (props) => <KeyboardReturnIcon />;
export { default as InfoTooltipIcon } from '@mui/icons-material/InfoOutlined';
-export { default as FolderIcon } from '@mui/icons-material/FolderOutlined';
+export { default as FolderIcon } from '@mui/icons-material/FolderOpenOutlined';
export { default as FolderOutlineIcon } from '@mui/icons-material/FolderOpen';
@@ -66,7 +66,7 @@ export { default as CloudLocationIcon } from '@mui/icons-material/CloudQueue';
export { default as OpenLinkIcon } from '@mui/icons-material/Link';
-export { default as KeyShortcutsIcon } from '@mui/icons-material/Keyboard';
+export { default as KeyShortcutsIcon } from '@mui/icons-material/KeyboardOutlined';
export { default as CancelIcon } from '@mui/icons-material/Undo';
@@ -239,7 +239,7 @@ export { default as ArrowRightIcon } from '@mui/icons-material/ArrowCircleRightO
export { default as PlayIcon } from '@mui/icons-material/PlayCircleFilledWhiteOutlined';
-export { default as FullScreenIcon } from '@mui/icons-material/ZoomOutMap';
+export { default as FullScreenIcon } from '@mui/icons-material/ScreenshotMonitor'; // ZoomOutMap
export { default as FullWidthIcon } from '@mui/icons-material/SettingsEthernet';
@@ -260,3 +260,43 @@ export { default as EncryptedIcon } from '@mui/icons-material/HttpsOutlined';
export { default as SizeIcon } from '@mui/icons-material/BubbleChartOutlined';
export { default as CalendarIcon } from '@mui/icons-material/CalendarMonthOutlined';
+
+export { default as UpdateIndexIcon } from '@mui/icons-material/Rotate90DegreesCcw';
+
+export { default as FolderVisibilityOffIcon } from '@mui/icons-material/SnippetFolderOutlined';
+
+export { default as FolderVisibilityOnIcon } from '@mui/icons-material/SnippetFolderTwoTone';
+
+export { default as ToggleSubfoldersIcon } from '@mui/icons-material/RuleFolderOutlined';
+
+export { default as GeoPinIcon } from '@mui/icons-material/AddLocationOutlined';
+
+export { default as GeoTagIcon } from '@mui/icons-material/GpsFixedOutlined';
+
+export { default as AboutIcon } from '@mui/icons-material/BlurOn';
+
+export { default as IssueIcon } from '@mui/icons-material/BugReportOutlined';
+
+export { default as CancelSubscriptionIcon } from '@mui/icons-material/EventBusyOutlined';
+
+export { default as OnboardingIcon } from '@mui/icons-material/ExploreOutlined';
+
+export { default as ProTeaserIcon } from '@mui/icons-material/FlightTakeoff';
+
+export { default as ForumIcon } from '@mui/icons-material/ForumOutlined';
+
+export { default as NewFeatureIcon } from '@mui/icons-material/GestureOutlined';
+
+export { default as ChangeLogIcon } from '@mui/icons-material/MenuBookOutlined';
+
+export { default as WebClipperIcon } from '@mui/icons-material/Transform';
+
+export { default as TranslationIcon } from '@mui/icons-material/Translate';
+
+export { default as XIcon } from '@mui/icons-material/X';
+
+export { default as ChatIcon } from '@mui/icons-material/Chat';
+
+export { default as ZoomInIcon } from '@mui/icons-material/ControlPoint';
+
+export { default as ZoomOutIcon } from '@mui/icons-material/RemoveCircleOutline';
diff --git a/src/renderer/components/FolderContainer.tsx b/src/renderer/components/FolderContainer.tsx
index 6714d3c2d..221b4cb19 100644
--- a/src/renderer/components/FolderContainer.tsx
+++ b/src/renderer/components/FolderContainer.tsx
@@ -39,7 +39,6 @@ import {
getDesktopMode,
getKeyBindingObject,
} from '-/reducers/settings';
-import ChatIcon from '@mui/icons-material/Chat';
import Box from '@mui/material/Box';
import CircularProgress from '@mui/material/CircularProgress';
import ToggleButton from '@mui/material/ToggleButton';
@@ -51,6 +50,7 @@ import { useCallback, useState } from 'react';
import { useTranslation } from 'react-i18next';
import { useSelector } from 'react-redux';
import {
+ ChatIcon,
GoBackIcon,
GoForwardIcon,
MainMenuIcon,
diff --git a/src/renderer/components/HelpFeedbackPanel.tsx b/src/renderer/components/HelpFeedbackPanel.tsx
index ffa40c4ea..2a5052055 100644
--- a/src/renderer/components/HelpFeedbackPanel.tsx
+++ b/src/renderer/components/HelpFeedbackPanel.tsx
@@ -16,37 +16,38 @@
*
*/
-import React from 'react';
-import { useSelector } from 'react-redux';
-import classNames from 'classnames';
-import Typography from '@mui/material/Typography';
+import {
+ AboutIcon,
+ CancelSubscriptionIcon,
+ ChangeLogIcon,
+ EmailIcon,
+ ForumIcon,
+ HelpIcon,
+ IssueIcon,
+ KeyShortcutsIcon,
+ NewFeatureIcon,
+ OnboardingIcon,
+ ProTeaserIcon,
+ TranslationIcon,
+ WebClipperIcon,
+ XIcon,
+} from '-/components/CommonIcons';
+import { SidePanel, classes } from '-/components/SidePanels.css';
+import { useAboutDialogContext } from '-/components/dialogs/hooks/useAboutDialogContext';
+import { useKeyboardDialogContext } from '-/components/dialogs/hooks/useKeyboardDialogContext';
+import { useOnboardingDialogContext } from '-/components/dialogs/hooks/useOnboardingDialogContext';
+import { useProTeaserDialogContext } from '-/components/dialogs/hooks/useProTeaserDialogContext';
+import { Pro } from '-/pro';
+import { openURLExternally } from '-/services/utils-io';
+import Divider from '@mui/material/Divider';
import List from '@mui/material/List';
import ListItem from '@mui/material/ListItem';
import ListItemIcon from '@mui/material/ListItemIcon';
-import Divider from '@mui/material/Divider';
-import AboutIcon from '@mui/icons-material/BlurOn';
-import ChangeLogIcon from '@mui/icons-material/ImportContacts';
-import OnboardingIcon from '@mui/icons-material/Explore';
-import WebClipperIcon from '@mui/icons-material/Transform';
-import EmailIcon from '@mui/icons-material/Email';
-import CancelSubscriptionIcon from '@mui/icons-material/EventBusy';
-import IssueIcon from '@mui/icons-material/BugReport';
-import TranslationIcon from '@mui/icons-material/Translate';
-import NewFeatureIcon from '@mui/icons-material/Gesture';
-import XIcon from '@mui/icons-material/X';
-import ForumIcon from '@mui/icons-material/Forum';
-import ProTeaserIcon from '@mui/icons-material/FlightTakeoff';
-import { KeyShortcutsIcon, HelpIcon } from '-/components/CommonIcons';
-import Links from 'assets/links';
-import { Pro } from '-/pro';
-import { openURLExternally } from '-/services/utils-io';
-import { classes, SidePanel } from '-/components/SidePanels.css';
+import Typography from '@mui/material/Typography';
import { useTheme } from '@mui/material/styles';
+import Links from 'assets/links';
+import classNames from 'classnames';
import { useTranslation } from 'react-i18next';
-import { useAboutDialogContext } from '-/components/dialogs/hooks/useAboutDialogContext';
-import { useOnboardingDialogContext } from '-/components/dialogs/hooks/useOnboardingDialogContext';
-import { useKeyboardDialogContext } from '-/components/dialogs/hooks/useKeyboardDialogContext';
-import { useProTeaserDialogContext } from '-/components/dialogs/hooks/useProTeaserDialogContext';
interface Props {
style?: any;
diff --git a/src/renderer/components/ProTeaser.tsx b/src/renderer/components/ProTeaser.tsx
index de20aa6d9..107117c6c 100644
--- a/src/renderer/components/ProTeaser.tsx
+++ b/src/renderer/components/ProTeaser.tsx
@@ -16,12 +16,12 @@
*
*/
+import { CloseDialogIcon } from '-/components/CommonIcons';
import TsButton from '-/components/TsButton';
import TsIconButton from '-/components/TsIconButton';
import { useProTeaserDialogContext } from '-/components/dialogs/hooks/useProTeaserDialogContext';
import { openURLExternally } from '-/services/utils-io';
import CameraTwoToneIcon from '@mui/icons-material/CameraTwoTone';
-import CloseIcon from '@mui/icons-material/Close';
import MapTwoToneIcon from '@mui/icons-material/MapTwoTone';
import ViewKanbanTwoToneIcon from '@mui/icons-material/ViewKanbanTwoTone';
import { Box, ButtonGroup } from '@mui/material';
@@ -66,7 +66,7 @@ function ProTeaser(props: Props) {
setShowTeaserBanner(false);
}}
>
- <CloseIcon fontSize="small" />
+ <CloseDialogIcon fontSize="small" />
</TsIconButton>
</Typography>
<br />
diff --git a/src/renderer/components/StoredSearches.tsx b/src/renderer/components/StoredSearches.tsx
index 6ce5ac326..37ee97020 100644
--- a/src/renderer/components/StoredSearches.tsx
+++ b/src/renderer/components/StoredSearches.tsx
@@ -17,7 +17,9 @@
*/
import {
+ EditIcon,
MoreMenuIcon,
+ SearchIcon,
SmallArrowDownIcon,
SmallArrowRightIcon,
} from '-/components/CommonIcons';
@@ -40,8 +42,6 @@ import {
getStoredSearchesVisible,
} from '-/reducers/settings';
import { TS } from '-/tagspaces.namespace';
-import EditIcon from '@mui/icons-material/Edit';
-import SearchIcon from '@mui/icons-material/FilterAltTwoTone';
import Grid from '@mui/material/Grid2';
import Typography from '@mui/material/Typography';
import classNames from 'classnames';
diff --git a/src/renderer/components/WelcomePanel.tsx b/src/renderer/components/WelcomePanel.tsx
index 4da41b166..c7b44c36f 100644
--- a/src/renderer/components/WelcomePanel.tsx
+++ b/src/renderer/components/WelcomePanel.tsx
@@ -18,11 +18,18 @@
import WelcomeLogo from '-/assets/images/welcome-logo.png';
import {
+ ChangeLogIcon,
CreateFileIcon,
+ EmailIcon,
HelpIcon,
+ IssueIcon,
KeyShortcutsIcon,
LocalLocationIcon,
+ NewFeatureIcon,
OpenLinkIcon,
+ TranslationIcon,
+ WebClipperIcon,
+ XIcon,
} from '-/components/CommonIcons';
import HowToStart from '-/components/HowToStart';
import RenderHistory from '-/components/RenderHistory';
@@ -35,13 +42,6 @@ import { Pro } from '-/pro';
import { getDesktopMode } from '-/reducers/settings';
import { openURLExternally } from '-/services/utils-io';
import { TS } from '-/tagspaces.namespace';
-import IssueIcon from '@mui/icons-material/BugReport';
-import EmailIcon from '@mui/icons-material/Email';
-import NewFeatureIcon from '@mui/icons-material/Gesture';
-import ChangeLogIcon from '@mui/icons-material/ImportContacts';
-import WebClipperIcon from '@mui/icons-material/Transform';
-import TranslationIcon from '@mui/icons-material/Translate';
-import XIcon from '@mui/icons-material/X';
import Box from '@mui/material/Box';
import Divider from '@mui/material/Divider';
import Grid from '@mui/material/Grid2';
diff --git a/src/renderer/components/ZoomComponent.tsx b/src/renderer/components/ZoomComponent.tsx
index 1980d57bc..4d7261ece 100644
--- a/src/renderer/components/ZoomComponent.tsx
+++ b/src/renderer/components/ZoomComponent.tsx
@@ -16,10 +16,9 @@
*
*/
+import { ZoomInIcon, ZoomOutIcon } from '-/components/CommonIcons';
import TsToolbarButton from '-/components/TsToolbarButton';
import { usePerspectiveSettingsContext } from '-/hooks/usePerspectiveSettingsContext';
-import ZoomInIcon from '@mui/icons-material/ControlPoint';
-import ZoomOutIcon from '@mui/icons-material/RemoveCircleOutline';
import Box from '@mui/material/Box';
import Typography from '@mui/material/Typography';
import { useTheme } from '@mui/material/styles';
diff --git a/src/renderer/components/menus/HistoryMenu.tsx b/src/renderer/components/menus/HistoryMenu.tsx
index 61ce1af89..2960f4d44 100644
--- a/src/renderer/components/menus/HistoryMenu.tsx
+++ b/src/renderer/components/menus/HistoryMenu.tsx
@@ -16,15 +16,13 @@
*
*/
-import React from 'react';
-import ListItemText from '@mui/material/ListItemText';
+import { DeleteIcon, ReloadIcon } from '-/components/CommonIcons';
+import TsMenuList from '-/components/TsMenuList';
+import { Pro } from '-/pro';
import ListItemIcon from '@mui/material/ListItemIcon';
+import ListItemText from '@mui/material/ListItemText';
import Menu from '@mui/material/Menu';
import MenuItem from '@mui/material/MenuItem';
-import RefreshIcon from '@mui/icons-material/Refresh';
-import DeleteIcon from '@mui/icons-material/Delete';
-import TsMenuList from '-/components/TsMenuList';
-import { Pro } from '-/pro';
import { useTranslation } from 'react-i18next';
interface Props {
@@ -50,7 +48,7 @@ function HistoryMenu(props: Props) {
}}
>
<ListItemIcon>
- <RefreshIcon />
+ <ReloadIcon />
</ListItemIcon>
<ListItemText primary={<>{t('core:refresh')}</>} />
</MenuItem>,
diff --git a/src/renderer/components/menus/LocationManagerMenu.tsx b/src/renderer/components/menus/LocationManagerMenu.tsx
index 7bb748cda..f9f5d4b5a 100644
--- a/src/renderer/components/menus/LocationManagerMenu.tsx
+++ b/src/renderer/components/menus/LocationManagerMenu.tsx
@@ -24,7 +24,7 @@ import {
ImportIcon,
LocalLocationIcon,
MoreMenuIcon,
- ReloadIcon,
+ UpdateIndexIcon,
} from '-/components/CommonIcons';
import { ProLabel } from '-/components/HelperComponents';
import TsIconButton from '-/components/TsIconButton';
@@ -32,7 +32,9 @@ import TsMenuList from '-/components/TsMenuList';
import { useLinkDialogContext } from '-/components/dialogs/hooks/useLinkDialogContext';
import { useCurrentLocationContext } from '-/hooks/useCurrentLocationContext';
import { useLocationIndexContext } from '-/hooks/useLocationIndexContext';
+import { Pro } from '-/pro';
import { openURLExternally } from '-/services/utils-io';
+import { Divider } from '@mui/material';
import ListItemIcon from '@mui/material/ListItemIcon';
import ListItemText from '@mui/material/ListItemText';
import Menu from '@mui/material/Menu';
@@ -42,7 +44,6 @@ import Links from 'assets/links';
import classNames from 'classnames';
import { useState } from 'react';
import { useTranslation } from 'react-i18next';
-import { Pro } from '../../pro';
interface Props {
classes: any;
@@ -84,24 +85,9 @@ function LocationManagerMenu(props: Props) {
);
}
- // menuItems.push(
- // <MenuItem
- // key="locationManagerMenuOpenLink"
- // data-tid="locationManagerMenuOpenLink"
- // onClick={() => {
- // setLocationManagerMenuAnchorEl(null);
- // openLinkDialog();
- // }}
- // >
- // <ListItemIcon>
- // <OpenLinkIcon />
- // </ListItemIcon>
- // <ListItemText primary={t('core:openLink')} />
- // </MenuItem>,
- // );
-
if (!AppConfig.locationsReadOnly) {
// https://trello.com/c/z6ESlqxz/697-exports-to-json-or-csv-do-not-work-on-android
+ menuItems.push(<Divider />);
menuItems.push(
<MenuItem
disabled={!Pro}
@@ -148,6 +134,7 @@ function LocationManagerMenu(props: Props) {
/>
</MenuItem>,
);
+ menuItems.push(<Divider />);
}
menuItems.push(
@@ -176,12 +163,12 @@ function LocationManagerMenu(props: Props) {
}}
>
<ListItemIcon>
- <ReloadIcon />
+ <UpdateIndexIcon />
</ListItemIcon>
<ListItemText primary={t('core:updateAllLocationIndexes')} />
</MenuItem>,
);
-
+ menuItems.push(<Divider />);
menuItems.push(
<MenuItem
key="locationManagerMenuHelp"