Edge-Drop is a clipboard shelf on the edge of your screen. Hover to open it. Drag files and images into any app, click to copy text and links. Free and open-source for Windows.
TypeScript clipboardclipboard-managerdesktop-appdrag-and-dropelectronopen-sourceproductivityproductivity-toolwindows
feat: folder icons, spreadsheet clipboard classification, flyout multiline wrapping & monochrome subactions
Deepender2574a29a0d99ac
diff --git a/electron/clipboard/formats.ts b/electron/clipboard/formats.tsindex fd416c9..b2100fe 100644--- a/electron/clipboard/formats.ts+++ b/electron/clipboard/formats.ts@@ -213,6 +213,64 @@ export function isClipboardExcluded(): boolean {return false}+/**+ * Async snapshot of the current clipboard into a single ItemData, or null.+ *+ * Order matters: a file copy should win over its text fallback, an image wins+/**+ * Helper to determine whether a clipboard payload containing an image and text+ * is intended as an image (e.g. Snipping Tool window capture, browser "Copy Image",+ * or screenshot tool) or as text (e.g. Excel/Google Sheets tabular data, rich text,+ * multiline documents, code).+ */+export function isScreenshotOrImageIntent(hasImage: boolean, rawText: string, rawHtml: string): boolean {+ if (!hasImage) return false+ if (!rawText) return true++ // Single bare image tag from browser "Copy Image" (e.g. <img src="...">)+ if (/^<img\b[^>]*>$/i.test(rawText) || /^<img\b[^>]*\/?>$/i.test(rawHtml)) return true++ // Single URL without any other text (browser "Copy Image" often sets image URL as text)+ if (URL_RE.test(rawText) && rawText.length < 500) return true++ // Spreadsheets (Excel, Google Sheets, Calc) & tabular text:+ // 1. Tab characters (\t) indicate column separators+ if (rawText.includes('\t')) return false++ // 2. Multiline text (multiple rows) indicates real tabular data, document paragraphs, or code+ const lines = rawText.split(/\r?\n/).map((l) => l.trim()).filter(Boolean)+ if (lines.length > 1) return false++ // 3. Spreadsheet HTML markup tags & rich office metadata+ const lowerHtml = rawHtml.toLowerCase()+ if (+ lowerHtml.includes('<table') ||+ lowerHtml.includes('<tr') ||+ lowerHtml.includes('<td') ||+ lowerHtml.includes('<th') ||+ lowerHtml.includes('google-sheets') ||+ lowerHtml.includes('data-sheets') ||+ lowerHtml.includes('urn:schemas-microsoft-com:office:spreadsheet') ||+ lowerHtml.includes('excel') ||+ lowerHtml.includes('<html') ||+ lowerHtml.includes('<body') ||+ lowerHtml.includes('<p') ||+ lowerHtml.includes('<pre') ||+ lowerHtml.includes('<code') ||+ lowerHtml.includes('<ul') ||+ lowerHtml.includes('<ol') ||+ lowerHtml.includes('<li')+ ) {+ return false+ }++ // 4. If text is long (> 200 chars), it is a text document, not a window title+ if (rawText.length > 200) return false++ // Snipping tool window mode: single-line window title text <= 200 chars without tabs or HTML structure+ return true+}+/*** Async snapshot of the current clipboard into a single ItemData, or null.*@@ -236,27 +294,19 @@ export async function readClipboard(): Promise<ItemData | null> {const rawText = clipboard.readText().trim()const rawHtml = clipboard.readHTML().trim()- // If an image is present on the clipboard (e.g. Snipping Tool, Screenshot, browser copy image)- if (hasImage) {- const hasRichHtmlDoc = rawHtml.includes('<html') || rawHtml.includes('<body') || rawHtml.includes('<table') || (rawHtml.includes('<p>') && rawText.length > 300)- const isSingleUrl = URL_RE.test(rawText) && rawText.length < 500- const isImgTag = /^<img\b[^>]*>$/i.test(rawText)-- // Snipping Tool (Window mode, Freeform, Rectangular) or browser images:- // When text is absent, is a URL, is a single-line window title, or is an image tag without a rich document:- if (!rawText || isSingleUrl || isImgTag || !hasRichHtmlDoc) {- const size = img.getSize()- return {- kind: 'image',- imageId: '',- width: size.width,- height: size.height,- bytes: 0 // placeholder — ClipboardWatcher overwrites this with the actual PNG buffer length- }+ // Snipping Tool (Window mode, Freeform, Rectangular) or browser images:+ if (isScreenshotOrImageIntent(hasImage, rawText, rawHtml)) {+ const size = img.getSize()+ return {+ kind: 'image',+ imageId: '',+ width: size.width,+ height: size.height,+ bytes: 0 // placeholder — ClipboardWatcher overwrites this with the actual PNG buffer length}}- // Text intent (Notepad, Word, VS Code text copy, rich HTML copy)+ // Text intent (Notepad, Word, VS Code text copy, Excel/Google Sheets tabular copy, rich HTML copy)if (rawText) {let html: string | undefinedif (rawHtml && rawHtml !== rawText) html = rawHtml@@ -316,30 +366,21 @@ export function clipboardSignature(): string {const img = clipboard.readImage()const hasImage = !img.isEmpty()const rawText = clipboard.readText().trim()+ const rawHtml = clipboard.readHTML().trim()- // Images: if an image is present and text is not a rich document selection,- // prioritize image fingerprinting so Snipping Tool window titles don't shadow the screenshot.- if (hasImage) {- const rawHtml = clipboard.readHTML().trim()- const hasRichHtmlDoc = rawHtml.includes('<html') || rawHtml.includes('<body') || rawHtml.includes('<table') || (rawHtml.includes('<p>') && rawText.length > 300)- const isSingleUrl = isUrlText(rawText)- const isBareImgTag = /^<img\b[^>]*>$/i.test(rawText)- const isLikelyScreenshotOrImage = !rawText || isSingleUrl || isBareImgTag || !hasRichHtmlDoc-- if (isLikelyScreenshotOrImage) {- const size = img.getSize()- const bitmap = img.toBitmap() // raw BGRA — no encoding, just a memory copy-- // FNV-1a over ~400 evenly-spaced bytes.- const step = Math.max(1, Math.floor(bitmap.length / 400))- let hash = 0x811c9dc5 // FNV offset basis- for (let i = 0; i < bitmap.length; i += step) {- hash ^= bitmap[i]- hash = Math.imul(hash, 0x01000193) >>> 0 // FNV prime, keep as uint32- }+ if (isScreenshotOrImageIntent(hasImage, rawText, rawHtml)) {+ const size = img.getSize()+ const bitmap = img.toBitmap() // raw BGRA — no encoding, just a memory copy- return `${seqPrefix}image:${size.width}x${size.height}:${hash.toString(36)}`+ // FNV-1a over ~400 evenly-spaced bytes.+ const step = Math.max(1, Math.floor(bitmap.length / 400))+ let hash = 0x811c9dc5 // FNV offset basis+ for (let i = 0; i < bitmap.length; i += step) {+ hash ^= bitmap[i]+ hash = Math.imul(hash, 0x01000193) >>> 0 // FNV prime, keep as uint32}++ return `${seqPrefix}image:${size.width}x${size.height}:${hash.toString(36)}`}// Text — the content itself is the fingerprint.diff --git a/electron/store/ItemStore.ts b/electron/store/ItemStore.tsindex 418cb9a..36bdfe7 100644--- a/electron/store/ItemStore.ts+++ b/electron/store/ItemStore.ts@@ -759,14 +759,23 @@ const fileEntryCache = new Map<string, FileEntry>()function buildFileEntry(p: string): FileEntry {if (fileEntryCache.has(p)) return fileEntryCache.get(p)!let size = 0+ let isDirectory = falsetry {- size = statSync(p).size+ const st = statSync(p)+ size = st.size+ isDirectory = st.isDirectory()} catch {/* file missing / unreadable — size stays 0 */}- const ext = (extname(p).slice(1) || '').toLowerCase()+ const ext = isDirectory ? '' : (extname(p).slice(1) || '').toLowerCase()const name = pathBasename(p)- const entry = { name, ext, size, isImage: isImageExt(p) }+ const entry: FileEntry = {+ name,+ ext,+ size,+ isImage: !isDirectory && isImageExt(p),+ isDirectory+ }if (fileEntryCache.size > 500) fileEntryCache.clear()fileEntryCache.set(p, entry)return entrydiff --git a/new icons/audio svg icon.svg b/new icons/audio svg icon.svgnew file mode 100644index 0000000..38273c3--- /dev/null+++ b/new icons/audio svg icon.svg@@ -0,0 +1,96 @@+<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 512 512" width="100%" height="100%">+ <defs>+ <!-- Soft Matte Shadow for the Music Glyph -->+ <filter id="glyphShadow" x="-20%" y="-20%" width="140%" height="140%">+ <feDropShadow dx="0" dy="4" stdDeviation="5" flood-color="#6B21A8" flood-opacity="0.22"/>+ <feDropShadow dx="0" dy="1" stdDeviation="2" flood-color="#000000" flood-opacity="0.05"/>+ </filter>++ <!-- Folder Base Soft Shadow -->+ <filter id="folderShadow" x="-10%" y="-10%" width="120%" height="120%">+ <feDropShadow dx="0" dy="10" stdDeviation="16" flood-color="#7E22CE" flood-opacity="0.12"/>+ </filter>+ </defs>++ <g filter="url(#folderShadow)">+ <!-- 1. Folder Back Plate & Tab -->+ <path d="M 56 378+ L 56 128+ C 56 112 68 100 84 100+ L 162 100+ C 178 100 190 108 200 120+ C 208 130 218 136 232 136+ L 428 136+ C 444 136 456 148 456 164+ L 456 378+ C 456 396 442 410 424 410+ L 88 410+ C 70 410 56 396 56 378 Z"+ fill="#E2D0FE"/>++ <!-- 2. Paper Sheet Peeking Inside -->+ <path d="M 74 162+ L 74 152+ C 74 147 78 143 83 143+ L 429 143+ C 434 143 438 147 438 152+ L 438 162 Z"+ fill="#FAF5FF"/>++ <!-- 3. Folder Front Flap -->+ <path d="M 56 168+ C 56 156 65 148 76 148+ L 436 148+ C 447 148 456 156 456 168+ L 456 378+ C 456 396 442 410 424 410+ L 88 410+ C 70 410 56 396 56 378 Z"+ fill="#C495FD"/>++ <!-- 4. Authentic Apple Music Note Glyph (♫) -->+ <g transform="translate(167.8, 190.6) scale(12)" filter="url(#glyphShadow)" fill="#FFFFFF">+ <path d="M 10.888 2.518+ L 6.132 3.477+ C 5.98 3.508 5.86 3.565 5.76 3.65+ C 5.66 3.735 5.6 3.86 5.6 4.02+ C 5.596 4.047 5.59 4.1 5.59 4.18+ L 5.59 10.132+ C 5.59 10.272 5.578 10.407 5.484 10.522+ C 5.389 10.637 5.274 10.672 5.137 10.699+ L 4.827 10.762+ C 4.434 10.842 4.177 10.895 3.946 10.985+ C 3.738 11.066 3.555 11.186 3.427 11.318+ C 3.25 11.5 3.12 11.75 3.095 12.313+ C 3.126 12.61 3.261 12.895 3.49 13.105+ C 3.646 13.247 3.84 13.355 4.068 13.401+ C 4.304 13.448 4.558 13.432 4.926 13.358+ C 5.122 13.318 5.306 13.256 5.481 13.153+ C 5.656 13.05 5.81 12.89 5.919 12.748+ C 6.028 12.606 6.12 12.36 6.152 12.198+ C 6.194 11.996 6.204 11.812 6.204 11.61+ L 6.204 6.347+ C 6.204 6.071 6.284 5.997 6.506 5.943+ C 6.53 5.938 10.46 5.146 10.644 5.11+ C 10.901 5.061 11.022 5.135 11.022 5.404+ L 11.022 8.928+ C 11.022 9.068 11.021 9.208 10.926 9.324+ C 10.832 9.439 10.715 9.474 10.578 9.502+ L 10.268 9.564+ C 9.875 9.644 9.619 9.697 9.388 9.787+ C 9.18 9.868 8.997 9.988 8.868 10.121+ C 8.69 10.3 8.56 10.55 8.528 11.115+ C 8.558 11.412 8.702 11.697 8.932 11.907+ C 9.088 12.049 9.282 12.157 9.51 12.203+ C 9.745 12.25 10 12.234 10.367 12.16+ C 10.564 12.12 10.747 12.058 10.923 11.955+ C 11.098 11.852 11.251 11.692 11.361 11.55+ C 11.467 11.393 11.546 11.206 11.594 11+ C 11.636 10.798 11.646 10.614 11.646 10.412+ L 11.646 2.812+ C 11.646 2.666 11.593 2.562 11.486 2.502+ C 11.38 2.44 11.19 2.456 10.888 2.518+ Z"/>+ </g>+ </g>+</svg>diff --git a/new icons/code svg icon.svg b/new icons/code svg icon.svgnew file mode 100644index 0000000..de4b0d9--- /dev/null+++ b/new icons/code svg icon.svg@@ -0,0 +1,68 @@+<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 512 512" width="100%" height="100%">+ <defs>+ <!-- Soft Matte Shadow for the Code Glyph -->+ <filter id="glyphShadow" x="-20%" y="-20%" width="140%" height="140%">+ <feDropShadow dx="0" dy="4" stdDeviation="5" flood-color="#0369A1" flood-opacity="0.18"/>+ <feDropShadow dx="0" dy="1" stdDeviation="2" flood-color="#000000" flood-opacity="0.05"/>+ </filter>++ <!-- Folder Base Soft Shadow -->+ <filter id="folderShadow" x="-10%" y="-10%" width="120%" height="120%">+ <feDropShadow dx="0" dy="10" stdDeviation="16" flood-color="#0284C7" flood-opacity="0.12"/>+ </filter>+ </defs>++ <g filter="url(#folderShadow)">+ <!-- 1. Folder Back Plate & Tab -->+ <path d="M 56 378+ L 56 128+ C 56 112 68 100 84 100+ L 162 100+ C 178 100 190 108 200 120+ C 208 130 218 136 232 136+ L 428 136+ C 444 136 456 148 456 164+ L 456 378+ C 456 396 442 410 424 410+ L 88 410+ C 70 410 56 396 56 378 Z"+ fill="#86DDFB"/>++ <!-- 2. Paper Sheet Peeking Inside -->+ <path d="M 74 162+ L 74 152+ C 74 147 78 143 83 143+ L 429 143+ C 434 143 438 147 438 152+ L 438 162 Z"+ fill="#F0FBFF"/>++ <!-- 3. Folder Front Flap -->+ <path d="M 56 168+ C 56 156 65 148 76 148+ L 436 148+ C 447 148 456 156 456 168+ L 456 378+ C 456 396 442 410 424 410+ L 88 410+ C 70 410 56 396 56 378 Z"+ fill="#53CAF7"/>++ <!-- 4. Correctly Angled Code Syntax Glyph (</>) -->+ <g filter="url(#glyphShadow)"+ fill="none"+ stroke="#FFFFFF"+ stroke-width="16"+ stroke-linecap="round"+ stroke-linejoin="round">+ <!-- Left Angle Bracket (<) -->+ <path d="M 200 240 L 156 289 L 200 338"/>++ <!-- Center Forward Slash (/) - Correct 22° Slant & Perfectly Centered -->+ <line x1="282" y1="222" x2="230" y2="356"/>++ <!-- Right Angle Bracket (>) -->+ <path d="M 312 240 L 356 289 L 312 338"/>+ </g>+ </g>+</svg>\ No newline at end of filediff --git a/new icons/doc svg icon.svg b/new icons/doc svg icon.svgnew file mode 100644index 0000000..a979609--- /dev/null+++ b/new icons/doc svg icon.svg@@ -0,0 +1,106 @@+<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 512 512" width="100%" height="100%">+ <defs>+ <!-- Soft Matte Shadow for the Document Sheet -->+ <filter id="sheetShadow" x="-20%" y="-20%" width="140%" height="140%">+ <feDropShadow dx="0" dy="4" stdDeviation="5" flood-color="#000000" flood-opacity="0.06"/>+ <feDropShadow dx="0" dy="1" stdDeviation="2" flood-color="#000000" flood-opacity="0.04"/>+ </filter>++ <!-- Folder Base Soft Shadow -->+ <filter id="folderShadow" x="-10%" y="-10%" width="120%" height="120%">+ <feDropShadow dx="0" dy="10" stdDeviation="16" flood-color="#000000" flood-opacity="0.08"/>+ </filter>+ </defs>++ <g filter="url(#folderShadow)">+ <!-- 1. Folder Back Plate & Tab -->+ <path d="M 56 378+ L 56 128+ C 56 112 68 100 84 100+ L 162 100+ C 178 100 190 108 200 120+ C 208 130 218 136 232 136+ L 428 136+ C 444 136 456 148 456 164+ L 456 378+ C 456 396 442 410 424 410+ L 88 410+ C 70 410 56 396 56 378 Z"+ fill="#9DC5FA"/>++ <!-- 2. Paper Sheet Peeking Inside -->+ <path d="M 74 162+ L 74 152+ C 74 147 78 143 83 143+ L 429 143+ C 434 143 438 147 438 152+ L 438 162 Z"+ fill="#F2F7FE"/>++ <!-- 3. Folder Front Flap -->+ <path d="M 56 168+ C 56 156 65 148 76 148+ L 436 148+ C 447 148 456 156 456 168+ L 456 378+ C 456 396 442 410 424 410+ L 88 410+ C 70 410 56 396 56 378 Z"+ fill="#7BAFF8"/>++ <!-- 4. Word Document Sheet Motif -->+ <g filter="url(#sheetShadow)">+ <!-- Main Paper Sheet with Corner Cut -->+ <path d="M 204 200+ C 195 200 188 207 188 216+ L 188 364+ C 188 373 195 380 204 380+ L 308 380+ C 317 380 324 373 324 364+ L 324 244+ C 324 240 322 236 319 233+ L 291 205+ C 288 202 284 200 280 200+ Z"+ fill="#F2F7FE"/>++ <!-- Folded Corner L-Flap -->+ <path d="M 281 201+ L 281 232+ C 281 238 286 243 292 243+ L 323 243"+ fill="none"+ stroke="#7BAFF8"+ stroke-width="7"+ stroke-linecap="round"+ stroke-linejoin="round"/>++ <!-- Word "W" Lettermark (Shifted to Left Alignment) -->+ <text x="210" y="278"+ fill="#7BAFF8"+ font-family="-apple-system, BlinkMacSystemFont, 'SF Pro Display', 'Helvetica Neue', Arial, sans-serif"+ font-size="52"+ font-weight="800"+ letter-spacing="-0.5"+ text-anchor="start">W</text>++ <!-- Paragraph Line 1 (Full) -->+ <line x1="210" y1="306" x2="302" y2="306"+ stroke="#7BAFF8"+ stroke-width="7"+ stroke-linecap="round"/>++ <!-- Paragraph Line 2 (Full) -->+ <line x1="210" y1="328" x2="302" y2="328"+ stroke="#7BAFF8"+ stroke-width="7"+ stroke-linecap="round"/>++ <!-- Paragraph Line 3 (Short / Indented) -->+ <line x1="210" y1="350" x2="258" y2="350"+ stroke="#7BAFF8"+ stroke-width="7"+ stroke-linecap="round"/>+ </g>+ </g>+</svg>\ No newline at end of filediff --git a/new icons/exe svg icon.svg b/new icons/exe svg icon.svgnew file mode 100644index 0000000..268986c--- /dev/null+++ b/new icons/exe svg icon.svg@@ -0,0 +1,83 @@+<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 512 512" width="100%" height="100%">+ <defs>+ <!-- Soft Matte Shadow for the CPU Chip Motif -->+ <filter id="glyphShadow" x="-20%" y="-20%" width="140%" height="140%">+ <feDropShadow dx="0" dy="4" stdDeviation="5" flood-color="#3730A3" flood-opacity="0.22"/>+ <feDropShadow dx="0" dy="1" stdDeviation="2" flood-color="#000000" flood-opacity="0.05"/>+ </filter>++ <!-- Folder Base Soft Shadow -->+ <filter id="folderShadow" x="-10%" y="-10%" width="120%" height="120%">+ <feDropShadow dx="0" dy="10" stdDeviation="16" flood-color="#4338CA" flood-opacity="0.12"/>+ </filter>+ </defs>++ <g filter="url(#folderShadow)">+ <!-- 1. Folder Back Plate & Tab -->+ <path d="M 56 378+ L 56 128+ C 56 112 68 100 84 100+ L 162 100+ C 178 100 190 108 200 120+ C 208 130 218 136 232 136+ L 428 136+ C 444 136 456 148 456 164+ L 456 378+ C 456 396 442 410 424 410+ L 88 410+ C 70 410 56 396 56 378 Z"+ fill="#C7D2FE"/>++ <!-- 2. Paper Sheet Peeking Inside -->+ <path d="M 74 162+ L 74 152+ C 74 147 78 143 83 143+ L 429 143+ C 434 143 438 147 438 152+ L 438 162 Z"+ fill="#F5F7FF"/>++ <!-- 3. Folder Front Flap -->+ <path d="M 56 168+ C 56 156 65 148 76 148+ L 436 148+ C 447 148 456 156 456 168+ L 456 378+ C 456 396 442 410 424 410+ L 88 410+ C 70 410 56 396 56 378 Z"+ fill="#93A4FC"/>++ <!-- 4. Minimalist Silicon Processor Chip Motif -->+ <g filter="url(#glyphShadow)">+ <!-- Connection Pins (3 on each of the 4 sides) -->+ <g stroke="#FFFFFF" stroke-width="8" stroke-linecap="round">+ <!-- Top Pins -->+ <line x1="226" y1="235" x2="226" y2="218"/>+ <line x1="256" y1="235" x2="256" y2="218"/>+ <line x1="286" y1="235" x2="286" y2="218"/>++ <!-- Bottom Pins -->+ <line x1="226" y1="343" x2="226" y2="360"/>+ <line x1="256" y1="343" x2="256" y2="360"/>+ <line x1="286" y1="343" x2="286" y2="360"/>++ <!-- Left Pins -->+ <line x1="202" y1="259" x2="185" y2="259"/>+ <line x1="202" y1="289" x2="185" y2="289"/>+ <line x1="202" y1="319" x2="185" y2="319"/>++ <!-- Right Pins -->+ <line x1="310" y1="259" x2="327" y2="259"/>+ <line x1="310" y1="289" x2="327" y2="289"/>+ <line x1="310" y1="319" x2="327" y2="319"/>+ </g>++ <!-- Main Silicon Chip Die Body -->+ <rect x="202" y="235" width="108" height="108" rx="20" fill="#FFFFFF"/>++ <!-- Clean Central Processor Cavity -->+ <rect x="226" y="259" width="60" height="60" rx="12" fill="#93A4FC"/>+ </g>+ </g>+</svg>\ No newline at end of filediff --git a/new icons/folder svg icon.svg b/new icons/folder svg icon.svgnew file mode 100644index 0000000..ff71e84--- /dev/null+++ b/new icons/folder svg icon.svg@@ -0,0 +1,45 @@+<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 512 512" width="100%" height="100%">+ <defs>+ <!-- Folder Base Soft Shadow -->+ <filter id="folderShadow" x="-10%" y="-10%" width="120%" height="120%">+ <feDropShadow dx="0" dy="10" stdDeviation="16" flood-color="#D97706" flood-opacity="0.12"/>+ </filter>+ </defs>++ <g filter="url(#folderShadow)">+ <!-- 1. Folder Back Plate & Tab -->+ <path d="M 56 378+ L 56 128+ C 56 112 68 100 84 100+ L 162 100+ C 178 100 190 108 200 120+ C 208 130 218 136 232 136+ L 428 136+ C 444 136 456 148 456 164+ L 456 378+ C 456 396 442 410 424 410+ L 88 410+ C 70 410 56 396 56 378 Z"+ fill="#FDE68A"/>++ <!-- 2. Paper Sheet Peeking Inside -->+ <path d="M 74 162+ L 74 152+ C 74 147 78 143 83 143+ L 429 143+ C 434 143 438 147 438 152+ L 438 162 Z"+ fill="#FFFDF5"/>++ <!-- 3. Clean Yellow Front Flap -->+ <path d="M 56 168+ C 56 156 65 148 76 148+ L 436 148+ C 447 148 456 156 456 168+ L 456 378+ C 456 396 442 410 424 410+ L 88 410+ C 70 410 56 396 56 378 Z"+ fill="#FBBF24"/>+ </g>+</svg>\ No newline at end of filediff --git a/new icons/geniric svg icon.svg b/new icons/geniric svg icon.svgnew file mode 100644index 0000000..e240146--- /dev/null+++ b/new icons/geniric svg icon.svg@@ -0,0 +1,79 @@+<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 512 512" width="100%" height="100%">+ <defs>+ <!-- Soft Matte Shadow for the Document Sheet -->+ <filter id="sheetShadow" x="-20%" y="-20%" width="140%" height="140%">+ <feDropShadow dx="0" dy="4" stdDeviation="5" flood-color="#000000" flood-opacity="0.06"/>+ <feDropShadow dx="0" dy="1" stdDeviation="2" flood-color="#000000" flood-opacity="0.04"/>+ </filter>++ <!-- Folder Base Soft Shadow -->+ <filter id="folderShadow" x="-10%" y="-10%" width="120%" height="120%">+ <feDropShadow dx="0" dy="10" stdDeviation="16" flood-color="#475569" flood-opacity="0.12"/>+ </filter>+ </defs>++ <g filter="url(#folderShadow)">+ <!-- 1. Folder Back Plate & Tab -->+ <path d="M 56 378+ L 56 128+ C 56 112 68 100 84 100+ L 162 100+ C 178 100 190 108 200 120+ C 208 130 218 136 232 136+ L 428 136+ C 444 136 456 148 456 164+ L 456 378+ C 456 396 442 410 424 410+ L 88 410+ C 70 410 56 396 56 378 Z"+ fill="#D4DFE9"/>++ <!-- 2. Paper Sheet Peeking Inside -->+ <path d="M 74 162+ L 74 152+ C 74 147 78 143 83 143+ L 429 143+ C 434 143 438 147 438 152+ L 438 162 Z"+ fill="#F8FAFC"/>++ <!-- 3. Folder Front Flap -->+ <path d="M 56 168+ C 56 156 65 148 76 148+ L 436 148+ C 447 148 456 156 456 168+ L 456 378+ C 456 396 442 410 424 410+ L 88 410+ C 70 410 56 396 56 378 Z"+ fill="#B0C0D0"/>++ <!-- 4. Clean Blank Folded Document Sheet Motif -->+ <g filter="url(#sheetShadow)">+ <!-- Main Paper Sheet with Corner Cut -->+ <path d="M 204 200+ C 195 200 188 207 188 216+ L 188 364+ C 188 373 195 380 204 380+ L 308 380+ C 317 380 324 373 324 364+ L 324 244+ C 324 240 322 236 319 233+ L 291 205+ C 288 202 284 200 280 200+ Z"+ fill="#F8FAFC"/>++ <!-- Folded Corner L-Flap -->+ <path d="M 281 201+ L 281 232+ C 281 238 286 243 292 243+ L 323 243"+ fill="none"+ stroke="#B0C0D0"+ stroke-width="7"+ stroke-linecap="round"+ stroke-linejoin="round"/>+ </g>+ </g>+</svg>\ No newline at end of filediff --git a/new icons/imge svg icon.svg b/new icons/imge svg icon.svgnew file mode 100644index 0000000..be47075--- /dev/null+++ b/new icons/imge svg icon.svg@@ -0,0 +1,74 @@+<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 512 512" width="100%" height="100%">+ <defs>+ <!-- Soft Matte Shadow for the Image Motif -->+ <filter id="glyphShadow" x="-20%" y="-20%" width="140%" height="140%">+ <feDropShadow dx="0" dy="4" stdDeviation="5" flood-color="#9D174D" flood-opacity="0.22"/>+ <feDropShadow dx="0" dy="1" stdDeviation="2" flood-color="#000000" flood-opacity="0.05"/>+ </filter>++ <!-- Folder Base Soft Shadow -->+ <filter id="folderShadow" x="-10%" y="-10%" width="120%" height="120%">+ <feDropShadow dx="0" dy="10" stdDeviation="16" flood-color="#BE185D" flood-opacity="0.12"/>+ </filter>+ </defs>++ <g filter="url(#folderShadow)">+ <!-- 1. Folder Back Plate & Tab -->+ <path d="M 56 378+ L 56 128+ C 56 112 68 100 84 100+ L 162 100+ C 178 100 190 108 200 120+ C 208 130 218 136 232 136+ L 428 136+ C 444 136 456 148 456 164+ L 456 378+ C 456 396 442 410 424 410+ L 88 410+ C 70 410 56 396 56 378 Z"+ fill="#F9A8D4"/>++ <!-- 2. Paper Sheet Peeking Inside -->+ <path d="M 74 162+ L 74 152+ C 74 147 78 143 83 143+ L 429 143+ C 434 143 438 147 438 152+ L 438 162 Z"+ fill="#FFF1F8"/>++ <!-- 3. Folder Front Flap -->+ <path d="M 56 168+ C 56 156 65 148 76 148+ L 436 148+ C 447 148 456 156 456 168+ L 456 378+ C 456 396 442 410 424 410+ L 88 410+ C 70 410 56 396 56 378 Z"+ fill="#F472B6"/>++ <!-- 4. Clean Seamless Photo Frame Motif (Zero Artifacts) -->+ <g filter="url(#glyphShadow)">+ <!-- Sun -->+ <circle cx="272" cy="260" r="14" fill="#FFFFFF"/>++ <!-- Solid Dual-Mountain Silhouette (Seamlessly Merged) -->+ <path d="M 178 346+ L 178 326+ L 230 274+ L 266 308+ L 298 282+ L 334 324+ L 334 346+ Z"+ fill="#FFFFFF"/>++ <!-- Outer Rounded Picture Frame -->+ <rect x="176" y="228" width="160" height="122" rx="18"+ fill="none"+ stroke="#FFFFFF"+ stroke-width="12"/>+ </g>+ </g>+</svg>\ No newline at end of filediff --git a/new icons/pdf svg icon.svg b/new icons/pdf svg icon.svgnew file mode 100644index 0000000..ba67e06--- /dev/null+++ b/new icons/pdf svg icon.svg@@ -0,0 +1,100 @@+<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 512 512" width="100%" height="100%">+ <defs>+ <!-- Soft Matte Shadow for the Document Sheet -->+ <filter id="sheetShadow" x="-20%" y="-20%" width="140%" height="140%">+ <feDropShadow dx="0" dy="4" stdDeviation="5" flood-color="#000000" flood-opacity="0.06"/>+ <feDropShadow dx="0" dy="1" stdDeviation="2" flood-color="#000000" flood-opacity="0.04"/>+ </filter>++ <!-- Folder Base Soft Shadow -->+ <filter id="folderShadow" x="-10%" y="-10%" width="120%" height="120%">+ <feDropShadow dx="0" dy="10" stdDeviation="16" flood-color="#000000" flood-opacity="0.08"/>+ </filter>+ </defs>++ <g filter="url(#folderShadow)">+ <!-- 1. Folder Back Plate & Tab -->+ <path d="M 56 378+ L 56 128+ C 56 112 68 100 84 100+ L 162 100+ C 178 100 190 108 200 120+ C 208 130 218 136 232 136+ L 428 136+ C 444 136 456 148 456 164+ L 456 378+ C 456 396 442 410 424 410+ L 88 410+ C 70 410 56 396 56 378 Z"+ fill="#FF92A0"/>++ <!-- 2. Paper Sheet Peeking Inside -->+ <path d="M 74 162+ L 74 152+ C 74 147 78 143 83 143+ L 429 143+ C 434 143 438 147 438 152+ L 438 162 Z"+ fill="#FFF0F2"/>++ <!-- 3. Folder Front Flap -->+ <path d="M 56 168+ C 56 156 65 148 76 148+ L 436 148+ C 447 148 456 156 456 168+ L 456 378+ C 456 396 442 410 424 410+ L 88 410+ C 70 410 56 396 56 378 Z"+ fill="#FF7C8E"/>++ <!-- 4. Perfectly Sized Matte Document Sheet -->+ <g filter="url(#sheetShadow)">+ <!-- Main Paper Sheet -->+ <path d="M 204 200+ C 195 200 188 207 188 216+ L 188 364+ C 188 373 195 380 204 380+ L 308 380+ C 317 380 324 373 324 364+ L 324 244+ C 324 240 322 236 319 233+ L 291 205+ C 288 202 284 200 280 200+ Z"+ fill="#FFF0F2"/>++ <!-- Folded Corner L-Flap -->+ <path d="M 281 201+ L 281 232+ C 281 238 286 243 292 243+ L 323 243"+ fill="none"+ stroke="#FF7C8E"+ stroke-width="7"+ stroke-linecap="round"+ stroke-linejoin="round"/>++ <!-- Document PDF Typography -->+ <text x="256" y="302"+ fill="#FF7C8E"+ font-family="-apple-system, BlinkMacSystemFont, 'SF Pro Display', 'Helvetica Neue', Arial, sans-serif"+ font-size="38"+ font-weight="800"+ letter-spacing="0.5"+ text-anchor="middle">PDF</text>++ <!-- Bottom Ruled Line 1 -->+ <line x1="208" y1="330" x2="304" y2="330"+ stroke="#FF7C8E"+ stroke-width="7"+ stroke-linecap="round"/>++ <!-- Bottom Ruled Line 2 -->+ <line x1="208" y1="352" x2="304" y2="352"+ stroke="#FF7C8E"+ stroke-width="7"+ stroke-linecap="round"/>+ </g>+ </g>+</svg>\ No newline at end of filediff --git a/new icons/ppt svg icon.svg b/new icons/ppt svg icon.svgnew file mode 100644index 0000000..9cbe9a8--- /dev/null+++ b/new icons/ppt svg icon.svg@@ -0,0 +1,101 @@+<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 512 512" width="100%" height="100%">+ <defs>+ <!-- Soft Matte Shadow for the Presentation Easel -->+ <filter id="sheetShadow" x="-20%" y="-20%" width="140%" height="140%">+ <feDropShadow dx="0" dy="4" stdDeviation="5" flood-color="#000000" flood-opacity="0.06"/>+ <feDropShadow dx="0" dy="1" stdDeviation="2" flood-color="#000000" flood-opacity="0.04"/>+ </filter>++ <!-- Folder Base Soft Shadow -->+ <filter id="folderShadow" x="-10%" y="-10%" width="120%" height="120%">+ <feDropShadow dx="0" dy="10" stdDeviation="16" flood-color="#000000" flood-opacity="0.08"/>+ </filter>+ </defs>++ <g filter="url(#folderShadow)">+ <!-- 1. Folder Back Plate & Tab -->+ <path d="M 56 378+ L 56 128+ C 56 112 68 100 84 100+ L 162 100+ C 178 100 190 108 200 120+ C 208 130 218 136 232 136+ L 428 136+ C 444 136 456 148 456 164+ L 456 378+ C 456 396 442 410 424 410+ L 88 410+ C 70 410 56 396 56 378 Z"+ fill="#FFC492"/>++ <!-- 2. Paper Sheet Peeking Inside -->+ <path d="M 74 162+ L 74 152+ C 74 147 78 143 83 143+ L 429 143+ C 434 143 438 147 438 152+ L 438 162 Z"+ fill="#FFF8F2"/>++ <!-- 3. Folder Front Flap -->+ <path d="M 56 168+ C 56 156 65 148 76 148+ L 436 148+ C 447 148 456 156 456 168+ L 456 378+ C 456 396 442 410 424 410+ L 88 410+ C 70 410 56 396 56 378 Z"+ fill="#FFA25B"/>++ <!-- 4. Presentation Easel & Tripod Stand Motif -->+ <g filter="url(#sheetShadow)">+ <!-- Tripod Stand Legs (Behind Board) -->+ <!-- Center Pole -->+ <line x1="256" y1="306" x2="256" y2="368"+ stroke="#FFF8F2"+ stroke-width="8"+ stroke-linecap="round"/>++ <!-- Left Leg -->+ <line x1="256" y1="312" x2="222" y2="368"+ stroke="#FFF8F2"+ stroke-width="8"+ stroke-linecap="round"/>++ <!-- Right Leg -->+ <line x1="256" y1="312" x2="290" y2="368"+ stroke="#FFF8F2"+ stroke-width="8"+ stroke-linecap="round"/>++ <!-- Top Roller Header Bar -->+ <rect x="182" y="196" width="148" height="14" rx="7" fill="#FFF8F2"/>++ <!-- Main Presentation Screen Board -->+ <rect x="188" y="210" width="136" height="96" rx="8" fill="#FFF8F2"/>++ <!-- Pie Chart on Screen (Exact 1:1 Color Match with Front Flap) -->+ <!-- Main Large Sector (Left 225°) -->+ <path d="M 252 230+ A 28 28 0 1 0 273 277+ L 252 258+ Z"+ fill="#FFA25B"/>++ <!-- Top-Right Slice (90° Sector) -->+ <path d="M 260 228+ A 28 28 0 0 1 288 255+ L 260 255+ Z"+ fill="#FFA25B"/>++ <!-- Bottom-Right Slice (45° Sector) -->+ <path d="M 288 261+ A 28 28 0 0 1 279 280+ L 260 261+ Z"+ fill="#FFA25B"/>+ </g>+ </g>+</svg>\ No newline at end of filediff --git a/new icons/sheet svg icon.svg b/new icons/sheet svg icon.svgnew file mode 100644index 0000000..9279206--- /dev/null+++ b/new icons/sheet svg icon.svg@@ -0,0 +1,105 @@+<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 512 512" width="100%" height="100%">+ <defs>+ <!-- Soft Matte Shadow for the Spreadsheet Card -->+ <filter id="sheetShadow" x="-20%" y="-20%" width="140%" height="140%">+ <feDropShadow dx="0" dy="4" stdDeviation="5" flood-color="#000000" flood-opacity="0.06"/>+ <feDropShadow dx="0" dy="1" stdDeviation="2" flood-color="#000000" flood-opacity="0.04"/>+ </filter>++ <!-- Folder Base Soft Shadow -->+ <filter id="folderShadow" x="-10%" y="-10%" width="120%" height="120%">+ <feDropShadow dx="0" dy="10" stdDeviation="16" flood-color="#000000" flood-opacity="0.08"/>+ </filter>+ </defs>++ <g filter="url(#folderShadow)">+ <!-- 1. Folder Back Plate & Tab -->+ <path d="M 56 378+ L 56 128+ C 56 112 68 100 84 100+ L 162 100+ C 178 100 190 108 200 120+ C 208 130 218 136 232 136+ L 428 136+ C 444 136 456 148 456 164+ L 456 378+ C 456 396 442 410 424 410+ L 88 410+ C 70 410 56 396 56 378 Z"+ fill="#7EE6BC"/>++ <!-- 2. Paper Sheet Peeking Inside -->+ <path d="M 74 162+ L 74 152+ C 74 147 78 143 83 143+ L 429 143+ C 434 143 438 147 438 152+ L 438 162 Z"+ fill="#F0FDF8"/>++ <!-- 3. Folder Front Flap -->+ <path d="M 56 168+ C 56 156 65 148 76 148+ L 436 148+ C 447 148 456 156 456 168+ L 456 378+ C 456 396 442 410 424 410+ L 88 410+ C 70 410 56 396 56 378 Z"+ fill="#52D7A4"/>++ <!-- 4. Folded Spreadsheet Document Sheet Motif -->+ <g filter="url(#sheetShadow)">+ <!-- Main Paper Sheet with Corner Cut -->+ <path d="M 204 200+ C 195 200 188 207 188 216+ L 188 364+ C 188 373 195 380 204 380+ L 308 380+ C 317 380 324 373 324 364+ L 324 244+ C 324 240 322 236 319 233+ L 291 205+ C 288 202 284 200 280 200+ Z"+ fill="#F0FDF8"/>++ <!-- Folded Corner L-Flap -->+ <path d="M 281 201+ L 281 232+ C 281 238 286 243 292 243+ L 323 243"+ fill="none"+ stroke="#52D7A4"+ stroke-width="7"+ stroke-linecap="round"+ stroke-linejoin="round"/>++ <!-- Spreadsheet Outer Table Frame (Moved Up & Balanced) -->+ <rect x="210" y="262" width="92" height="86" rx="8"+ fill="none"+ stroke="#52D7A4"+ stroke-width="5"/>++ <!-- Horizontal Table Divider 1 (Header Row) -->+ <line x1="210" y1="290" x2="302" y2="290"+ stroke="#52D7A4"+ stroke-width="5"/>++ <!-- Horizontal Table Divider 2 -->+ <line x1="210" y1="319" x2="302" y2="319"+ stroke="#52D7A4"+ stroke-width="5"/>++ <!-- Vertical Column Divider 1 -->+ <line x1="241" y1="262" x2="241" y2="348"+ stroke="#52D7A4"+ stroke-width="5"/>++ <!-- Vertical Column Divider 2 -->+ <line x1="271" y1="262" x2="271" y2="348"+ stroke="#52D7A4"+ stroke-width="5"/>+ </g>+ </g>+</svg>\ No newline at end of filediff --git a/new icons/text svg icon.svg b/new icons/text svg icon.svgnew file mode 100644index 0000000..daa2c4f--- /dev/null+++ b/new icons/text svg icon.svg@@ -0,0 +1,103 @@+<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 512 512" width="100%" height="100%">+ <defs>+ <!-- Soft Matte Shadow for the Document Sheet -->+ <filter id="sheetShadow" x="-20%" y="-20%" width="140%" height="140%">+ <feDropShadow dx="0" dy="4" stdDeviation="5" flood-color="#000000" flood-opacity="0.06"/>+ <feDropShadow dx="0" dy="1" stdDeviation="2" flood-color="#000000" flood-opacity="0.04"/>+ </filter>++ <!-- Folder Base Soft Shadow -->+ <filter id="folderShadow" x="-10%" y="-10%" width="120%" height="120%">+ <feDropShadow dx="0" dy="10" stdDeviation="16" flood-color="#475569" flood-opacity="0.12"/>+ </filter>+ </defs>++ <g filter="url(#folderShadow)">+ <!-- 1. Folder Back Plate & Tab -->+ <path d="M 56 378+ L 56 128+ C 56 112 68 100 84 100+ L 162 100+ C 178 100 190 108 200 120+ C 208 130 218 136 232 136+ L 428 136+ C 444 136 456 148 456 164+ L 456 378+ C 456 396 442 410 424 410+ L 88 410+ C 70 410 56 396 56 378 Z"+ fill="#D1DBE5"/>++ <!-- 2. Paper Sheet Peeking Inside -->+ <path d="M 74 162+ L 74 152+ C 74 147 78 143 83 143+ L 429 143+ C 434 143 438 147 438 152+ L 438 162 Z"+ fill="#F8FAFC"/>++ <!-- 3. Folder Front Flap -->+ <path d="M 56 168+ C 56 156 65 148 76 148+ L 436 148+ C 447 148 456 156 456 168+ L 456 378+ C 456 396 442 410 424 410+ L 88 410+ C 70 410 56 396 56 378 Z"+ fill="#B2C0D0"/>++ <!-- 4. Folded Note Document Motif -->+ <g filter="url(#sheetShadow)">+ <!-- Main Paper Sheet with Corner Cut -->+ <path d="M 204 200+ C 195 200 188 207 188 216+ L 188 364+ C 188 373 195 380 204 380+ L 308 380+ C 317 380 324 373 324 364+ L 324 244+ C 324 240 322 236 319 233+ L 291 205+ C 288 202 284 200 280 200+ Z"+ fill="#F8FAFC"/>++ <!-- Folded Corner L-Flap -->+ <path d="M 281 201+ L 281 232+ C 281 238 286 243 292 243+ L 323 243"+ fill="none"+ stroke="#B2C0D0"+ stroke-width="7"+ stroke-linecap="round"+ stroke-linejoin="round"/>++ <!-- Note Line 1 (Short Heading) -->+ <line x1="210" y1="268" x2="256" y2="268"+ stroke="#B2C0D0"+ stroke-width="7"+ stroke-linecap="round"/>++ <!-- Note Line 2 (Full Line) -->+ <line x1="210" y1="294" x2="300" y2="294"+ stroke="#B2C0D0"+ stroke-width="7"+ stroke-linecap="round"/>++ <!-- Note Line 3 (Full Line) -->+ <line x1="210" y1="320" x2="300" y2="320"+ stroke="#B2C0D0"+ stroke-width="7"+ stroke-linecap="round"/>++ <!-- Note Line 4 (Medium Line) -->+ <line x1="210" y1="346" x2="276" y2="346"+ stroke="#B2C0D0"+ stroke-width="7"+ stroke-linecap="round"/>+ </g>+ </g>+</svg>\ No newline at end of filediff --git a/new icons/vidoe svg icon.svg b/new icons/vidoe svg icon.svgnew file mode 100644index 0000000..82fb895--- /dev/null+++ b/new icons/vidoe svg icon.svg@@ -0,0 +1,82 @@+<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 512 512" width="100%" height="100%">+ <defs>+ <!-- Soft Matte Shadow for the Cinema Film Card -->+ <filter id="sheetShadow" x="-20%" y="-20%" width="140%" height="140%">+ <feDropShadow dx="0" dy="4" stdDeviation="5" flood-color="#000000" flood-opacity="0.06"/>+ <feDropShadow dx="0" dy="1" stdDeviation="2" flood-color="#000000" flood-opacity="0.04"/>+ </filter>++ <!-- Folder Base Soft Shadow -->+ <filter id="folderShadow" x="-10%" y="-10%" width="120%" height="120%">+ <feDropShadow dx="0" dy="10" stdDeviation="16" flood-color="#BE123C" flood-opacity="0.12"/>+ </filter>+ </defs>++ <g filter="url(#folderShadow)">+ <!-- 1. Folder Back Plate & Tab -->+ <path d="M 56 378+ L 56 128+ C 56 112 68 100 84 100+ L 162 100+ C 178 100 190 108 200 120+ C 208 130 218 136 232 136+ L 428 136+ C 444 136 456 148 456 164+ L 456 378+ C 456 396 442 410 424 410+ L 88 410+ C 70 410 56 396 56 378 Z"+ fill="#FFA1AD"/>++ <!-- 2. Paper Sheet Peeking Inside -->+ <path d="M 74 162+ L 74 152+ C 74 147 78 143 83 143+ L 429 143+ C 434 143 438 147 438 152+ L 438 162 Z"+ fill="#FFF0F3"/>++ <!-- 3. Folder Front Flap -->+ <path d="M 56 168+ C 56 156 65 148 76 148+ L 436 148+ C 447 148 456 156 456 168+ L 456 378+ C 456 396 442 410 424 410+ L 88 410+ C 70 410 56 396 56 378 Z"+ fill="#FF6E7F"/>++ <!-- 4. Cinema Film Strip Motif -->+ <g filter="url(#sheetShadow)">+ <!-- Main White Film Strip Card -->+ <rect x="176" y="224" width="160" height="128" rx="20" fill="#FFF0F3"/>++ <!-- Left Sprocket Holes -->+ <rect x="192" y="240" width="16" height="16" rx="4" fill="#FF6E7F"/>+ <rect x="192" y="266.67" width="16" height="16" rx="4" fill="#FF6E7F"/>+ <rect x="192" y="293.33" width="16" height="16" rx="4" fill="#FF6E7F"/>+ <rect x="192" y="320" width="16" height="16" rx="4" fill="#FF6E7F"/>++ <!-- Center Film Frame Window (x=216 to 296, Center=256) -->+ <rect x="216" y="240" width="80" height="96" rx="8" fill="#FF6E7F"/>++ <!-- Right Sprocket Holes -->+ <rect x="304" y="240" width="16" height="16" rx="4" fill="#FF6E7F"/>+ <rect x="304" y="266.67" width="16" height="16" rx="4" fill="#FF6E7F"/>+ <rect x="304" y="293.33" width="16" height="16" rx="4" fill="#FF6E7F"/>+ <rect x="304" y="320" width="16" height="16" rx="4" fill="#FF6E7F"/>++ <!-- Mathematically Centered Play Triangle -->+ <path d="M 243 274+ C 243 271 246.5 269 249.5 270.8+ L 269.5 284.8+ C 272.5 286.5 272.5 289.5 269.5 291.2+ L 249.5 305.2+ C 246.5 307 243 305 243 302+ Z"+ fill="#FFFFFF"/>+ </g>+ </g>+</svg>\ No newline at end of filediff --git a/new icons/zip svg icon.svg b/new icons/zip svg icon.svgnew file mode 100644index 0000000..628b0e5--- /dev/null+++ b/new icons/zip svg icon.svg@@ -0,0 +1,109 @@+<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 512 512" width="100%" height="100%">+ <defs>+ <!-- Soft Matte Shadow for the Zipper Motif -->+ <filter id="glyphShadow" x="-20%" y="-20%" width="140%" height="140%">+ <feDropShadow dx="0" dy="4" stdDeviation="5" flood-color="#B45309" flood-opacity="0.22"/>+ <feDropShadow dx="0" dy="1" stdDeviation="2" flood-color="#000000" flood-opacity="0.05"/>+ </filter>++ <!-- Folder Base Soft Shadow -->+ <filter id="folderShadow" x="-10%" y="-10%" width="120%" height="120%">+ <feDropShadow dx="0" dy="10" stdDeviation="16" flood-color="#D97706" flood-opacity="0.12"/>+ </filter>+ </defs>++ <g filter="url(#folderShadow)">+ <!-- 1. Folder Back Plate & Tab -->+ <path d="M 56 378+ L 56 128+ C 56 112 68 100 84 100+ L 162 100+ C 178 100 190 108 200 120+ C 208 130 218 136 232 136+ L 428 136+ C 444 136 456 148 456 164+ L 456 378+ C 456 396 442 410 424 410+ L 88 410+ C 70 410 56 396 56 378 Z"+ fill="#FDE68A"/>++ <!-- 2. Paper Sheet Peeking Inside -->+ <path d="M 74 162+ L 74 152+ C 74 147 78 143 83 143+ L 429 143+ C 434 143 438 147 438 152+ L 438 162 Z"+ fill="#FFFDF5"/>++ <!-- 3. Folder Front Flap -->+ <path d="M 56 168+ C 56 156 65 148 76 148+ L 436 148+ C 447 148 456 156 456 168+ L 456 378+ C 456 396 442 410 424 410+ L 88 410+ C 70 410 56 396 56 378 Z"+ fill="#FBBF24"/>++ <!-- 4. Clean Geometric Zipper & Puller Motif -->+ <g filter="url(#glyphShadow)">+ <!-- Central Zipper Track Spine -->+ <line x1="256" y1="178" x2="256" y2="284"+ stroke="#FFFDF5"+ stroke-width="6"+ stroke-linecap="round"/>++ <!-- Clean Alternating Zipper Teeth -->+ <!-- Left Teeth -->+ <rect x="236" y="184" width="20" height="6" rx="3" fill="#FFFDF5"/>+ <rect x="236" y="204" width="20" height="6" rx="3" fill="#FFFDF5"/>+ <rect x="236" y="224" width="20" height="6" rx="3" fill="#FFFDF5"/>+ <rect x="236" y="244" width="20" height="6" rx="3" fill="#FFFDF5"/>+ <rect x="236" y="264" width="20" height="6" rx="3" fill="#FFFDF5"/>++ <!-- Right Teeth (Staggered by 10px) -->+ <rect x="256" y="194" width="20" height="6" rx="3" fill="#FFFDF5"/>+ <rect x="256" y="214" width="20" height="6" rx="3" fill="#FFFDF5"/>+ <rect x="256" y="234" width="20" height="6" rx="3" fill="#FFFDF5"/>+ <rect x="256" y="254" width="20" height="6" rx="3" fill="#FFFDF5"/>+ <rect x="256" y="274" width="20" height="6" rx="3" fill="#FFFDF5"/>++ <!-- Slider Head (Shield Contour) -->+ <path d="M 242 282+ L 270 282+ C 274 282 277 285 277 289+ L 275 304+ C 275 310 277 314 273 320+ L 260 327+ C 257.5 328.5 254.5 328.5 252 327+ L 239 320+ C 235 314 237 310 237 304+ L 235 289+ C 235 285 238 282 242 282+ Z"+ fill="#FFFDF5"/>++ <!-- Puller Tab (Smooth Teardrop Handle) -->+ <path d="M 249 314+ C 249 311 251 309 254 309+ L 258 309+ C 261 309 263 311 263 314+ L 264 346+ C 266 354 275 362 275 374+ C 275 384.5 266.5 393 256 393+ C 245.5 393 237 384.5 237 374+ C 237 362 246 354 248 346+ Z"+ fill="#FFFDF5"/>++ <!-- Slider Attachment Slot (Cutout matched to Front Flap) -->+ <rect x="252" y="294" width="8" height="22" rx="4" fill="#FBBF24"/>++ <!-- Puller Ring Hole (Cutout matched to Front Flap) -->+ <circle cx="256" cy="374" r="9" fill="#FBBF24"/>+ </g>+ </g>+</svg>\ No newline at end of filediff --git a/shared/types.ts b/shared/types.tsindex f0342a0..862bb67 100644--- a/shared/types.ts+++ b/shared/types.ts@@ -48,6 +48,7 @@ export interface FileEntry {ext: stringsize: numberisImage: boolean+ isDirectory?: booleanpreview?: string}diff --git a/src/components/ClipboardItem.tsx b/src/components/ClipboardItem.tsxindex 2157d90..5605924 100644--- a/src/components/ClipboardItem.tsx+++ b/src/components/ClipboardItem.tsx@@ -518,55 +518,55 @@ function BundleFluidPreview({</button></div></div>- {paths.map((filePath, idx) => {- const entry = entries?.[idx]+ {paths.map((filePath, index) => {+ const entry = entries?.[index]const name = formatImageDisplayName(entry?.name ?? filePath, item.capturedAt)const size = entry?.size ?? 0return (<motion.div- key={`${item.id}-${idx}`}- className="fluid-list-row"- variants={rowVariants}+ key={`${item.id}-${filePath}-${index}`}+ className="fluid-card-row"+ layoutdraggableonDragStartCapture={(e: any) => { e.stopPropagation(); onDragStart(e, { id: item.id, paths: [filePath] }) }}onClick={(e) => { e.stopPropagation(); tryPaste(() => window.edge.pasteSubitem({ id: item.id, paths: [filePath] })) }}>- {entry?.isImage && entry.preview ? (- <div className="fluid-list-icon" style={{ overflow: 'hidden', padding: 0 }}>+ <div className="fluid-row-icon">+ {entry?.isImage && entry.preview ? (<imgsrc={entry.preview}alt=""loading="lazy"decoding="async"draggable={false}- style={{ width: '100%', height: '100%', objectFit: 'cover', borderRadius: 6 }}+ className="fluid-row-img"/>+ ) : (+ <FileKindIcon path={filePath} width={44} height={44} isDirectory={entry?.isDirectory} />+ )}+ </div>+ <div className="fluid-row-content">+ <div className="fluid-row-name" title={name}>{name}</div>+ <div className="fluid-row-sub">+ {size > 0 ? formatBytes(size) : getFileKind(filePath, entry?.isDirectory).label}</div>- ) : (- <div className="fluid-list-icon" style={{ color: getFileKind(filePath).color }}>- <FileKindIcon path={filePath} width={16} height={16} />- </div>- )}- <div className="fluid-list-text-wrap">- <div className="fluid-list-text">{name}</div>- {size > 0 && <div className="fluid-list-sub">{formatBytes(size)}</div>}</div>- <button- className="act subitem-copy-btn"- title={t('item.copyFilePath')}- onClick={(e) => { e.stopPropagation(); window.edge.copySubitem({ id: item.id, paths: [filePath] }); }}- style={{ width: 24, height: 24 }}- >- <CopyIcon width={12} height={12} />- </button>- <button- className="act subitem-delete-btn"- title={t('item.ungroup')}- onClick={(e) => { e.stopPropagation(); window.edge.splitItem({ id: item.id, paths: [filePath], splitPlacement: 'after' }); }}- style={{ width: 24, height: 24 }}- >- <MinusIcon width={12} height={12} />- </button>+ <div className="fluid-row-actions">+ <button+ className="act subitem-copy-btn"+ title={t('item.copyFilePath')}+ onClick={(e) => { e.stopPropagation(); window.edge.copySubitem({ id: item.id, paths: [filePath] }); }}+ >+ <CopyIcon width={12} height={12} />+ </button>+ <button+ className="act subitem-delete-btn"+ title={t('item.ungroup')}+ onClick={(e) => { e.stopPropagation(); window.edge.splitItem({ id: item.id, paths: [filePath], splitPlacement: 'after' }); }}+ >+ <MinusIcon width={12} height={12} />+ </button>+ </div></motion.div>)})}@@ -584,20 +584,25 @@ function BundleFluidPreview({{paths.slice(0, 4).map((filePath, i) => ({ filePath, pathIndex: i })).reverse().map(({ filePath, pathIndex }, idx, arr) => {const realIndex = arr.length - 1 - idxconst entry = entries?.[pathIndex]+ const isImg = entry?.isImage && !!entry.preview+ const spread = arr.length > 1 ? 22 : 0+ const rotSpread = arr.length > 1 ? 9 : 0+ const centerOffset = ((arr.length - 1) * spread) / 2+ const centerRot = ((arr.length - 1) * rotSpread) / 2+return (<motion.divkey={`${item.id}-${pathIndex}`}- className="bundle-stack-card bundle-file-stack-card"+ className={isImg ? "bundle-stack-card" : "bundle-stack-icon-item"}animate={{- x: realIndex * 20 - 20,- y: realIndex * 6,- rotate: realIndex * 6 - 6,+ x: realIndex * spread - centerOffset,+ y: realIndex * 5,+ rotate: realIndex * rotSpread - centerRot,scale: 1 - realIndex * 0.05}}style={{ zIndex: 10 - realIndex }}- initial={{ borderRadius: 8 }}>- {entry?.isImage && entry.preview ? (+ {isImg ? (<imgsrc={entry.preview}alt=""@@ -607,9 +612,7 @@ function BundleFluidPreview({style={{ width: '100%', height: '100%', objectFit: 'cover', borderRadius: 8 }}/>) : (- <div style={{ color: getFileKind(filePath).color, display: 'flex', alignItems: 'center', justifyContent: 'center' }}>- <FileKindIcon path={filePath} width={40} height={40} />- </div>+ <FileKindIcon path={filePath} width={100} height={100} isDirectory={entry?.isDirectory} />)}</motion.div>)@@ -679,7 +682,7 @@ function Preview({ item }: { item: ClipboardItemDto }) {const rawName = entry?.name ?? basename(first)const displayName = formatImageDisplayName(first, item.capturedAt)const isInternalHash = /^[a-z0-9]{6,12}-[a-z0-9]{6,12}\.[a-z0-9]+$/i.test(rawName) || first.includes('edge-drop/images') || first.includes('edge-drop\\images') || first.includes('edge-drop/temp') || first.includes('edge-drop\\temp')- const isImage = entry?.isImage || getFileKind(first).kind === 'image'+ const isImage = !entry?.isDirectory && (entry?.isImage || getFileKind(first).kind === 'image')// Single image file — show its thumbnail.if (item.data.paths.length === 1 && isImage) {@@ -707,19 +710,19 @@ function Preview({ item }: { item: ClipboardItemDto }) {</>)}- // Non-image single file — show a tinted type icon alongside its name.- const info = getFileKind(first)+ // Non-image single file — show big hero icon on top, and name + meta on the bottom!+ const info = getFileKind(first, entry?.isDirectory)return (<div className="single-file-preview">- <div className="single-file-icon" style={{ color: info.color }}>- <FileKindIcon path={first} width={28} height={28} />+ <div className="single-file-hero" style={{ color: info.color }}>+ <FileKindIcon path={first} width={120} height={120} isDirectory={entry?.isDirectory} /></div><div className="single-file-meta">- <div className="preview single">+ <div className="preview single single-file-name" title={displayName}>{displayName}</div><div className="single-file-sub">- {info.label}{entry && entry.size > 0 ? ` · ${formatBytes(entry.size)}` : ''}+ {info.label}{!entry?.isDirectory && entry && entry.size > 0 ? ` · ${formatBytes(entry.size)}` : ''}</div></div></div>@@ -757,9 +760,10 @@ function KindBadge({ item }: { item: ClipboardItemDto }) {)case 'files': {const firstPath = item.data.paths[0]- const info = getFileKind(firstPath)+ const entry = item.data.entries?.[0]+ const info = getFileKind(firstPath, entry?.isDirectory)const count = item.data.paths.length- const isImage = count === 1 && (item.data.entries?.[0]?.isImage || info.kind === 'image')+ const isImage = count === 1 && !entry?.isDirectory && (entry?.isImage || info.kind === 'image')if (isImage) {return (<span className="kind-badge">@@ -770,7 +774,7 @@ function KindBadge({ item }: { item: ClipboardItemDto }) {const label = count > 1 ? `${count} ${t('filters.files').toLowerCase()}` : info.label.toLowerCase()return (<span className="kind-badge" style={{ color: count > 1 ? undefined : info.color }}>- <FileKindIcon path={firstPath} width={11} height={11} />+ <FileKindIcon path={firstPath} width={11} height={11} isDirectory={entry?.isDirectory} />{label}</span>)diff --git a/src/components/CustomFileIcon.tsx b/src/components/CustomFileIcon.tsxnew file mode 100644index 0000000..f971242--- /dev/null+++ b/src/components/CustomFileIcon.tsx@@ -0,0 +1,574 @@+import { useId, type SVGProps, type JSX } from 'react'+import { getFileKind, getFileKindByExt, extOf, type FileKind } from '../lib/fileType'++export interface CustomFileIconProps extends SVGProps<SVGSVGElement> {+ ext?: string+ path?: string+ kind?: FileKind+ isDirectory?: boolean+ isFolder?: boolean+ width?: number | string+ height?: number | string+}++/** Micro-mode simplified icons for tiny sizes (width <= 16px) */+function renderMicroIcon(kind: FileKind, color: string): JSX.Element {+ switch (kind) {+ case 'folder':+ return (+ <g stroke={color} strokeWidth="2" strokeLinecap="round" strokeLinejoin="round" fill="none">+ <path d="M4 20h16a2 2 0 0 0 2-2V8a2 2 0 0 0-2-2h-7.93a2 2 0 0 1-1.66-.9l-.82-1.2A2 2 0 0 0 7.93 3H4a2 2 0 0 0-2 2v13c0 1.1.9 2 2 2Z" />+ </g>+ )+ case 'image':+ return (+ <g stroke={color} strokeWidth="2" strokeLinecap="round" strokeLinejoin="round" fill="none">+ <rect x="3" y="3" width="18" height="18" rx="3" />+ <circle cx="8" cy="8" r="1.5" fill={color} />+ <path d="m21 15-5-5L5 21" />+ </g>+ )+ case 'video':+ return (+ <g stroke={color} strokeWidth="2" strokeLinecap="round" strokeLinejoin="round" fill="none">+ <rect x="2" y="4" width="20" height="16" rx="3" />+ <polygon points="10,8 16,12 10,16" fill={color} />+ </g>+ )+ case 'audio':+ return (+ <g stroke={color} strokeWidth="2" strokeLinecap="round" strokeLinejoin="round" fill="none">+ <path d="M9 18V5l12-2v13" />+ <circle cx="6" cy="18" r="3" fill={color} />+ <circle cx="18" cy="16" r="3" fill={color} />+ </g>+ )+ case 'code':+ return (+ <g stroke={color} strokeWidth="2.5" strokeLinecap="round" strokeLinejoin="round" fill="none">+ <polyline points="16 18 22 12 16 6" />+ <polyline points="8 6 2 12 8 18" />+ </g>+ )+ case 'archive':+ return (+ <g stroke={color} strokeWidth="2" strokeLinecap="round" strokeLinejoin="round" fill="none">+ <rect x="3" y="3" width="18" height="18" rx="3" />+ <line x1="12" y1="3" x2="12" y2="21" strokeDasharray="2 2" />+ <rect x="10" y="8" width="4" height="5" rx="1" fill={color} />+ </g>+ )+ case 'excel':+ return (+ <g stroke={color} strokeWidth="2" strokeLinecap="round" strokeLinejoin="round" fill="none">+ <rect x="3" y="3" width="18" height="18" rx="2" />+ <line x1="12" y1="3" x2="12" y2="21" />+ <line x1="3" y1="12" x2="21" y2="12" />+ </g>+ )+ case 'executable':+ return (+ <g stroke={color} strokeWidth="2" strokeLinecap="round" strokeLinejoin="round" fill="none">+ <rect x="4" y="4" width="16" height="16" rx="2" />+ <rect x="9" y="9" width="6" height="6" fill={color} />+ <line x1="9" y1="1" x2="9" y2="4" />+ <line x1="15" y1="1" x2="15" y2="4" />+ <line x1="9" y1="20" x2="9" y2="23" />+ <line x1="15" y1="20" x2="15" y2="23" />+ </g>+ )+ case 'pdf':+ case 'word':+ case 'powerpoint':+ case 'text':+ case 'file':+ default:+ return (+ <g stroke={color} strokeWidth="2" strokeLinecap="round" strokeLinejoin="round" fill="none">+ <path d="M14 2H6a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V8z" />+ <polyline points="14 2 14 8 20 8" />+ <line x1="8" y1="13" x2="16" y2="13" />+ <line x1="8" y1="17" x2="12" y2="17" />+ </g>+ )+ }+}++/**+ * 3D Layered Category-Based Pastel Folder Icon Suite+ * 1:1 Implementation of the exact SVG designs in "new icons" directory.+ */+export function CustomFileIcon({+ ext,+ path,+ kind: explicitKind,+ isDirectory,+ isFolder,+ width = 32,+ height,+ style,+ className,+ ...rest+}: CustomFileIconProps): JSX.Element {+ const uid = useId().replace(/:/g, '')+ const numericWidth = typeof width === 'number' ? width : parseInt(String(width), 10) || 32+ const resolvedHeight = height ?? width++ const isDir = Boolean(isDirectory || isFolder)+ const resolvedExt = (ext ?? (path ? extOf(path) : '')).toLowerCase()++ const info = explicitKind+ ? { kind: explicitKind, color: getFileKindByExt(explicitKind, isDir).color, label: explicitKind.toUpperCase() }+ : isDir || resolvedExt === 'folder'+ ? getFileKindByExt('folder', true)+ : resolvedExt+ ? getFileKindByExt(resolvedExt)+ : path+ ? getFileKind(path, isDir)+ : { kind: 'file' as FileKind, color: '#B0C0D0', label: 'FILE' }++ const kind: FileKind = explicitKind ?? info.kind++ // Micro size fallback for 11px–16px badges+ if (numericWidth <= 16) {+ return (+ <svg+ xmlns="http://www.w3.org/2000/svg"+ viewBox="0 0 24 24"+ width={width}+ height={resolvedHeight}+ fill="none"+ className={className}+ style={{+ display: 'inline-block',+ verticalAlign: 'middle',+ flexShrink: 0,+ ...style+ }}+ {...rest}+ >+ {renderMicroIcon(kind, info.color)}+ </svg>+ )+ }++ const folderShadowId = `folderShadow-${uid}`+ const sheetShadowId = `sheetShadow-${uid}`+ const glyphShadowId = `glyphShadow-${uid}`++ // Common SVG wrapper props+ const svgProps = {+ xmlns: 'http://www.w3.org/2000/svg',+ viewBox: '0 0 512 512',+ width,+ height: resolvedHeight,+ fill: 'none',+ className,+ style: {+ display: 'inline-block',+ verticalAlign: 'middle',+ flexShrink: 0,+ ...style+ },+ ...rest+ }++ // 1. Folders (folder svg icon.svg)+ if (kind === 'folder') {+ return (+ <svg {...svgProps}>+ <defs>+ <filter id={folderShadowId} x="-10%" y="-10%" width="120%" height="120%">+ <feDropShadow dx="0" dy="10" stdDeviation="16" floodColor="#D97706" floodOpacity="0.12" />+ </filter>+ </defs>+ <g filter={`url(#${folderShadowId})`}>+ {/* 1. Folder Back Plate & Tab */}+ <path+ d="M 56 378 L 56 128 C 56 112 68 100 84 100 L 162 100 C 178 100 190 108 200 120 C 208 130 218 136 232 136 L 428 136 C 444 136 456 148 456 164 L 456 378 C 456 396 442 410 424 410 L 88 410 C 70 410 56 396 56 378 Z"+ fill="#FDE68A"+ />+ {/* 2. Paper Sheet Peeking Inside */}+ <path+ d="M 74 162 L 74 152 C 74 147 78 143 83 143 L 429 143 C 434 143 438 147 438 152 L 438 162 Z"+ fill="#FFFDF5"+ />+ {/* 3. Clean Yellow Front Flap */}+ <path+ d="M 56 168 C 56 156 65 148 76 148 L 436 148 C 447 148 456 156 456 168 L 456 378 C 456 396 442 410 424 410 L 88 410 C 70 410 56 396 56 378 Z"+ fill="#FBBF24"+ />+ </g>+ </svg>+ )+ }++ // 2. Executable / Installer Files (.exe, .msi, .apk, etc. - exe svg icon.svg)+ if (kind === 'executable') {+ return (+ <svg {...svgProps}>+ <defs>+ <filter id={glyphShadowId} x="-20%" y="-20%" width="140%" height="140%">+ <feDropShadow dx="0" dy="4" stdDeviation="5" floodColor="#3730A3" floodOpacity="0.22" />+ <feDropShadow dx="0" dy="1" stdDeviation="2" floodColor="#000000" floodOpacity="0.05" />+ </filter>+ <filter id={folderShadowId} x="-10%" y="-10%" width="120%" height="120%">+ <feDropShadow dx="0" dy="10" stdDeviation="16" floodColor="#4338CA" floodOpacity="0.12" />+ </filter>+ </defs>+ <g filter={`url(#${folderShadowId})`}>+ <path d="M 56 378 L 56 128 C 56 112 68 100 84 100 L 162 100 C 178 100 190 108 200 120 C 208 130 218 136 232 136 L 428 136 C 444 136 456 148 456 164 L 456 378 C 456 396 442 410 424 410 L 88 410 C 70 410 56 396 56 378 Z" fill="#C7D2FE" />+ <path d="M 74 162 L 74 152 C 74 147 78 143 83 143 L 429 143 C 434 143 438 147 438 152 L 438 162 Z" fill="#F5F7FF" />+ <path d="M 56 168 C 56 156 65 148 76 148 L 436 148 C 447 148 456 156 456 168 L 456 378 C 456 396 442 410 424 410 L 88 410 C 70 410 56 396 56 378 Z" fill="#93A4FC" />+ <g filter={`url(#${glyphShadowId})`}>+ <g stroke="#FFFFFF" strokeWidth="8" strokeLinecap="round">+ <line x1="226" y1="235" x2="226" y2="218" />+ <line x1="256" y1="235" x2="256" y2="218" />+ <line x1="286" y1="235" x2="286" y2="218" />+ <line x1="226" y1="343" x2="226" y2="360" />+ <line x1="256" y1="343" x2="256" y2="360" />+ <line x1="286" y1="343" x2="286" y2="360" />+ <line x1="202" y1="259" x2="185" y2="259" />+ <line x1="202" y1="289" x2="185" y2="289" />+ <line x1="202" y1="319" x2="185" y2="319" />+ <line x1="310" y1="259" x2="327" y2="259" />+ <line x1="310" y1="289" x2="327" y2="289" />+ <line x1="310" y1="319" x2="327" y2="319" />+ </g>+ <rect x="202" y="235" width="108" height="108" rx="20" fill="#FFFFFF" />+ <rect x="226" y="259" width="60" height="60" rx="12" fill="#93A4FC" />+ </g>+ </g>+ </svg>+ )+ }++ // 3. Audio Files (.mp3, .wav, .flac, etc. - audio svg icon.svg)+ if (kind === 'audio') {+ return (+ <svg {...svgProps}>+ <defs>+ <filter id={glyphShadowId} x="-20%" y="-20%" width="140%" height="140%">+ <feDropShadow dx="0" dy="4" stdDeviation="5" floodColor="#6B21A8" floodOpacity="0.22" />+ <feDropShadow dx="0" dy="1" stdDeviation="2" floodColor="#000000" floodOpacity="0.05" />+ </filter>+ <filter id={folderShadowId} x="-10%" y="-10%" width="120%" height="120%">+ <feDropShadow dx="0" dy="10" stdDeviation="16" floodColor="#7E22CE" floodOpacity="0.12" />+ </filter>+ </defs>+ <g filter={`url(#${folderShadowId})`}>+ <path d="M 56 378 L 56 128 C 56 112 68 100 84 100 L 162 100 C 178 100 190 108 200 120 C 208 130 218 136 232 136 L 428 136 C 444 136 456 148 456 164 L 456 378 C 456 396 442 410 424 410 L 88 410 C 70 410 56 396 56 378 Z" fill="#E2D0FE" />+ <path d="M 74 162 L 74 152 C 74 147 78 143 83 143 L 429 143 C 434 143 438 147 438 152 L 438 162 Z" fill="#FAF5FF" />+ <path d="M 56 168 C 56 156 65 148 76 148 L 436 148 C 447 148 456 156 456 168 L 456 378 C 456 396 442 410 424 410 L 88 410 C 70 410 56 396 56 378 Z" fill="#C495FD" />+ <g transform="translate(167.8, 190.6) scale(12)" filter={`url(#${glyphShadowId})`} fill="#FFFFFF">+ <path d="M 10.888 2.518 L 6.132 3.477 C 5.98 3.508 5.86 3.565 5.76 3.65 C 5.66 3.735 5.6 3.86 5.6 4.02 C 5.596 4.047 5.59 4.1 5.59 4.18 L 5.59 10.132 C 5.59 10.272 5.578 10.407 5.484 10.522 C 5.389 10.637 5.274 10.672 5.137 10.699 L 4.827 10.762 C 4.434 10.842 4.177 10.895 3.946 10.985 C 3.738 11.066 3.555 11.186 3.427 11.318 C 3.25 11.5 3.12 11.75 3.095 12.313 C 3.126 12.61 3.261 12.895 3.49 13.105 C 3.646 13.247 3.84 13.355 4.068 13.401 C 4.304 13.448 4.558 13.432 4.926 13.358 C 5.122 13.318 5.306 13.256 5.481 13.153 C 5.656 13.05 5.81 12.89 5.919 12.748 C 6.028 12.606 6.12 12.36 6.152 12.198 C 6.194 11.996 6.204 11.812 6.204 11.61 L 6.204 6.347 C 6.204 6.071 6.284 5.997 6.506 5.943 C 6.53 5.938 10.46 5.146 10.644 5.11 C 10.901 5.061 11.022 5.135 11.022 5.404 L 11.022 8.928 C 11.022 9.068 11.021 9.208 10.926 9.324 C 10.832 9.439 10.715 9.474 10.578 9.502 L 10.268 9.564 C 9.875 9.644 9.619 9.697 9.388 9.787 C 9.18 9.868 8.997 9.988 8.868 10.121 C 8.69 10.3 8.56 10.55 8.528 11.115 C 8.558 11.412 8.702 11.697 8.932 11.907 C 9.088 12.049 9.282 12.157 9.51 12.203 C 9.745 12.25 10 12.234 10.367 12.16 C 10.564 12.12 10.747 12.058 10.923 11.955 C 11.098 11.852 11.251 11.692 11.361 11.55 C 11.467 11.393 11.546 11.206 11.594 11 C 11.636 10.798 11.646 10.614 11.646 10.412 L 11.646 2.812 C 11.646 2.666 11.593 2.562 11.486 2.502 C 11.38 2.44 11.19 2.456 10.888 2.518 Z" />+ </g>+ </g>+ </svg>+ )+ }++ // 4. Code & Developer Files (.js, .ts, .py, .html, .css, etc. - code svg icon.svg)+ if (kind === 'code') {+ return (+ <svg {...svgProps}>+ <defs>+ <filter id={glyphShadowId} x="-20%" y="-20%" width="140%" height="140%">+ <feDropShadow dx="0" dy="4" stdDeviation="5" floodColor="#0369A1" floodOpacity="0.18" />+ <feDropShadow dx="0" dy="1" stdDeviation="2" floodColor="#000000" floodOpacity="0.05" />+ </filter>+ <filter id={folderShadowId} x="-10%" y="-10%" width="120%" height="120%">+ <feDropShadow dx="0" dy="10" stdDeviation="16" floodColor="#0284C7" floodOpacity="0.12" />+ </filter>+ </defs>+ <g filter={`url(#${folderShadowId})`}>+ <path d="M 56 378 L 56 128 C 56 112 68 100 84 100 L 162 100 C 178 100 190 108 200 120 C 208 130 218 136 232 136 L 428 136 C 444 136 456 148 456 164 L 456 378 C 456 396 442 410 424 410 L 88 410 C 70 410 56 396 56 378 Z" fill="#86DDFB" />+ <path d="M 74 162 L 74 152 C 74 147 78 143 83 143 L 429 143 C 434 143 438 147 438 152 L 438 162 Z" fill="#F0FBFF" />+ <path d="M 56 168 C 56 156 65 148 76 148 L 436 148 C 447 148 456 156 456 168 L 456 378 C 456 396 442 410 424 410 L 88 410 C 70 410 56 396 56 378 Z" fill="#53CAF7" />+ <g filter={`url(#${glyphShadowId})`} fill="none" stroke="#FFFFFF" strokeWidth="16" strokeLinecap="round" strokeLinejoin="round">+ <path d="M 200 240 L 156 289 L 200 338" />+ <line x1="282" y1="222" x2="230" y2="356" />+ <path d="M 312 240 L 356 289 L 312 338" />+ </g>+ </g>+ </svg>+ )+ }++ // 5. Word Documents (.doc, .docx, .odt, etc. - doc svg icon.svg)+ if (kind === 'word') {+ return (+ <svg {...svgProps}>+ <defs>+ <filter id={sheetShadowId} x="-20%" y="-20%" width="140%" height="140%">+ <feDropShadow dx="0" dy="4" stdDeviation="5" floodColor="#000000" floodOpacity="0.06" />+ <feDropShadow dx="0" dy="1" stdDeviation="2" floodColor="#000000" floodOpacity="0.04" />+ </filter>+ <filter id={folderShadowId} x="-10%" y="-10%" width="120%" height="120%">+ <feDropShadow dx="0" dy="10" stdDeviation="16" floodColor="#000000" floodOpacity="0.08" />+ </filter>+ </defs>+ <g filter={`url(#${folderShadowId})`}>+ <path d="M 56 378 L 56 128 C 56 112 68 100 84 100 L 162 100 C 178 100 190 108 200 120 C 208 130 218 136 232 136 L 428 136 C 444 136 456 148 456 164 L 456 378 C 456 396 442 410 424 410 L 88 410 C 70 410 56 396 56 378 Z" fill="#9DC5FA" />+ <path d="M 74 162 L 74 152 C 74 147 78 143 83 143 L 429 143 C 434 143 438 147 438 152 L 438 162 Z" fill="#F2F7FE" />+ <path d="M 56 168 C 56 156 65 148 76 148 L 436 148 C 447 148 456 156 456 168 L 456 378 C 456 396 442 410 424 410 L 88 410 C 70 410 56 396 56 378 Z" fill="#7BAFF8" />+ <g filter={`url(#${sheetShadowId})`}>+ <path d="M 204 200 C 195 200 188 207 188 216 L 188 364 C 188 373 195 380 204 380 L 308 380 C 317 380 324 373 324 364 L 324 244 C 324 240 322 236 319 233 L 291 205 C 288 202 284 200 280 200 Z" fill="#F2F7FE" />+ <path d="M 281 201 L 281 232 C 281 238 286 243 292 243 L 323 243" fill="none" stroke="#7BAFF8" strokeWidth="7" strokeLinecap="round" strokeLinejoin="round" />+ <text x="210" y="278" fill="#7BAFF8" fontFamily="-apple-system, BlinkMacSystemFont, 'SF Pro Display', 'Helvetica Neue', Arial, sans-serif" fontSize="52" fontWeight="800" letterSpacing="-0.5" textAnchor="start">W</text>+ <line x1="210" y1="306" x2="302" y2="306" stroke="#7BAFF8" strokeWidth="7" strokeLinecap="round" />+ <line x1="210" y1="328" x2="302" y2="328" stroke="#7BAFF8" strokeWidth="7" strokeLinecap="round" />+ <line x1="210" y1="350" x2="258" y2="350" stroke="#7BAFF8" strokeWidth="7" strokeLinecap="round" />+ </g>+ </g>+ </svg>+ )+ }++ // 6. Image Files (.png, .jpg, .webp, .svg, etc. - imge svg icon.svg)+ if (kind === 'image') {+ return (+ <svg {...svgProps}>+ <defs>+ <filter id={glyphShadowId} x="-20%" y="-20%" width="140%" height="140%">+ <feDropShadow dx="0" dy="4" stdDeviation="5" floodColor="#9D174D" floodOpacity="0.22" />+ <feDropShadow dx="0" dy="1" stdDeviation="2" floodColor="#000000" floodOpacity="0.05" />+ </filter>+ <filter id={folderShadowId} x="-10%" y="-10%" width="120%" height="120%">+ <feDropShadow dx="0" dy="10" stdDeviation="16" floodColor="#BE185D" floodOpacity="0.12" />+ </filter>+ </defs>+ <g filter={`url(#${folderShadowId})`}>+ <path d="M 56 378 L 56 128 C 56 112 68 100 84 100 L 162 100 C 178 100 190 108 200 120 C 208 130 218 136 232 136 L 428 136 C 444 136 456 148 456 164 L 456 378 C 456 396 442 410 424 410 L 88 410 C 70 410 56 396 56 378 Z" fill="#F9A8D4" />+ <path d="M 74 162 L 74 152 C 74 147 78 143 83 143 L 429 143 C 434 143 438 147 438 152 L 438 162 Z" fill="#FFF1F8" />+ <path d="M 56 168 C 56 156 65 148 76 148 L 436 148 C 447 148 456 156 456 168 L 456 378 C 456 396 442 410 424 410 L 88 410 C 70 410 56 396 56 378 Z" fill="#F472B6" />+ <g filter={`url(#${glyphShadowId})`}>+ <circle cx="272" cy="260" r="14" fill="#FFFFFF" />+ <path d="M 178 346 L 178 326 L 230 274 L 266 308 L 298 282 L 334 324 L 334 346 Z" fill="#FFFFFF" />+ <rect x="176" y="228" width="160" height="122" rx="18" fill="none" stroke="#FFFFFF" strokeWidth="12" />+ </g>+ </g>+ </svg>+ )+ }++ // 7. PDF Documents (.pdf - pdf svg icon.svg)+ if (kind === 'pdf') {+ return (+ <svg {...svgProps}>+ <defs>+ <filter id={sheetShadowId} x="-20%" y="-20%" width="140%" height="140%">+ <feDropShadow dx="0" dy="4" stdDeviation="5" floodColor="#000000" floodOpacity="0.06" />+ <feDropShadow dx="0" dy="1" stdDeviation="2" floodColor="#000000" floodOpacity="0.04" />+ </filter>+ <filter id={folderShadowId} x="-10%" y="-10%" width="120%" height="120%">+ <feDropShadow dx="0" dy="10" stdDeviation="16" floodColor="#000000" floodOpacity="0.08" />+ </filter>+ </defs>+ <g filter={`url(#${folderShadowId})`}>+ <path d="M 56 378 L 56 128 C 56 112 68 100 84 100 L 162 100 C 178 100 190 108 200 120 C 208 130 218 136 232 136 L 428 136 C 444 136 456 148 456 164 L 456 378 C 456 396 442 410 424 410 L 88 410 C 70 410 56 396 56 378 Z" fill="#FF92A0" />+ <path d="M 74 162 L 74 152 C 74 147 78 143 83 143 L 429 143 C 434 143 438 147 438 152 L 438 162 Z" fill="#FFF0F2" />+ <path d="M 56 168 C 56 156 65 148 76 148 L 436 148 C 447 148 456 156 456 168 L 456 378 C 456 396 442 410 424 410 L 88 410 C 70 410 56 396 56 378 Z" fill="#FF7C8E" />+ <g filter={`url(#${sheetShadowId})`}>+ <path d="M 204 200 C 195 200 188 207 188 216 L 188 364 C 188 373 195 380 204 380 L 308 380 C 317 380 324 373 324 364 L 324 244 C 324 240 322 236 319 233 L 291 205 C 288 202 284 200 280 200 Z" fill="#FFF0F2" />+ <path d="M 281 201 L 281 232 C 281 238 286 243 292 243 L 323 243" fill="none" stroke="#FF7C8E" strokeWidth="7" strokeLinecap="round" strokeLinejoin="round" />+ <text x="256" y="302" fill="#FF7C8E" fontFamily="-apple-system, BlinkMacSystemFont, 'SF Pro Display', 'Helvetica Neue', Arial, sans-serif" fontSize="38" fontWeight="800" letterSpacing="0.5" textAnchor="middle">PDF</text>+ <line x1="208" y1="330" x2="304" y2="330" stroke="#FF7C8E" strokeWidth="7" strokeLinecap="round" />+ <line x1="208" y1="352" x2="304" y2="352" stroke="#FF7C8E" strokeWidth="7" strokeLinecap="round" />+ </g>+ </g>+ </svg>+ )+ }++ // 8. Presentation Slides (.ppt, .pptx, .key, etc. - ppt svg icon.svg)+ if (kind === 'powerpoint') {+ return (+ <svg {...svgProps}>+ <defs>+ <filter id={sheetShadowId} x="-20%" y="-20%" width="140%" height="140%">+ <feDropShadow dx="0" dy="4" stdDeviation="5" floodColor="#000000" floodOpacity="0.06" />+ <feDropShadow dx="0" dy="1" stdDeviation="2" floodColor="#000000" floodOpacity="0.04" />+ </filter>+ <filter id={folderShadowId} x="-10%" y="-10%" width="120%" height="120%">+ <feDropShadow dx="0" dy="10" stdDeviation="16" floodColor="#000000" floodOpacity="0.08" />+ </filter>+ </defs>+ <g filter={`url(#${folderShadowId})`}>+ <path d="M 56 378 L 56 128 C 56 112 68 100 84 100 L 162 100 C 178 100 190 108 200 120 C 208 130 218 136 232 136 L 428 136 C 444 136 456 148 456 164 L 456 378 C 456 396 442 410 424 410 L 88 410 C 70 410 56 396 56 378 Z" fill="#FFC492" />+ <path d="M 74 162 L 74 152 C 74 147 78 143 83 143 L 429 143 C 434 143 438 147 438 152 L 438 162 Z" fill="#FFF8F2" />+ <path d="M 56 168 C 56 156 65 148 76 148 L 436 148 C 447 148 456 156 456 168 L 456 378 C 456 396 442 410 424 410 L 88 410 C 70 410 56 396 56 378 Z" fill="#FFA25B" />+ <g filter={`url(#${sheetShadowId})`}>+ <line x1="256" y1="306" x2="256" y2="368" stroke="#FFF8F2" strokeWidth="8" strokeLinecap="round" />+ <line x1="256" y1="312" x2="222" y2="368" stroke="#FFF8F2" strokeWidth="8" strokeLinecap="round" />+ <line x1="256" y1="312" x2="290" y2="368" stroke="#FFF8F2" strokeWidth="8" strokeLinecap="round" />+ <rect x="182" y="196" width="148" height="14" rx="7" fill="#FFF8F2" />+ <rect x="188" y="210" width="136" height="96" rx="8" fill="#FFF8F2" />+ <path d="M 252 230 A 28 28 0 1 0 273 277 L 252 258 Z" fill="#FFA25B" />+ <path d="M 260 228 A 28 28 0 0 1 288 255 L 260 255 Z" fill="#FFA25B" />+ <path d="M 288 261 A 28 28 0 0 1 279 280 L 260 261 Z" fill="#FFA25B" />+ </g>+ </g>+ </svg>+ )+ }++ // 9. Spreadsheet & Data Files (.xlsx, .xls, .csv, etc. - sheet svg icon.svg)+ if (kind === 'excel') {+ return (+ <svg {...svgProps}>+ <defs>+ <filter id={sheetShadowId} x="-20%" y="-20%" width="140%" height="140%">+ <feDropShadow dx="0" dy="4" stdDeviation="5" floodColor="#000000" floodOpacity="0.06" />+ <feDropShadow dx="0" dy="1" stdDeviation="2" floodColor="#000000" floodOpacity="0.04" />+ </filter>+ <filter id={folderShadowId} x="-10%" y="-10%" width="120%" height="120%">+ <feDropShadow dx="0" dy="10" stdDeviation="16" floodColor="#000000" floodOpacity="0.08" />+ </filter>+ </defs>+ <g filter={`url(#${folderShadowId})`}>+ <path d="M 56 378 L 56 128 C 56 112 68 100 84 100 L 162 100 C 178 100 190 108 200 120 C 208 130 218 136 232 136 L 428 136 C 444 136 456 148 456 164 L 456 378 C 456 396 442 410 424 410 L 88 410 C 70 410 56 396 56 378 Z" fill="#7EE6BC" />+ <path d="M 74 162 L 74 152 C 74 147 78 143 83 143 L 429 143 C 434 143 438 147 438 152 L 438 162 Z" fill="#F0FDF8" />+ <path d="M 56 168 C 56 156 65 148 76 148 L 436 148 C 447 148 456 156 456 168 L 456 378 C 456 396 442 410 424 410 L 88 410 C 70 410 56 396 56 378 Z" fill="#52D7A4" />+ <g filter={`url(#${sheetShadowId})`}>+ <path d="M 204 200 C 195 200 188 207 188 216 L 188 364 C 188 373 195 380 204 380 L 308 380 C 317 380 324 373 324 364 L 324 244 C 324 240 322 236 319 233 L 291 205 C 288 202 284 200 280 200 Z" fill="#F0FDF8" />+ <path d="M 281 201 L 281 232 C 281 238 286 243 292 243 L 323 243" fill="none" stroke="#52D7A4" strokeWidth="7" strokeLinecap="round" strokeLinejoin="round" />+ <rect x="210" y="262" width="92" height="86" rx="8" fill="none" stroke="#52D7A4" strokeWidth="5" />+ <line x1="210" y1="290" x2="302" y2="290" stroke="#52D7A4" strokeWidth="5" />+ <line x1="210" y1="319" x2="302" y2="319" stroke="#52D7A4" strokeWidth="5" />+ <line x1="241" y1="262" x2="241" y2="348" stroke="#52D7A4" strokeWidth="5" />+ <line x1="271" y1="262" x2="271" y2="348" stroke="#52D7A4" strokeWidth="5" />+ </g>+ </g>+ </svg>+ )+ }++ // 10. Plain Text & Notes (.txt, .md, .log, etc. - text svg icon.svg)+ if (kind === 'text') {+ return (+ <svg {...svgProps}>+ <defs>+ <filter id={sheetShadowId} x="-20%" y="-20%" width="140%" height="140%">+ <feDropShadow dx="0" dy="4" stdDeviation="5" floodColor="#000000" floodOpacity="0.06" />+ <feDropShadow dx="0" dy="1" stdDeviation="2" floodColor="#000000" floodOpacity="0.04" />+ </filter>+ <filter id={folderShadowId} x="-10%" y="-10%" width="120%" height="120%">+ <feDropShadow dx="0" dy="10" stdDeviation="16" floodColor="#475569" floodOpacity="0.12" />+ </filter>+ </defs>+ <g filter={`url(#${folderShadowId})`}>+ <path d="M 56 378 L 56 128 C 56 112 68 100 84 100 L 162 100 C 178 100 190 108 200 120 C 208 130 218 136 232 136 L 428 136 C 444 136 456 148 456 164 L 456 378 C 456 396 442 410 424 410 L 88 410 C 70 410 56 396 56 378 Z" fill="#D1DBE5" />+ <path d="M 74 162 L 74 152 C 74 147 78 143 83 143 L 429 143 C 434 143 438 147 438 152 L 438 162 Z" fill="#F8FAFC" />+ <path d="M 56 168 C 56 156 65 148 76 148 L 436 148 C 447 148 456 156 456 168 L 456 378 C 456 396 442 410 424 410 L 88 410 C 70 410 56 396 56 378 Z" fill="#B2C0D0" />+ <g filter={`url(#${sheetShadowId})`}>+ <path d="M 204 200 C 195 200 188 207 188 216 L 188 364 C 188 373 195 380 204 380 L 308 380 C 317 380 324 373 324 364 L 324 244 C 324 240 322 236 319 233 L 291 205 C 288 202 284 200 280 200 Z" fill="#F8FAFC" />+ <path d="M 281 201 L 281 232 C 281 238 286 243 292 243 L 323 243" fill="none" stroke="#B2C0D0" strokeWidth="7" strokeLinecap="round" strokeLinejoin="round" />+ <line x1="210" y1="268" x2="256" y2="268" stroke="#B2C0D0" strokeWidth="7" strokeLinecap="round" />+ <line x1="210" y1="294" x2="300" y2="294" stroke="#B2C0D0" strokeWidth="7" strokeLinecap="round" />+ <line x1="210" y1="320" x2="300" y2="320" stroke="#B2C0D0" strokeWidth="7" strokeLinecap="round" />+ <line x1="210" y1="346" x2="276" y2="346" stroke="#B2C0D0" strokeWidth="7" strokeLinecap="round" />+ </g>+ </g>+ </svg>+ )+ }++ // 11. Video & Cinema Files (.mp4, .mkv, .mov, etc. - vidoe svg icon.svg)+ if (kind === 'video') {+ return (+ <svg {...svgProps}>+ <defs>+ <filter id={sheetShadowId} x="-20%" y="-20%" width="140%" height="140%">+ <feDropShadow dx="0" dy="4" stdDeviation="5" floodColor="#000000" floodOpacity="0.06" />+ <feDropShadow dx="0" dy="1" stdDeviation="2" floodColor="#000000" floodOpacity="0.04" />+ </filter>+ <filter id={folderShadowId} x="-10%" y="-10%" width="120%" height="120%">+ <feDropShadow dx="0" dy="10" stdDeviation="16" floodColor="#BE123C" floodOpacity="0.12" />+ </filter>+ </defs>+ <g filter={`url(#${folderShadowId})`}>+ <path d="M 56 378 L 56 128 C 56 112 68 100 84 100 L 162 100 C 178 100 190 108 200 120 C 208 130 218 136 232 136 L 428 136 C 444 136 456 148 456 164 L 456 378 C 456 396 442 410 424 410 L 88 410 C 70 410 56 396 56 378 Z" fill="#FFA1AD" />+ <path d="M 74 162 L 74 152 C 74 147 78 143 83 143 L 429 143 C 434 143 438 147 438 152 L 438 162 Z" fill="#FFF0F3" />+ <path d="M 56 168 C 56 156 65 148 76 148 L 436 148 C 447 148 456 156 456 168 L 456 378 C 456 396 442 410 424 410 L 88 410 C 70 410 56 396 56 378 Z" fill="#FF6E7F" />+ <g filter={`url(#${sheetShadowId})`}>+ <rect x="176" y="224" width="160" height="128" rx="20" fill="#FFF0F3" />+ <rect x="192" y="240" width="16" height="16" rx="4" fill="#FF6E7F" />+ <rect x="192" y="266.67" width="16" height="16" rx="4" fill="#FF6E7F" />+ <rect x="192" y="293.33" width="16" height="16" rx="4" fill="#FF6E7F" />+ <rect x="192" y="320" width="16" height="16" rx="4" fill="#FF6E7F" />+ <rect x="216" y="240" width="80" height="96" rx="8" fill="#FF6E7F" />+ <rect x="304" y="240" width="16" height="16" rx="4" fill="#FF6E7F" />+ <rect x="304" y="266.67" width="16" height="16" rx="4" fill="#FF6E7F" />+ <rect x="304" y="293.33" width="16" height="16" rx="4" fill="#FF6E7F" />+ <rect x="304" y="320" width="16" height="16" rx="4" fill="#FF6E7F" />+ <path d="M 243 274 C 243 271 246.5 269 249.5 270.8 L 269.5 284.8 C 272.5 286.5 272.5 289.5 269.5 291.2 L 249.5 305.2 C 246.5 307 243 305 243 302 Z" fill="#FFFFFF" />+ </g>+ </g>+ </svg>+ )+ }++ // 12. Compressed Archives (.zip, .rar, .7z, etc. - zip svg icon.svg)+ if (kind === 'archive') {+ return (+ <svg {...svgProps}>+ <defs>+ <filter id={glyphShadowId} x="-20%" y="-20%" width="140%" height="140%">+ <feDropShadow dx="0" dy="4" stdDeviation="5" floodColor="#B45309" floodOpacity="0.22" />+ <feDropShadow dx="0" dy="1" stdDeviation="2" floodColor="#000000" floodOpacity="0.05" />+ </filter>+ <filter id={folderShadowId} x="-10%" y="-10%" width="120%" height="120%">+ <feDropShadow dx="0" dy="10" stdDeviation="16" floodColor="#D97706" floodOpacity="0.12" />+ </filter>+ </defs>+ <g filter={`url(#${folderShadowId})`}>+ <path d="M 56 378 L 56 128 C 56 112 68 100 84 100 L 162 100 C 178 100 190 108 200 120 C 208 130 218 136 232 136 L 428 136 C 444 136 456 148 456 164 L 456 378 C 456 396 442 410 424 410 L 88 410 C 70 410 56 396 56 378 Z" fill="#FDE68A" />+ <path d="M 74 162 L 74 152 C 74 147 78 143 83 143 L 429 143 C 434 143 438 147 438 152 L 438 162 Z" fill="#FFFDF5" />+ <path d="M 56 168 C 56 156 65 148 76 148 L 436 148 C 447 148 456 156 456 168 L 456 378 C 456 396 442 410 424 410 L 88 410 C 70 410 56 396 56 378 Z" fill="#FBBF24" />+ <g filter={`url(#${glyphShadowId})`}>+ <line x1="256" y1="178" x2="256" y2="284" stroke="#FFFDF5" strokeWidth="6" strokeLinecap="round" />+ <rect x="236" y="184" width="20" height="6" rx="3" fill="#FFFDF5" />+ <rect x="236" y="204" width="20" height="6" rx="3" fill="#FFFDF5" />+ <rect x="236" y="224" width="20" height="6" rx="3" fill="#FFFDF5" />+ <rect x="236" y="244" width="20" height="6" rx="3" fill="#FFFDF5" />+ <rect x="236" y="264" width="20" height="6" rx="3" fill="#FFFDF5" />+ <rect x="256" y="194" width="20" height="6" rx="3" fill="#FFFDF5" />+ <rect x="256" y="214" width="20" height="6" rx="3" fill="#FFFDF5" />+ <rect x="256" y="234" width="20" height="6" rx="3" fill="#FFFDF5" />+ <rect x="256" y="254" width="20" height="6" rx="3" fill="#FFFDF5" />+ <rect x="256" y="274" width="20" height="6" rx="3" fill="#FFFDF5" />+ <path d="M 242 282 L 270 282 C 274 282 277 285 277 289 L 275 304 C 275 310 277 314 273 320 L 260 327 C 257.5 328.5 254.5 328.5 252 327 L 239 320 C 235 314 237 310 237 304 L 235 289 C 235 285 238 282 242 282 Z" fill="#FFFDF5" />+ <path d="M 249 314 C 249 311 251 309 254 309 L 258 309 C 261 309 263 311 263 314 L 264 346 C 266 354 275 362 275 374 C 275 384.5 266.5 393 256 393 C 245.5 393 237 384.5 237 374 C 237 362 246 354 248 346 Z" fill="#FFFDF5" />+ <rect x="252" y="294" width="8" height="22" rx="4" fill="#FBBF24" />+ <circle cx="256" cy="374" r="9" fill="#FBBF24" />+ </g>+ </g>+ </svg>+ )+ }++ // 13. Generic / Uncategorized File Fallback (geniric svg icon.svg)+ return (+ <svg {...svgProps}>+ <defs>+ <filter id={sheetShadowId} x="-20%" y="-20%" width="140%" height="140%">+ <feDropShadow dx="0" dy="4" stdDeviation="5" floodColor="#000000" floodOpacity="0.06" />+ <feDropShadow dx="0" dy="1" stdDeviation="2" floodColor="#000000" floodOpacity="0.04" />+ </filter>+ <filter id={folderShadowId} x="-10%" y="-10%" width="120%" height="120%">+ <feDropShadow dx="0" dy="10" stdDeviation="16" floodColor="#475569" floodOpacity="0.12" />+ </filter>+ </defs>+ <g filter={`url(#${folderShadowId})`}>+ <path d="M 56 378 L 56 128 C 56 112 68 100 84 100 L 162 100 C 178 100 190 108 200 120 C 208 130 218 136 232 136 L 428 136 C 444 136 456 148 456 164 L 456 378 C 456 396 442 410 424 410 L 88 410 C 70 410 56 396 56 378 Z" fill="#D4DFE9" />+ <path d="M 74 162 L 74 152 C 74 147 78 143 83 143 L 429 143 C 434 143 438 147 438 152 L 438 162 Z" fill="#F8FAFC" />+ <path d="M 56 168 C 56 156 65 148 76 148 L 436 148 C 447 148 456 156 456 168 L 456 378 C 456 396 442 410 424 410 L 88 410 C 70 410 56 396 56 378 Z" fill="#B0C0D0" />+ <g filter={`url(#${sheetShadowId})`}>+ <path d="M 204 200 C 195 200 188 207 188 216 L 188 364 C 188 373 195 380 204 380 L 308 380 C 317 380 324 373 324 364 L 324 244 C 324 240 322 236 319 233 L 291 205 C 288 202 284 200 280 200 Z" fill="#F8FAFC" />+ <path d="M 281 201 L 281 232 C 281 238 286 243 292 243 L 323 243" fill="none" stroke="#B0C0D0" strokeWidth="7" strokeLinecap="round" strokeLinejoin="round" />+ </g>+ </g>+ </svg>+ )+}diff --git a/src/components/PreviewFlyout.tsx b/src/components/PreviewFlyout.tsxindex 112e04b..727f44f 100644--- a/src/components/PreviewFlyout.tsx+++ b/src/components/PreviewFlyout.tsx@@ -176,7 +176,7 @@ export function PreviewFlyout({ isRight }: { isRight: boolean }) {[isRight ? 'right' : 'left']: 'var(--panel-width)',marginLeft: isRight ? 0 : 12,marginRight: isRight ? 12 : 0,- width: 420,+ width: 440,display: 'flex',alignItems: 'center',pointerEvents: 'none',@@ -240,7 +240,7 @@ export function PreviewFlyout({ isRight }: { isRight: boolean }) {</div>)}{/* Content — even bezels, no header chrome */}- <div style={{ padding: selectedKeys.size > 0 ? '20px 20px 68px 20px' : '20px', overflowY: 'auto', flex: 1, minHeight: 0 }}>+ <div style={{ padding: selectedKeys.size > 0 ? '20px 20px 68px 20px' : '20px', overflowY: 'auto', overflowX: 'hidden', flex: 1, minHeight: 0 }}><PreviewContentitem={item}selectedKeys={selectedKeys}@@ -881,18 +881,127 @@ function PreviewContent({)}- const isSingleFile = item.data.paths.length === 1- const hasImageFiles = item.data.entries?.some((e: any) => e.isImage) || item.data.paths.some((p: string) => getFileKind(p).kind === 'image')- const useSingleColumn = isSingleFile || hasImageFiles+ const isSingleNonImage = item.data.paths.length === 1+ if (isSingleNonImage) {+ const p = item.data.paths[0]+ const entry = item.data.entries?.[0]+ const info = getFileKind(p, entry?.isDirectory)+ const fileName = formatImageDisplayName(entry?.name || p, item.capturedAt)+ return (+ <div+ draggable={true}+ onDragStart={(e) => {+ e.preventDefault()+ const req = { id: item.id, paths: [p] }+ useStore.getState().setInternalDragReq(req)+ startDrag(req)+ }}+ onDragEnd={() => useStore.getState().setInternalDragReq(null)}+ onClick={(e) => {+ e.stopPropagation()+ tryPaste(() => useStore.getState().paste(item.id))+ }}+ title={t('flyout.clickToPasteDrag')}+ style={{+ display: 'flex',+ flexDirection: 'column',+ alignItems: 'center',+ textAlign: 'center',+ gap: 16,+ padding: '36px 20px 28px',+ background: 'rgba(255, 255, 255, 0.035)',+ borderRadius: 14,+ border: '1px solid rgba(255, 255, 255, 0.06)',+ position: 'relative',+ cursor: 'grab'+ }}+ >+ <div style={{ display: 'flex', justifyContent: 'flex-end', gap: 6, position: 'absolute', top: 12, right: 12, zIndex: 2 }}>+ <QuickActionButton+ title={t('flyout.copyFile')}+ icon={CopyIcon}+ onClick={() => window.edge.copyItem(item.id)}+ />+ <button+ title={t('flyout.openInExplorer')}+ onClick={(e) => {+ e.stopPropagation()+ window.edge.revealFile(p)+ }}+ style={{+ width: 28,+ height: 28,+ background: 'rgba(255, 255, 255, 0.06)',+ border: '1px solid rgba(255, 255, 255, 0.08)',+ color: 'rgba(255, 255, 255, 0.75)',+ borderRadius: 8,+ cursor: 'pointer',+ display: 'flex',+ alignItems: 'center',+ justifyContent: 'center',+ transition: 'all 0.15s ease'+ }}+ onMouseEnter={(e) => {+ e.currentTarget.style.background = 'rgba(255, 255, 255, 0.18)'+ e.currentTarget.style.color = '#fff'+ }}+ onMouseLeave={(e) => {+ e.currentTarget.style.background = 'rgba(255, 255, 255, 0.06)'+ e.currentTarget.style.color = 'rgba(255, 255, 255, 0.75)'+ }}+ >+ <FolderOpenIcon width={14} height={14} />+ </button>+ </div>++ <div style={{+ width: 104,+ height: 104,+ display: 'flex',+ alignItems: 'center',+ justifyContent: 'center',+ filter: 'drop-shadow(0 8px 24px rgba(0, 0, 0, 0.55))',+ marginTop: 4+ }}>+ <FileKindIcon path={p} width={104} height={104} isDirectory={entry?.isDirectory} />+ </div>++ <div style={{ display: 'flex', flexDirection: 'column', gap: 6, maxWidth: '100%', padding: '0 10px' }}>+ <div+ title={fileName}+ style={{+ fontSize: 15,+ fontWeight: 600,+ color: '#ffffff',+ wordBreak: 'break-word',+ lineHeight: 1.4,+ fontFamily: SYS_FONT+ }}+ >+ {fileName}+ </div>+ <div style={{ fontSize: 12, color: 'rgba(255, 255, 255, 0.45)', fontFamily: SYS_FONT, letterSpacing: '0.02em' }}>+ {!entry?.isDirectory && entry?.size ? `${formatBytes(entry.size)} · ` : ''}{info.label}+ </div>+ </div>+ </div>+ )+ }++ const hasImageFiles = item.data.entries?.some((e: any) => !e.isDirectory && e.isImage) || item.data.paths.some((p: string, i: number) => {+ const e = item.data.entries?.[i]+ return !e?.isDirectory && getFileKind(p, e?.isDirectory).kind === 'image'+ })+ const useSingleColumn = hasImageFilesreturn (- <div style={{ display: useSingleColumn ? 'flex' : 'grid', flexDirection: useSingleColumn ? 'column' : undefined, gridTemplateColumns: useSingleColumn ? undefined : 'repeat(2, 1fr)', gap: 12 }}>+ <div style={{ display: useSingleColumn ? 'flex' : 'grid', flexDirection: useSingleColumn ? 'column' : undefined, gridTemplateColumns: useSingleColumn ? undefined : 'repeat(2, minmax(0, 1fr))', gap: 12, width: '100%', boxSizing: 'border-box' }}>{item.data.paths.map((p: string, i: number) => {const entry = item.data.entries?.[i]- const info = getFileKind(p)+ const info = getFileKind(p, entry?.isDirectory)const fileName = formatImageDisplayName(entry?.name || p, item.capturedAt)const isSelected = selectedKeys?.has(p) ?? false- const isImg = entry?.isImage || info.kind === 'image'+ const isImg = !entry?.isDirectory && (entry?.isImage || info.kind === 'image')if (isImg) {const fullResUrl = `edgelocal://file/${encodeURIComponent(p.replace(/\\/g, '/'))}`@@ -918,115 +1027,139 @@ function PreviewContent({tryPaste(() => window.edge.pasteSubitem({ id: item.id, paths: [p] }))}}}- title={selectedKeys && selectedKeys.size > 0 ? (isSelected ? 'Click to deselect' : 'Click to select') : `Click to paste "${fileName}" · Drag to move`}+ title={t('flyout.clickToPasteDrag')}style={{display: 'flex',- flexDirection: 'column',- background: isSelected ? 'rgba(255, 255, 255, 0.09)' : 'rgba(255,255,255,0.035)',- borderRadius: 12,- border: isSelected ? '1px solid #ffffff' : '1px solid rgba(255,255,255,0.06)',- boxShadow: isSelected ? '0 0 14px rgba(255, 255, 255, 0.15)' : 'none',- overflow: 'hidden',- transition: 'all 0.18s ease',- minWidth: 0,+ alignItems: 'center',+ gap: 12,+ padding: '8px 10px',+ background: isSelected ? 'rgba(255, 255, 255, 0.12)' : 'rgba(255, 255, 255, 0.035)',+ borderRadius: 10,+ border: isSelected ? '1px solid rgba(255, 255, 255, 0.3)' : '1px solid rgba(255, 255, 255, 0.06)',+ cursor: 'grab',position: 'relative',- cursor: 'grab'+ minWidth: 0,+ width: '100%',+ boxSizing: 'border-box'}}>- {/* Floating Top Overlay: Selection & Action Buttons */}- <div style={{ position: 'absolute', top: 10, left: 10, zIndex: 3 }}>- <SelectionBadge- isSelected={isSelected}- onToggle={(e) => onToggleSelectKey?.(p, e)}- />- </div>-- <div style={{ position: 'absolute', top: 10, right: 10, zIndex: 3, display: 'flex', alignItems: 'center', gap: 4 }}>- <QuickActionButton- title="Copy File"- icon={CopyIcon}- onClick={() => window.edge.copySubitem({ id: item.id, paths: [p] })}- solidDark={true}- />- <button- title="Open location in Explorer"+ {/* Multi-Select Checkbox */}+ {onToggleSelectKey && (+ <divonClick={(e) => {e.stopPropagation()- window.edge.revealFile(p)+ onToggleSelectKey(p, e)}}style={{- width: 28,- height: 28,- background: 'rgba(0, 0, 0, 0.75)',- border: '1px solid rgba(255, 255, 255, 0.2)',- color: 'rgba(255, 255, 255, 0.9)',- borderRadius: 8,- cursor: 'pointer',+ width: 18,+ height: 18,+ borderRadius: 4,+ border: isSelected ? '1.5px solid #fff' : '1.5px solid rgba(255, 255, 255, 0.3)',+ background: isSelected ? '#fff' : 'transparent',display: 'flex',alignItems: 'center',justifyContent: 'center',- transition: 'all 0.15s ease',+ cursor: 'pointer',flexShrink: 0}}- onMouseEnter={(e) => {- e.currentTarget.style.background = 'rgba(0, 0, 0, 0.95)'- e.currentTarget.style.color = '#fff'- }}- onMouseLeave={(e) => {- e.currentTarget.style.background = 'rgba(0, 0, 0, 0.75)'- e.currentTarget.style.color = 'rgba(255, 255, 255, 0.9)'- }}>- <FolderOpenIcon width={14} height={14} />- </button>- </div>+ {isSelected && (+ <CheckIcon width={12} height={12} style={{ color: '#000', strokeWidth: 3 }} />+ )}+ </div>+ )}- {/* Real full-resolution image loaded directly from disk without thumbnail blur */}- <div style={{ width: '100%', background: 'rgba(0, 0, 0, 0.45)', display: 'flex', alignItems: 'center', justifyContent: 'center', minHeight: 120 }}>+ {/* Left Thumbnail (small image card) */}+ <div style={{+ width: 52,+ height: 52,+ borderRadius: 6,+ overflow: 'hidden',+ background: 'rgba(0, 0, 0, 0.4)',+ flexShrink: 0,+ display: 'flex',+ alignItems: 'center',+ justifyContent: 'center',+ border: '1px solid rgba(255, 255, 255, 0.08)'+ }}><imgsrc={fullResUrl}- onError={(e) => {- // Fallback to entry.preview if file on disk was moved- if (entry?.preview) {- e.currentTarget.src = entry.preview- }- }}- alt={fileName}- style={{- width: '100%',- height: 'auto',- maxHeight: '65vh',- objectFit: 'contain',- display: 'block'- }}+ alt=""+ loading="lazy"+ decoding="async"draggable={false}+ style={{ width: '100%', height: '100%', objectFit: 'cover' }}/></div>- {/* File Name & Size at the Bottom — NO image icon */}- <div style={{ padding: '10px 12px', display: 'flex', flexDirection: 'column', gap: 2, background: 'rgba(0, 0, 0, 0.4)', borderTop: '1px solid rgba(255, 255, 255, 0.05)' }}>+ {/* File Name & Metadata */}+ <div style={{ display: 'flex', flexDirection: 'column', gap: 2, minWidth: 0, flex: 1, wordBreak: 'break-word', overflowWrap: 'anywhere' }}><spantitle={fileName}style={{- fontSize: 12.5,+ fontSize: 13,fontWeight: 500,- color: 'rgba(255,255,255,0.95)',- whiteSpace: 'nowrap',- textOverflow: 'ellipsis',- overflow: 'hidden',- fontFamily: SYS_FONT+ color: '#ffffff',+ wordBreak: 'break-word',+ overflowWrap: 'anywhere',+ lineHeight: 1.35,+ fontFamily: SYS_FONT,+ display: '-webkit-box',+ WebkitLineClamp: 2,+ WebkitBoxOrient: 'vertical',+ overflow: 'hidden'}}>{fileName}</span>- <span style={{ fontSize: 11, color: 'rgba(255,255,255,0.4)', fontFamily: SYS_FONT, letterSpacing: '0.02em' }}>- {entry?.size ? formatBytes(entry.size) : info.label}+ <span style={{ fontSize: 11, color: 'rgba(255, 255, 255, 0.45)', fontFamily: SYS_FONT }}>+ {entry?.size ? `${formatBytes(entry.size)} · ` : ''}{info.label}</span></div>++ {/* Actions */}+ <div style={{ display: 'flex', gap: 4, flexShrink: 0 }}>+ <QuickActionButton+ title={t('flyout.copyFile')}+ icon={CopyIcon}+ onClick={() => window.edge.copySubitem({ id: item.id, paths: [p] })}+ />+ <button+ title={t('flyout.openInExplorer')}+ onClick={(e) => {+ e.stopPropagation()+ window.edge.revealFile(p)+ }}+ style={{+ width: 24,+ height: 24,+ background: 'rgba(255, 255, 255, 0.04)',+ border: '1px solid rgba(255, 255, 255, 0.06)',+ color: 'rgba(255, 255, 255, 0.65)',+ borderRadius: 6,+ cursor: 'pointer',+ display: 'flex',+ alignItems: 'center',+ justifyContent: 'center',+ transition: 'all 0.15s ease'+ }}+ onMouseEnter={(e) => {+ e.currentTarget.style.background = 'rgba(255, 255, 255, 0.15)'+ e.currentTarget.style.color = '#fff'+ }}+ onMouseLeave={(e) => {+ e.currentTarget.style.background = 'rgba(255, 255, 255, 0.04)'+ e.currentTarget.style.color = 'rgba(255, 255, 255, 0.65)'+ }}+ >+ <FolderOpenIcon width={12} height={12} />+ </button>+ </div></div>)}+ // Non-image file card in multi-file view (2-column grid or single column)return (<divkey={i}@@ -1049,90 +1182,127 @@ function PreviewContent({tryPaste(() => window.edge.pasteSubitem({ id: item.id, paths: [p] }))}}}- title={selectedKeys && selectedKeys.size > 0 ? (isSelected ? 'Click to deselect' : 'Click to select') : `Click to paste "${fileName}" · Drag to move`}+ title={t('flyout.clickToPasteDrag')}style={{display: 'flex',flexDirection: 'column',- padding: '12px 14px',- background: isSelected ? 'rgba(255, 255, 255, 0.09)' : 'rgba(255,255,255,0.035)',+ alignItems: 'center',+ textAlign: 'center',+ gap: 8,+ padding: '14px 10px 12px',+ background: isSelected ? 'rgba(255, 255, 255, 0.12)' : 'rgba(255, 255, 255, 0.035)',borderRadius: 12,- border: isSelected ? '1px solid #ffffff' : '1px solid rgba(255,255,255,0.06)',- boxShadow: isSelected ? '0 0 14px rgba(255, 255, 255, 0.15)' : 'none',- gap: 10,- transition: 'all 0.18s ease',+ border: isSelected ? '1px solid rgba(255, 255, 255, 0.3)' : '1px solid rgba(255, 255, 255, 0.06)',+ cursor: 'grab',+ position: 'relative',minWidth: 0,- cursor: 'grab'+ width: '100%',+ boxSizing: 'border-box'}}>- <div style={{ display: 'flex', alignItems: 'center', justifyContent: 'space-between', gap: 8 }}>- <div style={{ display: 'flex', alignItems: 'center', gap: 8, minWidth: 0 }}>- <SelectionBadge- isSelected={isSelected}- onToggle={(e) => onToggleSelectKey?.(p, e)}- />- <div style={{ color: info.color, flexShrink: 0, display: 'flex', alignItems: 'center' }}>- <FileKindIcon path={p} width={18} height={18} />- </div>- <div style={{ display: 'flex', flexDirection: 'column', overflow: 'hidden', minWidth: 0 }}>- <span- title={fileName}- style={{- fontSize: 12.5,- fontWeight: 500,- color: 'rgba(255,255,255,0.9)',- whiteSpace: 'nowrap',- textOverflow: 'ellipsis',- overflow: 'hidden',- fontFamily: SYS_FONT- }}- >- {fileName}- </span>- <span style={{ fontSize: 11, color: 'rgba(255,255,255,0.38)', fontFamily: SYS_FONT, letterSpacing: '0.02em' }}>- {entry?.size ? formatBytes(entry.size) : info.label}- </span>+ {/* Top Controls: Checkbox (left) + Action Buttons (right) */}+ <div style={{ display: 'flex', alignItems: 'center', justifyContent: 'space-between', width: '100%', gap: 4 }}>+ {onToggleSelectKey ? (+ <div+ onClick={(e) => {+ e.stopPropagation()+ onToggleSelectKey(p, e)+ }}+ style={{+ width: 18,+ height: 18,+ borderRadius: 4,+ border: isSelected ? '1.5px solid #fff' : '1.5px solid rgba(255, 255, 255, 0.3)',+ background: isSelected ? '#fff' : 'transparent',+ display: 'flex',+ alignItems: 'center',+ justifyContent: 'center',+ cursor: 'pointer',+ flexShrink: 0+ }}+ >+ {isSelected && (+ <CheckIcon width={12} height={12} style={{ color: '#000', strokeWidth: 3 }} />+ )}</div>- </div>+ ) : <div />}- <div style={{ display: 'flex', alignItems: 'center', gap: 4, flexShrink: 0 }}>+ <div style={{ display: 'flex', gap: 4 }}><QuickActionButton- title="Copy File"+ title={t('flyout.copyFile')}icon={CopyIcon}onClick={() => window.edge.copySubitem({ id: item.id, paths: [p] })}/><button- title="Open location in Explorer"+ title={t('flyout.openInExplorer')}onClick={(e) => {e.stopPropagation()window.edge.revealFile(p)}}style={{- width: 28,- height: 28,- background: 'rgba(255,255,255,0.06)',- border: '1px solid rgba(255,255,255,0.08)',- color: 'rgba(255,255,255,0.7)',- borderRadius: 8,+ width: 24,+ height: 24,+ background: 'rgba(255, 255, 255, 0.04)',+ border: '1px solid rgba(255, 255, 255, 0.06)',+ color: 'rgba(255, 255, 255, 0.65)',+ borderRadius: 6,cursor: 'pointer',display: 'flex',alignItems: 'center',justifyContent: 'center',- transition: 'all 0.15s ease',- flexShrink: 0+ transition: 'all 0.15s ease'}}onMouseEnter={(e) => {- e.currentTarget.style.background = 'rgba(255,255,255,0.18)'+ e.currentTarget.style.background = 'rgba(255, 255, 255, 0.15)'e.currentTarget.style.color = '#fff'}}onMouseLeave={(e) => {- e.currentTarget.style.background = 'rgba(255,255,255,0.06)'- e.currentTarget.style.color = 'rgba(255,255,255,0.7)'+ e.currentTarget.style.background = 'rgba(255, 255, 255, 0.04)'+ e.currentTarget.style.color = 'rgba(255, 255, 255, 0.65)'}}>- <FolderOpenIcon width={14} height={14} />+ <FolderOpenIcon width={12} height={12} /></button></div></div>++ {/* Centered Large 3D Pastel Vector Icon */}+ <div style={{+ width: 64,+ height: 64,+ display: 'flex',+ alignItems: 'center',+ justifyContent: 'center',+ filter: 'drop-shadow(0 4px 12px rgba(0, 0, 0, 0.45))',+ marginTop: 8+ }}>+ <FileKindIcon path={p} width={64} height={64} isDirectory={entry?.isDirectory} />+ </div>++ {/* File Name & Metadata below icon */}+ <div style={{ display: 'flex', flexDirection: 'column', gap: 3, width: '100%', minWidth: 0, padding: '0 4px', boxSizing: 'border-box' }}>+ <span+ title={fileName}+ style={{+ fontSize: 12,+ fontWeight: 500,+ color: 'rgba(255, 255, 255, 0.92)',+ wordBreak: 'break-word',+ overflowWrap: 'anywhere',+ lineHeight: 1.35,+ fontFamily: SYS_FONT,+ display: '-webkit-box',+ WebkitLineClamp: 3,+ WebkitBoxOrient: 'vertical',+ overflow: 'hidden'+ }}+ >+ {fileName}+ </span>+ <span style={{ fontSize: 11, color: 'rgba(255, 255, 255, 0.42)', fontFamily: SYS_FONT, letterSpacing: '0.02em' }}>+ {!entry?.isDirectory && entry?.size ? formatBytes(entry.size) : info.label}+ </span>+ </div></div>)})}diff --git a/src/components/icons.tsx b/src/components/icons.tsxindex a3829e3..d59a5bd 100644--- a/src/components/icons.tsx+++ b/src/components/icons.tsx@@ -2,7 +2,7 @@* Official Lucide React Icon Suite for Edge-Drop.* Powered by lucide-react — ultra-crisp 24x24 vector icons.*/-import type { SVGProps, JSX } from 'react'+import type { SVGProps } from 'react'import {Info,Sparkles,@@ -17,7 +17,6 @@ import {Copy,Settings as SettingsGear,GripVertical,- File,Image as ImageGraphic,Link,X,@@ -28,20 +27,12 @@ import {Minimize2,FolderOpen,Check,- FileText,- FileCode,- FileArchive,- FileSpreadsheet,- Music,- Video,- Presentation,LogOut,Coffee,Heart,Star,RotateCcw} from 'lucide-react'-import { getFileKindByExt } from '../lib/fileType'type P = SVGProps<SVGSVGElement>@@ -84,7 +75,6 @@ export const TrashIcon = (p: P) => <Trash2 size={p.width ?? 16} {...(p as any)}export const CopyIcon = (p: P) => <Copy size={p.width ?? 16} {...(p as any)} />export const GearIcon = (p: P) => <SettingsGear size={p.width ?? 16} {...(p as any)} />export const GripIcon = (p: P) => <GripVertical size={p.width ?? 16} {...(p as any)} />-export const FileIcon = (p: P) => <File size={p.width ?? 16} {...(p as any)} />export const ImageIcon = (p: P) => <ImageGraphic size={p.width ?? 16} {...(p as any)} />export const LinkIcon = (p: P) => <Link size={p.width ?? 16} {...(p as any)} />export const CloseIcon = (p: P) => <X size={p.width ?? 16} {...(p as any)} />@@ -95,40 +85,8 @@ export const ExpandIcon = (p: P) => <Maximize2 size={p.width ?? 16} {...(p as anexport const ContractIcon = (p: P) => <Minimize2 size={p.width ?? 16} {...(p as any)} />export const FolderOpenIcon = (p: P) => <FolderOpen size={p.width ?? 16} {...(p as any)} />export const CheckIcon = (p: P) => <Check size={p.width ?? 16} {...(p as any)} />-export const FileIconGlyph = FileIcon--const PdfGlyph = (p: P) => <FileText size={p.width ?? 16} {...(p as any)} />-const ArchiveGlyph = (p: P) => <FileArchive size={p.width ?? 16} {...(p as any)} />-const CodeGlyph = (p: P) => <FileCode size={p.width ?? 16} {...(p as any)} />-const TextGlyph = (p: P) => <FileText size={p.width ?? 16} {...(p as any)} />-const DocGlyph = TextGlyph-const SheetGlyph = (p: P) => <FileSpreadsheet size={p.width ?? 16} {...(p as any)} />-const SlideGlyph = (p: P) => <Presentation size={p.width ?? 16} {...(p as any)} />-const AudioGlyph = (p: P) => <Music size={p.width ?? 16} {...(p as any)} />-const VideoGlyph = (p: P) => <Video size={p.width ?? 16} {...(p as any)} />-const PhotoGlyph = ImageIcon--const GLYPHS: Record<string, (p: P) => JSX.Element> = {- pdf: PdfGlyph,- archive: ArchiveGlyph,- code: CodeGlyph,- text: TextGlyph,- word: DocGlyph,- excel: SheetGlyph,- powerpoint: SlideGlyph,- audio: AudioGlyph,- video: VideoGlyph,- image: PhotoGlyph,- file: FileIconGlyph-}+import { CustomFileIcon } from './CustomFileIcon'+export { CustomFileIcon, CustomFileIcon as FileKindIcon }-/**- * A file icon that picks the right glyph *and* color for the path's extension.- * Pass `ext` when you already have it (cheaper than re-parsing a full path).- */-export function FileKindIcon({ ext, path, ...rest }: P & { ext?: string; path?: string }) {- const info = ext ? getFileKindByExt(ext) : path ? getFileKindByExt(path.split('.').pop() ?? '') : null- const kind = info?.kind ?? 'file'- const Glyph = GLYPHS[kind] ?? FileIconGlyph- return <Glyph {...rest} style={{ color: info?.color ?? 'currentColor', ...(rest.style ?? {}) }} />-}+export const FileIcon = (p: P) => <CustomFileIcon width={p.width ?? 16} height={p.height ?? 16} {...(p as any)} />+export const FileIconGlyph = FileIcondiff --git a/src/i18n/translations.ts b/src/i18n/translations.tsindex fbd0313..f618873 100644--- a/src/i18n/translations.ts+++ b/src/i18n/translations.ts@@ -161,6 +161,7 @@ export interface TranslationKeys {audio: stringvideo: stringimage: string+ folder?: stringfile: string}emptyState: {diff --git a/src/lib/fileType.ts b/src/lib/fileType.tsindex 0419b61..470d19e 100644--- a/src/lib/fileType.ts+++ b/src/lib/fileType.ts@@ -18,6 +18,8 @@ export type FileKind =| 'audio'| 'video'| 'image'+ | 'executable'+ | 'folder'| 'file' // generic fallbackexport interface FileKindInfo {@@ -42,21 +44,24 @@ const EXT_MAP: Record<string, FileKind> = {mp3: 'audio', wav: 'audio', flac: 'audio', aac: 'audio', ogg: 'audio', m4a: 'audio', wma: 'audio',mp4: 'video', mkv: 'video', avi: 'video', mov: 'video', wmv: 'video', flv: 'video', webm: 'video', m4v: 'video',png: 'image', jpg: 'image', jpeg: 'image', gif: 'image', webp: 'image', bmp: 'image', svg: 'image', avif: 'image', ico: 'image',- tif: 'image', tiff: 'image', jfif: 'image', pjpeg: 'image', pjp: 'image'+ tif: 'image', tiff: 'image', jfif: 'image', pjpeg: 'image', pjp: 'image',+ exe: 'executable', msi: 'executable', bat: 'executable', cmd: 'executable', ps1: 'executable', apk: 'executable', app: 'executable', dll: 'executable'}const KIND_INFO: Record<FileKind, FileKindInfo> = {- pdf: { kind: 'pdf', label: 'PDF', color: '#E53935' },- word: { kind: 'word', label: 'Word', color: '#2B579A' },- excel: { kind: 'excel', label: 'Excel', color: '#217346' },- powerpoint: { kind: 'powerpoint', label: 'Slides', color: '#D24726' },- archive: { kind: 'archive', label: 'Archive', color: '#B0621A' },- text: { kind: 'text', label: 'Text', color: '#9AA0A6' },- code: { kind: 'code', label: 'Code', color: '#26A69A' },- audio: { kind: 'audio', label: 'Audio', color: '#8E44AD' },- video: { kind: 'video', label: 'Video', color: '#8E44AD' },- image: { kind: 'image', label: 'Image', color: '#E91E63' },- file: { kind: 'file', label: 'File', color: '#9AA0A6' }+ pdf: { kind: 'pdf', label: 'PDF', color: '#FF7C8E' },+ word: { kind: 'word', label: 'Word', color: '#7BAFF8' },+ excel: { kind: 'excel', label: 'Excel', color: '#52D7A4' },+ powerpoint: { kind: 'powerpoint', label: 'Slides', color: '#FFA25B' },+ archive: { kind: 'archive', label: 'Archive', color: '#FBBF24' },+ text: { kind: 'text', label: 'Text', color: '#B2C0D0' },+ code: { kind: 'code', label: 'Code', color: '#53CAF7' },+ audio: { kind: 'audio', label: 'Audio', color: '#C495FD' },+ video: { kind: 'video', label: 'Video', color: '#FF6E7F' },+ image: { kind: 'image', label: 'Image', color: '#F472B6' },+ executable: { kind: 'executable', label: 'App', color: '#93A4FC' },+ folder: { kind: 'folder', label: 'Folder', color: '#FBBF24' },+ file: { kind: 'file', label: 'File', color: '#B0C0D0' }}/** Extract the lowercase extension (no dot) from a path. */@@ -69,49 +74,53 @@ export function extOf(path: string): string {import { t } from '../i18n'+const KEY_MAP: Record<FileKind, any> = {+ pdf: 'fileKinds.pdf',+ word: 'fileKinds.word',+ excel: 'fileKinds.excel',+ powerpoint: 'fileKinds.powerpoint',+ archive: 'fileKinds.archive',+ text: 'fileKinds.text',+ code: 'fileKinds.code',+ audio: 'fileKinds.audio',+ video: 'fileKinds.video',+ image: 'fileKinds.image',+ executable: 'fileKinds.file',+ folder: 'fileKinds.folder',+ file: 'fileKinds.file'+}+/** Resolve a file path to its display metadata (kind / label / color). */-export function getFileKind(path: string): FileKindInfo {+export function getFileKind(path: string, isDirectory?: boolean): FileKindInfo {+ if (isDirectory) {+ const base = KIND_INFO.folder+ return {+ ...base,+ label: t('fileKinds.folder') || base.label+ }+ }const ext = extOf(path)const kind = EXT_MAP[ext] ?? 'file'const base = KIND_INFO[kind]- const keyMap: Record<FileKind, any> = {- pdf: 'fileKinds.pdf',- word: 'fileKinds.word',- excel: 'fileKinds.excel',- powerpoint: 'fileKinds.powerpoint',- archive: 'fileKinds.archive',- text: 'fileKinds.text',- code: 'fileKinds.code',- audio: 'fileKinds.audio',- video: 'fileKinds.video',- image: 'fileKinds.image',- file: 'fileKinds.file'- }return {...base,- label: t(keyMap[kind]) || base.label+ label: t(KEY_MAP[kind]) || base.label}}/** Resolve from an already-extracted extension string. */-export function getFileKindByExt(ext: string): FileKindInfo {+export function getFileKindByExt(ext: string, isDirectory?: boolean): FileKindInfo {+ if (isDirectory || ext.toLowerCase() === 'folder') {+ const base = KIND_INFO.folder+ return {+ ...base,+ label: t('fileKinds.folder') || base.label+ }+ }const kind = EXT_MAP[ext.toLowerCase()] ?? 'file'const base = KIND_INFO[kind]- const keyMap: Record<FileKind, any> = {- pdf: 'fileKinds.pdf',- word: 'fileKinds.word',- excel: 'fileKinds.excel',- powerpoint: 'fileKinds.powerpoint',- archive: 'fileKinds.archive',- text: 'fileKinds.text',- code: 'fileKinds.code',- audio: 'fileKinds.audio',- video: 'fileKinds.video',- image: 'fileKinds.image',- file: 'fileKinds.file'- }return {...base,- label: t(keyMap[kind]) || base.label+ label: t(KEY_MAP[kind]) || base.label}}diff --git a/src/styles/global.css b/src/styles/global.cssindex 976638f..3cab6b7 100644--- a/src/styles/global.css+++ b/src/styles/global.css@@ -63,14 +63,7 @@ svg {backface-visibility: hidden;}-svg path,-svg circle,-svg line,-svg polyline,-svg rect,-svg polygon {- vector-effect: non-scaling-stroke;-}+/* HD Anti-Aliased Curved Edges & Micro Surfaces */.blade,diff --git a/src/styles/item.css b/src/styles/item.cssindex cfb204b..62227e8 100644--- a/src/styles/item.css+++ b/src/styles/item.css@@ -160,10 +160,13 @@}.bundle-stack-large {- height: 110px;+ height: 124px;position: relative;width: 100%;margin-top: 4px;+ display: flex;+ align-items: center;+ justify-content: center;}.bundle-stack-card {@@ -172,7 +175,7 @@left: 50%;margin-left: calc(-50% + 20px);width: calc(100% - 40px);- height: 90px;+ height: 94px;object-fit: cover;border-radius: 8px;border: 1px solid rgba(255, 255, 255, 0.15);@@ -180,11 +183,22 @@transform-origin: bottom center;}-.bundle-file-stack-card {- background: linear-gradient(135deg, rgba(38, 38, 42, 0.98), rgba(24, 24, 28, 0.98));+.bundle-stack-icon-item {+ position: absolute;+ top: 50%;+ left: 50%;+ margin-top: -50px;+ margin-left: -50px;+ width: 100px;+ height: 100px;display: flex;align-items: center;justify-content: center;+ background: transparent;+ border: none;+ box-shadow: none;+ transform-origin: center center;+ filter: drop-shadow(0 6px 14px rgba(0, 0, 0, 0.45));}.kind-badge {@@ -482,69 +496,123 @@.fluid-list {display: flex;flex-direction: column;- gap: 4px;+ gap: 8px;width: 100%;padding-top: 8px;}-.fluid-list-row {+.fluid-card-row {+ position: relative;display: flex;align-items: center;- gap: 8px;- padding: 8px 12px;- background: rgba(40, 40, 40, 0.6);- border-radius: 6px;- font-size: calc(13px * var(--font-scale, 1));- color: rgba(255, 255, 255, 0.85);+ gap: 10px;+ padding: 8px 10px;+ background: rgba(255, 255, 255, 0.035);+ border: 1px solid rgba(255, 255, 255, 0.06);+ border-radius: 10px;cursor: grab;- border: 1px solid rgba(255, 255, 255, 0.05);+ width: 100%;+ transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);+ overflow: hidden;}-.fluid-list-row:hover {- background: rgba(60, 60, 60, 0.8);++.fluid-card-row:hover {+ background: rgba(255, 255, 255, 0.06);+ border-color: rgba(255, 255, 255, 0.12);+ transform: translateY(-1px);}-.fluid-list-row:active {++.fluid-card-row:active {cursor: grabbing;}-.fluid-list-row .subitem-delete-btn {- opacity: 0.4;- background: rgba(255, 255, 255, 0.05);- transition: all 0.2s ease;-}-.fluid-list-row:hover .subitem-delete-btn {- opacity: 1;- background: rgba(255, 255, 255, 0.15);-}-/* The tinted file-type icon tile in expanded file rows */-.fluid-list-icon {+.fluid-row-icon {+ flex-shrink: 0;+ width: 44px;+ height: 44px;display: flex;align-items: center;justify-content: center;- width: 28px;- height: 28px;- flex-shrink: 0;- background: rgba(255, 255, 255, 0.05);+ background: transparent;+ filter: drop-shadow(0 2px 6px rgba(0, 0, 0, 0.35));+}++.fluid-row-img {+ width: 44px;+ height: 44px;+ object-fit: cover;border-radius: 6px;}-/* File name + size stack inside an expanded file row */-.fluid-list-text-wrap {+.fluid-row-content {flex: 1;min-width: 0;display: flex;flex-direction: column;- gap: 2px;+ gap: 3px;+ justify-content: center;+ text-align: left;}-.fluid-list-text {- font-size: calc(13px * var(--font-scale, 1));- color: rgba(255, 255, 255, 0.9);++.fluid-row-name {+ font-size: calc(12.5px * var(--font-scale, 1));+ font-weight: 500;+ color: rgba(255, 255, 255, 0.92);white-space: nowrap;overflow: hidden;text-overflow: ellipsis;+ line-height: 1.3;}-.fluid-list-sub {++.fluid-row-sub {font-size: calc(11px * var(--font-scale, 1));- color: rgba(255, 255, 255, 0.4);+ color: rgba(255, 255, 255, 0.45);+ font-family: "JetBrains Mono", "SF Mono", "Fira Code", ui-monospace, monospace;+}++.fluid-row-actions {+ position: absolute;+ right: 8px;+ top: 50%;+ transform: translateY(-50%);+ display: flex;+ align-items: center;+ gap: 4px;+ opacity: 0;+ pointer-events: none;+ background: #141416;+ padding: 3px 4px;+ border-radius: 8px;+ border: 1px solid rgba(255, 255, 255, 0.16);+ box-shadow: 0 4px 14px rgba(0, 0, 0, 0.75);+ transition: opacity 0.15s ease, transform 0.15s ease;+ z-index: 5;+}++.fluid-card-row:hover .fluid-row-actions,+.fluid-card-row:focus-within .fluid-row-actions {+ opacity: 1;+ pointer-events: auto;+}++.fluid-row-actions .act {+ width: 24px;+ height: 24px;+ display: flex;+ align-items: center;+ justify-content: center;+ background: #1e1e22;+ border: 1px solid rgba(255, 255, 255, 0.12);+ border-radius: 6px;+ color: rgba(255, 255, 255, 0.85);+ cursor: pointer;+ transition: all 0.15s ease;+}++.fluid-row-actions .act:hover {+ background: #2c2c32;+ color: #ffffff;+ border-color: rgba(255, 255, 255, 0.3);}/* "N / 10" capacity readout next to the bundle actions pill */@@ -557,32 +625,52 @@white-space: nowrap;}-/* Single (non-image) file tile: tinted type icon + name + type/size */+/* Single (non-image) file tile: big hero icon on top, name + details on the bottom */.single-file-preview {display: flex;+ flex-direction: column;align-items: center;- gap: 12px;+ gap: 10px;+ width: 100%;+ padding: 6px 0 2px;}-.single-file-icon {++.single-file-hero {display: flex;align-items: center;justify-content: center;- width: 44px;- height: 44px;- flex-shrink: 0;- background: rgba(255, 255, 255, 0.05);- border-radius: 8px;+ width: 100%;+ padding: 4px 0;+ background: transparent;+ border: none;+ box-shadow: none;+ transition: transform 0.2s cubic-bezier(0.16, 1, 0.3, 1);+}++.item-main:hover .single-file-hero {+ transform: translateY(-2px) scale(1.02);}+.single-file-meta {- flex: 1;+ width: 100%;min-width: 0;display: flex;flex-direction: column;gap: 2px;+ padding: 0 2px;}++.single-file-name {+ font-size: calc(13px * var(--font-scale, 1));+ font-weight: 500;+ color: var(--text-primary, #ffffff);+ line-height: 1.35;+}+.single-file-sub {font-size: calc(11px * var(--font-scale, 1));- color: rgba(255, 255, 255, 0.4);+ color: rgba(255, 255, 255, 0.45);+ font-family: "JetBrains Mono", "SF Mono", "Fira Code", ui-monospace, monospace;text-transform: lowercase;}diff --git a/tests/customFileIcon.test.ts b/tests/customFileIcon.test.tsnew file mode 100644index 0000000..a634277--- /dev/null+++ b/tests/customFileIcon.test.ts@@ -0,0 +1,92 @@+import { describe, it, expect } from 'vitest'+import { getFileKindByExt, getFileKind } from '../src/lib/fileType'++describe('Custom File Category & Pastel Theme Palette', () => {+ it('correctly maps document formats with authentic pastel colors', () => {+ const pdf = getFileKindByExt('pdf')+ expect(pdf.kind).toBe('pdf')+ expect(pdf.color).toBe('#FF7C8E')++ const docx = getFileKindByExt('docx')+ expect(docx.kind).toBe('word')+ expect(docx.color).toBe('#7BAFF8')++ const xlsx = getFileKindByExt('xlsx')+ expect(xlsx.kind).toBe('excel')+ expect(xlsx.color).toBe('#52D7A4')++ const pptx = getFileKindByExt('pptx')+ expect(pptx.kind).toBe('powerpoint')+ expect(pptx.color).toBe('#FFA25B')+ })++ it('correctly maps code and developer formats with cyan pastel', () => {+ const ts = getFileKindByExt('ts')+ expect(ts.kind).toBe('code')+ expect(ts.color).toBe('#53CAF7')++ const py = getFileKindByExt('py')+ expect(py.kind).toBe('code')+ expect(py.color).toBe('#53CAF7')+ })++ it('correctly maps media formats with respective pastel tones', () => {+ const png = getFileKindByExt('png')+ expect(png.kind).toBe('image')+ expect(png.color).toBe('#F472B6')++ const mp4 = getFileKindByExt('mp4')+ expect(mp4.kind).toBe('video')+ expect(mp4.color).toBe('#FF6E7F')++ const mp3 = getFileKindByExt('mp3')+ expect(mp3.kind).toBe('audio')+ expect(mp3.color).toBe('#C495FD')+ })++ it('correctly maps archives with warm honey amber pastel', () => {+ const zip = getFileKindByExt('zip')+ expect(zip.kind).toBe('archive')+ expect(zip.color).toBe('#FBBF24')+ })++ it('correctly maps folders with warm golden pastel', () => {+ const folder = getFileKindByExt('folder', true)+ expect(folder.kind).toBe('folder')+ expect(folder.color).toBe('#FBBF24')++ const folderPath = getFileKind('C:\\my\\folder', true)+ expect(folderPath.kind).toBe('folder')+ expect(folderPath.color).toBe('#FBBF24')+ })++ it('correctly maps executables and system binaries', () => {+ const exe = getFileKindByExt('exe')+ expect(exe.kind).toBe('executable')+ expect(exe.color).toBe('#93A4FC')++ const msi = getFileKindByExt('msi')+ expect(msi.kind).toBe('executable')+ expect(msi.color).toBe('#93A4FC')+ })++ it('resolves unknown files to neutral slate fallback', () => {+ const unknown = getFileKind('C:\\file\\mystery.xyz123')+ expect(unknown.kind).toBe('file')+ expect(unknown.color).toBe('#B0C0D0')++ const noExtFile = getFileKind('C:\\file\\mysteryfile', false)+ expect(noExtFile.kind).toBe('file')+ expect(noExtFile.color).toBe('#B0C0D0')+ })++ it('resolves directory path with or without dots as folder when isDirectory is true', () => {+ const dotFolder = getFileKind('C:\\Projects\\my.folder.name', true)+ expect(dotFolder.kind).toBe('folder')+ expect(dotFolder.color).toBe('#FBBF24')++ const plainFolder = getFileKind('C:\\Projects\\myFolder', true)+ expect(plainFolder.kind).toBe('folder')+ expect(plainFolder.color).toBe('#FBBF24')+ })+})diff --git a/tests/snippingTool.test.ts b/tests/snippingTool.test.tsindex fe7f891..1320cff 100644--- a/tests/snippingTool.test.ts+++ b/tests/snippingTool.test.ts@@ -178,4 +178,64 @@ describe('Windows Snipping Tool & Clipboard Image Detection (#41)', () => {expect(result.html).toBe(richHtml)}})++ it('captures Excel / Spreadsheet Ctrl+A copy (tab-separated rows with DIB bitmap) as text', async () => {+ const spreadsheetText = 'Product\tQuantity\tPrice\nApple\t50\t$1.20\nBanana\t120\t$0.50\nOrange\t80\t$0.80'+ const spreadsheetHtml = '<style><!--table{}--></style><table border=0 cellpadding=0 cellspacing=0 width=200><tr height=20><td class=xl65>Product</td><td class=xl65>Quantity</td><td class=xl65>Price</td></tr></table>'++ const mockBgra = Buffer.alloc(400 * 200 * 4, 200)+ const mockImage = {+ isEmpty: () => false,+ getSize: () => ({ width: 400, height: 200 }),+ toBitmap: () => mockBgra,+ toPNG: () => Buffer.from('mock-excel-table-png')+ }++ ;(clipboard as any).__setMockState({+ formats: ['XML Spreadsheet', 'HTML Format', 'CF_DIBV5', 'CF_BITMAP', 'CF_UNICODETEXT'],+ text: spreadsheetText,+ html: spreadsheetHtml,+ image: mockImage+ })++ const result = await readClipboard()+ expect(result).not.toBeNull()+ expect(result?.kind).toBe('text')+ if (result?.kind === 'text') {+ expect(result.text).toBe(spreadsheetText)+ }++ const sig = clipboardSignature()+ expect(sig).toContain('text:Product\tQuantity\tPrice')+ })++ it('captures Google Sheets Ctrl+A copy with google-sheets-html-origin and DIB bitmap as text', async () => {+ const sheetsText = 'Name\tScore\nAlice\t95\nBob\t88'+ const sheetsHtml = '<google-sheets-html-origin><style type="text/css">td {border: 1px solid #ccc;}</style><table><tr><td>Name</td><td>Score</td></tr></table>'++ const mockBgra = Buffer.alloc(300 * 150 * 4, 180)+ const mockImage = {+ isEmpty: () => false,+ getSize: () => ({ width: 300, height: 150 }),+ toBitmap: () => mockBgra,+ toPNG: () => Buffer.from('mock-sheets-table-png')+ }++ ;(clipboard as any).__setMockState({+ formats: ['text/html', 'CF_DIB', 'CF_UNICODETEXT'],+ text: sheetsText,+ html: sheetsHtml,+ image: mockImage+ })++ const result = await readClipboard()+ expect(result).not.toBeNull()+ expect(result?.kind).toBe('text')+ if (result?.kind === 'text') {+ expect(result.text).toBe(sheetsText)+ }++ const sig = clipboardSignature()+ expect(sig).toContain('text:Name\tScore')+ })})