Skip to content

A fully open source & end-to-end encrypted note taking alternative to Evernote.

feat: allow adjusting icon's stroke-width

thecodrre19219a678f0
diff --git a/apps/web/src/components/icons/index.js b/apps/web/src/components/icons/index.js
index fd0589906..cdd6d755d 100644
--- a/apps/web/src/components/icons/index.js
+++ b/apps/web/src/components/icons/index.js
@@ -12,7 +12,10 @@ function Icon({ title, name, size = 24, color = "icon", stroke, rotate }) {
title={title}
path={name}
size={size + "px"}
- stroke={stroke}
+ style={{
+ strokeWidth: stroke || "0px",
+ stroke: theme.colors[color] || color,
+ }}
color={theme.colors[color] || color}
spin={rotate}
/>