Skip to content

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

chore: some icon adjustments

Ilian Sapundshiev8c906d5ca90a
diff --git a/src/renderer/assets/icons/menu-icon.svg b/src/renderer/assets/icons/menu-icon.svg
new file mode 100644
index 000000000..6d88f7263
--- /dev/null
+++ b/src/renderer/assets/icons/menu-icon.svg
@@ -0,0 +1,57 @@
+<?xml version="1.0" encoding="UTF-8" standalone="no"?>
+<svg
+ width="24"
+ height="24"
+ viewBox="0 0 24 24"
+ fill="currentColor"
+ version="1.1"
+ id="svg1"
+ sodipodi:docname="menu-icon.svg"
+ inkscape:version="1.3 (0e150ed, 2023-07-21)"
+ xmlns:inkscape="http://www.inkscape.org/namespaces/inkscape"
+ xmlns:sodipodi="http://sodipodi.sourceforge.net/DTD/sodipodi-0.dtd"
+ xmlns="http://www.w3.org/2000/svg"
+ xmlns:svg="http://www.w3.org/2000/svg">
+ <defs
+ id="defs1">
+ <inkscape:path-effect
+ effect="fillet_chamfer"
+ id="path-effect3"
+ is_visible="true"
+ lpeversion="1"
+ nodesatellites_param="F,0,0,1,0,0,0,1 @ F,0,0,1,0,0,0,1 @ F,0,0,1,0,0,0,1 @ F,0,0,1,0,0,0,1 @ F,0,0,1,0,0,0,1 @ F,0,0,1,0,0,0,1 @ F,0,0,1,0,0,0,1 @ F,0,0,1,0,0,0,1 | F,0,0,1,0,0,0,1 @ F,0,0,1,0,0,0,1 @ F,0,0,1,0,0,0,1 @ F,0,0,1,0,0,0,1 @ F,0,0,1,0,0,0,1 @ F,0,0,1,0,0,0,1 | F,0,0,1,0,0,0,1 @ F,0,0,1,0,0,0,1 @ F,0,0,1,0,0,0,1 @ F,0,0,1,0,0,0,1 @ F,0,0,1,0,0,0,1 @ F,0,0,1,0,0,0,1 | F,0,0,1,0,0,0,1 @ F,0,0,1,0,0,0,1 @ F,0,0,1,0,0,0,1 @ F,0,0,1,0,0,0,1 @ F,0,0,1,0,0,0,1 @ F,0,0,1,0,0,0,1 | F,0,0,1,0,0,0,1 @ F,0,0,1,0,0,0,1 @ F,0,0,1,0,0,0,1 @ F,0,0,1,0,0,0,1 @ F,0,0,1,0,0,0,1 | F,0,0,1,0,0,0,1 @ F,0,0,1,0,0,0,1 @ F,0,0,1,0,0,0,1 @ F,0,0,1,0,0,0,1 @ F,0,0,1,0,0,0,1"
+ radius="0"
+ unit="px"
+ method="auto"
+ mode="F"
+ chamfer_steps="1"
+ flexible="false"
+ use_knot_distance="true"
+ apply_no_radius="true"
+ apply_with_radius="true"
+ only_selected="false"
+ hide_knots="false" />
+ </defs>
+ <sodipodi:namedview
+ id="namedview1"
+ pagecolor="#ffffff"
+ bordercolor="#000000"
+ borderopacity="0.25"
+ inkscape:showpageshadow="2"
+ inkscape:pageopacity="0.0"
+ inkscape:pagecheckerboard="0"
+ inkscape:deskcolor="#d1d1d1"
+ inkscape:zoom="19.666667"
+ inkscape:cx="8.9745763"
+ inkscape:cy="10.322034"
+ inkscape:window-width="1512"
+ inkscape:window-height="611"
+ inkscape:window-x="0"
+ inkscape:window-y="38"
+ inkscape:window-maximized="0"
+ inkscape:current-layer="svg1" />
+ <path
+ id="path3"
+ style="stroke-width:2.371;stroke-dasharray:none"
+ d="m 17.949153,3.2288136 c 2.38594,0.00262 4.319493,1.9987321 4.322034,4.4618644 v 8.923729 c -0.0025,2.463133 -1.936094,4.459242 -4.322034,4.461865 H 5.8474576 C 3.4615172,21.073649 1.5279643,19.07754 1.5254237,16.614407 V 7.690678 C 1.5279646,5.2275457 3.4615175,3.2314368 5.8474576,3.2288136 H 17.949153 M 3.2542373,16.614407 c 0,1.47539 1.1640678,2.677119 2.5932203,2.677119 H 9.3050847 V 5.0135594 H 5.8474576 c -1.4291525,0 -2.5932203,1.2017288 -2.5932203,2.6771186 v 8.923729 M 20.542373,7.690678 c 0,-1.4753898 -1.164068,-2.6771186 -2.59322,-2.6771186 H 11.033898 V 19.291526 h 6.915255 c 1.429152,0 2.59322,-1.201729 2.59322,-2.677119 z M 7.5762712,11.260169 c -5e-7,-0.492844 -0.3870084,-0.892372 -0.8644068,-0.892372 H 5.8474576 c -1.1536045,0.0011 -1.1536045,1.785844 0,1.784745 h 0.8644068 c 0.4773987,0 0.8644069,-0.399529 0.8644068,-0.892373 m 0,3.569492 c -5e-7,-0.492844 -0.3870084,-0.892372 -0.8644068,-0.892372 H 5.8474576 c -1.1536045,0.0011 -1.1536045,1.785844 0,1.784745 h 0.8644068 c 0.4773987,0 0.8644069,-0.399529 0.8644068,-0.892373 M 4.9830508,7.690678 c 0,0.4928439 0.3870081,0.8923729 0.8644068,0.8923729 h 0.8644068 c 1.1525419,0 1.1525419,-1.7847458 0,-1.7847458 H 5.8474576 c -0.4773987,0 -0.8644068,0.399529 -0.8644068,0.8923729" />
+</svg>
diff --git a/src/renderer/components/CommonIcons.tsx b/src/renderer/components/CommonIcons.tsx
index 8ad4948a9..20255f97b 100644
--- a/src/renderer/components/CommonIcons.tsx
+++ b/src/renderer/components/CommonIcons.tsx
@@ -53,6 +53,8 @@ export { default as EntryPropertiesIcon } from '@mui/icons-material/InfoOutlined
export { default as RemoveIcon } from '@mui/icons-material/RemoveCircleOutlineOutlined';
+export { default as RemoveTagIcon } from '@mui/icons-material/Close';
+
export { default as HistoryIcon } from '@mui/icons-material/History';
export { default as SettingsIcon } from '@mui/icons-material/Settings';
@@ -343,7 +345,8 @@ export const MainMenuIcon = (props) => (
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>
+ <path d="m 17.949153,3.2288136 c 2.38594,0.00262 4.319493,1.9987321 4.322034,4.4618644 v 8.923729 c -0.0025,2.463133 -1.936094,4.459242 -4.322034,4.461865 H 5.8474576 C 3.4615172,21.073649 1.5279643,19.07754 1.5254237,16.614407 V 7.690678 C 1.5279646,5.2275457 3.4615175,3.2314368 5.8474576,3.2288136 H 17.949153 M 3.2542373,16.614407 c 0,1.47539 1.1640678,2.677119 2.5932203,2.677119 H 9.3050847 V 5.0135594 H 5.8474576 c -1.4291525,0 -2.5932203,1.2017288 -2.5932203,2.6771186 v 8.923729 M 20.542373,7.690678 c 0,-1.4753898 -1.164068,-2.6771186 -2.59322,-2.6771186 H 11.033898 V 19.291526 h 6.915255 c 1.429152,0 2.59322,-1.201729 2.59322,-2.677119 z M 7.5762712,11.260169 c -5e-7,-0.492844 -0.3870084,-0.892372 -0.8644068,-0.892372 H 5.8474576 c -1.1536045,0.0011 -1.1536045,1.785844 0,1.784745 h 0.8644068 c 0.4773987,0 0.8644069,-0.399529 0.8644068,-0.892373 m 0,3.569492 c -5e-7,-0.492844 -0.3870084,-0.892372 -0.8644068,-0.892372 H 5.8474576 c -1.1536045,0.0011 -1.1536045,1.785844 0,1.784745 h 0.8644068 c 0.4773987,0 0.8644069,-0.399529 0.8644068,-0.892373 M 4.9830508,7.690678 c 0,0.4928439 0.3870081,0.8923729 0.8644068,0.8923729 h 0.8644068 c 1.1525419,0 1.1525419,-1.7847458 0,-1.7847458 H 5.8474576 c -0.4773987,0 -0.8644068,0.399529 -0.8644068,0.8923729"></path>
+ {/* <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/TagContainerMenu.tsx b/src/renderer/components/TagContainerMenu.tsx
index 29a169721..c299d67f7 100644
--- a/src/renderer/components/TagContainerMenu.tsx
+++ b/src/renderer/components/TagContainerMenu.tsx
@@ -16,7 +16,7 @@
*
*/
-import { MoreMenuIcon, RemoveIcon } from '-/components/CommonIcons';
+import { MoreMenuIcon, RemoveTagIcon } from '-/components/CommonIcons';
import { TS } from '-/tagspaces.namespace';
interface Props {
@@ -37,7 +37,7 @@ function TagContainerMenu(props: Props) {
}
return tagMode === 'remove' ? (
deleteIcon || (
- <RemoveIcon
+ <RemoveTagIcon
data-tid={'tagRemoveButton_' + tag.title?.replace(/ /g, '_')}
style={{
color: tag.textcolor,