Table of Contents

Method TextColor

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

TextColor(bool)

Returns the recommended text color for either dark or light backgrounds.

public static Color TextColor(bool isDark)

Parameters

isDark bool

Indicates whether the background is dark. If true, a color suitable for dark backgrounds is returned; otherwise, a color suitable for light backgrounds is returned.

Returns

Color

A Color value representing the appropriate text color for the specified background type.