diff options
author | Daniel Brötzmann <mailtrash@posteo.de> | 2019-03-22 19:45:40 +0300 |
---|---|---|
committer | Philipp Hörist <philipp@hoerist.com> | 2019-03-26 01:24:33 +0300 |
commit | 838b04d6b607bd681b628e2a66e54dca577e39ec (patch) | |
tree | ad4d805524eb5e697c01d2ce5e7a10aae17ed3a9 | |
parent | 64bda9cf79f7e246e628be1455df203861ea219c (diff) |
Improve dark theme colors
-rw-r--r-- | gajim/data/style/default-dark.css | 8 | ||||
-rw-r--r-- | gajim/gtk/history.py | 8 |
2 files changed, 10 insertions, 6 deletions
diff --git a/gajim/data/style/default-dark.css b/gajim/data/style/default-dark.css index dabf5dc1c..01e6f2d56 100644 --- a/gajim/data/style/default-dark.css +++ b/gajim/data/style/default-dark.css @@ -1,11 +1,11 @@ .gajim-incoming-nickname { - color: rgb(164, 0, 0) + color: rgb(207, 49, 47) } .gajim-outgoing-nickname { - color: rgb(52, 101, 164) + color: rgb(38, 139, 210) } .gajim-url { - color: rgb(117, 80, 123) + color: rgb(53, 132, 228) } .gajim-highlight-message { color: rgb(245, 121, 0) @@ -15,4 +15,4 @@ } .gajim-status-message { color: rgb(115, 210, 22) - }
\ No newline at end of file + } diff --git a/gajim/gtk/history.py b/gajim/gtk/history.py index 46e8fc9f6..153708474 100644 --- a/gajim/gtk/history.py +++ b/gajim/gtk/history.py @@ -33,7 +33,9 @@ from gajim.common import app from gajim.common import helpers from gajim.common import exceptions from gajim.common.i18n import _ -from gajim.common.const import ShowConstant, KindConstant +from gajim.common.const import ShowConstant +from gajim.common.const import KindConstant +from gajim.common.const import StyleAttr from gajim import conversation_textview @@ -79,7 +81,9 @@ class HistoryWindow: account, used_in_history_window=True) scrolledwindow.add(self.history_textview.tv) self.history_buffer = self.history_textview.tv.get_buffer() - self.history_buffer.create_tag('highlight', background='yellow') + highlight_color = app.css_config.get_value( + '.gajim-highlight-message', StyleAttr.COLOR) + self.history_buffer.create_tag('highlight', background=highlight_color) self.history_buffer.create_tag('invisible', invisible=True) self.checkbutton = xml.get_object('log_history_checkbutton') self.show_status_checkbutton = xml.get_object('show_status_checkbutton') |