Skip to content

Styles/MenuButton: fix default icon, add an example menu - #1027

Merged
danirabbit merged 16 commits into
mainfrom
danirabbit/menubutton-fixicon-addmenu
Sep 19, 2026
Merged

danirabbit merged 16 commits into
mainfrom
danirabbit/menubutton-fixicon-addmenu

Conversation

@danirabbit

@danirabbit danirabbit commented Sep 8, 2026

Copy link
Copy Markdown
Member

Fixes making the default icon open-menu since in modern gtk it does get a direction style class.

While we're here, add a basic example menu that can build on in future PRs to expand PopoverMenu support

@danirabbit
danirabbit force-pushed the danirabbit/menubutton-fixicon-addmenu branch from 4d618f5 to 1a15d4b Compare September 8, 2026 21:11
@danirabbit
danirabbit marked this pull request as ready for review September 8, 2026 21:12
@danirabbit
danirabbit requested review from a team September 8, 2026 21:12
@danirabbit danirabbit added this to OS 9 Sep 8, 2026
@danirabbit danirabbit moved this to Needs Review in OS 9 Sep 8, 2026

@leolost2605 leolost2605 left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

One nit, apart from that LGTM

Comment thread demo/Views/ControlsView.vala Outdated
@danirabbit
danirabbit enabled auto-merge (squash) September 17, 2026 13:50
@danirabbit
danirabbit disabled auto-merge September 19, 2026 17:29
@danirabbit
danirabbit merged commit fa3de95 into main Sep 19, 2026
3 of 5 checks passed
@danirabbit
danirabbit deleted the danirabbit/menubutton-fixicon-addmenu branch September 19, 2026 18:07
@github-project-automation github-project-automation Bot moved this from Needs Review to Done in OS 9 Sep 19, 2026
Comment on lines +2 to 5
// Assuming use case as a main menu button
> button.image-button arrow.down {
-gtk-icon-source: -gtk-icontheme("open-menu-symbolic");
}

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think this change introduces #1012 again, while I admit my first code applies to all arrow types. I'll make a followup PR to do the equivalent thing with what libadwaita does.

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Or simply make sure this is applied to arrow.none too.

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

Status: Done

Development

Successfully merging this pull request may close these issues.

3 participants