summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChristopher Davis <christopherdavis@gnome.org>2023-02-12 11:40:09 -0500
committerMarcus Lundblad <ml@dfupdate.se>2023-02-12 21:06:17 +0000
commita0e5b022d1e2738430ab979b1c4a1db06d916d8b (patch)
treeb9fff8255893b77f7e357f53d3f5ab99cf04775a
parentc8f3d8fcad3b0829b9997c4ece373865d1db1065 (diff)
downloadgnome-maps-a0e5b022d1e2738430ab979b1c4a1db06d916d8b.tar.gz
placePopover: Add proper suggestions styles
Fix the place popover's suggestion styles to show keyboard selection.
-rw-r--r--data/gnome-maps.css22
-rw-r--r--data/ui/place-popover.ui1
2 files changed, 23 insertions, 0 deletions
diff --git a/data/gnome-maps.css b/data/gnome-maps.css
index c5d1ee3c..b6298b33 100644
--- a/data/gnome-maps.css
+++ b/data/gnome-maps.css
@@ -113,3 +113,25 @@
padding: 6px;
border-bottom: 1px solid @borders;
}
+
+popover.suggestions list > row:hover {
+ background-color: alpha(currentColor, .04);
+}
+
+popover.suggestions list > row:active {
+ background-color: alpha(currentColor, .08);
+}
+
+popover.suggestions list > row:selected {
+ background-color: alpha(currentColor, .1);
+}
+
+popover.suggestions list > row:selected:hover {
+ background-color: alpha(currentColor, .13);
+}
+
+popover.suggestions list > row:selected:active {
+ background-color: alpha(currentColor, .19);
+}
+
+
diff --git a/data/ui/place-popover.ui b/data/ui/place-popover.ui
index 0d3745b5..b373c65a 100644
--- a/data/ui/place-popover.ui
+++ b/data/ui/place-popover.ui
@@ -8,6 +8,7 @@
<property name="autohide">False</property>
<style>
<class name="menu"/>
+ <class name="suggestions"/>
</style>
<property name="child">
<object class="GtkStack" id="stack">