Changeset 3 for Common/Theme.cs
- Timestamp:
- Feb 21, 2019, 2:13:01 PM (6 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
Common/Theme.cs
r1 r3 12 12 public class Theme 13 13 { 14 public delegate void ApplyThemeHandler(Component component); 15 static public event ApplyThemeHandler OnApplyTheme = null; 14 16 static public Color ColorWindow; 15 17 static public Color ColorWindowText; … … 95 97 (component as LinkLabel).VisitedLinkColor = ColorControlText; 96 98 } else 97 if (component is TabControl) 99 if (component is TabControl) 98 100 { 99 101 foreach (TabPage tabPage in (component as TabControl).TabPages) … … 132 134 (component as DataGridView).ColumnHeadersDefaultCellStyle.BackColor = ColorWindow; 133 135 (component as DataGridView).ColumnHeadersDefaultCellStyle.ForeColor = ColorWindowText; 134 } 136 } else 137 if (component is RichTextBox) 138 { 139 (component as RichTextBox).SelectAll(); 140 (component as RichTextBox).SelectionColor = ColorWindowText; 141 (component as RichTextBox).SelectionLength = 0; 142 } else 143 144 OnApplyTheme(component); 135 145 } 136 146
Note:
See TracChangeset
for help on using the changeset viewer.