update
This commit is contained in:
+6
-1
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user