mirror of
https://github.com/spalencsar/bearhub.git
synced 2026-07-07 02:24:16 +02:00
colored history lines to indicate the version state
This commit is contained in:
@@ -67,4 +67,6 @@ about.info.link=More information at
|
||||
about.info.license=Free license
|
||||
about.info.rate=If this tool is useful for you, give it a star on Github to keep it up
|
||||
yes=yes
|
||||
no=no
|
||||
no=no
|
||||
version.updated=updated
|
||||
version.outdated=outdated
|
||||
@@ -67,4 +67,6 @@ about.info.link=Mas informaciones en
|
||||
about.info.license=Licencia gratuita
|
||||
about.info.rate=Si esta herramienta es útil para ti, dale una estrella en Github para mantenerla
|
||||
yes=sí
|
||||
no=no
|
||||
no=no
|
||||
version.updated=actualizada
|
||||
version.outdated=desactualizada
|
||||
@@ -67,4 +67,6 @@ about.info.link=Mais informações em
|
||||
about.info.license=Licença gratuita
|
||||
about.info.rate=Se essa ferramenta é útil para você, dê uma estrela no Github para mantê-la de pé
|
||||
yes=sim
|
||||
no=não
|
||||
no=não
|
||||
version.updated=atualizada
|
||||
version.outdated=desatualizada
|
||||
@@ -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