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

Code Quality: Adding ToolbarButton controls #15894

Draft
wants to merge 29 commits into
base: main
Choose a base branch
from

Conversation

mdtauk
Copy link
Contributor

@mdtauk mdtauk commented Jul 30, 2024

Resolved / Related Issues

Creating a bespoke control for use in Files' toolbars and address bar. Uses our ThemedIcon control.

Ensuring @0x5bfa is ok with working on this control, and @yaira2 to keep an eye on it, as we start work on it.

This Pull Request will remain a Draft until it is ready for review and merging

To prevent extra work, all changes to the Files codebase must link to an approved issue marked as Ready to build. Please insert the issue number following the hashtag with the issue number that this Pull Request resolves.

  • Closes #

Steps used to test these changes

Stability is a top priority for Files and all changes are required to go through testing before being merged into the repo. Please include a list of steps that you used to test this PR.

  1. Opened Files ...
  2. ...

mdtauk and others added 29 commits July 30, 2024 01:11
This is assuming we are building a control from scratch.  Code is mostly placeholder and dependency property frameworks
Not sure if this is the right approach, but I've done it for now.  ToolbarItem should be an abstract and the Toolbar control translates them into Buttons and Menu Items
Set the window size to be more mangable whilst debugging lol
Basic creation of controls with sizes based on ToolbarSize - we need to re-draw or update controls within the lists if the ToolbarSize changes at runtime
Also added an IsChecked property to ToolbarItem to be passed onto the Toggle ItemTypes
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