1
0
mirror of https://github.com/lumehq/lume.git synced 2025-03-18 05:41:53 +01:00

fix: adjust window controls position

This commit is contained in:
reya 2024-08-19 10:48:29 +07:00
parent 307fff7a53
commit bcc5e18082
3 changed files with 8 additions and 3 deletions
src-tauri/src/commands
src

@ -132,7 +132,7 @@ pub fn reload_column(label: String, app_handle: tauri::AppHandle) -> Result<(),
}
}
#[tauri::command]
#[tauri::command(async)]
#[specta::specta]
pub fn open_window(window: Window, app_handle: tauri::AppHandle) -> Result<(), String> {
if let Some(window) = app_handle.get_window(&window.label) {
@ -178,6 +178,7 @@ pub fn open_window(window: Window, app_handle: tauri::AppHandle) -> Result<(), S
.minimizable(window.minimizable)
.maximizable(window.maximizable)
.transparent(true)
.decoration(false)
.effects(WindowEffectsConfig {
state: None,
effects: vec![Effect::Mica],

@ -50,7 +50,11 @@ input::-ms-clear {
}
div[data-tauri-decorum-tb] {
@apply h-11;
@apply h-11 !important;
}
button.decorum-tb-btn {
@apply h-11 !important;
}
.spinner-leaf {

@ -37,7 +37,7 @@ function Screen() {
data-tauri-drag-region
className={cn(
"flex h-11 shrink-0 items-center justify-between",
platform === "macos" ? "pl-[72px] pr-3" : "pr-[128px] pl-3",
platform === "macos" ? "pl-[72px] pr-3" : "pr-[156px] pl-3",
)}
>
<div