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

feat: Additional actions for window controls #1471

Merged
merged 3 commits into from
Nov 2, 2022

Conversation

mmstick
Copy link
Contributor

@mmstick mmstick commented Oct 11, 2022

Adds new window actions to enable the possibility to create client-side decorations in Iced applications. libcosmic has a functioning headerbar widget which utilizes these actions and their functions. We could add a headerbar widget example for demonstrating the functionality.

  • Action::Drag
  • Action::Maximize(bool)
  • Action::Minimize(bool)
  • Action::ResizeDrag
  • Action::ToggleMaximize

ResizeDrag is currently a no-op because it requires a patch to winit. I am working on this patch at the moment.

Partially implements #759

Related RFC: iced-rs/rfcs#13

Copy link
Member

@tarkah tarkah left a comment

Choose a reason for hiding this comment

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

These actions are long overdue, very nice!

winit/src/application.rs Outdated Show resolved Hide resolved
winit/src/application.rs Outdated Show resolved Hide resolved
native/src/window/action.rs Outdated Show resolved Hide resolved
Copy link
Member

@hecrj hecrj left a comment

Choose a reason for hiding this comment

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

Great stuff! Thanks for the RFC as well :)

@hecrj hecrj merged commit 08e28f6 into iced-rs:master Nov 2, 2022
@hecrj hecrj added this to the 0.6.0 milestone Nov 2, 2022
@mmstick mmstick deleted the cosmic-window-controls branch November 3, 2022 00:26
@hecrj hecrj modified the milestones: 0.6.0, 0.5.0 Nov 3, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feature New feature or request shell
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants