mirror of
https://github.com/spalencsar/bearhub.git
synced 2026-07-09 00:34: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.license=Free license
|
||||||
about.info.rate=If this tool is useful for you, give it a star on Github to keep it up
|
about.info.rate=If this tool is useful for you, give it a star on Github to keep it up
|
||||||
yes=yes
|
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.license=Licencia gratuita
|
||||||
about.info.rate=Si esta herramienta es útil para ti, dale una estrella en Github para mantenerla
|
about.info.rate=Si esta herramienta es útil para ti, dale una estrella en Github para mantenerla
|
||||||
yes=sí
|
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.license=Licença gratuita
|
||||||
about.info.rate=Se essa ferramenta é útil para você, dê uma estrela no Github para mantê-la de pé
|
about.info.rate=Se essa ferramenta é útil para você, dê uma estrela no Github para mantê-la de pé
|
||||||
yes=sim
|
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)
|
item.setFlags(Qt.ItemIsSelectable | Qt.ItemIsEnabled)
|
||||||
|
|
||||||
if current_app_commit:
|
if current_app_commit:
|
||||||
item.setBackground(Qt.darkYellow)
|
item.setBackground(Qt.yellow if row != 0 else Qt.green)
|
||||||
item.setToolTip(locale_keys['popup.history.selected.tooltip'])
|
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)
|
table_history.setItem(row, col, item)
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user