Skip to content

Don't use menubuttons where we don't want buttons#411

Open
trigg wants to merge 18 commits into
masterfrom
less-buttons
Open

Don't use menubuttons where we don't want buttons#411
trigg wants to merge 18 commits into
masterfrom
less-buttons

Conversation

@trigg
Copy link
Copy Markdown
Collaborator

@trigg trigg commented Mar 21, 2026

Refactor internal WayfireMenuButton to no longer actually be a menu button

MenuButton was originally chosen as it was the only way I had found to make a popover-menu for panel widgets.

We put a fair bit of extra code to make MenuButton not actually be a menubutton. So this PR will standardise an interface for all Popup-based widgets without each one having to fight to not look like a button

Advantages over not having this PR:

  • Fixed popover too big for entire screen at the source
  • Moved autohide and layer shell logic out of individual widgets.
  • Added option for popup-menu to follow mouse across other popup-menu widgets.
  • class 'with-content' when a popup of any kind is attached
  • class 'selected' when this specific widget has its popup shown
  • users custom themes don't need to carefully unset all the button-specific css rules from their theme

@trigg
Copy link
Copy Markdown
Collaborator Author

trigg commented May 9, 2026

From my daily testing this is now in place.

BUT the change from button to box/image whatever internals has changed some of the extra padding added by button. The panel is more compact again, especially around menu button.

@trigg trigg force-pushed the less-buttons branch 2 times, most recently from 8c8c502 to 99f9338 Compare May 16, 2026 12:24
@trigg
Copy link
Copy Markdown
Collaborator Author

trigg commented May 16, 2026

fixes #418

@trigg trigg changed the title [WIP] Don't use menubuttons where we don't want buttons Don't use menubuttons where we don't want buttons May 17, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant