[libadwaita] stylesheet: Add hover style to activatable gridview children
- From: Alexander Mikhaylenko <alexm src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [libadwaita] stylesheet: Add hover style to activatable gridview children
- Date: Thu, 9 Dec 2021 20:32:02 +0000 (UTC)
commit aecac6b08b8ad8d6d6b28d9570b2cb6f3c224c74
Author: Romain Vigier <romain romainvigier fr>
Date: Thu Dec 9 11:43:03 2021 +0100
stylesheet: Add hover style to activatable gridview children
Make the GtkGridView children consistent with the GtkListView
rows by having a hover style when they are activatable.
src/stylesheet/widgets/_views.scss | 12 ++++++++++++
1 file changed, 12 insertions(+)
---
diff --git a/src/stylesheet/widgets/_views.scss b/src/stylesheet/widgets/_views.scss
index 567e5860..a6e67e77 100644
--- a/src/stylesheet/widgets/_views.scss
+++ b/src/stylesheet/widgets/_views.scss
@@ -66,3 +66,15 @@ gridview > child {
background-color: $view_selected_color;
}
}
+
+gridview > child.activatable {
+ &:hover { background-color: $view_hover_color; }
+
+ &:active { background-color: $view_active_color; }
+
+ &:selected {
+ &:hover { background-color: $view_selected_hover_color; }
+
+ &:active { background-color: $view_selected_active_color; }
+ }
+}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]