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