Skip to content

Commit

Permalink
Frontend-SWF: Use system colours
Browse files Browse the repository at this point in the history
  • Loading branch information
NattyNarwhal committed May 21, 2014
1 parent 6510173 commit e53593d
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions src/Frontend-SWF/Chats/ChatView.cs
Original file line number Diff line number Diff line change
Expand Up @@ -207,8 +207,9 @@ public virtual void ApplyConfig(UserConfig config)
#endif
}
} else {
_BackgroundColor = null;
_OutputTextView.BackColor = Color.Empty;
// Instead of a null colour, get the system colour "Window"
_BackgroundColor = SystemColors.Window;
_OutputTextView.BackColor = SystemColors.Window;
}

string fgStr = (string) config["Interface/Chat/ForegroundColor"];
Expand All @@ -223,8 +224,9 @@ public virtual void ApplyConfig(UserConfig config)
#endif
}
} else {
_ForegroundColor = null;
_OutputTextView.ForeColor = Color.Empty;
// Same for the text.
_ForegroundColor = SystemColors.WindowText;
_OutputTextView.ForeColor = SystemColors.WindowText;
}

string fontFamily = (string) config["Interface/Chat/FontFamily"];
Expand Down

0 comments on commit e53593d

Please sign in to comment.