Free, open-source file converter. Convert 263 formats offline by drag & drop — images, PDF, Word, Excel, PowerPoint, HWP/HWPX, video, audio, e-books and archives. No upload, no Office needed.
C# audio-converteravaloniabatch-conversionconvertercsharpdocument-converterdocx-to-pdfdotnetdrag-and-dropfile-conversionfile-converterheic-converterhwphwpximage-converterlinuxmacospdf-convertervideo-converterwindows
feat(home): add open file/open with actions, real image thumbnails, and animated search
gtxPrime0f0054698d01
diff --git a/src/Filee.App/Assets/i18n/en.json b/src/Filee.App/Assets/i18n/en.jsonindex d8adebea..77f08be6 100644--- a/src/Filee.App/Assets/i18n/en.json+++ b/src/Filee.App/Assets/i18n/en.json@@ -41,6 +41,8 @@"home.recent_empty": "Your converted files will show up here.","home.no_matches": "No recent conversion matches the search.","home.open_folder": "Open folder",+ "home.open_file": "Open file",+ "home.open_with": "Open with","home.clear_history": "Clear","home.files": "{0} files","home.failed_files": "{0} failed",@@ -522,12 +524,18 @@"presets.select": "Select a preset to edit it","theme.title": "Theme",+ "theme.style": "Theme style",+ "theme.style.Soft": "Filee Soft",+ "theme.style.MaterialYou": "Material You",+ "theme.style.soft_hint": "Classic Filee look with soft rounded corners and pastel surfaces.",+ "theme.style.material_you_hint": "Google Material 3 design with dynamic tonal palettes, pill shapes, and fluid motion.","theme.mode": "Appearance","theme.mode.System": "System","theme.mode.Light": "Light","theme.mode.Dark": "Dark","theme.accent": "Accent colour","theme.custom_color": "Custom",+ "theme.tonal_palette": "Tonal harmony","theme.corner_radius": "Softness","theme.reduce_motion": "Reduce animations","theme.reduce_motion_hint": "Recommended for older PCs. Turns off transitions and the donut's bounce.",diff --git a/src/Filee.App/Assets/i18n/es.json b/src/Filee.App/Assets/i18n/es.jsonindex 5a05889c..cbf57ebe 100644--- a/src/Filee.App/Assets/i18n/es.json+++ b/src/Filee.App/Assets/i18n/es.json@@ -38,6 +38,8 @@"home.recent_empty": "Tus archivos convertidos aparecerán aquí.","home.no_matches": "Ninguna conversión reciente coincide con la búsqueda.","home.open_folder": "Abrir carpeta",+ "home.open_file": "Abrir archivo",+ "home.open_with": "Abrir con","home.clear_history": "Borrar","home.files": "{0} archivos","home.failed_files": "{0} con error",@@ -506,12 +508,18 @@"presets.name_required": "Escribe un nombre","presets.select": "Elige un ajuste preestablecido para editarlo","theme.title": "Tema",+ "theme.style": "Estilo de tema",+ "theme.style.Soft": "Filee Suave",+ "theme.style.MaterialYou": "Material You",+ "theme.style.soft_hint": "Aspecto clásico de Filee con esquinas redondeadas y superficies pastel.",+ "theme.style.material_you_hint": "Diseño Google Material 3 con paletas tonales dinámicas, formas de píldora y movimiento fluido.","theme.mode": "Aspecto","theme.mode.System": "Sistema","theme.mode.Light": "Claro","theme.mode.Dark": "Oscuro","theme.accent": "Color de acento","theme.custom_color": "Personalizado",+ "theme.tonal_palette": "Armonía tonal","theme.corner_radius": "Redondeo","theme.reduce_motion": "Reducir las animaciones","theme.reduce_motion_hint": "Recomendado para PC antiguos. Desactiva las transiciones y el rebote del menú circular.",diff --git a/src/Filee.App/Assets/i18n/hi.json b/src/Filee.App/Assets/i18n/hi.jsonindex ff2b8f74..8442312f 100644--- a/src/Filee.App/Assets/i18n/hi.json+++ b/src/Filee.App/Assets/i18n/hi.json@@ -38,6 +38,8 @@"home.recent_empty": "आपकी कन्वर्ट की गई फ़ाइलें यहाँ दिखाई देंगी।","home.no_matches": "खोज से मेल खाता कोई हाल का कन्वर्ज़न नहीं है।","home.open_folder": "फ़ोल्डर खोलें",+ "home.open_file": "फ़ाइल खोलें",+ "home.open_with": "इसके साथ खोलें","home.clear_history": "साफ़ करें","home.files": "{0} फ़ाइलें","home.failed_files": "{0} विफल",@@ -506,12 +508,18 @@"presets.name_required": "नाम दर्ज करें","presets.select": "संपादित करने के लिए कोई प्रीसेट चुनें","theme.title": "थीम",+ "theme.style": "थीम शैली",+ "theme.style.Soft": "Filee सॉफ्ट",+ "theme.style.MaterialYou": "Material You",+ "theme.style.soft_hint": "सॉफ्ट गोल कोनों और पेस्टल सतहों के साथ क्लासिक Filee लुक।",+ "theme.style.material_you_hint": "डायनामिक टोनल पैलेट, पिल आकार और फ्लूइड मोशन के साथ Google Material 3 डिज़ाइन।","theme.mode": "रूप","theme.mode.System": "सिस्टम","theme.mode.Light": "लाइट","theme.mode.Dark": "डार्क","theme.accent": "एक्सेंट रंग","theme.custom_color": "कस्टम",+ "theme.tonal_palette": "टोनल सामंजस्य","theme.corner_radius": "कोमलता","theme.reduce_motion": "एनिमेशन कम करें","theme.reduce_motion_hint": "पुराने PC के लिए अनुशंसित। ट्रांज़िशन और डोनट की उछाल बंद कर देता है।",diff --git a/src/Filee.App/Assets/i18n/ko.json b/src/Filee.App/Assets/i18n/ko.jsonindex 40498f35..949d55d4 100644--- a/src/Filee.App/Assets/i18n/ko.json+++ b/src/Filee.App/Assets/i18n/ko.json@@ -41,6 +41,8 @@"home.recent_empty": "변환한 파일이 여기에 표시됩니다.","home.no_matches": "검색과 일치하는 변환 기록이 없어요.","home.open_folder": "폴더 열기",+ "home.open_file": "파일 열기",+ "home.open_with": "연결 프로그램","home.clear_history": "지우기","home.files": "파일 {0}개","home.failed_files": "{0}개 실패",@@ -522,12 +524,18 @@"presets.select": "편집할 프리셋을 선택하세요","theme.title": "테마",+ "theme.style": "테마 스타일",+ "theme.style.Soft": "Filee 소프트",+ "theme.style.MaterialYou": "Material You",+ "theme.style.soft_hint": "부드러운 모서리와 파스텔 표면의 클래식 Filee 디자인입니다.",+ "theme.style.material_you_hint": "동적 톤 팔레트, 알약 모양 및 유연한 모션의 Google Material 3 디자인입니다.","theme.mode": "모드","theme.mode.System": "시스템","theme.mode.Light": "라이트","theme.mode.Dark": "다크","theme.accent": "강조색","theme.custom_color": "직접 선택",+ "theme.tonal_palette": "톤 조화","theme.corner_radius": "말랑함","theme.reduce_motion": "애니메이션 줄이기","theme.reduce_motion_hint": "저사양 PC에 권장해요. 전환 효과와 도넛의 튕김 효과를 꺼요.",diff --git a/src/Filee.App/Assets/i18n/pl.json b/src/Filee.App/Assets/i18n/pl.jsonindex e2d26527..26f33b16 100644--- a/src/Filee.App/Assets/i18n/pl.json+++ b/src/Filee.App/Assets/i18n/pl.json@@ -41,6 +41,8 @@"home.recent_empty": "Tu pojawią się przekonwertowane pliki.","home.no_matches": "Żadna z ostatnich konwersji nie pasuje do wyszukiwania.","home.open_folder": "Otwórz folder",+ "home.open_file": "Otwórz plik",+ "home.open_with": "Otwórz za pomocą","home.clear_history": "Wyczyść","home.files": "Pliki: {0}","home.failed_files": "Błędy: {0}",@@ -522,12 +524,18 @@"presets.select": "Wybierz ustawienie, aby je edytować","theme.title": "Motyw",+ "theme.style": "Styl motywu",+ "theme.style.Soft": "Filee Łagodny",+ "theme.style.MaterialYou": "Material You",+ "theme.style.soft_hint": "Klasyczny wygląd Filee z miękkimi zaokrąglonymi rogami i pastelowymi powierzchniami.",+ "theme.style.material_you_hint": "Projekt Google Material 3 z dynamicznymi paletami tonalnymi, kształtami pigułek i płynnym ruchem.","theme.mode": "Wygląd","theme.mode.System": "Systemowy","theme.mode.Light": "Jasny","theme.mode.Dark": "Ciemny","theme.accent": "Kolor akcentu","theme.custom_color": "Własny",+ "theme.tonal_palette": "Harmonia tonalna","theme.corner_radius": "Zaokrąglenie","theme.reduce_motion": "Ogranicz animacje","theme.reduce_motion_hint": "Zalecane na starszych komputerach. Wyłącza przejścia i odbijanie pierścienia.",diff --git a/src/Filee.App/Assets/i18n/zh-CN.json b/src/Filee.App/Assets/i18n/zh-CN.jsonindex d1061a32..9dc002e1 100644--- a/src/Filee.App/Assets/i18n/zh-CN.json+++ b/src/Filee.App/Assets/i18n/zh-CN.json@@ -41,6 +41,8 @@"home.recent_empty": "转换后的文件会显示在这里。","home.no_matches": "没有与搜索匹配的转换记录。","home.open_folder": "打开文件夹",+ "home.open_file": "打开文件",+ "home.open_with": "打开方式","home.clear_history": "清除","home.files": "{0} 个文件","home.failed_files": "{0} 个失败",@@ -522,12 +524,18 @@"presets.select": "选择要编辑的预设","theme.title": "主题",+ "theme.style": "主题样式",+ "theme.style.Soft": "Filee 柔和",+ "theme.style.MaterialYou": "Material You",+ "theme.style.soft_hint": "具有柔和圆角与柔和强调色的经典 Filee 外观。",+ "theme.style.material_you_hint": "具有动态色调调色板、药丸形状和流畅动效的 Google Material 3 设计。","theme.mode": "外观","theme.mode.System": "跟随系统","theme.mode.Light": "浅色","theme.mode.Dark": "深色","theme.accent": "强调色","theme.custom_color": "自定义",+ "theme.tonal_palette": "色调和谐","theme.corner_radius": "圆角","theme.reduce_motion": "减少动画","theme.reduce_motion_hint": "适合配置较低的电脑。关闭过渡效果和圆环的弹跳效果。",diff --git a/src/Filee.App/Services/ThumbnailHelper.cs b/src/Filee.App/Services/ThumbnailHelper.csnew file mode 100644index 00000000..d638be4e--- /dev/null+++ b/src/Filee.App/Services/ThumbnailHelper.cs@@ -0,0 +1,229 @@+// Extracts high-quality file and video thumbnails using Windows Shell and fallbacks.++using System;+using System.IO;+using System.Runtime.InteropServices;+using System.Runtime.Versioning;+using Avalonia.Media.Imaging;++namespace Filee.App.Services;++public static class ThumbnailHelper+{+ public static Bitmap? LoadThumbnail(string path, int targetSize = 96)+ {+ if (string.IsNullOrWhiteSpace(path) || !File.Exists(path))+ return null;++ var ext = Path.GetExtension(path).ToLowerInvariant();++ // 1. Direct decode for standard image formats+ if (ext is ".png" or ".jpg" or ".jpeg" or ".webp" or ".bmp" or ".gif" or ".ico")+ {+ try+ {+ using var stream = File.OpenRead(path);+ return Bitmap.DecodeToWidth(stream, targetSize);+ }+ catch+ {+ // Fall through to shell extractor if image was locked or specialized+ }+ }++ // 2. Windows Shell native thumbnail extraction (handles MP4, MKV, AVI, PDF, DOCX, etc.)+ if (OperatingSystem.IsWindows())+ {+ try+ {+ var bmp = WindowsShellThumbnail.GetThumbnail(path, targetSize);+ if (bmp is not null)+ return bmp;+ }+ catch+ {+ // Fall through+ }+ }++ return null;+ }++ [SupportedOSPlatform("windows")]+ private static class WindowsShellThumbnail+ {+ [DllImport("shell32.dll", CharSet = CharSet.Unicode, SetLastError = true)]+ private static extern int SHCreateItemFromParsingName(+ [MarshalAs(UnmanagedType.LPWStr)] string pszPath,+ nint pbc,+ [In, MarshalAs(UnmanagedType.LPStruct)] Guid riid,+ out IShellItemImageFactory ppv);++ [ComImport]+ [Guid("bcc18b79-ba16-442f-80c4-8a59c30c463b")]+ [InterfaceType(ComInterfaceType.InterfaceIsIUnknown)]+ private interface IShellItemImageFactory+ {+ [PreserveSig]+ int GetImage(SIZE size, SIIGBF flags, out nint phbm);+ }++ [StructLayout(LayoutKind.Sequential)]+ private struct SIZE(int cx, int cy)+ {+ public int cx = cx;+ public int cy = cy;+ }++ [Flags]+ private enum SIIGBF+ {+ SIIGBF_RESIZETOFIT = 0x00,+ SIIGBF_BIGGERSIZEOK = 0x01,+ SIIGBF_MEMORYONLY = 0x02,+ SIIGBF_ICONONLY = 0x04,+ SIIGBF_THUMBNAILONLY = 0x08,+ SIIGBF_INCACHEONLY = 0x10,+ }++ [StructLayout(LayoutKind.Sequential)]+ private struct BITMAP+ {+ public int bmType;+ public int bmWidth;+ public int bmHeight;+ public int bmWidthBytes;+ public ushort bmPlanes;+ public ushort bmBitsPixel;+ public nint bmBits;+ }++ [StructLayout(LayoutKind.Sequential)]+ private struct BITMAPINFOHEADER+ {+ public uint biSize;+ public int biWidth;+ public int biHeight;+ public ushort biPlanes;+ public ushort biBitCount;+ public uint biCompression;+ public uint biSizeImage;+ public int biXPelsPerMeter;+ public int biYPelsPerMeter;+ public uint biClrUsed;+ public uint biClrImportant;+ }++ [StructLayout(LayoutKind.Sequential)]+ private struct BITMAPINFO+ {+ public BITMAPINFOHEADER bmiHeader;+ public uint bmiColors;+ }++ [DllImport("gdi32.dll")]+ private static extern int GetObject(nint hgdiobj, int cbBuffer, out BITMAP lpvObject);++ [DllImport("gdi32.dll")]+ private static extern int GetDIBits(nint hdc, nint hbm, uint start, uint lines, [Out] byte[]? lpBits, ref BITMAPINFO bi, uint usage);++ [DllImport("gdi32.dll")]+ private static extern bool DeleteObject(nint hObject);++ [DllImport("user32.dll")]+ private static extern nint GetDC(nint hWnd);++ [DllImport("user32.dll")]+ private static extern int ReleaseDC(nint hWnd, nint hDC);++ private static readonly Guid ShellItemImageFactoryGuid = new("bcc18b79-ba16-442f-80c4-8a59c30c463b");++ public static Bitmap? GetThumbnail(string path, int size)+ {+ var hr = SHCreateItemFromParsingName(path, 0, ShellItemImageFactoryGuid, out var factory);+ if (hr != 0 || factory is null)+ return null;++ nint hBitmap = 0;+ try+ {+ // First try bigger size ok, thumbnail only+ hr = factory.GetImage(new SIZE(size, size), SIIGBF.SIIGBF_BIGGERSIZEOK | SIIGBF.SIIGBF_THUMBNAILONLY, out hBitmap);+ if (hr != 0 || hBitmap == 0)+ {+ // Fallback to resize-to-fit+ hr = factory.GetImage(new SIZE(size, size), SIIGBF.SIIGBF_BIGGERSIZEOK, out hBitmap);+ }++ if (hr != 0 || hBitmap == 0)+ return null;++ if (GetObject(hBitmap, Marshal.SizeOf<BITMAP>(), out var bmpHeader) == 0 || bmpHeader.bmWidth <= 0 || bmpHeader.bmHeight <= 0)+ return null;++ var width = bmpHeader.bmWidth;+ var height = Math.Abs(bmpHeader.bmHeight);+ var pixelBytes = new byte[width * height * 4];++ var bi = new BITMAPINFO();+ bi.bmiHeader.biSize = (uint)Marshal.SizeOf<BITMAPINFOHEADER>();+ bi.bmiHeader.biWidth = width;+ bi.bmiHeader.biHeight = height; // positive for bottom-up BMP+ bi.bmiHeader.biPlanes = 1;+ bi.bmiHeader.biBitCount = 32;+ bi.bmiHeader.biCompression = 0; // BI_RGB+ bi.bmiHeader.biSizeImage = (uint)pixelBytes.Length;++ var hdc = GetDC(0);+ if (hdc == 0)+ return null;++ try+ {+ if (GetDIBits(hdc, hBitmap, 0, (uint)height, pixelBytes, ref bi, 0) == 0)+ return null;+ }+ finally+ {+ ReleaseDC(0, hdc);+ }++ // Construct a standard 54-byte BMP stream+ var ms = new MemoryStream(54 + pixelBytes.Length);+ using (var writer = new BinaryWriter(ms, System.Text.Encoding.Default, leaveOpen: true))+ {+ // BITMAPFILEHEADER (14 bytes)+ writer.Write((ushort)0x4D42); // "BM"+ writer.Write((uint)(54 + pixelBytes.Length));+ writer.Write((ushort)0);+ writer.Write((ushort)0);+ writer.Write((uint)54);++ // BITMAPINFOHEADER (40 bytes)+ writer.Write((uint)40);+ writer.Write(width);+ writer.Write(height);+ writer.Write((ushort)1);+ writer.Write((ushort)32);+ writer.Write((uint)0);+ writer.Write((uint)pixelBytes.Length);+ writer.Write(0);+ writer.Write(0);+ writer.Write((uint)0);+ writer.Write((uint)0);++ // Pixels+ writer.Write(pixelBytes);+ }++ ms.Position = 0;+ return new Bitmap(ms);+ }+ finally+ {+ if (hBitmap != 0)+ DeleteObject(hBitmap);+ }+ }+ }+}diff --git a/src/Filee.App/Services/WindowService.cs b/src/Filee.App/Services/WindowService.csindex b2dc013e..30ca9794 100644--- a/src/Filee.App/Services/WindowService.cs+++ b/src/Filee.App/Services/WindowService.cs@@ -70,6 +70,10 @@ public sealed class WindowService(ILocalizer loc, IServiceProvider services, Memif (page is null)model.Navigate(placement.Page);}+ else if (page is null)+ {+ model.Navigate("home");+ }main.Closing += (_, _) =>{// While it is still on screen: the release closes it hidden, when its position may no longer be known.diff --git a/src/Filee.App/Styles/Icons.axaml b/src/Filee.App/Styles/Icons.axamlindex 5f4ec65d..527cac49 100644--- a/src/Filee.App/Styles/Icons.axaml+++ b/src/Filee.App/Styles/Icons.axaml@@ -34,4 +34,6 @@<StreamGeometry x:Key="Icon.Refresh">M17.65,6.35C16.2,4.9 14.21,4 12,4A8,8 0 0,0 4,12A8,8 0 0,0 12,20C15.73,20 18.84,17.45 19.73,14H17.65C16.83,16.33 14.61,18 12,18A6,6 0 0,1 6,12A6,6 0 0,1 12,6C13.66,6 15.14,6.69 16.22,7.78L13,11H20V4L17.65,6.35Z</StreamGeometry><StreamGeometry x:Key="Icon.Record">M12,2A10,10 0 0,0 2,12A10,10 0 0,0 12,22A10,10 0 0,0 22,12A10,10 0 0,0 12,2M12,7A5,5 0 0,1 17,12A5,5 0 0,1 12,17A5,5 0 0,1 7,12A5,5 0 0,1 12,7Z</StreamGeometry><StreamGeometry x:Key="Icon.Crop">M7,17V1H5V5H1V7H5V17A2,2 0 0,0 7,19H17V23H19V19H23V17M17,15H19V7C19,5.89 18.1,5 17,5H9V7H17V15Z</StreamGeometry>+ <StreamGeometry x:Key="Icon.File">M14,2H6A2,2 0 0,0 4,4V20A2,2 0 0,0 6,22H18A2,2 0 0,0 20,20V8L14,2M18,20H6V4H13V9H18V20Z</StreamGeometry>+ <StreamGeometry x:Key="Icon.OpenWith">M14,3V5H17.59L7.76,14.83L9.17,16.24L19,6.41V10H21V3M19,19H5V5H12V3H5C3.89,3 3,3.9 3,5V19A2,2 0 0,0 5,21H19A2,2 0 0,0 21,19V12H19V19Z</StreamGeometry></ResourceDictionary>diff --git a/src/Filee.App/ViewModels/Pages/HomePageViewModel.cs b/src/Filee.App/ViewModels/Pages/HomePageViewModel.csindex 7f602331..b60f7f62 100644--- a/src/Filee.App/ViewModels/Pages/HomePageViewModel.cs+++ b/src/Filee.App/ViewModels/Pages/HomePageViewModel.cs@@ -1,6 +1,8 @@// Home: drop zone (handled in the view) and recent conversions.using System.Collections.ObjectModel;+using System.Diagnostics;+using Avalonia.Media.Imaging;using Avalonia.Threading;using CommunityToolkit.Mvvm.ComponentModel;using CommunityToolkit.Mvvm.Input;@@ -35,6 +37,11 @@ public sealed partial class HistoryItemViewModel : ObservableObjectHasOutputs = entry.Outputs.Any(ConversionService.Exists);// Only entries that remember their preset (Filee 1.8 and later) and still have a failed file to convert.CanRetry = conversions is not null && entry.Preset is not null && entry.Failures.Any(f => ConversionService.Exists(f.Source));++ // Load dynamic thumbnail if output or source image file exists+ var sample = entry.Outputs.FirstOrDefault(ConversionService.Exists) ?? entry.Sources.FirstOrDefault(ConversionService.Exists);+ if (sample is not null)+ Thumbnail = TryLoadThumbnail(sample);}public string Title { get; }@@ -42,6 +49,35 @@ public sealed partial class HistoryItemViewModel : ObservableObjectpublic string Time { get; }public bool HasErrors { get; }public bool HasOutputs { get; }+ public Bitmap? Thumbnail { get; }+ public bool HasThumbnail => Thumbnail is not null;++ public string FormatBadge+ {+ get+ {+ var file = _entry.Outputs.FirstOrDefault() ?? _entry.Sources.FirstOrDefault();+ if (!string.IsNullOrEmpty(file))+ {+ var ext = Path.GetExtension(file).TrimStart('.').ToUpperInvariant();+ if (!string.IsNullOrEmpty(ext))+ return ext.Length > 4 ? ext[..4] : ext;+ }+ return "FILE";+ }+ }++ private static Bitmap? TryLoadThumbnail(string path)+ {+ try+ {+ return ThumbnailHelper.LoadThumbnail(path, 96);+ }+ catch+ {+ return null;+ }+ }/// <summary>The files that failed and why.</summary>public IReadOnlyList<FailureItem> Failures { get; }@@ -66,6 +102,64 @@ public sealed partial class HistoryItemViewModel : ObservableObject_conversions.Retry(_entry.Failures.Select(f => f.Source), _entry.Preset, _entry.WatchRuleId);}+ [RelayCommand]+ private void OpenFile()+ {+ var output = _entry.Outputs.FirstOrDefault(ConversionService.Exists);+ if (output is not null)+ {+ try+ {+ Process.Start(new ProcessStartInfo+ {+ FileName = output,+ UseShellExecute = true,+ });+ }+ catch+ {+ _platform.RevealInFileManager(output);+ }+ }+ }++ [RelayCommand]+ private void OpenWith()+ {+ var output = _entry.Outputs.FirstOrDefault(ConversionService.Exists);+ if (output is not null)+ {+ try+ {+ if (OperatingSystem.IsWindows())+ {+ Process.Start(new ProcessStartInfo+ {+ FileName = output,+ Verb = "openas",+ UseShellExecute = true,+ });+ }+ else if (OperatingSystem.IsMacOS())+ {+ Process.Start("open", $"-R \"{output}\"");+ }+ else+ {+ Process.Start(new ProcessStartInfo+ {+ FileName = output,+ UseShellExecute = true,+ });+ }+ }+ catch+ {+ // User may have cancelled dialog+ }+ }+ }+[RelayCommand]private void OpenFolder(){diff --git a/src/Filee.App/Views/Pages/HomePage.axaml b/src/Filee.App/Views/Pages/HomePage.axamlindex ebdc6017..ad4e2554 100644--- a/src/Filee.App/Views/Pages/HomePage.axaml+++ b/src/Filee.App/Views/Pages/HomePage.axaml@@ -56,7 +56,7 @@<!-- Drop zone: files dropped here open the donut toolbar at the cursor. --><Border x:Name="DropZone" DragDrop.AllowDrop="True" MinHeight="220"- Background="{DynamicResource AccentFaintBrush}" BorderBrush="{DynamicResource AccentSoftBrush}"+ Background="{DynamicResource DropZoneBackgroundBrush}" BorderBrush="{DynamicResource DropZoneBorderBrush}"BorderThickness="2" CornerRadius="{DynamicResource SoftRadiusLarge}" Padding="24"><StackPanel HorizontalAlignment="Center" VerticalAlignment="Center" Spacing="10"><Border Width="64" Height="64" CornerRadius="999" Background="{DynamicResource AccentSoftBrush}" HorizontalAlignment="Center">@@ -90,20 +90,52 @@</ItemsControl.ItemsPanel><ItemsControl.ItemTemplate><DataTemplate x:DataType="vm:HistoryItemViewModel">- <Border Classes="card" Padding="14,10">+ <Border Classes="card history-card" Padding="14,10"><StackPanel Spacing="8"><DockPanel>- <Button DockPanel.Dock="Right" Command="{Binding OpenFolderCommand}" IsVisible="{Binding HasOutputs}" Padding="10,5">- <StackPanel Orientation="Horizontal" Spacing="6">- <PathIcon Width="13" Height="13" Data="{StaticResource Icon.Folder}" />- <TextBlock Text="{DynamicResource home.open_folder}" />- </StackPanel>- </Button>- <Border DockPanel.Dock="Left" Width="32" Height="32" CornerRadius="999" Margin="0,0,12,0"- Background="{DynamicResource AccentSoftBrush}">+ <StackPanel DockPanel.Dock="Right" Orientation="Horizontal" Spacing="6" IsVisible="{Binding HasOutputs}" VerticalAlignment="Center">+ <Button Command="{Binding OpenFileCommand}" ToolTip.Tip="{DynamicResource home.open_file}" Padding="9,5">+ <StackPanel Orientation="Horizontal" Spacing="5">+ <PathIcon Width="12" Height="12" Data="{StaticResource Icon.File}" />+ <TextBlock Text="{DynamicResource home.open_file}" />+ </StackPanel>+ </Button>+ <Button Command="{Binding OpenWithCommand}" ToolTip.Tip="{DynamicResource home.open_with}" Padding="9,5">+ <StackPanel Orientation="Horizontal" Spacing="5">+ <PathIcon Width="12" Height="12" Data="{StaticResource Icon.OpenWith}" />+ <TextBlock Text="{DynamicResource home.open_with}" />+ </StackPanel>+ </Button>+ <Button Command="{Binding OpenFolderCommand}" ToolTip.Tip="{DynamicResource home.open_folder}" Padding="9,5">+ <StackPanel Orientation="Horizontal" Spacing="5">+ <PathIcon Width="12" Height="12" Data="{StaticResource Icon.Folder}" />+ <TextBlock Text="{DynamicResource home.open_folder}" />+ </StackPanel>+ </Button>+ </StackPanel>+ <!-- Dynamic Thumbnail / Format Badge -->+ <Border DockPanel.Dock="Left" Width="42" Height="42" CornerRadius="12" Margin="0,0,12,0"+ ClipToBounds="True" Background="{DynamicResource SurfaceAltBrush}"><Panel>- <PathIcon Width="15" Height="15" Data="{StaticResource Icon.Check}" Foreground="{DynamicResource AccentStrongBrush}" IsVisible="{Binding !HasErrors}" />- <PathIcon Width="15" Height="15" Data="{StaticResource Icon.Alert}" Foreground="{DynamicResource DangerBrush}" IsVisible="{Binding HasErrors}" />+ <!-- Render actual decoded thumbnail if file is image and exists -->+ <Image Source="{Binding Thumbnail}" Stretch="UniformToFill" IsVisible="{Binding HasThumbnail}" />++ <!-- Fallback format badge if no thumbnail -->+ <Border IsVisible="{Binding !HasThumbnail}" Background="{DynamicResource AccentSoftBrush}" HorizontalAlignment="Stretch" VerticalAlignment="Stretch">+ <TextBlock Text="{Binding FormatBadge}" FontWeight="Bold" FontSize="11"+ Foreground="{DynamicResource AccentStrongBrush}"+ HorizontalAlignment="Center" VerticalAlignment="Center" />+ </Border>++ <!-- Tiny Status Pill in Corner (Checkmark or Alert) -->+ <Border Width="16" Height="16" CornerRadius="999" Margin="0,0,2,2"+ HorizontalAlignment="Right" VerticalAlignment="Bottom"+ Background="{DynamicResource SurfaceBrush}">+ <Panel>+ <PathIcon Width="9" Height="9" Data="{StaticResource Icon.Check}" Foreground="{DynamicResource SuccessBrush}" IsVisible="{Binding !HasErrors}" />+ <PathIcon Width="9" Height="9" Data="{StaticResource Icon.Alert}" Foreground="{DynamicResource DangerBrush}" IsVisible="{Binding HasErrors}" />+ </Panel>+ </Border></Panel></Border><StackPanel VerticalAlignment="Center">