Skip to content

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

chore: changing save/edit icons and other small changes

Ilian Sapundshiev99eb99140a4c
diff --git a/app/components/EntryContainer.tsx b/app/components/EntryContainer.tsx
index 0acd0fba7..b0ccb4365 100644
--- a/app/components/EntryContainer.tsx
+++ b/app/components/EntryContainer.tsx
@@ -33,6 +33,7 @@ import Tooltip from '-/components/Tooltip';
import IconButton from '@mui/material/IconButton';
import BookmarkIcon from '@mui/icons-material/BookmarkTwoTone';
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';
@@ -1160,18 +1161,28 @@ function EntryContainer(props: Props) {
<div className={classes.entryCloseSection}>
{editingSupported && openedFile.editMode && (
<>
- <Tooltip title={i18n.t('core:saveFile')}>
- <IconButton
+ <Tooltip
+ title={
+ i18n.t('core:saveFile') +
+ ' (' +
+ (AppConfig.isMaclike ? '⌘' : 'CTRL') +
+ ' + S)'
+ }
+ >
+ <Button
disabled={false}
onClick={startSavingFile}
aria-label={i18n.t('core:saveFile')}
data-tid="fileContainerSaveFile"
- size="large"
+ size="small"
+ variant="outlined"
+ color="primary"
+ startIcon={<SaveIcon />}
>
- <SaveIcon />
- </IconButton>
+ {i18n.t('core:save')}
+ </Button>
</Tooltip>
- <Tooltip title="Preview">
+ {/* <Tooltip title="Preview">
<IconButton
onClick={reloadDocument}
aria-label={i18n.t('core:cancelEditing')}
@@ -1179,7 +1190,7 @@ function EntryContainer(props: Props) {
>
<BackIcon />
</IconButton>
- </Tooltip>
+ </Tooltip> */}
{closeButton}
</>
)}
@@ -1194,6 +1205,7 @@ function EntryContainer(props: Props) {
onClick={editFile}
aria-label={i18n.t('core:editFile')}
data-tid="fileContainerEditFile"
+ startIcon={<EditIcon />}
>
{i18n.t('core:edit')}
</Button>
diff --git a/app/components/FolderContainer.tsx b/app/components/FolderContainer.tsx
index a5bbe34c8..d00ab0d25 100644
--- a/app/components/FolderContainer.tsx
+++ b/app/components/FolderContainer.tsx
@@ -515,7 +515,10 @@ function FolderContainer(props: Props) {
/>
<Tooltip
title={
- i18n.t('showSearch') + ' (CTRL/⌘ + SHIFT + F)'
+ i18n.t('showSearch') +
+ ' (' +
+ (AppConfig.isMaclike ? '⌘' : 'CTRL') +
+ ' + SHIFT + F)'
// +
// ' - ' +
// keyBindings['openSearch'].toUpperCase()
diff --git a/app/components/MobileNavigation.tsx b/app/components/MobileNavigation.tsx
index 2ff35ff2b..1b42d9d24 100644
--- a/app/components/MobileNavigation.tsx
+++ b/app/components/MobileNavigation.tsx
@@ -197,8 +197,6 @@ function MobileNavigation(props: Props) {
color="primary"
>
<CreateIcon />
- &nbsp;
- {i18n.t('core:new')}
</Button>
</Tooltip>
<Tooltip title={i18n.t('core:createLocationTitle')}>
diff --git a/app/locales/en/core.json b/app/locales/en/core.json
index 93b7eeb93..b0dd8b11a 100644
--- a/app/locales/en/core.json
+++ b/app/locales/en/core.json
@@ -687,5 +687,6 @@
"clearBackground": "Clear background image",
"password": "Password",
"userAccount": "User Account",
+ "save": "Save",
"-": "-"
}