This commit is contained in:
2026-08-20 15:04:36 +07:00
parent 55fd3324b3
commit 584a8385a1
10 changed files with 556 additions and 324 deletions
+6 -1
View File
@@ -1,6 +1,7 @@
use std::sync::Arc;
use assets::Assets;
use dock::TAB_BAR_HEIGHT;
use gpui::*;
use gpui_component::theme;
use gpui_platform::application;
@@ -53,7 +54,11 @@ fn main() {
app_id: Some("Signed".to_owned()),
titlebar: Some(TitlebarOptions {
title: Some(SharedString::new_static("Signed")),
traffic_light_position: Some(point(px(9.0), px(9.0))),
// AppKit's traffic-light buttons are 14 pt tall; offset them so their vertical center matches the tab bar.
traffic_light_position: Some(point(
px(9.0),
px(TAB_BAR_HEIGHT / px(2.) - 14. / 2.),
)),
appears_transparent: true,
}),
app_owns_titlebar_drag: true,