mirror of
https://github.com/luminous-devs/lume.git
synced 2024-09-18 11:13:30 +00:00
tauri config per platform
This commit is contained in:
parent
3d4afb40bc
commit
5a3207f878
@ -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
|
"macOSPrivateApi": true
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
35
src-tauri/tauri.linux.conf.json
Normal file
35
src-tauri/tauri.linux.conf.json
Normal 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"
|
||||||
|
}
|
||||||
|
]
|
||||||
|
}
|
||||||
|
}
|
38
src-tauri/tauri.macos.conf.json
Normal file
38
src-tauri/tauri.macos.conf.json
Normal 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"
|
||||||
|
}
|
||||||
|
]
|
||||||
|
}
|
||||||
|
}
|
35
src-tauri/tauri.windows.conf.json
Normal file
35
src-tauri/tauri.windows.conf.json
Normal 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"
|
||||||
|
}
|
||||||
|
]
|
||||||
|
}
|
||||||
|
}
|
@ -50,13 +50,15 @@ export function SplashScreen() {
|
|||||||
}
|
}
|
||||||
|
|
||||||
if (ndk && db.account) {
|
if (ndk && db.account) {
|
||||||
|
if (db.account.network.length < 1) invoke('close_splashscreen');
|
||||||
|
|
||||||
console.log('prefetching...');
|
console.log('prefetching...');
|
||||||
prefetch();
|
prefetch();
|
||||||
}
|
}
|
||||||
}, [ndk, db.account]);
|
}, [ndk, db.account]);
|
||||||
|
|
||||||
return (
|
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 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 min-h-0 w-full flex-1 items-center justify-center">
|
||||||
<div className="flex flex-col items-center justify-center gap-4">
|
<div className="flex flex-col items-center justify-center gap-4">
|
||||||
|
Loading…
Reference in New Issue
Block a user