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

MaterialSkin - "Black holes" at startup or Theme change ... #267

Open
falcomus opened this issue Aug 16, 2021 · 2 comments
Open

MaterialSkin - "Black holes" at startup or Theme change ... #267

falcomus opened this issue Aug 16, 2021 · 2 comments

Comments

@falcomus
Copy link

Since MaterialSkin supports transparency, there are "holes" through which the desktop can be seen when the program is started or when the theme is changed.
As a test, I changed a few things in the file "MaterialForm.cs" and "MaterialSkinManager.cs"
MaterialForm.cs now has a property that can be used to control the display (FadeIn) of the form.
In addition, at the point at which the controls are updated when the theme is changed, the "SuspendLayout" of the form is called before. ResumeLayout is called after all controls have been changed.

It seems like these changes have eliminated the black holes at launch and when the theme changes.
If someone discovers unwanted side effects that these changes may cause, please describe them here ...

If someone like to view the demos, here the download link ...

https://c.gmx.net/@631220585132726712/hZSTaC7ySROwmT6RsqJG9A

Best regards,
Claus

@falcomus
Copy link
Author

@falcomus
Copy link
Author

I forgot one thing:
If you clicked on the Close-Button of a Material-SubForm, the application was closed.
In the Demo (After) this problem is fixed, the application is only closed if the form instance is the application MainForm ...

@ignace:
Hello Ignace, I'm not sure if it is even allowed to make changes to your great source code.
If so, I can send the patched files to people who are interested ...

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant