From 0e864cf7bffb0ed7ce07cd8cbcf874d12484558b Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Daniel=20Br=C3=B6tzmann?= <mailtrash@posteo.de>
Date: Tue, 17 Mar 2020 13:18:44 +0100
Subject: [PATCH] Tooltips: Remove tooltip_idle_color

---
 gajim/common/config.py | 1 -
 gajim/gtk/tooltips.py  | 5 +----
 2 files changed, 1 insertion(+), 5 deletions(-)

diff --git a/gajim/common/config.py b/gajim/common/config.py
index 92c9a96c88..d5d4348cd6 100644
--- a/gajim/common/config.py
+++ b/gajim/common/config.py
@@ -175,7 +175,6 @@ class Config:
         'tabs_border': [opt_bool, False, _('Show tabbed notebook border in chat windows?')],
         'tabs_close_button': [opt_bool, True, _('Show close button in tab?')],
         'tooltip_account_name_color': [opt_color, '#888A85'],
-        'tooltip_idle_color': [opt_color, '#888A85'],
         'notification_preview_message': [opt_bool, True, _('Preview new messages in notification popup?')],
         'notification_position_x': [opt_int, -1],
         'notification_position_y': [opt_int, -1],
diff --git a/gajim/gtk/tooltips.py b/gajim/gtk/tooltips.py
index 8fcd58de7d..5c828a6354 100644
--- a/gajim/gtk/tooltips.py
+++ b/gajim/gtk/tooltips.py
@@ -465,7 +465,6 @@ def _append_pep_info(self, contact):
 
     def _set_idle_time(self, contact):
         if contact.idle_time:
-            idle_color = app.config.get('tooltip_idle_color')
             idle_time = contact.idle_time
             idle_time = time.localtime(contact.idle_time)
             idle_time = datetime(*(idle_time[:6]))
@@ -474,9 +473,7 @@ def _set_idle_time(self, contact):
                 formatted = idle_time.strftime('%X')
             else:
                 formatted = idle_time.strftime('%c')
-            idle_markup = '<span foreground="{}">{}</span>'.format(
-                idle_color, formatted)
-            self._ui.idle_since.set_markup(idle_markup)
+            self._ui.idle_since.set_text(formatted)
             self._ui.idle_since.show()
             self._ui.idle_since_label.show()
 
-- 
GitLab