diff --git a/src-tauri/tauri.conf.json b/src-tauri/tauri.conf.json index 719b3cbf..6f654846 100644 --- a/src-tauri/tauri.conf.json +++ b/src-tauri/tauri.conf.json @@ -93,43 +93,6 @@ } } }, - "windows": [ - { - "width": 1080, - "height": 800, - "minWidth": 1080, - "minHeight": 800, - "resizable": true, - "theme": "Dark", - "title": "Lume", - "titleBarStyle": "Overlay", - "transparent": true, - "center": true, - "fullscreen": false, - "hiddenTitle": true, - "visible": false, - "fileDropEnabled": true, - "windowEffects": { - "effects": ["mica", "hudWindow"], - "state": "followsWindowActiveState" - } - }, - { - "width": 400, - "height": 500, - "decorations": true, - "hiddenTitle": true, - "center": true, - "resizable": false, - "titleBarStyle": "Overlay", - "label": "splashscreen", - "url": "splashscreen", - "windowEffects": { - "effects": ["mica", "hudWindow"], - "state": "followsWindowActiveState" - } - } - ], "macOSPrivateApi": true } } diff --git a/src-tauri/tauri.linux.conf.json b/src-tauri/tauri.linux.conf.json new file mode 100644 index 00000000..1fca7d5e --- /dev/null +++ b/src-tauri/tauri.linux.conf.json @@ -0,0 +1,35 @@ +{ + "tauri": { + "windows": [ + { + "width": 1080, + "height": 800, + "minWidth": 1080, + "minHeight": 800, + "resizable": true, + "theme": "Dark", + "title": "Lume", + "transparent": false, + "center": true, + "fullscreen": false, + "hiddenTitle": true, + "visible": false, + "fileDropEnabled": true, + "windowEffects": { + "effects": ["micaDark", "micaLight", "acrylic"], + "state": "followsWindowActiveState" + } + }, + { + "width": 400, + "height": 500, + "decorations": false, + "label": "Lume", + "title": "Lume", + "center": true, + "resizable": false, + "url": "splashscreen" + } + ] + } +} diff --git a/src-tauri/tauri.macos.conf.json b/src-tauri/tauri.macos.conf.json new file mode 100644 index 00000000..07540e10 --- /dev/null +++ b/src-tauri/tauri.macos.conf.json @@ -0,0 +1,38 @@ +{ + "tauri": { + "windows": [ + { + "width": 1080, + "height": 800, + "minWidth": 1080, + "minHeight": 800, + "resizable": true, + "theme": "Dark", + "title": "Lume", + "titleBarStyle": "Overlay", + "transparent": true, + "center": true, + "fullscreen": false, + "hiddenTitle": true, + "visible": false, + "fileDropEnabled": true, + "windowEffects": { + "effects": ["hudWindow"], + "state": "followsWindowActiveState" + } + }, + { + "width": 400, + "height": 500, + "decorations": true, + "label": "Lume", + "title": "Lume", + "titleBarStyle": "Overlay", + "hiddenTitle": true, + "center": true, + "resizable": false, + "url": "splashscreen" + } + ] + } +} diff --git a/src-tauri/tauri.windows.conf.json b/src-tauri/tauri.windows.conf.json new file mode 100644 index 00000000..982cdb15 --- /dev/null +++ b/src-tauri/tauri.windows.conf.json @@ -0,0 +1,35 @@ +{ + "tauri": { + "windows": [ + { + "width": 1080, + "height": 800, + "minWidth": 1080, + "minHeight": 800, + "resizable": true, + "theme": "Dark", + "title": "Lume", + "transparent": true, + "center": true, + "fullscreen": false, + "hiddenTitle": true, + "visible": false, + "fileDropEnabled": true, + "windowEffects": { + "effects": ["micaDark", "micaLight", "acrylic"], + "state": "followsWindowActiveState" + } + }, + { + "width": 400, + "height": 500, + "decorations": false, + "label": "Lume", + "title": "Lume", + "center": true, + "resizable": false, + "url": "splashscreen" + } + ] + } +} diff --git a/src/app/splash.tsx b/src/app/splash.tsx index c0844d98..4e66f273 100644 --- a/src/app/splash.tsx +++ b/src/app/splash.tsx @@ -50,13 +50,15 @@ export function SplashScreen() { } if (ndk && db.account) { + if (db.account.network.length < 1) invoke('close_splashscreen'); + console.log('prefetching...'); prefetch(); } }, [ndk, db.account]); return ( -
+