https://bugs.kde.org/show_bug.cgi?id=486765

            Bug ID: 486765
           Summary: Missing icons for GtkMenuButton's direction arrow
    Classification: Plasma
           Product: Breeze
           Version: 6.0.2
          Platform: Arch Linux
                OS: Linux
            Status: REPORTED
          Severity: normal
          Priority: NOR
         Component: gtk theme
          Assignee: plasma-b...@kde.org
          Reporter: benjamin.henn...@wanadoo.fr
                CC: agrine...@gmail.com, uhh...@gmail.com
  Target Milestone: ---

Created attachment 169292
  --> https://bugs.kde.org/attachment.cgi?id=169292&action=edit
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

-- 
You are receiving this mail because:
You are watching all bug changes.

Reply via email to