Skip to content

Commit e2f525f

Browse files
committed
Adjust traffic light size to match the new native size
1 parent bd77090 commit e2f525f

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

crates/gitbutler-tauri/src/window.rs

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
use tauri::Manager;
2+
13
pub(crate) mod state {
24
use std::{collections::BTreeMap, sync::Arc};
35

@@ -325,7 +327,9 @@ pub fn create(
325327
use tauri::Manager;
326328
use tauri_plugin_trafficlights_positioner::WindowExt;
327329
if let Some(window) = window.get_window(label) {
328-
window.setup_traffic_lights_inset(LogicalPosition::new(16.0, 25.0))?;
330+
// Note that these lights get reset when the Window label is changed!
331+
// See https://github.com/tauri-apps/tauri/issues/13044 .
332+
window.setup_traffic_lights_inset(LogicalPosition::new(16.0, 28.0))?;
329333
}
330334

331335
Ok(window)

0 commit comments

Comments
 (0)