public IStyleBuilder DesiredCustom(string name, TvColor fore, TvColor back, CharacterAttributeModifiers attributes = CharacterAttributeModifiers.Normal) { _customDefinitions.Add(name, new StyleDefinition() { Foreground = fore, Background = back, Attributes = attributes }); return(this); }
public IStyleBuilder DesiredAlternateFocused(TvColor fore, TvColor back, CharacterAttributeModifiers attributes = CharacterAttributeModifiers.Normal) { _alternateFocused = new StyleDefinition() { Foreground = fore, Background = back, Attributes = attributes }; return(this); }
public CharacterAttribute BuildAttributeFor(TvColor fore, TvColor back, CharacterAttributeModifiers attrs = CharacterAttributeModifiers.Normal) => new CharacterAttribute() { ColorIdx = (int)fore + ((int)back << 3), Modifiers = attrs };
public CharacterAttribute BuildAttributeFor(TvColor fore, TvColor back, CharacterAttributeModifiers attrs = CharacterAttributeModifiers.Normal) { throw new NotImplementedException(); }
public CharacterAttribute(int colorIdx, CharacterAttributeModifiers modifiers = CharacterAttributeModifiers.Normal) { ColorIdx = colorIdx; Modifiers = modifiers; }