-
Notifications
You must be signed in to change notification settings - Fork 6.7k
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
Mouse Utils - Mouse Highlighter #14496
Conversation
Lets add an extra expander to group the layout and behavior settings. |
Tweaked. |
Updated in description |
@jaimecbernardo |
} | ||
} | ||
|
||
void parse_settings(PowerToysSettings::PowerToyValues& settings) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Shouldn't PowerToyValues
be const?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
get_raw_json
is not const. (It's possible it could be, but that's out of the scope of this PR)
Addressed in #14130 |
try | ||
{ | ||
// Parse Opacity | ||
auto jsonPropertiesObject = settingsObject.GetNamedObject(JSON_KEY_PROPERTIES).GetNamedObject(JSON_KEY_HIGHLIGHT_OPACITY); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
couldn't we use src\common\utils\json.h
in this file?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I've based the code on what I saw for ShortcutGuide and some other PowerToys.
So we have two different libs for this?
What's the issue with using this one vs the other?
Thank you for the code reviews. I've addressed or answered them. PTAL. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM!
@jaimecbernardo , @niels9001 |
Summary of the Pull Request
What is this about:
Adds a new PowerToy called "Mouse Highlighter", under "Mouse Utilities".
This PowerToys can be used to highlight left and right mouse clicks while presenting/screen sharing.
Default activation key is Windows+Shift+H.
What is include in the PR:
How does someone test / validate:
Start PowerToys with the module enabled and press "Windows"+"Shift"+"H". Then left and right click with the mouse to check the effect. "Windows"+"Shift"+"H" to toggle it off again.
Quality Checklist