Skip to content

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

chore: added new icons

Ilian Sapundshievd6da937a31c7
diff --git a/src/renderer/components/CommonIcons.tsx b/src/renderer/components/CommonIcons.tsx
index 80adb6eb4..1cb928f3f 100644
--- a/src/renderer/components/CommonIcons.tsx
+++ b/src/renderer/components/CommonIcons.tsx
@@ -241,3 +241,17 @@ export { default as PlayIcon } from '@mui/icons-material/PlayCircleFilledWhiteOu
export { default as FullScreenIcon } from '@mui/icons-material/ZoomOutMap';
export { default as FullWidthIcon } from '@mui/icons-material/SettingsEthernet';
+
+export { default as ColorPaletteIcon } from '@mui/icons-material/ColorLensOutlined';
+
+export { default as ClearColorIcon } from '@mui/icons-material/FormatColorResetOutlined';
+
+export { default as SetColorIcon } from '@mui/icons-material/WaterDropOutlined';
+
+export { default as QrCodeIcon } from '@mui/icons-material/QrCode2Outlined';
+
+export { default as EntryBookmarkAddIcon } from '@mui/icons-material/BookmarkAddTwoTone';
+
+export { default as EntryBookmarkIcon } from '@mui/icons-material/BookmarkTwoTone';
+
+export { default as EncryptedIcon } from '@mui/icons-material/HttpsOutlined';
diff --git a/src/renderer/components/EntryContainerTitle.tsx b/src/renderer/components/EntryContainerTitle.tsx
index 987e13d98..26dcbf4e6 100644
--- a/src/renderer/components/EntryContainerTitle.tsx
+++ b/src/renderer/components/EntryContainerTitle.tsx
@@ -19,6 +19,9 @@
import AppConfig from '-/AppConfig';
import {
ArrowBackIcon,
+ EncryptedIcon,
+ EntryBookmarkAddIcon,
+ EntryBookmarkIcon,
FolderIcon,
MoreMenuIcon,
} from '-/components/CommonIcons';
@@ -35,9 +38,6 @@ import { getSupportedFileTypes } from '-/reducers/settings';
import { dataTidFormat } from '-/services/test';
import { findColorForEntry, getAllTags } from '-/services/utils-io';
import { TS } from '-/tagspaces.namespace';
-import BookmarkAddIcon from '@mui/icons-material/BookmarkAddTwoTone';
-import BookmarkIcon from '@mui/icons-material/BookmarkTwoTone';
-import HttpsIcon from '@mui/icons-material/Https';
import Box from '@mui/material/Box';
import { styled, useTheme } from '@mui/material/styles';
import {
@@ -273,13 +273,13 @@ function EntryContainerTitle(props: Props) {
>
{bookmarksContext &&
bookmarksContext.haveBookmark(openedEntry.path) ? (
- <BookmarkIcon
+ <EntryBookmarkIcon
style={{
color: theme.palette.primary.main,
}}
/>
) : (
- <BookmarkAddIcon
+ <EntryBookmarkAddIcon
style={{
color: theme.palette.text.secondary,
}}
@@ -290,7 +290,7 @@ function EntryContainerTitle(props: Props) {
<TagsPreview tags={getAllTags(openedEntry)} />
{openedEntry.isEncrypted && (
<Tooltip title={t('core:encryptedTooltip')}>
- <HttpsIcon
+ <EncryptedIcon
style={{
color: theme.palette.primary.main,
}}
diff --git a/src/renderer/components/EntryProperties.tsx b/src/renderer/components/EntryProperties.tsx
index 022f547c7..d582640a4 100644
--- a/src/renderer/components/EntryProperties.tsx
+++ b/src/renderer/components/EntryProperties.tsx
@@ -20,6 +20,14 @@ import AppConfig from '-/AppConfig';
import Marker2xIcon from '-/assets/icons/marker-icon-2x.png';
import MarkerIcon from '-/assets/icons/marker-icon.png';
import MarkerShadowIcon from '-/assets/icons/marker-shadow.png';
+import {
+ ClearColorIcon,
+ ColorPaletteIcon,
+ IDIcon,
+ OpenLinkIcon,
+ QrCodeIcon,
+ SetColorIcon,
+} from '-/components/CommonIcons';
import { ProTooltip } from '-/components/HelperComponents';
import InfoIcon from '-/components/InfoIcon';
import NoTileServer from '-/components/NoTileServer';
@@ -52,10 +60,6 @@ import { TS } from '-/tagspaces.namespace';
import { generateClipboardLink } from '-/utils/dom';
import { parseGeoLocation } from '-/utils/geo';
import useFirstRender from '-/utils/useFirstRender';
-import ColorPaletteIcon from '@mui/icons-material/ColorLens';
-import ClearBackgroundIcon from '@mui/icons-material/FormatColorResetOutlined';
-import SetBackgroundIcon from '@mui/icons-material/OpacityOutlined';
-import QRCodeIcon from '@mui/icons-material/QrCode';
import {
Box,
FormControl,
@@ -769,6 +773,11 @@ function EntryProperties(props: Props) {
slotProps={{
input: {
readOnly: true,
+ startAdornment: (
+ <InputAdornment position="start">
+ <OpenLinkIcon />
+ </InputAdornment>
+ ),
endAdornment: (
<InputAdornment position="end">
<TsButton
@@ -813,17 +822,17 @@ function EntryProperties(props: Props) {
tooltip={t('core:generateDownloadLink')}
onClick={() => setShowSharingLinkDialog(true)}
variant="text"
- startIcon={
- <QRCodeIcon
- style={{ color: theme.palette.text.secondary }}
- />
- }
>
{t('core:generateDownloadLink')}
</TsButton>
<InfoIcon tooltip={t('core:downloadLinkTooltip')} />
</InputAdornment>
),
+ startAdornment: (
+ <InputAdornment position="start">
+ <QrCodeIcon />
+ </InputAdornment>
+ ),
},
}}
/>
@@ -912,7 +921,7 @@ function EntryProperties(props: Props) {
margin: 5,
}}
>
- <SetBackgroundIcon />
+ <SetColorIcon />
</TsIconButton>
{cnt % 4 === 3 && <br />}
</>
@@ -931,7 +940,7 @@ function EntryProperties(props: Props) {
setConfirmResetColorDialogOpened(true)
}
>
- <ClearBackgroundIcon />
+ <ClearColorIcon />
</TsIconButton>
</ProTooltip>
</>
@@ -1071,6 +1080,11 @@ function EntryProperties(props: Props) {
slotProps={{
input: {
readOnly: true,
+ startAdornment: (
+ <InputAdornment position="start">
+ <IDIcon />
+ </InputAdornment>
+ ),
endAdornment: (
<InputAdornment position="end">
<TsButton
diff --git a/src/renderer/components/RenderHistory.tsx b/src/renderer/components/RenderHistory.tsx
index 80612baa0..be7a0478e 100644
--- a/src/renderer/components/RenderHistory.tsx
+++ b/src/renderer/components/RenderHistory.tsx
@@ -17,14 +17,17 @@
*/
import AppConfig from '-/AppConfig';
-import { HistoryIcon, RemoveIcon } from '-/components/CommonIcons';
+import {
+ EntryBookmarkIcon,
+ HistoryIcon,
+ RemoveIcon,
+} from '-/components/CommonIcons';
import TsButton from '-/components/TsButton';
import TsIconButton from '-/components/TsIconButton';
import { useBrowserHistoryContext } from '-/hooks/useBrowserHistoryContext';
import { Pro } from '-/pro';
import { dataTidFormat } from '-/services/test';
import { TS } from '-/tagspaces.namespace';
-import BookmarkTwoToneIcon from '@mui/icons-material/BookmarkTwoTone';
import { Tooltip } from '@mui/material';
import ListItem from '@mui/material/ListItem';
import {
@@ -93,7 +96,7 @@ function RenderHistory(props: Props) {
}
>
{historyKey === Pro.keys.bookmarksKey ? (
- <BookmarkTwoToneIcon />
+ <EntryBookmarkIcon />
) : (
<HistoryIcon />
)}