some window ui tweaks
This commit is contained in:
1
src-tauri/Cargo.lock
generated
1
src-tauri/Cargo.lock
generated
@ -1523,6 +1523,7 @@ name = "haystack"
|
|||||||
version = "0.1.0"
|
version = "0.1.0"
|
||||||
dependencies = [
|
dependencies = [
|
||||||
"base64 0.21.7",
|
"base64 0.21.7",
|
||||||
|
"cocoa",
|
||||||
"notify",
|
"notify",
|
||||||
"serde",
|
"serde",
|
||||||
"serde_json",
|
"serde_json",
|
||||||
|
@ -18,7 +18,7 @@ crate-type = ["staticlib", "cdylib", "rlib"]
|
|||||||
tauri-build = { version = "2", features = [] }
|
tauri-build = { version = "2", features = [] }
|
||||||
|
|
||||||
[dependencies]
|
[dependencies]
|
||||||
tauri = { version = "2", features = [] }
|
tauri = { version = "2", features = ["macos-private-api"] }
|
||||||
tauri-plugin-opener = "2"
|
tauri-plugin-opener = "2"
|
||||||
serde = { version = "1", features = ["derive"] }
|
serde = { version = "1", features = ["derive"] }
|
||||||
serde_json = "1"
|
serde_json = "1"
|
||||||
@ -27,3 +27,5 @@ notify = "6.1.1"
|
|||||||
base64 = "0.21.7"
|
base64 = "0.21.7"
|
||||||
tokio = { version = "1.36.0", features = ["full"] }
|
tokio = { version = "1.36.0", features = ["full"] }
|
||||||
|
|
||||||
|
[target."cfg(target_os = \"macos\")".dependencies]
|
||||||
|
cocoa = "0.26"
|
||||||
|
@ -8,6 +8,7 @@ use base64::{Engine as _, engine::general_purpose::STANDARD as BASE64};
|
|||||||
use std::sync::Mutex;
|
use std::sync::Mutex;
|
||||||
use std::sync::Arc;
|
use std::sync::Arc;
|
||||||
use tauri::AppHandle;
|
use tauri::AppHandle;
|
||||||
|
use tauri::{TitleBarStyle, WebviewUrl, WebviewWindowBuilder};
|
||||||
|
|
||||||
|
|
||||||
// Global state to store the watcher
|
// Global state to store the watcher
|
||||||
|
@ -1,38 +1,40 @@
|
|||||||
{
|
{
|
||||||
"$schema": "https://schema.tauri.app/config/2",
|
"$schema": "https://schema.tauri.app/config/2",
|
||||||
"productName": "haystack",
|
"productName": "haystack",
|
||||||
"version": "0.1.0",
|
"version": "0.1.0",
|
||||||
"identifier": "com.haystack.app",
|
"identifier": "com.haystack.app",
|
||||||
"build": {
|
"build": {
|
||||||
"beforeDevCommand": "bun run dev",
|
"beforeDevCommand": "bun run dev",
|
||||||
"devUrl": "http://localhost:1420",
|
"devUrl": "http://localhost:1420",
|
||||||
"beforeBuildCommand": "bun run build",
|
"beforeBuildCommand": "bun run build",
|
||||||
"frontendDist": "../dist"
|
"frontendDist": "../dist"
|
||||||
},
|
},
|
||||||
"app": {
|
"app": {
|
||||||
"windows": [
|
"windows": [
|
||||||
{
|
{
|
||||||
"title": "Haystack",
|
"title": "Haystack",
|
||||||
"width": 640,
|
"width": 640,
|
||||||
"height": 480,
|
"height": 480,
|
||||||
"decorations": false,
|
"decorations": false,
|
||||||
"transparent": true,
|
"transparent": true,
|
||||||
"resizable": false
|
"resizable": false,
|
||||||
}
|
"shadow": true
|
||||||
],
|
}
|
||||||
"security": {
|
],
|
||||||
"csp": null
|
"macOSPrivateApi": true,
|
||||||
}
|
"security": {
|
||||||
},
|
"csp": null
|
||||||
"bundle": {
|
}
|
||||||
"active": true,
|
},
|
||||||
"targets": "all",
|
"bundle": {
|
||||||
"icon": [
|
"active": true,
|
||||||
"icons/32x32.png",
|
"targets": "all",
|
||||||
"icons/128x128.png",
|
"icon": [
|
||||||
"icons/128x128@2x.png",
|
"icons/32x32.png",
|
||||||
"icons/icon.icns",
|
"icons/128x128.png",
|
||||||
"icons/icon.ico"
|
"icons/128x128@2x.png",
|
||||||
]
|
"icons/icon.icns",
|
||||||
}
|
"icons/icon.ico"
|
||||||
|
]
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
@ -1,7 +1,7 @@
|
|||||||
export function TitleBar() {
|
export function TitleBar() {
|
||||||
return (
|
return (
|
||||||
<div class="h-8 bg-[#1a1a1a] flex items-center px-4" data-tauri-drag-region>
|
<div class="h-8 flex items-center rounded-t-xl px-4" data-tauri-drag-region>
|
||||||
<div class="text-white text-sm">Haystack</div>
|
<div class="text-sm">Haystack</div>
|
||||||
</div>
|
</div>
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
@ -2,15 +2,14 @@
|
|||||||
@tailwind components;
|
@tailwind components;
|
||||||
@tailwind utilities;
|
@tailwind utilities;
|
||||||
|
|
||||||
|
|
||||||
:root {
|
:root {
|
||||||
|
@apply bg-gray-100 text-black rounded-xl;
|
||||||
font-family: Inter, Avenir, Helvetica, Arial, sans-serif;
|
font-family: Inter, Avenir, Helvetica, Arial, sans-serif;
|
||||||
font-size: 16px;
|
font-size: 16px;
|
||||||
line-height: 24px;
|
line-height: 24px;
|
||||||
font-weight: 400;
|
font-weight: 400;
|
||||||
|
|
||||||
color: #0f0f0f;
|
|
||||||
background-color: #f6f6f6;
|
|
||||||
|
|
||||||
font-synthesis: none;
|
font-synthesis: none;
|
||||||
text-rendering: optimizeLegibility;
|
text-rendering: optimizeLegibility;
|
||||||
-webkit-font-smoothing: antialiased;
|
-webkit-font-smoothing: antialiased;
|
||||||
|
Reference in New Issue
Block a user