leocb / MaterialSkin

Theming .NET WinForms, C# or VB.Net, to Google's Material Design Principles.
MIT License
438 stars 132 forks source link

Material Scrim #275

Open VolatilePulse opened 2 years ago

VolatilePulse commented 2 years ago

Per the Material Design style, a scrim should be used any time the main application should lose focus for a child window. Since it should only apply to child windows, I've restricted what can create the scrim and what can't. The goal here is to eventually allow all children to force a scrim to be shown.

Additionally, this simplifies the necessity to create your own scrim in numerous places and allows library users to invoke the scrim themselves. For now, I've made it as simple as Form.ShowScrim() and Form.HideScrim(). I want to additional features to it in the future, but work has been keeping me from committing much time to this library as I'd like.