Skip to content

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

chore: migration to icon component

Ilian Sapundshiev31978ce2502c
diff --git a/app/components/EntryContainer.tsx b/app/components/EntryContainer.tsx
index 5ac513e3a..008be26d0 100644
--- a/app/components/EntryContainer.tsx
+++ b/app/components/EntryContainer.tsx
@@ -36,10 +36,8 @@ import BookmarkAddIcon from '@mui/icons-material/BookmarkAddTwoTone';
import EditIcon from '@mui/icons-material/Edit';
import SaveIcon from '@mui/icons-material/Save';
import CloseIcon from '@mui/icons-material/Close';
-import BackIcon from '@mui/icons-material/RemoveRedEye';
import FullScreenIcon from '@mui/icons-material/ZoomOutMap';
import OpenNativelyIcon from '@mui/icons-material/Launch';
-import ParentDirIcon from '@mui/icons-material/ReplyOutlined';
import OpenNewWindowIcon from '@mui/icons-material/OpenInBrowser';
import PrevDocumentIcon from '@mui/icons-material/KeyboardArrowUp';
import NextDocumentIcon from '@mui/icons-material/KeyboardArrowDown';
@@ -51,6 +49,7 @@ import ShareIcon from '@mui/icons-material/Share';
import withStyles from '@mui/styles/withStyles';
import RefreshIcon from '@mui/icons-material/Refresh';
import Box from '@mui/material/Box';
+import { ParentFolderIcon } from '-/components/CommonIcons';
import { Split } from 'ts-react-splitter';
import { buffer } from '@tagspaces/tagspaces-platforms/misc';
import AppConfig from '@tagspaces/tagspaces-platforms/AppConfig';
@@ -882,7 +881,7 @@ function EntryContainer(props: Props) {
onClick={navigateToFolder}
size="large"
>
- <ParentDirIcon />
+ <ParentFolderIcon />
</IconButton>
</Tooltip>
{!AppConfig.isCordova && (
@@ -982,14 +981,13 @@ function EntryContainer(props: Props) {
const renderFolderToolbar = () => (
<div className={classes.toolbar2}>
<div className={classes.flexLeft}>
- <Tooltip title={i18n.t('core:navigateTo')}>
+ <Tooltip title={i18n.t('core:openInMainArea')}>
<IconButton
- aria-label={i18n.t('core:navigateTo')}
+ aria-label={i18n.t('core:openInMainArea')}
onClick={navigateToFolder}
- style={{ transform: 'rotate(-90deg)' }}
size="large"
>
- <OpenNewWindowIcon />
+ <ParentFolderIcon />
</IconButton>
</Tooltip>
{!AppConfig.isCordova && (
diff --git a/app/locales/en/core.json b/app/locales/en/core.json
index 237c62ba6..60eaebe61 100644
--- a/app/locales/en/core.json
+++ b/app/locales/en/core.json
@@ -703,5 +703,6 @@
"show": "Show",
"chooseKanbanJSON": "Choose Trello JSON file",
"moveToTop": "Move to top",
+ "openInMainArea": "Open in main area",
"-": "-"
}
diff --git a/app/perspectives/grid-perspective/components/MainToolbar.tsx b/app/perspectives/grid-perspective/components/MainToolbar.tsx
index 9483c7110..96c678f1a 100644
--- a/app/perspectives/grid-perspective/components/MainToolbar.tsx
+++ b/app/perspectives/grid-perspective/components/MainToolbar.tsx
@@ -19,17 +19,19 @@
import React from 'react';
import Toolbar from '@mui/material/Toolbar';
import Tooltip from '-/components/Tooltip';
-import SettingsIcon from '@mui/icons-material/Settings';
import IconButton from '@mui/material/IconButton';
-import ParentDirIcon from '@mui/icons-material/ReplyOutlined';
import SortingIcon from '@mui/icons-material/SwapVerticalCircle';
import TagIcon from '@mui/icons-material/LocalOffer';
import SelectAllIcon from '@mui/icons-material/CheckBox';
import DeSelectAllIcon from '@mui/icons-material/CheckBoxOutlineBlank';
import CopyIcon from '@mui/icons-material/FileCopy';
import DeleteIcon from '@mui/icons-material/Delete';
-import PropertiesIcon from '@mui/icons-material/Info';
import ExportIcon from '@mui/icons-material/AssignmentReturn';
+import {
+ ParentFolderIcon,
+ FolderPropertiesIcon,
+ PerspectiveSettingsIcon
+} from '-/components/CommonIcons';
import { connect } from 'react-redux';
import { bindActionCreators } from 'redux';
import AppConfig from '@tagspaces/tagspaces-platforms/AppConfig';
@@ -145,7 +147,7 @@ function MainToolbar(props: Props) {
}}
size="large"
>
- <ParentDirIcon />
+ <ParentFolderIcon />
</IconButton>
</Tooltip>
<Tooltip title={i18n.t('core:directoryPropertiesTitle')}>
@@ -155,7 +157,7 @@ function MainToolbar(props: Props) {
onClick={showProperties}
size="large"
>
- <PropertiesIcon />
+ <FolderPropertiesIcon />
</IconButton>
</Tooltip>
{/* {layoutType === 'row' ? (
@@ -274,7 +276,7 @@ function MainToolbar(props: Props) {
onClick={openSettings}
size="large"
>
- <SettingsIcon />
+ <PerspectiveSettingsIcon />
</IconButton>
</Tooltip>
</Toolbar>