nana-4 / materia-theme

A Material Design theme for GNOME/GTK based desktop environments
GNU General Public License v2.0
3.42k stars 255 forks source link

Focus selector Treeview #524

Closed sapomuyverde closed 4 years ago

sapomuyverde commented 4 years ago

Hi, I'm trying to use this theme in an application under Windows 10/Gtk2, in the treeview selector if I go through the rows with the selection arrows the focus of the row has an appearance and if I click with the mouse the focus takes another appearance

here are the images for better reference:

using the arrows img1

using mouse click img2

Is there any way to modify the theme so that the focus always remains as the first image, i.e. with the border around the selector?

I would really appreciate your help.

Regards, Javier

actionless commented 4 years ago

those are two different effects, selection (light blue background) and keyboard focus (dark blue border)

when the item is both selected and focused by keyboard it have both

sapomuyverde commented 4 years ago

Hi, Thanks for answering

Is there something you can help me to modify if I want the effect to always be a dark blue border, it doesn't matter if I use a keyboard or mouse.

I appreciate your help.

Regards, Javier

actionless commented 4 years ago

here: https://github.com/nana-4/materia-theme/blob/master/src/gtk/sass/_common-3.20.scss#L1714

sapomuyverde commented 4 years ago

It's supposed that in that line I can modify the value e.g. 1..2 or 3 and it should have the dark blue border?, if so, doesn't work for me, I am using gtk2 (as required by my GUI), maybe it can be a version issue or maybe I need to modify in some other file...?.

actionless commented 4 years ago

right, gtk2 stuff is all here: https://github.com/nana-4/materia-theme/tree/master/src/gtk-2.0

sapomuyverde commented 4 years ago

I don't want to bother you much with this issue, but I can't find nothing regarding border-radius at c:\test_gui\themes\materia-theme\gtk-2.0

do you have any other tip?.

nana-4 commented 4 years ago

So sorry for the late reply from me.

GTK2 is not CSS-based, so there is no border-radius property there.

GTK2 is a really old toolkit, so unlike GTK3, you can't change the appearance so freely, unfortunately. So:

Is there any way to modify the theme so that the focus always remains as the first image, i.e. with the border around the selector?

The answer is no, as far as I know. Sorry.