update dock
This commit is contained in:
+5
-2
@@ -38,10 +38,12 @@ fn main() {
|
||||
std::fs::create_dir_all(paths::repos_dir()).ok();
|
||||
signed_state::GitStore::set_global(paths::repos_dir().clone(), cx);
|
||||
|
||||
// Set up the window bounds
|
||||
// Set up the window options
|
||||
let bounds = Bounds::centered(None, size(px(1120.0), px(750.0)), cx);
|
||||
|
||||
// Set up the window options
|
||||
// The dock's tab bar acts as the window title bar: the app owns
|
||||
// title-bar dragging (via `start_window_move` on the tab bar), so
|
||||
// AppKit must not treat the top strip as a native drag region.
|
||||
let opts = WindowOptions {
|
||||
window_background: WindowBackgroundAppearance::Opaque,
|
||||
window_decorations: Some(WindowDecorations::Client),
|
||||
@@ -54,6 +56,7 @@ fn main() {
|
||||
traffic_light_position: Some(point(px(9.0), px(9.0))),
|
||||
appears_transparent: true,
|
||||
}),
|
||||
app_owns_titlebar_drag: true,
|
||||
..Default::default()
|
||||
};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user