mirror of
https://github.com/DrizzleTime/Foxel.git
synced 2026-06-07 00:19:37 +08:00
feat(window): Add app window management with minimize, restore, and icon support
This commit is contained in:
@@ -4,6 +4,7 @@ import { TextEditorApp } from './TextEditor.tsx';
|
||||
export const descriptor: AppDescriptor = {
|
||||
key: 'text-editor',
|
||||
name: '文本编辑器',
|
||||
iconUrl: 'https://api.iconify.design/mdi:file-document-outline.svg',
|
||||
supported: (entry) => {
|
||||
if (entry.is_dir) return false;
|
||||
const ext = entry.name.split('.').pop()?.toLowerCase() || '';
|
||||
@@ -13,4 +14,4 @@ export const descriptor: AppDescriptor = {
|
||||
component: TextEditorApp,
|
||||
default: true,
|
||||
defaultBounds: { width: 1024, height: 768, x: 120, y: 80 }
|
||||
};
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user