Commit 0e864cf7 authored by Daniel Brötzmann's avatar Daniel Brötzmann

Tooltips: Remove tooltip_idle_color

parent 3ba1b532
......@@ -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],
......
......@@ -465,7 +465,6 @@ class RosterTooltip(StatusTable):
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 @@ class RosterTooltip(StatusTable):
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()
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment