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

Mouse Utils - Mouse Highlighter #14496

Merged
merged 36 commits into from Nov 22, 2021
Merged

Mouse Utils - Mouse Highlighter #14496

merged 36 commits into from Nov 22, 2021

Conversation

jaimecbernardo
Copy link
Collaborator

@jaimecbernardo jaimecbernardo commented Nov 17, 2021

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.

image

What is include in the PR:

  • The code for the PowerToys.
  • Settings page and Oobe description line.
  • Logging and telemetry.

image

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

  • Linked issue: Mostly discussed in our meetings, but can also be an initial implementation for Mouse Highlighter for Presenting & Teaching #13808
  • Communication: I've discussed this with core contributors in the issue.
  • Tests: Added/updated and all pass
  • Installer: Added/updated and all pass
  • Localization: All end user facing strings can be localized
  • Docs: Added/ updated
  • Binaries: Any new files are added to WXS / YML

@htcfreek
Copy link
Collaborator

Lets add an extra expander to group the layout and behavior settings.

@jaimecbernardo
Copy link
Collaborator Author

I defer to you, lets have then a shorter fade

500 and 250?

Tweaked.

@jaimecbernardo
Copy link
Collaborator Author

@jaimecbernardo Can you plz update screenshots here as well.

Updated in description

@htcfreek
Copy link
Collaborator

@jaimecbernardo
I don't have the time to try it out. But what I see on the screenshots looks good to me. 🚀

}
}

void parse_settings(PowerToysSettings::PowerToyValues& settings)
Copy link
Collaborator

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?

Copy link
Collaborator Author

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)

@SeraphimaZykova
Copy link
Collaborator

Noticed that settings and logs are in the different folders.

image

@franky920920
Copy link
Contributor

franky920920 commented Nov 22, 2021

Noticed that settings and logs are in the different folders.

image

Addressed in #14130

try
{
// Parse Opacity
auto jsonPropertiesObject = settingsObject.GetNamedObject(JSON_KEY_PROPERTIES).GetNamedObject(JSON_KEY_HIGHLIGHT_OPACITY);
Copy link
Collaborator

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?

Copy link
Collaborator Author

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?

@jaimecbernardo
Copy link
Collaborator Author

Thank you for the code reviews. I've addressed or answered them. PTAL.

Copy link
Collaborator

@yuyoyuppe yuyoyuppe left a comment

Choose a reason for hiding this comment

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

LGTM!

@jaimecbernardo jaimecbernardo merged commit 2d5276f into main Nov 22, 2021
@crutkas crutkas deleted the feature/mouse-highlighter branch November 24, 2021 17:49
@Jay-o-Way Jay-o-Way added the Product-Mouse Utilities Refers to the Mouse Utilities PowerToy label Nov 24, 2021
@htcfreek
Copy link
Collaborator

@jaimecbernardo , @niels9001
The colored utility icons are missing in installer. they aren't there in the final ux of 0.51.0.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Product-Mouse Utilities Refers to the Mouse Utilities PowerToy
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

9 participants