Hi, I’m using gtkmm 4, I have a toolbar with buttons that open popover menus.
When a button is selected, I want to change its color, as seen in the following image:
I tried using button::selection (found in CSS Selectors Reference) but it didn’t do the trick.
When I use button:focus, the button color changes briefly, until the popover is shown, then it disappears.
When the popover is closed the focus switches the to next button for some reason. I don’t want that.
This is my css:
#tool-bar>button:focus
{
background-image: image(@bgSelected);
}
ok, thx. How do I prevent the focus from moving to the next toolbar button when the popover closes?
I want to focus back on the button which was pressed