[gtk/wip/baedert/filechooser: 9/9] Adwaita: Add a selected-but-not-focused style to listbox rows
- From: Timm Bäder <baedert src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtk/wip/baedert/filechooser: 9/9] Adwaita: Add a selected-but-not-focused style to listbox rows
- Date: Tue, 15 Jan 2019 07:12:09 +0000 (UTC)
commit c467ad3056e80c646ff5fba8a5c6697fc2816780
Author: Timm Bäder <mail baedert org>
Date: Tue Jan 15 08:08:38 2019 +0100
Adwaita: Add a selected-but-not-focused style to listbox rows
gtk/theme/Adwaita/_common.scss | 5 +++--
1 file changed, 3 insertions(+), 2 deletions(-)
---
diff --git a/gtk/theme/Adwaita/_common.scss b/gtk/theme/Adwaita/_common.scss
index 43b877dc78..7b72c5f444 100644
--- a/gtk/theme/Adwaita/_common.scss
+++ b/gtk/theme/Adwaita/_common.scss
@@ -3676,7 +3676,7 @@ row {
&:backdrop:hover { background-color: transparent; }
- &:selected {
+ &:selected:focus(visible) {
&:active { box-shadow: inset 0 2px 3px -1px transparentize(black, 0.5); }
&.has-open-popup,
@@ -3686,7 +3686,8 @@ row {
}
}
- &:selected { @extend %selected_items; }
+ &:selected:focus(visible) { @extend %selected_items; }
+ &:selected:focus, &:selected { background-color: grey; }
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]