diff --git a/src/locales/en.json b/src/locales/en.json index 73b4c9c..c377c2e 100644 --- a/src/locales/en.json +++ b/src/locales/en.json @@ -296,6 +296,21 @@ }, "downloadsWillAppearHere": { "string": "Downloads will appear here" + }, + "cursor": { + "string": "Cursor" + }, + "normalCursor": { + "string": "Normal cursor" + }, + "noCursor": { + "string": "Hide cursor" + }, + "customCursor": { + "string": "Custom cursor" + }, + "cursorHelp": { + "string": "32x32 pixel images work best." } }, "fileInput": { diff --git a/src/packager/PackagerOptions.svelte b/src/packager/PackagerOptions.svelte index afd2904..07dbb56 100644 --- a/src/packager/PackagerOptions.svelte +++ b/src/packager/PackagerOptions.svelte @@ -44,6 +44,9 @@ const icon = fileStore.writableFileStore(`PackagerOptions.icon.${projectData.uniqueId}`); $: $options.app.icon = $icon; + const customCursorIcon = fileStore.writableFileStore(`PackagerOptions.customCursorIcon.${projectData.uniqueId}`); + $: $options.cursor.custom = $customCursorIcon; + const handleLargeAssetFetchProgress = ({detail}) => { if (detail.asset.startsWith('nwjs-')) { $progress.text = $_('progress.loadingNwjs'); @@ -269,6 +272,28 @@ {$_('options.accentColor')} +

{$_('options.cursor')}

+
+ + + +
+ {#if $options.cursor.type === 'custom'} +
+ +

{$_('options.cursorHelp')}

+
+ {/if} +

{$_('options.addons')}