From 28482e52beece63bab15d098247739a717ba16a2 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Timm=20B=C3=A4der?= Date: Sat, 15 Feb 2020 10:45:33 +0100 Subject: [PATCH] Adwaita: Add focus outlines back to scale troughs Fixes #189 --- gtk/theme/Adwaita/_common.scss | 11 ++++++++--- 1 file changed, 8 insertions(+), 3 deletions(-) diff --git a/gtk/theme/Adwaita/_common.scss b/gtk/theme/Adwaita/_common.scss index 14c3877547..5c20871555 100644 --- a/gtk/theme/Adwaita/_common.scss +++ b/gtk/theme/Adwaita/_common.scss @@ -15,7 +15,6 @@ button:focus(visible), checkbutton:focus(visible), radiobutton:focus(visible), switch:focus(visible), -scale:focus(visible), label:focus(visible), row:focus(visible), flowboxchild:focus(visible) { @@ -29,6 +28,14 @@ flowboxchild:focus(visible) { outline-width: 1px; } +// Widgets that draw their focus indicator outset and not inset +scale:focus(visible) > trough { + outline-color: gtkalpha(currentColor, 0.3); + outline-style: dashed; + outline-offset: 2px; + outline-width: 1px; +} + /*************** * Base States * @@ -2584,8 +2591,6 @@ scale { } } - &:focus { outline: none; } - // click-and-hold the slider to activate &.fine-tune { &.horizontal {