Skip to content

Draft: Add option to show close actions in windows to icon as header

Camil Staps requested to merge move-close-buttons-to-window-headers into master

What does this MR do?

Adds an option to move close actions in a windowed task to an icon in the header:

2023-05-15-121446_149x414

This is similar to what is possible in tab sets. (I used a different layout because it has to stand next to an optional secondary icon.)

Related issues

Changes to public APIs

  • ToWindow and toWindow now have an additional Bool argument.
  • The default behavior (InWindow etc.) is unchanged.

Author's checklist (required)

See CONTRIBUTING.md for the rationale behind these items:

  • The commit history does not contain merges (use git rebase -i master if it does)
  • Intermediate commits compile (use git rebase -i master if not)
  • Newly added code follows the Platform code style
  • Newly added code is documented
  • If bugs have been solved, tests have been added
  • Appropriate types have been used, especially in APIs
  • If efficiency is part of the acceptance criteria of the issue, a benchmark is provided
  • A changelog entry has been added if required. See CONTRIBUTING.md

Merge request reports