[smuxi: 3/6] Frontend-SWF: Use system colours
- From: Mirco M. M. Bauer <mmmbauer src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [smuxi: 3/6] Frontend-SWF: Use system colours
- Date: Thu, 22 May 2014 17:16:25 +0000 (UTC)
commit e53593d1965efd8a5bf312c3dba9408141c06302
Author: Calvin B <calvin imaginarycode com>
Date: Sat Sep 28 15:00:17 2013 -0300
Frontend-SWF: Use system colours
src/Frontend-SWF/Chats/ChatView.cs | 10 ++++++----
1 files changed, 6 insertions(+), 4 deletions(-)
---
diff --git a/src/Frontend-SWF/Chats/ChatView.cs b/src/Frontend-SWF/Chats/ChatView.cs
index 1c5ab26..73884cd 100644
--- a/src/Frontend-SWF/Chats/ChatView.cs
+++ b/src/Frontend-SWF/Chats/ChatView.cs
@@ -207,8 +207,9 @@ namespace Smuxi.Frontend.Swf
#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"];
@@ -223,8 +224,9 @@ namespace Smuxi.Frontend.Swf
#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"];
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]