A screenshot, with the has-frame on there’s a frame in the MenuButton, even with the flat CSS class. If I set this property to 0 the frame in the inner ToogleButton is gone.
GtkMenuButton, but the important part is libadwaita styles, you’re not using those, so either libadwaita wasn’t initialized, or it’s themes messing it up.
This application is written in Crystal using the GTK4 bindings I’m writing for it plus libadwaita bindings another developer is writting based on my GTK4 bindings.
By initialize libadwaita you mean have the application class inherit from AdwApplication and use AdwApplicationWindow, right? I’m doing exactly this.
If you think just the flat must fix things up (but seems it isn’t), I can create a minimal C code to show the issue in C, to remove the change of having this due to bugs in the bindings.
That’s one way, sure. Then you have GTK_THEME set to something and libadwaita styles don’t load.
to remove the change of having this due to bugs in the bindings.
There’s 0 chance of that, we’re talking about css and I know it’s not there in gtk default styles, and I can see from your screenshot it’s not libadwaita styles.
After few days I remembered to remove the environment variable and… you are right! it worked fine… and also solved things I though was render bugs in Nautilus.