dropdown: Style fixups

Make the dropdown popover have a .menu style class,
and add padding to the rows in the popover. Also,
make the popover left-aligned with the button.
This commit is contained in:
Matthias Clasen
2020-06-15 10:23:39 -04:00
parent 1443ef85be
commit cf2d6f6ec5
2 changed files with 8 additions and 0 deletions

View File

@@ -1173,6 +1173,10 @@ combobox {
}
}
dropdown > popover listview > row {
padding: 6px;
}
// the combo is a composite widget so the way we do button linking doesn't
// work, special case needed. See
// https://bugzilla.gnome.org/show_bug.cgi?id=733979

View File

@@ -45,8 +45,12 @@
<child>
<object class="GtkPopover" id="popup">
<signal name="closed" handler="popover_closed"/>
<property name="halign">start</property>
<property name="has-arrow">0</property>
<property name="autohide">1</property>
<style>
<class name="menu"/>
</style>
<child>
<object class="GtkBox">
<property name="orientation">vertical</property>