Skip to content

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

Merged
trigg merged 29 commits into
masterfrom
less-buttons
May 31, 2026
Merged

Don't use menubuttons where we don't want buttons#411
trigg merged 29 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 force-pushed the less-buttons branch 2 times, most recently from e4820e8 to 37f0ffd Compare May 16, 2026 22:18
@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
@trigg trigg force-pushed the less-buttons branch 2 times, most recently from 16f25e4 to 0401c06 Compare May 30, 2026 13:20
trigg and others added 16 commits May 30, 2026 17:23
panel: reimplement volume scroll as it no longer hangs panel
panel: menuwidget less leakage when rebinding opens_on
the scrolled window was being returned.
proper return accounts for scroll window wrapping children in viewports
added configuration options for the now-possible mute on left click
cleaned up handling of opening, closing and replacing the popover
…le screen size, if it is too large

this is breaking because the way size is calculated is not consistent with before the change
@trigg trigg merged commit c390f15 into master May 31, 2026
4 checks passed
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.

2 participants