-
Notifications
You must be signed in to change notification settings - Fork 957
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
Add a new virtual property StatusStripBorder to ToolStripProfessional… #4739
Conversation
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.
👀
src/System.Windows.Forms/src/System/Windows/Forms/ProfessionalColorTable.cs
Outdated
Show resolved
Hide resolved
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.
We also need to see whether we can add a rendering test to assert correct colours are applied (e.g. something similar to ToolStrip_RendersBackgroundCorrectly
).
src/System.Windows.Forms/src/System/Windows/Forms/ProfessionalColorTable.cs
Outdated
Show resolved
Hide resolved
src/System.Windows.Forms/src/System/Windows/Forms/ToolstripProfessionalRenderer.cs
Outdated
Show resolved
Hide resolved
You can grab it here https://visualstudio.microsoft.com/vs/preview/ 😉 |
Is there an updated developer guide, what i have to have installed on my system in order to build this. The one here https://github.com/dotnet/winforms/blob/main/docs/developer-guide.md is outdated. If i have to install all this preview stuff, i don't know if i can complete this. My machine is a production machine and i do not want to mess it up like this. What was once a simple change escalates way beyond my initial intent. Maybe someone at Microsoft with a working dev environment might pick this up... |
What are you finding in the guide that appears outdated? |
This does not match what you really need in order to build the project. |
What isn't matching, and what's missing? |
You need preview versions of .NET an Visual Studio. I don't know what the exact versions are. |
.NET 6.0 requires VS 16.11. |
a79a746
to
07a33c3
Compare
So today i took the chance to give building winforms another try, and finally succeeded.... |
07a33c3
to
f798069
Compare
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.
👍
We just need to add a test.
Please have a look at the docs and at ToolStrip_RendersBackgroundCorrectly
, it should be reasonably straight forward to add a test to assert the border colour.
Relocated the API changes, and added a rendering test for the border color. |
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
@Balkoth a friendly nudge. If you think it is ready, set it ready for review, so we can take it. The 6.0 branches are getting closed in few days. |
Please rebase and resolve the MC. Thanks |
687b576
to
553ab41
Compare
Rebased. What is the MC and how do i resolve it? |
MC stands for "merge conflict". Looks like your rebase didn't quite work, the build is failing.
|
Done. |
Thank you |
Resolves #4643
Summary
Currently, if you want to theme your application with a
ToolStripProfessionalRenderer
, there is an issue with theStatusStrip
border, as the drawing routine uses a hardcoded value for the border color. A new virtual property is added to theProfessionalColorTable
to customize that color.