From b89eab3e17d5e99436f01fbb861c96b3402a86e3 Mon Sep 17 00:00:00 2001 From: lainsce Date: Thu, 11 Jan 2024 13:15:53 -0300 Subject: [PATCH] Fix some styling errors and expand map vertically --- data/style.css | 15 ++++++++++++++- src/MainWindow.vala | 8 ++++++-- 2 files changed, 20 insertions(+), 3 deletions(-) diff --git a/data/style.css b/data/style.css index 6c0dc73..0bc5b35 100644 --- a/data/style.css +++ b/data/style.css @@ -24,7 +24,20 @@ } .menu-button { - border-radius: 8px; + margin: 8px 0; + padding: 0 12px; + min-height: 48px; + border-radius: 0; + background: none; +} +.menu-button label { + font-weight: 500; +} +.menu-button:hover { + background: @accent_bg_color; +} +.menu-button:active { + background: shade(@accent_bg_color, 0.98); } .bubble > box { diff --git a/src/MainWindow.vala b/src/MainWindow.vala index d4ba615..f4c7a2b 100644 --- a/src/MainWindow.vala +++ b/src/MainWindow.vala @@ -61,7 +61,8 @@ public class Aqui.MainWindow : He.ApplicationWindow { smap = new Shumate.SimpleMap () { map_source = renderer, - show_zoom_buttons = false + show_zoom_buttons = false, + vexpand = true }; poi_layer = new Shumate.MarkerLayer.full (smap.get_map ().get_viewport (), Gtk.SelectionMode.SINGLE); @@ -113,6 +114,7 @@ public class Aqui.MainWindow : He.ApplicationWindow { orientation = Gtk.Orientation.VERTICAL }; menu_popover_grid.attach (about_menu_item, 0, 0, 1, 1); + menu_popover.has_arrow = false; menu_popover.child = menu_popover_grid; var menu_button = new Gtk.MenuButton () { @@ -246,7 +248,9 @@ public class Aqui.MainWindow : He.ApplicationWindow { private Gtk.Button create_button_menu_item (string label, string? action_name) { var labelb = new Gtk.Label (label) { - xalign = 0 + xalign = 0, + halign = Gtk.Align.START, + hexpand = true }; var button = new Gtk.Button () { child = labelb,