what about choosing directly colors with name ;)
This commit is contained in:
parent
140ec80b9b
commit
269c9902e0
|
@ -1042,17 +1042,17 @@ class message_Window:
|
||||||
self.tagIn = buffer.create_tag("incoming")
|
self.tagIn = buffer.create_tag("incoming")
|
||||||
color = self.plugin.config['inmsgcolor']
|
color = self.plugin.config['inmsgcolor']
|
||||||
if not color:
|
if not color:
|
||||||
color = '#ff0000' #red
|
color = 'red'
|
||||||
self.tagIn.set_property("foreground", color)
|
self.tagIn.set_property("foreground", color)
|
||||||
self.tagOut = buffer.create_tag("outgoing")
|
self.tagOut = buffer.create_tag("outgoing")
|
||||||
color = self.plugin.config['outmsgcolor']
|
color = self.plugin.config['outmsgcolor']
|
||||||
if not color:
|
if not color:
|
||||||
color = '#0000ff' #blue
|
color = 'blue'
|
||||||
self.tagOut.set_property("foreground", color)
|
self.tagOut.set_property("foreground", color)
|
||||||
self.tagStatus = buffer.create_tag("status")
|
self.tagStatus = buffer.create_tag("status")
|
||||||
color = self.plugin.config['statusmsgcolor']
|
color = self.plugin.config['statusmsgcolor']
|
||||||
if not color:
|
if not color:
|
||||||
color = '#00ff00' #green
|
color = 'green'
|
||||||
self.tagStatus.set_property("foreground", color)
|
self.tagStatus.set_property("foreground", color)
|
||||||
#print queued messages
|
#print queued messages
|
||||||
if plugin.queues[account].has_key(user.jid):
|
if plugin.queues[account].has_key(user.jid):
|
||||||
|
|
Loading…
Reference in New Issue