-
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
[Settings] Plugin additional options: Allow settings description #17108
Conversation
@niels9001 |
I see the text itself can be improved too |
If the PR is ready you can fill reviews. Please wait until it's ready. |
@htcfreek Ah, I see what you mean.. this seems to be a (visual) bug in the CheckBoxWithDescriptionControl. Could you create a issue for that so we can fix that separately?? |
Yes. I can do this. But we have to wait with merging until the settings of TimeDate plugin are updated. cc: @jaimecbernardo |
src/modules/launcher/Plugins/Microsoft.Plugin.WindowWalker/Properties/Resources.resx
Outdated
Show resolved
Hide resolved
src/modules/launcher/Plugins/Microsoft.Plugin.WindowWalker/Properties/Resources.resx
Outdated
Show resolved
Hide resolved
src/modules/launcher/Plugins/Microsoft.Plugin.WindowWalker/Properties/Resources.resx
Outdated
Show resolved
Hide resolved
src/modules/launcher/Plugins/Microsoft.Plugin.WindowWalker/Properties/Resources.resx
Outdated
Show resolved
Hide resolved
// Add text box only if the description is not empty. Required for additional plugin options. | ||
if (!string.IsNullOrWhiteSpace(Description)) | ||
{ | ||
panel.Children.Add(new TextBlock() { Margin = new Thickness(0, 10, 0, 0), Text = Header }); |
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.
@niels9001
FYI: If I set the second margin value here to zero, the space above the checkbox is gone as it should be. But then the header and the description are misaligned if both are present.
Maybe we have to set fixed position for the checkbox element that it isn't vertical aligned or vertical aligned withe the header.
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.
New issue #17110.
@niels9001 |
@niels9001 |
I added only a description to note that the property is optional. |
@jaimecbernardo |
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! Let's tackle the margin bug in a seperate PR!
See the issue you assigned on |
@jaimecbernardo |
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! Thank you for the contribution!
Summary of the Pull Request
What is this about:
Currently we can't add descriptions for the additional plugin settings, We only can add the in brackets after the title. This doesn't looks good.
This PR adds the option to add descriptions for the settings.
What is included in the PR:
PluginAdditionalOptions
code.How does someone test / validate:
Quality Checklist
Contributor License Agreement (CLA)
A CLA must be signed. If not, go over here and sign the CLA.