Skip to content
Snippets Groups Projects
Commit 0e864cf7 authored by Daniel Brötzmann's avatar Daniel Brötzmann
Browse files

Tooltips: Remove tooltip_idle_color

parent 3ba1b532
No related branches found
No related tags found
No related merge requests found
...@@ -175,7 +175,6 @@ class Config: ...@@ -175,7 +175,6 @@ class Config:
'tabs_border': [opt_bool, False, _('Show tabbed notebook border in chat windows?')], 'tabs_border': [opt_bool, False, _('Show tabbed notebook border in chat windows?')],
'tabs_close_button': [opt_bool, True, _('Show close button in tab?')], 'tabs_close_button': [opt_bool, True, _('Show close button in tab?')],
'tooltip_account_name_color': [opt_color, '#888A85'], '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_preview_message': [opt_bool, True, _('Preview new messages in notification popup?')],
'notification_position_x': [opt_int, -1], 'notification_position_x': [opt_int, -1],
'notification_position_y': [opt_int, -1], 'notification_position_y': [opt_int, -1],
......
...@@ -465,7 +465,6 @@ def _append_pep_info(self, contact): ...@@ -465,7 +465,6 @@ def _append_pep_info(self, contact):
def _set_idle_time(self, contact): def _set_idle_time(self, contact):
if contact.idle_time: if contact.idle_time:
idle_color = app.config.get('tooltip_idle_color')
idle_time = contact.idle_time idle_time = contact.idle_time
idle_time = time.localtime(contact.idle_time) idle_time = time.localtime(contact.idle_time)
idle_time = datetime(*(idle_time[:6])) idle_time = datetime(*(idle_time[:6]))
...@@ -474,9 +473,7 @@ def _set_idle_time(self, contact): ...@@ -474,9 +473,7 @@ def _set_idle_time(self, contact):
formatted = idle_time.strftime('%X') formatted = idle_time.strftime('%X')
else: else:
formatted = idle_time.strftime('%c') formatted = idle_time.strftime('%c')
idle_markup = '<span foreground="{}">{}</span>'.format( self._ui.idle_since.set_text(formatted)
idle_color, formatted)
self._ui.idle_since.set_markup(idle_markup)
self._ui.idle_since.show() self._ui.idle_since.show()
self._ui.idle_since_label.show() self._ui.idle_since_label.show()
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment