about summary refs log tree commit diff
path: root/src/lib/icons.tsx
diff options
context:
space:
mode:
authorMohammad Reza Mahmoudi <rezamahmudy1@gmail.com>2023-05-17 18:03:05 +0330
committerGitHub <noreply@github.com>2023-05-17 09:33:05 -0500
commit6dde5ede34cea0abcf4529c2c7d90d355dfa97a3 (patch)
tree27159a0855db00b3b75c1aa43ca2d2e929fa7862 /src/lib/icons.tsx
parentb132ff7a7615eb6c8da0b60b226ff7e317c4033e (diff)
downloadvoidsky-6dde5ede34cea0abcf4529c2c7d90d355dfa97a3.tar.zst
fix theme opposite labels (#700)
Diffstat (limited to 'src/lib/icons.tsx')
-rw-r--r--src/lib/icons.tsx29
1 files changed, 29 insertions, 0 deletions
diff --git a/src/lib/icons.tsx b/src/lib/icons.tsx
index 606d27ea4..06f195011 100644
--- a/src/lib/icons.tsx
+++ b/src/lib/icons.tsx
@@ -322,6 +322,35 @@ export function MoonIcon({
 
 // Copyright (c) 2020 Refactoring UI Inc.
 // https://github.com/tailwindlabs/heroicons/blob/master/LICENSE
+export function SunIcon({
+  style,
+  size,
+  strokeWidth = 1.5,
+}: {
+  style?: StyleProp<ViewStyle>
+  size?: string | number
+  strokeWidth?: number
+}) {
+  return (
+    <Svg
+      fill="none"
+      viewBox="0 0 24 24"
+      width={size || 32}
+      height={size || 32}
+      strokeWidth={strokeWidth}
+      stroke="currentColor"
+      style={style}>
+      <Path
+        d="M12 3V5.25M18.364 5.63604L16.773 7.22703M21 12H18.75M18.364 18.364L16.773 16.773M12 18.75V21M7.22703 16.773L5.63604 18.364M5.25 12H3M7.22703 7.22703L5.63604 5.63604M15.75 12C15.75 14.0711 14.0711 15.75 12 15.75C9.92893 15.75 8.25 14.0711 8.25 12C8.25 9.92893 9.92893 8.25 12 8.25C14.0711 8.25 15.75 9.92893 15.75 12Z"
+        strokeLinecap="round"
+        strokeLinejoin="round"
+      />
+    </Svg>
+  )
+}
+
+// Copyright (c) 2020 Refactoring UI Inc.
+// https://github.com/tailwindlabs/heroicons/blob/master/LICENSE
 export function UserIcon({
   style,
   size,