From 2856985d7441cbd8edd0b83b308f65ad9c72ad02 Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Mon, 9 Dec 2013 20:56:51 +0300 Subject: Add new theme color for old chat messages. New chat colors: OLDCHAT, OLDCHAT_OUTLINE --- src/gui/theme.cpp | 7 ++++++- src/gui/theme.h | 2 ++ src/gui/widgets/tabs/chattab.cpp | 2 +- 3 files changed, 9 insertions(+), 2 deletions(-) (limited to 'src/gui') diff --git a/src/gui/theme.cpp b/src/gui/theme.cpp index b7510dc9f..fbde968f4 100644 --- a/src/gui/theme.cpp +++ b/src/gui/theme.cpp @@ -198,6 +198,7 @@ Theme::Theme() : mColors[LOGGER].ch = 'L'; mColors[HYPERLINK].ch = '<'; mColors[SELFNICK].ch = 's'; + mColors[OLDCHAT].ch = 'o'; mCharColors['H'] = HIGHLIGHT; mCharColors['C'] = CHAT; mCharColors['G'] = GM; @@ -212,6 +213,7 @@ Theme::Theme() : mCharColors['L'] = LOGGER; mCharColors['<'] = HYPERLINK; mCharColors['s'] = SELFNICK; + mCharColors['o'] = OLDCHAT; // here need use outlined colors mCharColors['H' | 0x80] = HIGHLIGHT_OUTLINE; @@ -228,6 +230,7 @@ Theme::Theme() : mCharColors['L' | 0x80] = LOGGER_OUTLINE; mCharColors['<' | 0x80] = HYPERLINK_OUTLINE; mCharColors['s' | 0x80] = SELFNICK_OUTLINE; + mCharColors['o' | 0x80] = OLDCHAT_OUTLINE; } Theme::~Theme() @@ -970,7 +973,9 @@ static int readColorType(const std::string &type) "STATUS_BAR", "STATUS_BAR_OUTLINE", "JOB_BAR", - "JOB_BAR_OUTLINE" + "JOB_BAR_OUTLINE", + "OLDCHAT", + "OLDCHAT_OUTLINE" }; if (type.empty()) diff --git a/src/gui/theme.h b/src/gui/theme.h index 049e7e04b..8ece0488d 100644 --- a/src/gui/theme.h +++ b/src/gui/theme.h @@ -414,6 +414,8 @@ class Theme final : public Palette, public ConfigListener STATUS_BAR_OUTLINE, JOB_BAR, JOB_BAR_OUTLINE, + OLDCHAT, + OLDCHAT_OUTLINE, THEME_COLORS_END }; diff --git a/src/gui/widgets/tabs/chattab.cpp b/src/gui/widgets/tabs/chattab.cpp index a9e1556d6..5235f8667 100644 --- a/src/gui/widgets/tabs/chattab.cpp +++ b/src/gui/widgets/tabs/chattab.cpp @@ -504,7 +504,7 @@ void ChatTab::loadFromLogFile(const std::string &name) std::list::const_iterator i = list.begin(); while (i != list.end()) { - std::string line("##9" + *i); + std::string line("##o" + *i); addRow(line); ++i; } -- cgit v1.2.3-60-g2f50