-
Notifications
You must be signed in to change notification settings - Fork 6.5k
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
Ready for Review - [Mouse Jump] Customisable appearance - borders, margins, colours, etc - final part #35521
Open
mikeclayton
wants to merge
22
commits into
microsoft:main
Choose a base branch
from
mikeclayton:dev/mikeclayton/mousejump-styles-part-3
base: main
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Ready for Review - [Mouse Jump] Customisable appearance - borders, margins, colours, etc - final part #35521
mikeclayton
wants to merge
22
commits into
microsoft:main
from
mikeclayton:dev/mikeclayton/mousejump-styles-part-3
Conversation
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This comment has been minimized.
This comment has been minimized.
…hub.com/mikeclayton/PowerToys into dev/mikeclayton/mousejump-styles-part-3
This comment has been minimized.
This comment has been minimized.
I think this PR is ready for review now - I still need to do the full set of regression tests but the happy path works fine. There's some notes for reviewers in the original post at the top. |
mikeclayton
changed the title
WIP - [Mouse Jump] Customisable appearance - borders, margins, colours, etc - final part
Ready for Review - [Mouse Jump] Customisable appearance - borders, margins, colours, etc - final part
Oct 23, 2024
# Conflicts: # src/modules/MouseUtils/MouseJumpUI/Program.cs
crutkas
added
the
Needs-Review
This Pull Request awaits the review of a maintainer.
label
Nov 1, 2024
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Summary of the Pull Request
This is the last part of the Mouse Jump styles work that finally enables the feature in Settings UI and in the Mouse Jump preview image.
See #27511 for the original feature suggestion.
Changes in this PR
Reviewer Notes
Added a reference to CommunityToolkit.WinUI.Controls.Segmented in PowerToys.Settings to allow the "Compact | Bezelled | Custom" options for Preview Style
Added a reference to MouseJump.Common in PowerToys.Settings to allow rendering the preview image when settings are changed
I've made "Bezelled" the new default style as a precursor to the proposed Mouse Without Borders integration in Integrate Mouse Jump with Mouse Without Borders to allow jumping to remote computers when MWB is enabled #34126 - it'll be easier to make the bezel colours vary by host if they're already visible.
Code touches the internals of the Segmented control to force the preview image to be centered - see
PreviewImage_Loaded
method - might be brittle if the implementation changes?Config upgrade seems a bit odd - the in-memory settings get upgraded fine with
"version": "1.`"
but it seems to get reverted and saved again as"version": "1.0"
and then overwritten again as"version"": "1.1"
. I've worked around this by additionally checking if the new settings have values before upgrading, but it seems like that's what the version flag is supposed to be for. It works for now anyway, but not sure if this is the right way to do it...Does the "Copy to Custom preview style" need an "Are you sure? Yes / No" before overwriting and / or a "Copied!" message after copying? I'm happy to leave it as is, but feedback welcome...
PR Checklist
Validation Steps Performed
Hotkey and size settings are automatically reloaded when config file is modified manually (e.g. in notepad) while runner and MouseJumpUI.exe are running