void PreviewForm_PressedButtonChanged(object sender, EventArgs e) { var tb = (RibbonToggleButton)sender; _themeColor = (ThemeColor)tb.PressedButton.Tag; RibbonStyle.UpdateInstance(_themeColor, ThemeLightness.Colorful); }
static PreviewForm() { RibbonStyle.UpdateInstance(ThemeColor.Teal, ThemeLightness.LightGray); _isWindows10 = CheckWindows10(); _exePath = Application.ExecutablePath; }
static PreviewForm() { RibbonStyle.UpdateInstance(DefaultThemeColor, ThemeLightness.Colorful); var ipStyle = (C1.Win.InputPanel.ThemeColor)((int)DefaultThemeColor); C1.Win.InputPanel.InputStyle.UpdateInstance(ipStyle, C1.Win.InputPanel.ThemeLightness.LightGray); var ov = new OSVERSIONINFO(); ov.dwOSVersionInfoSize = Marshal.SizeOf(typeof(OSVERSIONINFO)); RtlGetVersion(ref ov); _exePath = Application.ExecutablePath; }