Yaru: Tab focus rect

Created on 1 Apr 2018  路  3Comments  路  Source: ubuntu/yaru

Currently the focus rect for a tab is drawn on all sides, perhaps it would look nicer if it was not drawn on the bottom?

Gtk tabs:
gtk-tab

Current Kvantum style of Communitheme tabs:
kv-tab

Most helpful comment

I鈥檓 not sure if it's really consistent with other focus rings.

I think there are other options too like this:

image

All 3 comments

+1 from me. @Feichtmeier is this within your CSS skills?

@Feichtmeier It's possible to change the focus style individually for each element.

It's also possible to reproduce the Kvantum style, but it'll be a very hacky way. :wink:

image

You can try it by pasting the code into the GTK+ Inspector:

notebook:focus header.top tab:checked {
  outline: none;
  border-color: transparent transparent @theme_base_color;
  background-image: image(@theme_base_color), linear-gradient(to bottom, @theme_selected_bg_color, @borders);
  background-origin: padding-box, border-box;
  background-clip: padding-box, border-box;
}

I鈥檓 not sure if it's really consistent with other focus rings.

I think there are other options too like this:

image

Was this page helpful?
0 / 5 - 0 ratings

Related issues

YamiYukiSenpai picture YamiYukiSenpai  路  3Comments

snydox picture snydox  路  3Comments

madsrh picture madsrh  路  3Comments

Feichtmeier picture Feichtmeier  路  3Comments

eaglersdeveloper picture eaglersdeveloper  路  3Comments