Exemple #1
0
 public DynamicEntry(OptionMessage messageExpression, OptionColor colorExpression = null)
 {
     MessageExpression = messageExpression;
     if (colorExpression != null)
     {
         ColorExpression = colorExpression;
     }
 }
Exemple #2
0
        public OptionPageColours()
            : base("Colours")
        {
            iBackground = new OptionColor("background", "Background", "The background colour of the application", Color.FromArgb(0, 0, 0).ToArgb());
            Add(iBackground);

            iHighlight = new OptionColor("highlight", "Highlight", "The colour of highlights in the application", Color.FromArgb(96, 96, 96).ToArgb());
            Add(iHighlight);

            iText = new OptionColor("text", "Text", "The colour of standard text", Color.FromArgb(191, 191, 191).ToArgb());
            Add(iText);

            iTextMuted = new OptionColor("textmuted", "Text muted", "The colour of muted text", Color.FromArgb(110, 110, 110).ToArgb());
            Add(iTextMuted);

            iTextBright = new OptionColor("textbright", "Text bright", "The colour of brightened text", Color.FromArgb(255, 255, 255).ToArgb());
            Add(iTextBright);

            iTextHighlight = new OptionColor("texthighlighted", "Text highlighted", "The colour of highlighted text", Color.FromArgb(255, 255, 255).ToArgb());
            Add(iTextHighlight);
        }
Exemple #3
0
 public DynamicOption(OptionMessage messageExpression, OptionAction action, OptionColor colorExpression = null)
 {
     Entry  = new DynamicEntry <T>(messageExpression, colorExpression);
     Action = action;
 }