From: Sam Hewitt Date: Wed, 26 Oct 2022 19:07:41 +0000 (-0230) Subject: filechooser: Add hover styles to the gridview children X-Git-Tag: archive/raspbian/4.12.3+ds-1+rpi1~1^2^2^2~22^2~9^2~33^2~3 X-Git-Url: https://dgit.raspbian.org/?a=commitdiff_plain;h=aabb8dce9141a6bdd68b11ea16de532ec9c7f218;p=gtk4.git filechooser: Add hover styles to the gridview children --- 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); + } } }