Mercurial > libervia-desktop-kivy
diff cagou/core/menu.py @ 302:f55b60659ec1
core (about): improved "about" popup:
- added some style
- backend version and Cagou version are shown
- host.version is now Cagou version, while host.backend_version is the one of the backend
fix 312
author | Goffi <goffi@goffi.org> |
---|---|
date | Fri, 28 Jun 2019 13:02:11 +0200 |
parents | 1b835bcfa663 |
children | 772c170b47a9 |
line wrap: on
line diff
--- a/cagou/core/menu.py Fri Jun 28 12:30:18 2019 +0200 +++ b/cagou/core/menu.py Fri Jun 28 13:02:11 2019 +0200 @@ -20,7 +20,6 @@ from sat.core.i18n import _ from sat.core import log as logging -log = logging.getLogger(__name__) from cagou.core.constants import Const as C from cagou.core.common import JidToggle from kivy.uix.boxlayout import BoxLayout @@ -38,12 +37,20 @@ from functools import partial import webbrowser +log = logging.getLogger(__name__) + ABOUT_TITLE = _(u"About {}".format(C.APP_NAME)) -ABOUT_CONTENT = _(u"""Cagou (Salut à Toi) v{version} +ABOUT_CONTENT = _(u"""[b]Cagou (Salut à Toi)[/b] + +[u]cagou version[/u]: +{version} + +[u]backend version[/u]: +{backend_version} Cagou is a libre communication tool based on libre standard XMPP. -Cagou is part of the "Salut à Toi" project +Cagou is part of the "Salut à Toi" project (desktop/mobile frontend) more informations at [color=5500ff][ref=website]salut-a-toi.org[/ref][/color] """) @@ -164,8 +171,11 @@ def onAbout(self): about = AboutPopup() about.title = ABOUT_TITLE - about.content = AboutContent(text=ABOUT_CONTENT.format(version=G.host.version), - markup=True) + about.content = AboutContent( + text=ABOUT_CONTENT.format( + backend_version = G.host.backend_version, + version=G.host.version), + markup=True) about.open()