Ejemplo n.º 1
0
 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);
 }
Ejemplo n.º 2
0
 public IStyleBuilder DesiredAlternateFocused(TvColor fore, TvColor back,
                                              CharacterAttributeModifiers attributes = CharacterAttributeModifiers.Normal)
 {
     _alternateFocused = new StyleDefinition()
     {
         Foreground = fore,
         Background = back,
         Attributes = attributes
     };
     return(this);
 }
Ejemplo n.º 3
0
 public CharacterAttribute BuildAttributeFor(TvColor fore, TvColor back,
                                             CharacterAttributeModifiers attrs = CharacterAttributeModifiers.Normal) => new CharacterAttribute()
 {
     ColorIdx  = (int)fore + ((int)back << 3),
     Modifiers = attrs
 };
Ejemplo n.º 4
0
 public CharacterAttribute BuildAttributeFor(TvColor fore, TvColor back,
                                             CharacterAttributeModifiers attrs = CharacterAttributeModifiers.Normal)
 {
     throw new NotImplementedException();
 }
Ejemplo n.º 5
0
 public CharacterAttribute(int colorIdx, CharacterAttributeModifiers modifiers = CharacterAttributeModifiers.Normal)
 {
     ColorIdx  = colorIdx;
     Modifiers = modifiers;
 }