I’m migrating a Python GTK3 application to GTK4 and I’m confused with the new MenuButton. With GTK3, adding the “suggested-action” CSS class on a MenuButton would make it blue, but this does not work with GTK4: the MenuButton keeps its default background color.
Applying the “suggested-action” CSS class on a GTK4 Button works as expected.
I’ve done some tests with the GTK Inspector, and applying the “suggested-action” CSS class to the ToggleButton inside the MenuButton changes the MenuButton background color to blue.
Is it possible for a GTK4 MenuButton to act like a GTK3 MenuButton regarding the “suggested-action” CSS class? Should I apply the “suggested-action” CSS class directly to the ToggleButton?
Thanks.