private void slider_MouseLeave(object sender, EventArgs e) { ColorSlider.ColorSlider slider = (ColorSlider.ColorSlider)sender; slider.ElapsedInnerColor = ThemeHelper.PrimaryTextColor; slider.ElapsedPenColorBottom = ThemeHelper.PrimaryTextColor; slider.ElapsedPenColorTop = ThemeHelper.PrimaryTextColor; slider.ThumbInnerColor = Color.Transparent; slider.ThumbOuterColor = Color.Transparent; slider.ThumbPenColor = Color.Transparent; slider.ThumbSize = new Size(1, 1); slider.ThumbRoundRectSize = new Size(1, 1); slider.ShowDivisionsText = false; }
private void slider_MouseEnter(object sender, EventArgs e) { ColorSlider.ColorSlider slider = (ColorSlider.ColorSlider)sender; slider.ElapsedInnerColor = ThemeHelper.AccentColor; slider.ElapsedPenColorBottom = ThemeHelper.AccentColor; slider.ElapsedPenColorTop = ThemeHelper.AccentColor; slider.ThumbInnerColor = Color.White; slider.ThumbOuterColor = Color.White; slider.ThumbPenColor = Color.White; slider.ThumbSize = new Size(12, 12); slider.ThumbRoundRectSize = new Size(12, 12); slider.ShowDivisionsText = true; }