mirror of
https://github.com/MrPatben8/konduktor.git
synced 2026-11-27 10:22:51 +01:00
Changed theme to liquid glass
This commit is contained in:
1 parent
950352f7ec
commit
2810f24563
52 files changed
+1353
-529
No files matched your search
@@ -0,0 +1,118 @@
|
||||
// Line icons for the glass UI: one stroke weight, one grid (24), coloured by
|
||||
// `currentColor`, so an icon takes its button's text colour and hover state.
|
||||
// Emoji render in the OS's own colour and style, which clashes with glass.
|
||||
|
||||
const PATHS = {
|
||||
play: <path d="M8 5.5v13a1 1 0 0 0 1.5.86l10.5-6.5a1 1 0 0 0 0-1.72L9.5 4.64A1 1 0 0 0 8 5.5z" fill="currentColor" stroke="none" />,
|
||||
pause: (
|
||||
<>
|
||||
<rect x="6" y="5" width="4" height="14" rx="1.2" fill="currentColor" stroke="none" />
|
||||
<rect x="14" y="5" width="4" height="14" rx="1.2" fill="currentColor" stroke="none" />
|
||||
</>
|
||||
),
|
||||
trash: <path d="M4 7h16M10 11v6M14 11v6M6 7l1 12a2 2 0 0 0 2 2h6a2 2 0 0 0 2-2l1-12M9 7V4h6v3" />,
|
||||
lock: (
|
||||
<>
|
||||
<rect x="5" y="11" width="14" height="9" rx="2" />
|
||||
<path d="M8 11V8a4 4 0 0 1 8 0v3" />
|
||||
</>
|
||||
),
|
||||
unlock: (
|
||||
<>
|
||||
<rect x="5" y="11" width="14" height="9" rx="2" />
|
||||
<path d="M8 11V8a4 4 0 0 1 7.7-1.5" />
|
||||
</>
|
||||
),
|
||||
sparkle: <path d="M12 3l1.8 5.2L19 10l-5.2 1.8L12 17l-1.8-5.2L5 10l5.2-1.8zM19 16l.7 1.8 1.8.7-1.8.7L19 21l-.7-1.8-1.8-.7 1.8-.7z" strokeLinejoin="round" />,
|
||||
wave: <path d="M3 12h2M7 8v8M11 5v14M15 9v6M19 11v2" />,
|
||||
folder: <path d="M3 7a2 2 0 0 1 2-2h4l2 2h8a2 2 0 0 1 2 2v8a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2z" strokeLinejoin="round" />,
|
||||
folderOpen: <path d="M3 7a2 2 0 0 1 2-2h4l2 2h6a2 2 0 0 1 2 2v1M3 7v10a2 2 0 0 0 2 2h12.5a2 2 0 0 0 1.9-1.4L21 12a1 1 0 0 0-1-1.3H8.5a2 2 0 0 0-1.9 1.4L4 19" strokeLinejoin="round" />,
|
||||
playlist: <path d="M8 6h13M8 12h13M8 18h13M3.5 6h.01M3.5 12h.01M3.5 18h.01" />,
|
||||
smart: <path d="M4 5h16l-6 7.5V19l-4-2v-4.5z" strokeLinejoin="round" />,
|
||||
music: (
|
||||
<>
|
||||
<path d="M9 18V6l11-2v12" />
|
||||
<circle cx="6.5" cy="18" r="2.5" />
|
||||
<circle cx="17.5" cy="16" r="2.5" />
|
||||
</>
|
||||
),
|
||||
drive: (
|
||||
<>
|
||||
<rect x="3" y="7" width="18" height="10" rx="2" />
|
||||
<path d="M7 12h.01M11 12h.01" />
|
||||
</>
|
||||
),
|
||||
export: <path d="M12 3v12M7 8l5-5 5 5M5 15v4a2 2 0 0 0 2 2h10a2 2 0 0 0 2-2v-4" />,
|
||||
download: <path d="M12 3v12M7 10l5 5 5-5M5 19h14" />,
|
||||
settings: (
|
||||
<>
|
||||
<path d="M4 6h10M18 6h2M4 12h4M12 12h8M4 18h12" />
|
||||
<circle cx="16" cy="6" r="2" />
|
||||
<circle cx="10" cy="12" r="2" />
|
||||
<circle cx="18" cy="18" r="2" />
|
||||
</>
|
||||
),
|
||||
search: (
|
||||
<>
|
||||
<circle cx="11" cy="11" r="7" />
|
||||
<path d="M20 20l-3.5-3.5" />
|
||||
</>
|
||||
),
|
||||
close: <path d="M6 6l12 12M18 6L6 18" />,
|
||||
check: <path d="M5 12.5l4.5 4.5L19 7.5" strokeLinejoin="round" />,
|
||||
chevronRight: <path d="M9 6l6 6-6 6" />,
|
||||
chevronDown: <path d="M6 9l6 6 6-6" />,
|
||||
chevronLeft: <path d="M15 6l-6 6 6 6" />,
|
||||
chevronUp: <path d="M6 15l6-6 6 6" />,
|
||||
switch: <path d="M8 9l4-4 4 4M8 15l4 4 4-4" />,
|
||||
history: (
|
||||
<>
|
||||
<path d="M3 12a9 9 0 1 0 3-6.7L3 8" />
|
||||
<path d="M3 3v5h5M12 7v5l3 2" />
|
||||
</>
|
||||
),
|
||||
import: <path d="M12 3v12M7 10l5 5 5-5M4 15v4a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2v-4" />,
|
||||
link: <path d="M10 14a4 4 0 0 0 5.7 0l3-3a4 4 0 0 0-5.7-5.7l-1 1M14 10a4 4 0 0 0-5.7 0l-3 3a4 4 0 0 0 5.7 5.7l1-1" />,
|
||||
warning: <path d="M12 4l9 16H3zM12 10v4M12 17h.01" strokeLinejoin="round" />,
|
||||
loop: <path d="M17 2l3 3-3 3M4 11V9a4 4 0 0 1 4-4h12M7 22l-3-3 3-3M20 13v2a4 4 0 0 1-4 4H4" />,
|
||||
home: <path d="M4 11l8-7 8 7v8a1 1 0 0 1-1 1h-4v-6h-6v6H5a1 1 0 0 1-1-1z" strokeLinejoin="round" />,
|
||||
file: <path d="M14 3H7a2 2 0 0 0-2 2v14a2 2 0 0 0 2 2h10a2 2 0 0 0 2-2V8zM14 3v5h5" strokeLinejoin="round" />,
|
||||
desktop: (
|
||||
<>
|
||||
<rect x="3" y="4" width="18" height="12" rx="2" />
|
||||
<path d="M8 20h8M12 16v4" />
|
||||
</>
|
||||
),
|
||||
pencil: <path d="M4 20h4L19 9l-4-4L4 16zM13.5 6.5l4 4" strokeLinejoin="round" />,
|
||||
plus: <path d="M12 5v14M5 12h14" />,
|
||||
} as const
|
||||
|
||||
export type IconName = keyof typeof PATHS
|
||||
|
||||
export function Icon({
|
||||
name,
|
||||
size = 16,
|
||||
className,
|
||||
strokeWidth = 1.8,
|
||||
}: {
|
||||
name: IconName
|
||||
size?: number
|
||||
className?: string
|
||||
strokeWidth?: number
|
||||
}) {
|
||||
return (
|
||||
<svg
|
||||
width={size}
|
||||
height={size}
|
||||
viewBox="0 0 24 24"
|
||||
fill="none"
|
||||
stroke="currentColor"
|
||||
strokeWidth={strokeWidth}
|
||||
strokeLinecap="round"
|
||||
aria-hidden
|
||||
className={className}
|
||||
>
|
||||
{PATHS[name]}
|
||||
</svg>
|
||||
)
|
||||
}
|
||||
Reference in new issue
Block a user