Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Display top contents in hover widget when focused #2544

Merged
merged 2 commits into from
Aug 7, 2024

Conversation

hecrj
Copy link
Member

@hecrj hecrj commented Aug 7, 2024

This PR introduces a couple of useful helpers for dealing with widget operations:

  • black_box erases the returning type of an Operation; so it can be fed to Widget::operate.
  • chain creates a sequence of operations; feeding the output of the first one to a function that creates a second one.

These changes allow us to easily keep track of the focused state inside parts of the widget tree. For instance, the hover widget now keeps displaying the widgets on top if any of them are focused.

@hecrj hecrj added feature New feature or request widget addition labels Aug 7, 2024
@hecrj hecrj added this to the 0.13 milestone Aug 7, 2024
@hecrj hecrj enabled auto-merge August 7, 2024 23:31
@hecrj hecrj merged commit 1c88500 into master Aug 7, 2024
24 checks passed
@hecrj hecrj deleted the display-hover-when-focused branch August 7, 2024 23:37
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
addition feature New feature or request widget
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant