From aabb8dce9141a6bdd68b11ea16de532ec9c7f218 Mon Sep 17 00:00:00 2001 From: Sam Hewitt Date: Wed, 26 Oct 2022 16:37:41 -0230 Subject: [PATCH] filechooser: Add hover styles to the gridview children --- gtk/theme/Default/_common.scss | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) diff --git a/gtk/theme/Default/_common.scss b/gtk/theme/Default/_common.scss index 20898e156d..82c6342a6e 100644 --- a/gtk/theme/Default/_common.scss +++ b/gtk/theme/Default/_common.scss @@ -3570,6 +3570,27 @@ filechooser { gridview child { border-radius: 12px; margin: 12px; + + &:hover { + background-color: gtkalpha(currentColor, .04); + } + + &:active { + background-color: gtkalpha(currentColor, .08); + } + + &:selected { + background-color: gtkalpha($selected_bg_color, .15); + color: inherit; + } + + &:selected:hover { + background-color: gtkalpha($selected_bg_color, .20); + } + + &:selected:active { + background-color: gtkalpha($selected_bg_color, .25); + } } } -- 2.30.2