Skip to content

Commit

Permalink
Fix some styling errors and expand map vertically
Browse files Browse the repository at this point in the history
  • Loading branch information
lainsce committed Jan 11, 2024
1 parent cef9176 commit b89eab3
Show file tree
Hide file tree
Showing 2 changed files with 20 additions and 3 deletions.
15 changes: 14 additions & 1 deletion data/style.css
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down
8 changes: 6 additions & 2 deletions src/MainWindow.vala
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down Expand Up @@ -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 () {
Expand Down Expand Up @@ -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,
Expand Down

0 comments on commit b89eab3

Please sign in to comment.