-
-
Notifications
You must be signed in to change notification settings - Fork 138
Setting the backcolor or forecolor on MaterialSkin components has no effect, this is by design and is the intended behavior. All colors are automatically managed by the lib, however, you can set engine to use the colors and theme you desire. just set the materialSkinManager.Theme
to LIGHT
or DARK
and the materialSkinManager.ColorScheme
to a new color scheme, following this structure: ColorScheme(primary, darkPrimary, lightPrimary, accent, textShade)
. These property can be changed on the constructor of the form or dynamically at run-time. See the example app for more details.
By default, the MaterialSkin lib enforces the correct backcolor, changing this property on non-materialSkin components will have effect only while designing, when in run-time, the lib overrides the backcolor on all components. to stop this behavior, set the following on the form constructor: materialSkinManager.EnforceBackcolorOnAllComponents = false;
this has to be called before the materialSkinManager.AddFormToManage(this);