Skip to content

Truly independent web browser

UI/Qt: Keep 24 px clear on both sides of the Ladybird button

Andreas Klinga78872d9e94d
diff --git a/Documentation/UI/QuietDesign.md b/Documentation/UI/QuietDesign.md
index 06887ab7ae0..0dad3831a96 100644
--- a/Documentation/UI/QuietDesign.md
+++ b/Documentation/UI/QuietDesign.md
@@ -121,7 +121,7 @@ All sizes are in logical pixels.
| Rest | No fill, 1 px inside hairline: black 14% in light, white 16% in dark and private, 45% in increased contrast. Never a gray fill at rest (it reads as stuck hover) and never a colored ring (it reads as focus). |
| Hover | Hover fill (black 9% / white 12%) plus the hairline |
| Menu open | Pressed fill (black 12% / white 16%) plus the hairline |
-| Clear space | 28 px to the traffic lights and 28 px to the first favicon |
+| Clear space | 24 px on both sides: from the traffic lights to the button, and from the button to the first tab's straight left edge (the active tab's foot reaches 8 px closer). On Windows and Linux, where the button comes first, 24 px to the first tab. |
| Purpose | Opens the Ladybird menu. Belongs to the window, not to a tab, so it lives in the tab strip (or the sidebar header). |
### Sidebar (vertical tabs)
diff --git a/UI/Qt/ChromeLayout.h b/UI/Qt/ChromeLayout.h
index 290b2de3dff..2889aa36c90 100644
--- a/UI/Qt/ChromeLayout.h
+++ b/UI/Qt/ChromeLayout.h
@@ -16,9 +16,9 @@ static constexpr int NATIVE_MACOS_WINDOW_CONTROLS_INSET = 12;
// The three traffic lights, with the room after the last one.
static constexpr int NATIVE_MACOS_WINDOW_CONTROLS_WIDTH = 56;
static constexpr int NATIVE_MACOS_WINDOW_CONTROLS_GAP = 14;
-// The Ladybird button keeps 28 px clear to the traffic lights before it.
-// NB: The traffic lights reach a little past the room kept for them.
-static constexpr int LADYBIRD_BUTTON_TRAFFIC_LIGHTS_GAP = 30;
+// The Ladybird button keeps 24 px clear to the traffic lights before it.
+// NB: The traffic lights reach 3 px past the room kept for them.
+static constexpr int LADYBIRD_BUTTON_TRAFFIC_LIGHTS_GAP = 27;
static constexpr bool use_native_macos_window_controls()
{
diff --git a/UI/Qt/TabBar.cpp b/UI/Qt/TabBar.cpp
index a5be9254522..5d346107ee1 100644
--- a/UI/Qt/TabBar.cpp
+++ b/UI/Qt/TabBar.cpp
@@ -180,9 +180,8 @@ static constexpr int HORIZONTAL_TAB_STRIP_DRAG_SPACE = 44;
// The new tab button's slot starts this far after the last tab, not counting the last tab's room for its foot, which
// puts its fill 8 px after the tab, just clear of a selected tab's foot.
static constexpr int HORIZONTAL_NEW_TAB_BUTTON_GAP = 7;
-// NB: With the room at the strip's end and the first tab's inset and padding, this keeps the first favicon 28 px from
-// the Ladybird button.
-static constexpr int LADYBIRD_BUTTON_TRAILING_GAP = 16;
+// The Ladybird button keeps 24 px clear to the first tab's straight side after it. That tab's foot reaches into the gap.
+static constexpr int LADYBIRD_BUTTON_TRAILING_GAP = 24;
// In the open sidebar, the Ladybird button sits just before the sidebar's toggle, and the toggle a little further from
// the page than the tabs below it.
// NB: The gap matches the toolbar's spacing, so the two keep their distance as they move between the sidebar's header