示例#1
0
 public virtual void ApplyTheme(BaseTheme newTheme)
 {
     BackColor = newTheme.Colors["ToolTipBackground"];
     ForeColor = newTheme.Colors["ToolTipForeground"];
     InitialDelay = newTheme.Units["ToolTipInitialDelay"];
     AutoPopDelay = newTheme.Units["ToolTipPopDelay"];
     ReshowDelay = newTheme.Units["ToolTipReshowDelay"];
 }
示例#2
0
        public static void ApplyTheme(BaseTheme newTheme)
        {
            CurrentTheme = newTheme;

            foreach (IThemedComponent component in ThemedComponents)
                component.ApplyTheme(newTheme);

            OnThemeChanged();
        }
示例#3
0
 public override void ApplyTheme(BaseTheme newTheme)
 {
     BorderWidth = newTheme.Units["ResizeButtonBorderWidth"];
     ForeColor = newTheme.Colors["ResizeButtonForeground"];
     BackColor = newTheme.Colors["ResizeButtonBackground"];
     MouseOverBackColor = newTheme.Colors["ResizeButtonMouseOverBackground"];
     MouseDownBackColor = newTheme.Colors["ResizeButtonMouseDownBackground"];
     MouseOverForeColor = newTheme.Colors["ResizeButtonMouseOverForeground"];
     BorderColor = newTheme.Colors["ResizeButtonBorder"];
     MouseOverBorderColor = newTheme.Colors["ResizeButtonMouseOverBorder"]; ;
 }
 public virtual void ApplyTheme(BaseTheme newTheme)
 {
     BackgroundBrush = newTheme.Brushes["ScrollBarBackground"];
     TrackBrush = newTheme.Brushes["ScrollBarTrack"];
     ThumbBrush = newTheme.Brushes["ScrollBarThumb"];
     ThumbHoverBrush = newTheme.Brushes["ScrollBarThumbHover"];
     ThumbPressedBrush = newTheme.Brushes["ScrollBarThumbPressed"];
     ThumbGripBrush = newTheme.Brushes["ScrollBarThumbGrip"];
     ArrowButtonsBrush = newTheme.Brushes["ScrollBarArrowButtons"];
     ArrowButtonsHoverBrush = newTheme.Brushes["ScrollBarArrowButtonsHover"];
     ArrowButtonsPressedBrush = newTheme.Brushes["ScrollBarArrowButtonsPressed"];
     BorderPen = newTheme.Pens["ScrollBarBorder"];
 }
示例#5
0
 public virtual void ApplyTheme(BaseTheme newTheme)
 {
     ForeColor = newTheme.Colors["LabelForeground"];
 }
示例#6
0
 public virtual void ApplyTheme(BaseTheme newTheme)
 {
     BorderWidth = newTheme.Units["ProgressBarBorderWidth"];
     BackColor = newTheme.Colors["ProgressBarBorder"];
     InnerPanel.BackColor = newTheme.Colors["ProgressBarBackground"];
 }
 public virtual void ApplyTheme(BaseTheme newTheme)
 {
     ForeColor = newTheme.Colors["LabelForeground"];
 }
示例#8
0
 public virtual void ApplyTheme(BaseTheme newTheme)
 {
     BorderWidth = newTheme.Units["PanelBorderWidth"];
     BorderColor = newTheme.Colors["PanelBorder"];
 }
示例#9
0
 public virtual void ApplyTheme(BaseTheme newTheme)
 {
     BorderWidth = newTheme.Units["ButtonBorderWidth"];
     ForeColor = newTheme.Colors["ButtonForeground"];
     BackColor = newTheme.Colors["ButtonBackground"];
     MouseOverBackColor = newTheme.Colors["ButtonMouseOverBackground"];
     MouseDownBackColor = newTheme.Colors["ButtonMouseDownBackground"];
     MouseOverForeColor = newTheme.Colors["ButtonMouseOverForeground"];
     BorderColor = newTheme.Colors["ButtonBorder"];
     MouseOverBorderColor = newTheme.Colors["ButtonMouseOverBorder"];
 }
示例#10
0
 public virtual void ApplyTheme(BaseTheme newTheme)
 {
     BorderWidth          = newTheme.Units["ProgressBarBorderWidth"];
     BackColor            = newTheme.Colors["ProgressBarBorder"];
     InnerPanel.BackColor = newTheme.Colors["ProgressBarBackground"];
 }
示例#11
0
 public virtual void ApplyTheme(BaseTheme newTheme)
 {
     ActiveLinkColor = newTheme.Colors["LinkLabelActiveLink"];
     LinkColor = newTheme.Colors["LinkLabelLink"];
     VisitedLinkColor = newTheme.Colors["LinkLabelVisitedLink"];
 }
示例#12
0
 public virtual void ApplyTheme(BaseTheme newTheme)
 {
     BackColor = newTheme.Colors["UserControlBackground"];
 }
 public virtual void ApplyTheme(BaseTheme newTheme)
 {
     BorderWidth = newTheme.Units["PanelBorderWidth"];
     BorderColor = newTheme.Colors["PanelBorder"];
 }
 static ThemeManager()
 {
     CurrentTheme     = new JaffasTheme();
     ThemedComponents = new List <IThemedComponent>();
 }
 public virtual void ApplyTheme(BaseTheme newTheme)
 {
     BackColor = newTheme.Colors["UserControlBackground"];
 }
示例#16
0
 public virtual void ApplyTheme(BaseTheme newTheme)
 {
     BorderColor = newTheme.Colors["TextBoxBorder"];
     BackColor = newTheme.Colors["TextBoxBackground"];
     InnerTextBox.ForeColor = newTheme.Colors["TextBoxForeground"];
 }
 public virtual void ApplyTheme(BaseTheme newTheme)
 {
     BorderColor            = newTheme.Colors["TextBoxBorder"];
     BackColor              = newTheme.Colors["TextBoxBackground"];
     InnerTextBox.ForeColor = newTheme.Colors["TextBoxForeground"];
 }
 public virtual void ApplyTheme(BaseTheme newTheme)
 {
     BorderWidth = newTheme.Units["ProgressBarBorderWidth"];
     BorderColor = newTheme.Colors["ProgressBarBorder"];
     BackColor = newTheme.Colors["ProgressBarSegment"];
 }
示例#19
0
        public override void ApplyTheme(BaseTheme newTheme)
        {
            base.ApplyTheme(newTheme);

            BottomBorder.BackColor = newTheme.Colors["ListItemBorderColor"]; ;
        }
示例#20
0
 public virtual void ApplyTheme(BaseTheme newTheme)
 {
     ActiveLinkColor  = newTheme.Colors["LinkLabelActiveLink"];
     LinkColor        = newTheme.Colors["LinkLabelLink"];
     VisitedLinkColor = newTheme.Colors["LinkLabelVisitedLink"];
 }
示例#21
0
 public virtual void ApplyTheme(BaseTheme newTheme)
 {
     BorderWidth = newTheme.Units["ProgressBarBorderWidth"];
     BorderColor = newTheme.Colors["ProgressBarBorder"];
     BackColor   = newTheme.Colors["ProgressBarSegment"];
 }