Skip to content

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

chore: exchanging icons

Ilian Sapundshiev241c3cdf56aa
diff --git a/src/renderer/components/CommonIcons.tsx b/src/renderer/components/CommonIcons.tsx
index 3d0cb0879..beea69036 100644
--- a/src/renderer/components/CommonIcons.tsx
+++ b/src/renderer/components/CommonIcons.tsx
@@ -44,6 +44,7 @@ export { default as GoBackIcon } from '@mui/icons-material/ArrowBack';
export { default as GoForwardIcon } from '@mui/icons-material/ArrowForward';
export { default as HelpIcon } from '@mui/icons-material/Help';
+
export { default as InfoIcon } from '@mui/icons-material/InfoOutlined';
export { default as FolderPropertiesIcon } from '@mui/icons-material/Info';
@@ -196,3 +197,7 @@ export { default as SmallArrowUpIcon } from '@mui/icons-material/KeyboardArrowDo
export { default as SmallArrowDownIcon } from '@mui/icons-material/KeyboardArrowDown';
export { default as SmallArrowRightIcon } from '@mui/icons-material/KeyboardArrowRight';
+
+export { default as ExportImportIcon } from '@mui/icons-material/SwapHoriz';
+
+export { default as ShareIcon } from '@mui/icons-material/Share';
diff --git a/src/renderer/components/StoredSearches.tsx b/src/renderer/components/StoredSearches.tsx
index 257791ecc..0a25a98ff 100644
--- a/src/renderer/components/StoredSearches.tsx
+++ b/src/renderer/components/StoredSearches.tsx
@@ -16,7 +16,11 @@
*
*/
-import { MoreMenuIcon } from '-/components/CommonIcons';
+import {
+ MoreMenuIcon,
+ SmallArrowDownIcon,
+ SmallArrowRightIcon,
+} from '-/components/CommonIcons';
import RenderHistory from '-/components/RenderHistory';
import { SidePanel, classes } from '-/components/SidePanels.css';
import TsButton from '-/components/TsButton';
@@ -38,8 +42,6 @@ import {
import { TS } from '-/tagspaces.namespace';
import EditIcon from '@mui/icons-material/Edit';
import SearchIcon from '@mui/icons-material/FilterAltTwoTone';
-import ArrowDownIcon from '@mui/icons-material/KeyboardArrowDown';
-import ArrowRightIcon from '@mui/icons-material/KeyboardArrowRight';
import Grid from '@mui/material/Grid2';
import Typography from '@mui/material/Typography';
import classNames from 'classnames';
@@ -187,9 +189,9 @@ function StoredSearches(props: Props) {
}
>
{props.storedSearchesVisible ? (
- <ArrowDownIcon />
+ <SmallArrowDownIcon />
) : (
- <ArrowRightIcon />
+ <SmallArrowRightIcon />
)}
</TsIconButton>
<Typography
@@ -281,7 +283,11 @@ function StoredSearches(props: Props) {
style={{ minWidth: 'auto', padding: 7 }}
onClick={() => props.setShowBookmarks(!props.showBookmarks)}
>
- {props.showBookmarks ? <ArrowDownIcon /> : <ArrowRightIcon />}
+ {props.showBookmarks ? (
+ <SmallArrowDownIcon />
+ ) : (
+ <SmallArrowRightIcon />
+ )}
</TsIconButton>
<Typography
variant="inherit"
@@ -329,7 +335,11 @@ function StoredSearches(props: Props) {
style={{ minWidth: 'auto', padding: 7 }}
onClick={() => props.setFileOpenHistory(!props.fileOpenHistory)}
>
- {props.fileOpenHistory ? <ArrowDownIcon /> : <ArrowRightIcon />}
+ {props.fileOpenHistory ? (
+ <SmallArrowDownIcon />
+ ) : (
+ <SmallArrowRightIcon />
+ )}
</TsIconButton>
<Typography
variant="inherit"
@@ -373,7 +383,11 @@ function StoredSearches(props: Props) {
style={{ minWidth: 'auto', padding: 7 }}
onClick={() => props.setFileEditHistory(!props.fileEditHistory)}
>
- {props.fileEditHistory ? <ArrowDownIcon /> : <ArrowRightIcon />}
+ {props.fileEditHistory ? (
+ <SmallArrowDownIcon />
+ ) : (
+ <SmallArrowRightIcon />
+ )}
</TsIconButton>
<Typography
variant="inherit"
@@ -423,7 +437,11 @@ function StoredSearches(props: Props) {
props.setFolderOpenHistory(!props.folderOpenHistory)
}
>
- {props.folderOpenHistory ? <ArrowDownIcon /> : <ArrowRightIcon />}
+ {props.folderOpenHistory ? (
+ <SmallArrowDownIcon />
+ ) : (
+ <SmallArrowRightIcon />
+ )}
</TsIconButton>
<Typography
variant="inherit"
diff --git a/src/renderer/components/dialogs/components/LocalForm.tsx b/src/renderer/components/dialogs/components/LocalForm.tsx
index 117829fff..5550965da 100644
--- a/src/renderer/components/dialogs/components/LocalForm.tsx
+++ b/src/renderer/components/dialogs/components/LocalForm.tsx
@@ -17,11 +17,11 @@
*/
import AppConfig from '-/AppConfig';
+import { FolderIcon } from '-/components/CommonIcons';
import TsIconButton from '-/components/TsIconButton';
import TsTextField from '-/components/TsTextField';
import { useCurrentLocationContext } from '-/hooks/useCurrentLocationContext';
import { selectDirectoryDialog } from '-/services/utils-io';
-import FolderIcon from '@mui/icons-material/Folder';
import FormControl from '@mui/material/FormControl';
import FormHelperText from '@mui/material/FormHelperText';
import Grid from '@mui/material/Grid2';
diff --git a/src/renderer/components/menus/SearchMenu.tsx b/src/renderer/components/menus/SearchMenu.tsx
index 1d8d1041d..5818e1059 100644
--- a/src/renderer/components/menus/SearchMenu.tsx
+++ b/src/renderer/components/menus/SearchMenu.tsx
@@ -16,18 +16,16 @@
*
*/
-import React from 'react';
-import ListItemText from '@mui/material/ListItemText';
+import { ExportImportIcon, HelpIcon } from '-/components/CommonIcons';
+import { ProLabel } from '-/components/HelperComponents';
+import TsMenuList from '-/components/TsMenuList';
+import { Pro } from '-/pro';
+import { openURLExternally } from '-/services/utils-io';
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 HelpIcon from '@mui/icons-material/Help';
-import ExportImportIcon from '@mui/icons-material/SwapHoriz';
-import TsMenuList from '-/components/TsMenuList';
-import { Pro } from '-/pro';
import Links from 'assets/links';
-import { ProLabel } from '-/components/HelperComponents';
-import { openURLExternally } from '-/services/utils-io';
import { useTranslation } from 'react-i18next';
interface Props {
diff --git a/src/renderer/components/menus/TagGroupMenu.tsx b/src/renderer/components/menus/TagGroupMenu.tsx
index a31a929c3..6b212da30 100644
--- a/src/renderer/components/menus/TagGroupMenu.tsx
+++ b/src/renderer/components/menus/TagGroupMenu.tsx
@@ -16,27 +16,28 @@
*
*/
-import React from 'react';
-import { useSelector, useDispatch } from 'react-redux';
-import Edit from '@mui/icons-material/Edit';
-import ArrowDownward from '@mui/icons-material/ArrowDownward';
-import ArrowUpward from '@mui/icons-material/ArrowUpward';
-import ListItemIcon from '@mui/material/ListItemIcon';
-import ListItemText from '@mui/material/ListItemText';
-import DeleteTagGroupIcon from '@mui/icons-material/DeleteForever';
-import SortTagGroupIcon from '@mui/icons-material/SortByAlpha';
+import {
+ ArrowDownIcon,
+ ArrowUpIcon,
+ DeleteIcon,
+ EditIcon,
+ TagIcon,
+} from '-/components/CommonIcons';
+import InfoIcon from '-/components/InfoIcon';
+import TsMenuList from '-/components/TsMenuList';
+import { useDirectoryContentContext } from '-/hooks/useDirectoryContentContext';
+import { useTaggingActionsContext } from '-/hooks/useTaggingActionsContext';
+import { getMaxSearchResults } from '-/reducers/settings';
+import { TS } from '-/tagspaces.namespace';
import ShowEntriesWithTagIcon from '@mui/icons-material/SearchOutlined';
-import TagIcon from '@mui/icons-material/LocalOffer';
+import SortTagGroupIcon from '@mui/icons-material/SortByAlpha';
import CollectTagsIcon from '@mui/icons-material/Voicemail';
+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 { getMaxSearchResults } from '-/reducers/settings';
-import TsMenuList from '-/components/TsMenuList';
-import { TS } from '-/tagspaces.namespace';
-import InfoIcon from '-/components/InfoIcon';
import { useTranslation } from 'react-i18next';
-import { useTaggingActionsContext } from '-/hooks/useTaggingActionsContext';
-import { useDirectoryContentContext } from '-/hooks/useDirectoryContentContext';
+import { useSelector } from 'react-redux';
interface Props {
classes?: any;
@@ -127,19 +128,19 @@ function TagGroupMenu(props: Props) {
</MenuItem>
<MenuItem data-tid="editTagGroup" onClick={showEditTagGroupDialog}>
<ListItemIcon>
- <Edit />
+ <EditIcon />
</ListItemIcon>
<ListItemText primary={t('core:editTagGroup')} />
</MenuItem>
<MenuItem data-tid="moveTagGroupUp" onClick={moveTagGroupUpInt}>
<ListItemIcon>
- <ArrowUpward />
+ <ArrowUpIcon />
</ListItemIcon>
<ListItemText primary={t('core:moveTagGroupUp')} />
</MenuItem>
<MenuItem data-tid="moveTagGroupDown" onClick={moveTagGroupDownInt}>
<ListItemIcon>
- <ArrowDownward />
+ <ArrowDownIcon />
</ListItemIcon>
<ListItemText primary={t('core:moveTagGroupDown')} />
</MenuItem>
@@ -161,7 +162,7 @@ function TagGroupMenu(props: Props) {
onClick={showDeleteTagGroupDialog}
>
<ListItemIcon>
- <DeleteTagGroupIcon />
+ <DeleteIcon />
</ListItemIcon>
<ListItemText primary={t('core:deleteTagGroup')} />
</MenuItem>
diff --git a/src/renderer/perspectives/grid/components/MainToolbar.tsx b/src/renderer/perspectives/grid/components/MainToolbar.tsx
index a71b77903..1072a8535 100644
--- a/src/renderer/perspectives/grid/components/MainToolbar.tsx
+++ b/src/renderer/perspectives/grid/components/MainToolbar.tsx
@@ -25,6 +25,7 @@ import {
ParentFolderIcon,
PerspectiveSettingsIcon,
SelectedIcon,
+ ShareIcon,
TagIcon,
UnSelectedIcon,
} from '-/components/CommonIcons';
@@ -46,7 +47,6 @@ import ExportIcon from '@mui/icons-material/AssignmentReturn';
import DragOffIcon from '@mui/icons-material/CopyAll';
import DragOnIcon from '@mui/icons-material/CopyAllTwoTone';
import CopyIcon from '@mui/icons-material/FileCopy';
-import ShareIcon from '@mui/icons-material/Share';
import SortingIcon from '@mui/icons-material/SwapVerticalCircle';
import { Box, Divider, Toolbar } from '@mui/material/';
import { alpha, useTheme } from '@mui/material/styles';