11/*
22 * SPDX-License-Identifier: GPL-3.0
3- * SPDX-FileCopyrightText: 2022-2025 elementary, Inc. (https://elementary.io)
3+ * SPDX-FileCopyrightText: 2022-2026 elementary, Inc. (https://elementary.io)
44 */
55
66public class Dock.MainWindow : Gtk .ApplicationWindow {
@@ -14,9 +14,6 @@ public class Dock.MainWindow : Gtk.ApplicationWindow {
1414 }
1515 }
1616
17- // Matches top margin in Launcher.css
18- private const int TOP_MARGIN = 64 ;
19-
2017 private Settings transparency_settings;
2118 private static Settings settings = new Settings (" io.elementary.dock" );
2219
@@ -38,6 +35,7 @@ public class Dock.MainWindow : Gtk.ApplicationWindow {
3835 titlebar = new Gtk .Label (" " ) { visible = false };
3936
4037 var dock_box = new Gtk .Box (VERTICAL , 0 );
38+ dock_box. append (new TopMargin ());
4139 dock_box. append (new Container ());
4240 dock_box. append (new BottomMargin ());
4341
@@ -115,7 +113,7 @@ public class Dock.MainWindow : Gtk.ApplicationWindow {
115113 // bouncing isn't added by default and instead counts to the frame
116114 var item_manager_width = item_manager. get_width ();
117115 var shadow_size = (surface. width - item_manager_width) / 2 ;
118- var top_margin = TOP_MARGIN + shadow_size - 1 ;
116+ var top_margin = TopMargin . SIZE + shadow_size - 1 ;
119117 size. set_shadow_width (shadow_size, shadow_size, top_margin, shadow_size);
120118 });
121119
@@ -124,7 +122,7 @@ public class Dock.MainWindow : Gtk.ApplicationWindow {
124122 // and it still gets window events
125123 var item_manager_width = item_manager. get_width ();
126124 var shadow_size = (width - item_manager_width) / 2 ;
127- var top_margin = TOP_MARGIN + shadow_size;
125+ var top_margin = TopMargin . SIZE + shadow_size;
128126 surface. set_input_region (new Cairo .Region .rectangle ({
129127 shadow_size,
130128 top_margin,
0 commit comments