diff options
author | mathieui <mathieui@mathieui.net> | 2015-04-13 17:32:35 +0200 |
---|---|---|
committer | mathieui <mathieui@mathieui.net> | 2015-04-13 17:35:40 +0200 |
commit | 91fde24388c97d5f74b1b68d5ada7f69725ab964 (patch) | |
tree | 340a64563b9ce98f26d26e817200da325e2f146f /src/theming.py | |
parent | 1c9257b4a28e88c7f575e70939367fc9175ad53c (diff) | |
download | poezio-91fde24388c97d5f74b1b68d5ada7f69725ab964.tar.gz poezio-91fde24388c97d5f74b1b68d5ada7f69725ab964.tar.bz2 poezio-91fde24388c97d5f74b1b68d5ada7f69725ab964.tar.xz poezio-91fde24388c97d5f74b1b68d5ada7f69725ab964.zip |
Display error messages inside a conversation
if the error has the same id as a sent message, it will be displayed
with a cross where there is usually a checkmark (ack), and the
received error will be appended to the message, in red.
if it does not have a know id, it will be added as another message to
the conversation, without a nick, and in red.
Diffstat (limited to 'src/theming.py')
-rwxr-xr-x | src/theming.py | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/theming.py b/src/theming.py index 81bc8820..ae71e48f 100755 --- a/src/theming.py +++ b/src/theming.py @@ -310,6 +310,7 @@ class Theme(object): CHAR_ERROR = '✖' CHAR_EMPTY = ' ' CHAR_ACK_RECEIVED = CHAR_OK + CHAR_NACK = CHAR_ERROR CHAR_COLUMN_ASC = ' ▲' CHAR_COLUMN_DESC = ' ▼' CHAR_ROSTER_ERROR = CHAR_ERROR @@ -324,6 +325,7 @@ class Theme(object): CHAR_ROSTER_NONE = '⇹' COLOR_CHAR_ACK = (2, -1) + COLOR_CHAR_NACK = (1, -1) COLOR_ROSTER_GAMING = (6, -1) COLOR_ROSTER_MOOD = (2, -1) |