mirror of
https://github.com/spalencsar/bearhub.git
synced 2026-07-08 13:14:17 +02:00
colored history lines to indicate the version state
This commit is contained in:
@@ -37,8 +37,10 @@ class HistoryDialog(QDialog):
|
||||
item.setFlags(Qt.ItemIsSelectable | Qt.ItemIsEnabled)
|
||||
|
||||
if current_app_commit:
|
||||
item.setBackground(Qt.darkYellow)
|
||||
item.setToolTip(locale_keys['popup.history.selected.tooltip'])
|
||||
item.setBackground(Qt.yellow if row != 0 else Qt.green)
|
||||
tip = '{}. {}.'.format(locale_keys['popup.history.selected.tooltip'], locale_keys['version.{}'.format('updated'if row == 0 else 'outdated')].capitalize())
|
||||
|
||||
item.setToolTip(tip)
|
||||
|
||||
table_history.setItem(row, col, item)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user