mirror of
https://github.com/DrizzleTime/Foxel.git
synced 2026-06-28 18:51:31 +08:00
feat(window): Add app window management with minimize, restore, and icon support
This commit is contained in:
@@ -4,6 +4,7 @@ import { ImageViewerApp } from './ImageViewer.tsx';
|
||||
export const descriptor: AppDescriptor = {
|
||||
key: 'image-viewer',
|
||||
name: '图片查看器',
|
||||
iconUrl: 'https://api.iconify.design/mdi:image.svg',
|
||||
supported: (entry) => {
|
||||
if (entry.is_dir) return false;
|
||||
const ext = entry.name.split('.').pop()?.toLowerCase() || '';
|
||||
@@ -14,4 +15,4 @@ export const descriptor: AppDescriptor = {
|
||||
defaultMaximized:true,
|
||||
useSystemWindow:false,
|
||||
defaultBounds: { width: 820, height: 620, x: 140, y: 96 }
|
||||
};
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user