Table of Contents

Method GetThemeForBackground

Namespace
Terminal.Gui.Drawing
Assembly
Terminal.Gui.dll

GetThemeForBackground(Color)

Returns a ThemeName appropriate for the given terminal background color. Returns TextMateSharp.Grammars.ThemeName.DarkPlus for dark backgrounds and TextMateSharp.Grammars.ThemeName.LightPlus for light backgrounds.

public static ThemeName GetThemeForBackground(Color background)

Parameters

background Color

The terminal background color to evaluate.

Returns

ThemeName

A theme appropriate for the background luminance.