Skip to content

Commit

Permalink
Some minimal theme fixes for focus drawing
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
Matthias Clasen committed Oct 25, 2017
1 parent 46d4dee commit f8e74e8
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion gtk/theme/Adwaita/_common.scss
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down

0 comments on commit f8e74e8

Please sign in to comment.