Skip to content

Commit

Permalink
Merge branch 'pr40'
Browse files Browse the repository at this point in the history
# Conflicts:
#	DarkUI/Controls/DarkComboBox.cs
  • Loading branch information
FallenAvatar committed Mar 19, 2021
2 parents 5c6e2ff + b2ddcc3 commit bc1f182
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion DarkUI/Controls/DarkComboBox.cs
Original file line number Diff line number Diff line change
Expand Up @@ -102,6 +102,13 @@ protected override void OnResize(EventArgs e)
Invalidate();
}

protected override void OnEnabledChanged(EventArgs e)
{
base.OnEnabledChanged(e);
_buffer = null;
Invalidate();
}

private void PaintCombobox()
{
if (_buffer == null)
Expand All @@ -111,7 +118,7 @@ private void PaintCombobox()
{
var rect = new Rectangle(0, 0, ClientSize.Width, ClientSize.Height);

var textColor = ThemeProvider.Theme.Colors.LightText;
var textColor = Enabled ? ThemeProvider.Theme.Colors.LightText : ThemeProvider.Theme.Colors.Colors.DisabledText;
var borderColor = ThemeProvider.Theme.Colors.GreySelection;
var fillColor = ThemeProvider.Theme.Colors.LightBackground;

Expand Down

0 comments on commit bc1f182

Please sign in to comment.