CSS of `GtkListBox`: Provide means to determine if child has focus
Note This is an issue for theme creators (not programmers)
Current situation
In pure CSS, a GtkListBox
does not provide means to determine, if one of it's children currently has focus. Only the child (row
) knows if there is focus.
Why is this a problem?
Non-technical focus (as perceived by the user) is "on the list". Opposing to technical focus, where "focus is on a list element". This non-technical focus is currently not implementable for a GtkListBox
(as a theme creator; with raw CSS). You can only implement "highlight the currently focused row" or "highlight all selected rows (including listbox
es completely unrelated to the current focused one)".
Suggestion
Allow CSS to determine whether a row of a GtkListBox
has focus or not.
Or a more general solution
Provide "breadcrumbs" through the whole hierarchy tree from toplevel widget to focused widget that allows CSS to find all indirectly focused widgets, like here: