Skip to content

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

chore: using icons from commonicons

Ilian Sapundshievef766449f425
diff --git a/src/renderer/components/CommonIcons.tsx b/src/renderer/components/CommonIcons.tsx
index 6d2b5c7c3..3d0cb0879 100644
--- a/src/renderer/components/CommonIcons.tsx
+++ b/src/renderer/components/CommonIcons.tsx
@@ -190,3 +190,9 @@ export { default as AdvancedSettingsIcon } from '@mui/icons-material/DisplaySett
export { default as ArrowUpIcon } from '@mui/icons-material/ArrowUpward';
export { default as ArrowDownIcon } from '@mui/icons-material/ArrowDownward';
+
+export { default as SmallArrowUpIcon } from '@mui/icons-material/KeyboardArrowDown';
+
+export { default as SmallArrowDownIcon } from '@mui/icons-material/KeyboardArrowDown';
+
+export { default as SmallArrowRightIcon } from '@mui/icons-material/KeyboardArrowRight';
diff --git a/src/renderer/components/EditDescriptionButtons.tsx b/src/renderer/components/EditDescriptionButtons.tsx
index ec59e5855..1a1f3c29c 100644
--- a/src/renderer/components/EditDescriptionButtons.tsx
+++ b/src/renderer/components/EditDescriptionButtons.tsx
@@ -1,4 +1,5 @@
import AppConfig from '-/AppConfig';
+import { MoreMenuIcon } from '-/components/CommonIcons';
import { ProTooltip } from '-/components/HelperComponents';
import TsButton from '-/components/TsButton';
import TsIconButton from '-/components/TsIconButton';
@@ -9,7 +10,6 @@ import { useFilePropertiesContext } from '-/hooks/useFilePropertiesContext';
import { useOpenedEntryContext } from '-/hooks/useOpenedEntryContext';
import { Pro } from '-/pro';
import { saveAsTextFile } from '-/services/utils-io';
-import MoreVertIcon from '@mui/icons-material/MoreVert';
import { Box, ButtonGroup, Tooltip, useTheme } from '@mui/material';
import { formatDateTime4Tag } from '@tagspaces/tagspaces-common/misc';
import React from 'react';
@@ -198,7 +198,7 @@ const EditDescriptionButtons: React.FC<ButtonsProps> = ({ getHtml }) => {
aria-haspopup="true"
aria-expanded={Boolean(anchorEl) ? 'true' : undefined}
>
- <MoreVertIcon />
+ <MoreMenuIcon />
</TsIconButton>
<DescriptionMenu
anchorEl={anchorEl}
diff --git a/src/renderer/components/EntryContainerTitle.tsx b/src/renderer/components/EntryContainerTitle.tsx
index 31fb7393b..987e13d98 100644
--- a/src/renderer/components/EntryContainerTitle.tsx
+++ b/src/renderer/components/EntryContainerTitle.tsx
@@ -199,7 +199,6 @@ function EntryContainerTitle(props: Props) {
aria-controls={Boolean(anchorEl) ? 'basic-menu' : undefined}
aria-haspopup="true"
aria-expanded={Boolean(anchorEl) ? 'true' : undefined}
- // endIcon={<MoreVertIcon sx={{ fontSize: 20 }} />}
onClick={(event: React.MouseEvent<HTMLElement>) => {
setAnchorEl(event.currentTarget);
}}
@@ -230,7 +229,6 @@ function EntryContainerTitle(props: Props) {
aria-controls={Boolean(anchorEl) ? 'basic-menu' : undefined}
aria-haspopup="true"
aria-expanded={Boolean(anchorEl) ? 'true' : undefined}
- // endIcon={<MoreVertIcon sx={{ fontSize: 20 }} />}
onClick={(event: React.MouseEvent<HTMLElement>) => {
setAnchorEl(event.currentTarget);
}}
diff --git a/src/renderer/components/LocationView.tsx b/src/renderer/components/LocationView.tsx
index ee8d796fc..1ddb9fb6f 100644
--- a/src/renderer/components/LocationView.tsx
+++ b/src/renderer/components/LocationView.tsx
@@ -17,7 +17,11 @@
*/
import AppConfig from '-/AppConfig';
-import { CloudLocationIcon, LocalLocationIcon } from '-/components/CommonIcons';
+import {
+ CloudLocationIcon,
+ LocalLocationIcon,
+ MoreMenuIcon,
+} from '-/components/CommonIcons';
import CustomDragLayer from '-/components/CustomDragLayer';
import DirectoryTreeView, {
DirectoryTreeViewRef,
@@ -37,7 +41,6 @@ import { useSelectedEntriesContext } from '-/hooks/useSelectedEntriesContext';
import { TS } from '-/tagspaces.namespace';
import { CommonLocation } from '-/utils/CommonLocation';
import DefaultLocationIcon from '@mui/icons-material/Highlight';
-import MoreVertIcon from '@mui/icons-material/MoreVert';
import { ListItemText } from '@mui/material';
import ListItem from '@mui/material/ListItem';
import ListItemIcon from '@mui/material/ListItemIcon';
@@ -292,7 +295,7 @@ function LocationView(props: Props) {
handleLocationContextMenuClick(event, location)
}
>
- <MoreVertIcon />
+ <MoreMenuIcon />
</TsIconButton>
</ListItem>
</TargetFileBox>
diff --git a/src/renderer/components/PathBreadcrumbs.tsx b/src/renderer/components/PathBreadcrumbs.tsx
index f55964c32..e73633cfc 100644
--- a/src/renderer/components/PathBreadcrumbs.tsx
+++ b/src/renderer/components/PathBreadcrumbs.tsx
@@ -16,25 +16,27 @@
*
*/
-import React, { useState } from 'react';
-import { styled } from '@mui/material/styles';
-import { emphasize, Theme } from '@mui/material/styles';
-import Breadcrumbs from '@mui/material/Breadcrumbs';
+import AppConfig from '-/AppConfig';
+import {
+ CloudLocationIcon,
+ LocalLocationIcon,
+ MoreMenuIcon,
+} from '-/components/CommonIcons';
import Tooltip from '-/components/Tooltip';
+import { useCurrentLocationContext } from '-/hooks/useCurrentLocationContext';
+import { useDirectoryContentContext } from '-/hooks/useDirectoryContentContext';
+import { useSelectedEntriesContext } from '-/hooks/useSelectedEntriesContext';
+import Breadcrumbs from '@mui/material/Breadcrumbs';
import Chip from '@mui/material/Chip';
-import ExpandMoreIcon from '@mui/icons-material/MoreVert';
+import { emphasize, styled } from '@mui/material/styles';
+import { locationType } from '@tagspaces/tagspaces-common/misc';
import {
- normalizePath,
extractShortDirectoryName,
+ normalizePath,
} from '@tagspaces/tagspaces-common/paths';
-import DirectoryMenu from './menus/DirectoryMenu';
-import { LocalLocationIcon, CloudLocationIcon } from '-/components/CommonIcons';
-import { locationType } from '@tagspaces/tagspaces-common/misc';
+import React, { useState } from 'react';
import { useTranslation } from 'react-i18next';
-import { useDirectoryContentContext } from '-/hooks/useDirectoryContentContext';
-import { useCurrentLocationContext } from '-/hooks/useCurrentLocationContext';
-import { useSelectedEntriesContext } from '-/hooks/useSelectedEntriesContext';
-import AppConfig from '-/AppConfig';
+import DirectoryMenu from './menus/DirectoryMenu';
const StyledBreadcrumb = styled(Chip)(({ theme }) => {
const backgroundColor =
@@ -196,7 +198,7 @@ function PathBreadcrumbs(props: Props) {
data-tid="folderContainerOpenDirMenu"
label={currentFolderName}
icon={currentFolderChipIcon}
- deleteIcon={<ExpandMoreIcon />}
+ deleteIcon={<MoreMenuIcon />}
onDelete={openDirectoryMenu}
onClick={openDirectoryMenu}
onContextMenu={openDirectoryMenu}
diff --git a/src/renderer/components/StoredSearches.tsx b/src/renderer/components/StoredSearches.tsx
index 6f0d19d80..257791ecc 100644
--- a/src/renderer/components/StoredSearches.tsx
+++ b/src/renderer/components/StoredSearches.tsx
@@ -16,6 +16,7 @@
*
*/
+import { MoreMenuIcon } from '-/components/CommonIcons';
import RenderHistory from '-/components/RenderHistory';
import { SidePanel, classes } from '-/components/SidePanels.css';
import TsButton from '-/components/TsButton';
@@ -39,7 +40,6 @@ 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 MenuIcon from '@mui/icons-material/MoreVert';
import Grid from '@mui/material/Grid2';
import Typography from '@mui/material/Typography';
import classNames from 'classnames';
@@ -203,7 +203,7 @@ function StoredSearches(props: Props) {
{t('core:savedSearchesTitle')}
</Typography>
</Grid>
- <Grid size={2} style={{ alignSelf: 'center' }}>
+ <Grid size={2} style={{ textAlign: 'right' }}>
<SearchMenu
anchorEl={searchMenuAnchorEl}
open={Boolean(searchMenuAnchorEl)}
@@ -219,7 +219,7 @@ function StoredSearches(props: Props) {
data-tid="StoredSearchesMenuTID"
onClick={handleSearchMenu}
>
- <MenuIcon />
+ <MoreMenuIcon />
</TsIconButton>
</Grid>
</Grid>
@@ -292,7 +292,7 @@ function StoredSearches(props: Props) {
{t('core:showBookmarks')}
</Typography>
</Grid>
- <Grid size={2} style={{ alignSelf: 'center' }}>
+ <Grid size={2} style={{ textAlign: 'right' }}>
<TsIconButton
data-tid="BookmarksMenuTID"
onClick={(event: any) => {
@@ -300,7 +300,7 @@ function StoredSearches(props: Props) {
setBookmarksMenuAnchorEl(event.currentTarget);
}}
>
- <MenuIcon />
+ <MoreMenuIcon />
</TsIconButton>
</Grid>
</Grid>
@@ -340,7 +340,7 @@ function StoredSearches(props: Props) {
{t('core:fileOpenHistory')}
</Typography>
</Grid>
- <Grid size={2} style={{ alignSelf: 'center' }}>
+ <Grid size={2} style={{ textAlign: 'right' }}>
<TsIconButton
data-tid="fileOpenMenuTID"
onClick={(event: any) => {
@@ -348,7 +348,7 @@ function StoredSearches(props: Props) {
setHistoryMenuAnchorEl(event.currentTarget);
}}
>
- <MenuIcon />
+ <MoreMenuIcon />
</TsIconButton>
</Grid>
</Grid>
@@ -384,7 +384,7 @@ function StoredSearches(props: Props) {
{t('core:fileEditHistory')}
</Typography>
</Grid>
- <Grid size={2} style={{ alignSelf: 'center' }}>
+ <Grid size={2} style={{ textAlign: 'right' }}>
<TsIconButton
data-tid="FileEditedMenuTID"
onClick={(event: any) => {
@@ -392,7 +392,7 @@ function StoredSearches(props: Props) {
setHistoryMenuAnchorEl(event.currentTarget);
}}
>
- <MenuIcon />
+ <MoreMenuIcon />
</TsIconButton>
</Grid>
</Grid>
@@ -436,7 +436,7 @@ function StoredSearches(props: Props) {
{t('core:folderOpenHistory')}
</Typography>
</Grid>
- <Grid size={2} style={{ alignSelf: 'center' }}>
+ <Grid size={2} style={{ textAlign: 'right' }}>
<TsIconButton
data-tid="FolderOpenMenuTID"
onClick={(event: any) => {
@@ -444,7 +444,7 @@ function StoredSearches(props: Props) {
setHistoryMenuAnchorEl(event.currentTarget);
}}
>
- <MenuIcon />
+ <MoreMenuIcon />
</TsIconButton>
</Grid>
</Grid>
diff --git a/src/renderer/components/TagContainerMenu.tsx b/src/renderer/components/TagContainerMenu.tsx
index 5132b9c21..bef8f95b8 100644
--- a/src/renderer/components/TagContainerMenu.tsx
+++ b/src/renderer/components/TagContainerMenu.tsx
@@ -16,10 +16,9 @@
*
*/
+import { MoreMenuIcon, RemoveIcon } from '-/components/CommonIcons';
import { useCurrentLocationContext } from '-/hooks/useCurrentLocationContext';
import { TS } from '-/tagspaces.namespace';
-import RemoveTagIcon from '@mui/icons-material/Close';
-import MoreVertIcon from '@mui/icons-material/MoreVert';
interface Props {
tag: TS.Tag;
@@ -39,7 +38,7 @@ function TagContainerMenu(props: Props) {
}
return tagMode === 'remove' ? (
deleteIcon || (
- <RemoveTagIcon
+ <RemoveIcon
data-tid={'tagRemoveButton_' + tag.title?.replace(/ /g, '_')}
style={{
color: tag.textcolor,
@@ -51,7 +50,7 @@ function TagContainerMenu(props: Props) {
/>
)
) : (
- <MoreVertIcon
+ <MoreMenuIcon
data-tid={'tagMoreButton_' + tag.title?.replace(/ /g, '_')}
style={{
color: tag.textcolor,
diff --git a/src/renderer/components/TagGroupTitleDnD.tsx b/src/renderer/components/TagGroupTitleDnD.tsx
index 6b1fcd789..9227eef8f 100644
--- a/src/renderer/components/TagGroupTitleDnD.tsx
+++ b/src/renderer/components/TagGroupTitleDnD.tsx
@@ -16,14 +16,17 @@
*
*/
+import AppConfig from '-/AppConfig';
+import {
+ MoreMenuIcon,
+ SmallArrowDownIcon,
+ SmallArrowRightIcon,
+} from '-/components/CommonIcons';
import DragItemTypes from '-/components/DragItemTypes';
import { SidePanel, classes } from '-/components/SidePanels.css';
import { useCurrentLocationContext } from '-/hooks/useCurrentLocationContext';
import { TS } from '-/tagspaces.namespace';
import { CommonLocation } from '-/utils/CommonLocation';
-import ArrowDownIcon from '@mui/icons-material/KeyboardArrowDown';
-import ArrowRightIcon from '@mui/icons-material/KeyboardArrowRight';
-import MoreVertIcon from '@mui/icons-material/MoreVert';
import Grid from '@mui/material/Grid2';
import IconButton from '@mui/material/IconButton';
import Typography from '@mui/material/Typography';
@@ -125,7 +128,11 @@ function TagGroupTitleDnD(props: Props) {
const tagGroupTitle = (
<SidePanel
data-tid={'tagLibraryTagGroupTitle_' + tagGroup.title}
- className={classes.listItem}
+ style={{
+ padding: 0,
+ paddingRight: 0,
+ borderRadius: AppConfig.defaultCSSRadius,
+ }}
title={'Number of tags in this tag group: ' + tagGroup.children.length}
>
<Grid
@@ -141,10 +148,14 @@ function TagGroupTitleDnD(props: Props) {
onClick={(event: any) => handleTagGroupTitleClick(event, tagGroup)}
size="large"
>
- {tagGroup.expanded ? <ArrowDownIcon /> : <ArrowRightIcon />}
+ {tagGroup.expanded ? (
+ <SmallArrowDownIcon />
+ ) : (
+ <SmallArrowRightIcon />
+ )}
</IconButton>
</Grid>
- <Grid size={8} style={{ alignSelf: 'center' }}>
+ <Grid size={9} style={{ alignSelf: 'center' }}>
<Typography
variant="inherit"
className={classes.header}
@@ -177,7 +188,7 @@ function TagGroupTitleDnD(props: Props) {
)}
</Typography>
</Grid>
- <Grid size={2} style={{ textAlign: 'end' }}>
+ <Grid size={1} style={{ textAlign: 'end' }}>
{!isReadOnly && (
<IconButton
style={{ minWidth: 'auto', padding: 7 }}
@@ -187,7 +198,7 @@ function TagGroupTitleDnD(props: Props) {
onClick={(event: any) => handleTagGroupMenu(event, tagGroup)}
size="large"
>
- <MoreVertIcon />
+ <MoreMenuIcon />
</IconButton>
)}
</Grid>
diff --git a/src/renderer/components/TagLibrary.tsx b/src/renderer/components/TagLibrary.tsx
index 7a090d0e9..0350c4997 100644
--- a/src/renderer/components/TagLibrary.tsx
+++ b/src/renderer/components/TagLibrary.tsx
@@ -17,10 +17,21 @@
*/
import AppConfig from '-/AppConfig';
+import { MoreMenuIcon } from '-/components/CommonIcons';
import { SidePanel, classes } from '-/components/SidePanels.css';
+import TagContainer from '-/components/TagContainer';
+import TagContainerDnd from '-/components/TagContainerDnd';
+import TagGroupContainer from '-/components/TagGroupContainer';
import TagGroupTitleDnD from '-/components/TagGroupTitleDnD';
import TsIconButton from '-/components/TsIconButton';
+import ConfirmDialog from '-/components/dialogs/ConfirmDialog';
+import CreateTagGroupDialog from '-/components/dialogs/CreateTagGroupDialog';
+import CreateTagsDialog from '-/components/dialogs/CreateTagsDialog';
import EditTagDialog from '-/components/dialogs/EditTagDialog';
+import EditTagGroupDialog from '-/components/dialogs/EditTagGroupDialog';
+import TagGroupMenu from '-/components/menus/TagGroupMenu';
+import TagLibraryMenu from '-/components/menus/TagLibraryMenu';
+import TagMenu from '-/components/menus/TagMenu';
import { useCurrentLocationContext } from '-/hooks/useCurrentLocationContext';
import { useEditedTagLibraryContext } from '-/hooks/useEditedTagLibraryContext';
import { useSelectedEntriesContext } from '-/hooks/useSelectedEntriesContext';
@@ -28,35 +39,24 @@ import { useTagGroupsLocationContext } from '-/hooks/useTagGroupsLocationContext
import { useTaggingActionsContext } from '-/hooks/useTaggingActionsContext';
import { Pro } from '-/pro';
import { AppDispatch } from '-/reducers/app';
+import {
+ actions as SettingsActions,
+ getSaveTagInLocation,
+ getTagColor,
+ getTagGroupCollapsed,
+ getTagTextColor,
+} from '-/reducers/settings';
+import SmartTags from '-/reducers/smart-tags';
import { getAllTags, getTagLibrary } from '-/services/taglibrary-utils';
import { TS } from '-/tagspaces.namespace';
import { CommonLocation } from '-/utils/CommonLocation';
import useFirstRender from '-/utils/useFirstRender';
-import MoreVertIcon from '@mui/icons-material/MoreVert';
import Collapse from '@mui/material/Collapse';
import Typography from '@mui/material/Typography';
import classNames from 'classnames';
import React, { useCallback, useEffect, useState } from 'react';
import { useTranslation } from 'react-i18next';
import { useDispatch, useSelector } from 'react-redux';
-import {
- actions as SettingsActions,
- getSaveTagInLocation,
- getTagColor,
- getTagGroupCollapsed,
- getTagTextColor,
-} from '../reducers/settings';
-import SmartTags from '../reducers/smart-tags';
-import TagContainer from './TagContainer';
-import TagContainerDnd from './TagContainerDnd';
-import TagGroupContainer from './TagGroupContainer';
-import ConfirmDialog from './dialogs/ConfirmDialog';
-import CreateTagGroupDialog from './dialogs/CreateTagGroupDialog';
-import CreateTagsDialog from './dialogs/CreateTagsDialog';
-import EditTagGroupDialog from './dialogs/EditTagGroupDialog';
-import TagGroupMenu from './menus/TagGroupMenu';
-import TagLibraryMenu from './menus/TagLibraryMenu';
-import TagMenu from './menus/TagMenu';
interface Props {
style?: any;
@@ -319,7 +319,7 @@ function TagLibrary(props: Props) {
data-tid="tagLibraryMenu"
onClick={handleTagLibraryMenu}
>
- <MoreVertIcon />
+ <MoreMenuIcon />
</TsIconButton>
)}
</div>
diff --git a/src/renderer/components/chat/ChatView.tsx b/src/renderer/components/chat/ChatView.tsx
index 23f4da375..d2e0184c3 100644
--- a/src/renderer/components/chat/ChatView.tsx
+++ b/src/renderer/components/chat/ChatView.tsx
@@ -16,7 +16,7 @@
*
*/
-import { CloseIcon } from '-/components/CommonIcons';
+import { CloseIcon, MoreMenuIcon } from '-/components/CommonIcons';
import DragItemTypes from '-/components/DragItemTypes';
import Tooltip from '-/components/Tooltip';
import TsIconButton from '-/components/TsIconButton';
@@ -37,7 +37,6 @@ import { getDefaultAIProvider } from '-/reducers/settings';
import { saveAsTextFile } from '-/services/utils-io';
import { MilkdownProvider } from '@milkdown/react';
import CancelIcon from '@mui/icons-material/Cancel';
-import MoreVertIcon from '@mui/icons-material/MoreVert';
import SendIcon from '@mui/icons-material/Send';
import { Box, Grid2, MenuItem } from '@mui/material';
import CircularProgress from '@mui/material/CircularProgress';
@@ -292,7 +291,7 @@ function ChatView() {
aria-haspopup="true"
aria-expanded={Boolean(anchorEl) ? 'true' : undefined}
>
- <MoreVertIcon />
+ <MoreMenuIcon />
</TsIconButton>
<ChatMenu
anchorEl={anchorEl}