update dock

This commit is contained in:
2026-08-19 09:14:42 +07:00
parent 6a3e9604c9
commit 071cb9e714
6 changed files with 758 additions and 288 deletions
+5 -2
View File
@@ -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()
};