Bug 486765

Summary: Missing icons for GtkMenuButton's direction arrow
Product: [Plasma] Breeze Reporter: Benjamin Hennion <benjamin.hennion>
Component: gtk themeAssignee: Plasma Bugs List <plasma-bugs-null>
Status: REPORTED ---    
Severity: normal CC: agrinev98, benjamin.hennion, mustafa.eskieksi, uhhadd
Priority: NOR    
Version First Reported In: 6.0.2   
Target Milestone: ---   
Platform: Arch Linux   
OS: Linux   
Latest Commit: Version Fixed In:
Sentry Crash Report:
Attachments: Simple UI file with 5 menu buttons
Missing icons in Breeze gtk4 theme

Description Benjamin Hennion 2024-05-08 06:00:44 UTC
Created attachment 169292 [details]
Simple UI file with 5 menu buttons

SUMMARY
GtkMenuButton's arrows are not shown at all.
From https://docs.gtk.org/gtk4/class.MenuButton.html#css-nodes

> Inside the toggle button content, there is an arrow node for the indicator, which will carry one of the .none, .up, .down,  > .left or .right style classes to indicate the direction that the menu will appear in. The CSS is expected to provide a 
> suitable image for each of these cases using the -gtk-icon-source property.

Something like the following should be added to gtk4's css file:
```
menubutton arrow.none { -gtk-icon-source: -gtk-icontheme("open-menu-symbolic"); }
menubutton arrow.down { -gtk-icon-source: -gtk-icontheme("pan-down-symbolic"); }
menubutton arrow.up { -gtk-icon-source: -gtk-icontheme("pan-up-symbolic"); }
menubutton arrow.left { -gtk-icon-source: -gtk-icontheme("pan-start-symbolic"); }
menubutton arrow.right { -gtk-icon-source: -gtk-icontheme("pan-end-symbolic"); }
```

STEPS TO REPRODUCE
1. Download the test.ui file attached. It contains a GtkWindow and 5 GtkMenuButtons, one in each direction.
2. Run `gtk4-builder-tool preview test.ui` with gtk theme set to Breeze in KCM.
3. See empty buttons

OBSERVED RESULT
Empty buttons

EXPECTED RESULT
Directional indicators in the buttons
Comment 1 mustafa.eskieksi 2024-05-13 18:40:42 UTC
Created attachment 169454 [details]
Missing icons in Breeze gtk4 theme
Comment 2 mustafa.eskieksi 2024-05-13 18:42:43 UTC
Comment on attachment 169454 [details]
Missing icons in Breeze gtk4 theme

Hi, I also have this problem with GtkExpanders and GtkDropDowns in my gtk4 program.
I've added a screenshot showing which icons are missing.