# HG changeset patch # User Goffi # Date 1278584984 -28800 # Node ID 34766e0cf970e8cecc8b28470158415a5ba9a765 # Parent 29998cd0ed8d6c5f5a3ccd632e214909e676b1f0 wix: chat: date is now printed in grey diff -r 29998cd0ed8d -r 34766e0cf970 frontends/wix/chat.py --- a/frontends/wix/chat.py Thu Jul 08 18:26:30 2010 +0800 +++ b/frontends/wix/chat.py Thu Jul 08 18:29:44 2010 +0800 @@ -215,7 +215,7 @@ _font_bold = wx.Font(self.font["points"], self.font["family"], wx.NORMAL, wx.BOLD) _font_normal = wx.Font(self.font["points"], self.font["family"], wx.NORMAL, wx.NORMAL) _font_italic = wx.Font(self.font["points"], self.font["family"], wx.ITALIC if mymess else wx.NORMAL, wx.NORMAL) - self.chatWindow.SetDefaultStyle(wx.TextAttr("BLACK", font=_font_normal)) + self.chatWindow.SetDefaultStyle(wx.TextAttr("GREY", font=_font_normal)) msg_time = time.localtime(timestamp or None) time_format = "%c" if msg_time < self.day_change else "%H:%M" #if the message was sent before today, we print the full date self.chatWindow.AppendText("[%s]" % time.strftime(time_format, msg_time ))