Truly independent web browser
UI/Qt: Tighten the navigation bar zoom menu a bit
Timothy Flynn5e65387ca385
diff --git a/UI/Qt/ChromeStyle.cpp b/UI/Qt/ChromeStyle.cppindex 8fc0e230622..9562fb5b5bd 100644--- a/UI/Qt/ChromeStyle.cpp+++ b/UI/Qt/ChromeStyle.cpp@@ -1849,6 +1849,8 @@ QFrame#LadybirdPopoverSeparator {{QString zoom_popover_style_sheet(QPalette const&){auto const& panel = Theme::panel();+ auto button_background = over(panel.control, panel.surface);+return qformatted(R"(QFrame#LadybirdZoomPopover {{color: {0};@@ -1869,10 +1871,14 @@ QPushButton#LadybirdZoomButton {{border-radius: 7px;}}-QPushButton#LadybirdZoomButton:pressed {{+QPushButton#LadybirdZoomButton:hover {{background: {4};}}+QPushButton#LadybirdZoomButton:pressed {{+ background: {5};+}}+QPushButton#LadybirdPopoverLink {{color: {0};background: transparent;@@ -1888,7 +1894,8 @@ QPushButton#LadybirdPopoverLink:hover {{}})",style_sheet_color(panel.text), style_sheet_color(panel.surface), style_sheet_color(over(panel.edge, panel.surface)),- style_sheet_color(panel.control), style_sheet_color(panel.pressed));+ style_sheet_color(button_background), style_sheet_color(over(panel.pressed, panel.surface)),+ style_sheet_color(over(panel.pressed, button_background)));}// Tooltips appear after half a second of hover. Once one has shown, the ones next to it appear at once for 1.5 s.diff --git a/UI/Qt/Tab.cpp b/UI/Qt/Tab.cppindex b55363a6a9e..c5169d34b2d 100644--- a/UI/Qt/Tab.cpp+++ b/UI/Qt/Tab.cpp@@ -114,11 +114,11 @@ public:{setAccessibleName("Page zoom");card().setObjectName("LadybirdZoomPopover");- card().setFixedWidth(232);+ card().setFixedWidth(148);auto* layout = new QVBoxLayout(&card());- layout->setContentsMargins(14, 14, 14, 14);- layout->setSpacing(10);+ layout->setContentsMargins(10, 10, 10, 8);+ layout->setSpacing(4);auto* controls = new QHBoxLayout;controls->setSpacing(6);@@ -127,7 +127,7 @@ public:button->setObjectName("LadybirdZoomButton");button->setIcon(create_chrome_icon(icon, Theme::panel().body));button->setIconSize({ 16, 16 });- button->setFixedSize(30, 28);+ button->setFixedSize(26, 24);button->setAccessibleName(name);button->setToolTip(name);QObject::connect(button, &QPushButton::clicked, this, [this, callback] {