diff options
author | Matthias Clasen <mclasen@redhat.com> | 2017-10-25 18:35:32 -0400 |
---|---|---|
committer | Matthias Clasen <mclasen@redhat.com> | 2017-10-25 18:35:32 -0400 |
commit | f8e74e8f0463e5e7534c119d47e5a9613b833eb8 (patch) | |
tree | c7af6c6d7af90288b3bd65ad094c8fe1dc9b6754 /gtk/theme | |
parent | 46d4deeb1e5c41c9d317235387d227de49718f61 (diff) | |
download | gtk+-f8e74e8f0463e5e7534c119d47e5a9613b833eb8.tar.gz |
Some minimal theme fixes for focus drawing
We don't want focus rectangles everywhere, so set them up
explicitly for the widgets where we want them, and only
if focus(visible) is set.
Diffstat (limited to 'gtk/theme')
-rw-r--r-- | gtk/theme/Adwaita/_common.scss | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/gtk/theme/Adwaita/_common.scss b/gtk/theme/Adwaita/_common.scss index 40aaa14737..6d44ed80f7 100644 --- a/gtk/theme/Adwaita/_common.scss +++ b/gtk/theme/Adwaita/_common.scss @@ -13,7 +13,12 @@ $button_transition: all 200ms $ease-out-quad; -gtk-secondary-caret-color: $selected_bg_color } -*:focus { +button:focus(visible), +checkbutton:focus(visible), +radiobutton:focus(visible), +switch:focus(visible), +scale:focus(visible), +label:focus(visible) { // We use the outline properties to signal the focus properties // to the adwaita engine: using real CSS properties is faster, // and we don't use any outlines for now. |