TagSpaces is an offline, open source, document manager with tagging support
chore: added new icon for toggling the sidebar
Ilian Sapundshievd92c7c1ecc79
diff --git a/src/renderer/components/CommonIcons.tsx b/src/renderer/components/CommonIcons.tsxindex 0033eac58..8ad4948a9 100644--- a/src/renderer/components/CommonIcons.tsx+++ b/src/renderer/components/CommonIcons.tsx@@ -41,8 +41,6 @@ export { default as FolderOutlineIcon } from '@mui/icons-material/FolderOpen';export { default as FileIcon } from '@mui/icons-material/InsertDriveFileOutlined';-export { default as MainMenuIcon } from '@mui/icons-material/Menu';-export { default as GoBackIcon } from '@mui/icons-material/ArrowBack';export { default as GoForwardIcon } from '@mui/icons-material/ArrowForward';@@ -335,3 +333,17 @@ export const MastodonIcon = (props) => (</svg></SvgIcon>);++export const MainMenuIcon = (props) => (+ <SvgIcon>+ <svg+ width="24"+ height="24"+ viewBox="0 0 24 24"+ fill="currentColor"+ xmlns="http://www.w3.org/2000/svg"+ >+ <path d="m 9.3261719,2.6660156 c -1.1202981,0 -2.0132424,-0.00355 -2.75,0.056641 -0.6523209,0.053309 -1.241444,0.158837 -1.7910157,0.3945312 a 0.30511527,0.30511527 0 0 0 -0.00977,0.00586 L 4.5605469,3.2246094 a 0.30511527,0.30511527 0 0 0 -0.00781,0.00391 C 3.7024606,3.6617559 2.9921642,4.3199285 2.4960938,5.1289062 a 0.30511527,0.30511527 0 0 0 -0.00586,0.011719 l -0.1875,0.3339844 a 0.30511527,0.30511527 0 0 0 -0.00586,0.00977 C 1.9840141,6.0986492 1.8519531,6.76201 1.7910156,7.5078125 1.7308256,8.2445593 1.734375,9.1375271 1.734375,10.257813 v 3.236328 c 0,1.120176 -0.00355,2.015192 0.056641,2.751953 0.060953,0.745884 0.1930987,1.407512 0.5058594,2.021484 a 0.30511527,0.30511527 0 0 0 0.00586,0.0098 l 0.1875,0.335937 a 0.30511527,0.30511527 0 0 0 0.00586,0.01172 c 0.4960728,0.808968 1.2063975,1.467139 2.0566406,1.900391 a 0.30511527,0.30511527 0 0 0 0.00977,0.0059 l 0.2148437,0.09961 a 0.30511527,0.30511527 0 0 0 0.00781,0.0039 c 0.5497232,0.23588 1.1385906,0.34119 1.7910157,0.394531 0.7361862,0.06011 1.6293411,0.05859 2.75,0.05859 h 5.2656251 c 1.12066,0 2.015658,0.0015 2.751953,-0.05859 0.74521,-0.06095 1.407006,-0.190927 2.021484,-0.503906 a 0.30511527,0.30511527 0 0 0 0.0098,-0.0059 l 0.333984,-0.1875 a 0.30511527,0.30511527 0 0 0 0.01172,-0.0059 c 0.809209,-0.496167 1.46901,-1.208073 1.902344,-2.058594 a 0.30511527,0.30511527 0 0 0 0.0059,-0.0098 l 0.09961,-0.214843 a 0.30511527,0.30511527 0 0 0 0.0039,-0.0078 c 0.235618,-0.549379 0.341185,-1.136634 0.394531,-1.789062 0.06011,-0.736189 0.05859,-1.631416 0.05859,-2.751953 v -3.236328 c 0,-1.1206475 0.0015,-2.013828 -0.05859,-2.7500005 -0.05335,-0.6522994 -0.158784,-1.2414137 -0.394531,-1.7910156 a 0.30511527,0.30511527 0 0 0 -0.0039,-0.00781 l -0.09961,-0.2148438 a 0.30511527,0.30511527 0 0 0 -0.0059,-0.00977 C 21.189617,4.6337398 20.529473,3.9236719 19.720703,3.4277344 a 0.30511527,0.30511527 0 0 0 -0.01172,-0.00586 L 19.375,3.234375 a 0.30511527,0.30511527 0 0 0 -0.0098,-0.00586 C 18.751255,2.9157641 18.089521,2.7835973 17.34375,2.7226563 16.60688,2.6624633 15.712095,2.6660156 14.591797,2.6660156 Z M 10.035156,4.890625 h 4.556641 c 1.147086,0 1.954384,0.00257 2.568359,0.052734 0.604326,0.049372 0.942269,0.1386191 1.195313,0.2675781 l 0.201172,0.1132812 c 0.459866,0.281991 0.835422,0.6878741 1.082031,1.171875 l 0.08984,0.2070313 c 0.08124,0.2275198 0.140721,0.5328318 0.177734,0.9863281 0.05019,0.6139666 0.05273,1.4213175 0.05273,2.5683599 v 3.236328 c 0,1.146968 -0.0026,1.954403 -0.05273,2.568359 -0.03702,0.453646 -0.09643,0.758897 -0.177734,0.986328 l -0.08984,0.208984 c -0.24649,0.483735 -0.621586,0.887623 -1.082031,1.169922 l -0.201172,0.113282 c -0.253955,0.129392 -0.591717,0.220153 -1.195313,0.269531 -0.613421,0.05003 -1.420943,0.05078 -2.568359,0.05078 H 10.033203 Z M 7.8085937,4.90625 V 18.845703 C 7.4204622,18.839799 7.0433146,18.833877 6.7578125,18.810547 6.3050879,18.773475 6.000183,18.712515 5.7714844,18.630859 L 5.5644531,18.541016 C 5.0804724,18.294405 4.6745806,17.918851 4.3925781,17.458984 L 4.2792969,17.257812 C 4.1503278,17.00473 4.0610914,16.666942 4.0117187,16.0625 3.9615577,15.448528 3.9589844,14.641105 3.9589844,13.494141 v -3.236328 c 0,-1.1470374 0.00257,-1.9543732 0.052734,-2.5683599 C 4.0610865,7.0851839 4.1500757,6.749723 4.2792969,6.4960937 L 4.3925781,6.2929687 C 4.6733502,5.8350757 5.0773804,5.4614923 5.5585937,5.2148437 l 0.2128907,-0.091797 h 0.00391 C 6.0037567,5.0418047 6.3068298,4.9802048 6.7578125,4.9433594 7.04437,4.9199521 7.4208036,4.912657 7.8085937,4.90625 Z"></path>+ </svg>+ </SvgIcon>+);diff --git a/src/renderer/components/FolderContainer.tsx b/src/renderer/components/FolderContainer.tsxindex 74a16981b..f83325b83 100644--- a/src/renderer/components/FolderContainer.tsx+++ b/src/renderer/components/FolderContainer.tsx@@ -273,6 +273,7 @@ function FolderContainer(props: Props) {} as React.CSSProperties & { WebkitAppRegion?: string }}onClick={toggleDrawer}+ tooltip={t('core:toggleSidebar')}><MainMenuIcon /></TsIconButton>diff --git a/src/renderer/locales/en/core.json b/src/renderer/locales/en/core.jsonindex b767611b0..646a8fec4 100644--- a/src/renderer/locales/en/core.json+++ b/src/renderer/locales/en/core.json@@ -1104,5 +1104,6 @@"importCompleted": "Import completed","importCompletedWithErrors": "Import completed with errors","dateCreatedSearchTitle": "Date Created",+ "toggleSidebar": "Toggle sidebar","-": "-"}