tauri config per platform

This commit is contained in:
Ren Amamiya 2023-08-28 12:19:40 +07:00
parent 3d4afb40bc
commit 5a3207f878
5 changed files with 111 additions and 38 deletions

View File

@ -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
}
}

View File

@ -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"
}
]
}
}

View File

@ -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"
}
]
}
}

View File

@ -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"
}
]
}
}

View File

@ -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 (
<div className="relative flex h-screen w-screen items-center justify-center bg-black/90">
<div className="relative flex h-screen w-screen items-center justify-center bg-black">
<div data-tauri-drag-region className="absolute left-0 top-0 z-10 h-11 w-full" />
<div className="flex min-h-0 w-full flex-1 items-center justify-center">
<div className="flex flex-col items-center justify-center gap-4">