Table of Contents

Method SetColorOverride

Namespace
Alternet.Drawing
Assembly
Alternet.UI.Common.dll

SetColorOverride(KnownSvgColor, bool, Color?)

Sets color overrides used instead of default known svg colors. Override is used only for this svg image.

public virtual void SetColorOverride(KnownSvgColor knownColor, bool isDark, Color? value)

Parameters

knownColor KnownSvgColor

Known svg color

isDark bool

Whether override is set for dark or light color theme.

value Color

Override color value.

SetColorOverride(KnownSvgColor, Color?)

Sets an override for the specified SVG color with the provided value.

public virtual void SetColorOverride(KnownSvgColor knownColor, Color? value)

Parameters

knownColor KnownSvgColor

The predefined SVG color to override.

value Color

The new color value to apply as the override. If null, the override is removed.

Remarks

If the value is a LightDarkColor, the method applies the override for both light and dark themes using the specified color. Otherwise, the override is applied separately for light and dark themes with the same color value.

SetColorOverride(KnownSvgColor, LightDarkColor?)

Sets color overrides used instead of default known svg colors. Override is used only for this svg image.

public virtual void SetColorOverride(KnownSvgColor knownColor, LightDarkColor? value)

Parameters

knownColor KnownSvgColor

Known svg color

value LightDarkColor

Override color value.