changeset 0ddb2009e42a in tryton:default
details: https://hg.tryton.org/tryton?cmd=changeset;node=0ddb2009e42a
description:
Update Tryton banner
We use svg as it is smaller.
issue8382
review275451002
diffstat:
tryton/data/pixmaps/tryton/tryton.png | Bin
tryton/data/pixmaps/tryton/tryton.svg | 4 ++++
tryton/gui/window/about.py | 2 +-
tryton/gui/window/dblogin.py | 2 +-
4 files changed, 6 insertions(+), 2 deletions(-)
diffs (34 lines):
diff -r e80b6d2f01c5 -r 0ddb2009e42a tryton/data/pixmaps/tryton/tryton.png
Binary file tryton/data/pixmaps/tryton/tryton.png has changed
diff -r e80b6d2f01c5 -r 0ddb2009e42a tryton/data/pixmaps/tryton/tryton.svg
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/tryton/data/pixmaps/tryton/tryton.svg Wed Jun 12 19:13:23 2019 +0200
@@ -0,0 +1,4 @@
+<svg xmlns="http://www.w3.org/2000/svg" width="500" height="200">
+ <rect width="100%" height="100%"/>
+ <path d="M60
46.014v21.803h19.682v64.926h19.442V67.817h19.682V46.014zm80.648 19.762c-5.44
0-9.4 1.32-11.88 3.96-2.481 2.641-3.721 6.562-3.721
11.802v51.245h19.682V88.98c0-2.28 1.12-3.44 3.4-3.44h14.482V65.775zm79.609
0l-13.562 40.045-13.561-40.045h-21.162l24.442 62.767-9.96
25.443h21.162l33.923-88.21zm66.367 18.722V66.456h-15.402V47.174H251.66v70.848c0
9.84 5.4 14.721 16.162 14.721h18.682v-19.722h-12.321c-1.96
0-2.96-1.28-2.96-3.88V84.498zm60.646-18.722h-29.163c-10.36 0-15.521
5.241-15.521 15.762v36.044c0 10.12 5.28 15.161 15.841 15.161h29.043c10.081 0
15.122-5.2 15.122-15.641V81.618c.04-10.561-5.08-15.842-15.322-15.842zm7.801
31.644c-2.96.8-5.4 5.6-6.92 8.48-1.56 2.88-4.401 9.602-8.602 11.242-4.16
1.64-10.68-.52-13.881-1.76-3.2-1.2-9.601-1.88-14.242-4.08-4.6-2.201-1.52-6.842
1.12-5.281 2.64 1.56 2.2 3.52 6.401 4.08 4.2.56 5.28-.44
5.52-2.2.24-1.76-.12-5.28-1.12-7.16-1-1.881-5.08-11.482-6.72-14.242-1.64-2.76-5.6-8.041-2.08-8.921
3.56-.88 4.84 3.2 4.76 5.84-.12 2.64 2.32 6.641 4.52 10.801a12.321 12.321 0 0
0 6.041 5.601c2.44.68 2.76-1.64 3.2-2.52.44-.88
2.001-11.121.56-15.762-1.44-4.64 1.2-6.6 3.761-4.64 2.56 1.96 2.32 4.84 1.12
5.52-1.2.68-1 9.041-1 9.041s-.68 10.361 2.4 11.801c3.08 1.44 9.041-4.76
11.002-8.72 2-3.961 3.08-2.32 3.96-2.32.88.04 3.2 4.44.2
5.2zm69.527-31.644h-28.603c-10.36 0-15.521 5.241-15.521
15.762v51.245h19.562V89.1c0-2.28 1.16-3.44 3.4-3.44h13.802c2.28 0 3.4 1.16 3.4
3.44v43.684H440V81.658c-.04-10.601-5.16-15.882-15.402-15.882z" fill="#fff"/>
+</svg>
diff -r e80b6d2f01c5 -r 0ddb2009e42a tryton/gui/window/about.py
--- a/tryton/gui/window/about.py Wed Jun 12 19:10:19 2019 +0200
+++ b/tryton/gui/window/about.py Wed Jun 12 19:13:23 2019 +0200
@@ -42,7 +42,7 @@
self.win.set_authors(AUTHORS)
self.win.set_translator_credits(_('translator-credits'))
self.win.set_logo(GdkPixbuf.Pixbuf.new_from_file(
- os.path.join(PIXMAPS_DIR, 'tryton.png')))
+ os.path.join(PIXMAPS_DIR, 'tryton.svg')))
self.win.run()
parent.present()
self.win.destroy()
diff -r e80b6d2f01c5 -r 0ddb2009e42a tryton/gui/window/dblogin.py
--- a/tryton/gui/window/dblogin.py Wed Jun 12 19:10:19 2019 +0200
+++ b/tryton/gui/window/dblogin.py Wed Jun 12 19:13:23 2019 +0200
@@ -413,7 +413,7 @@
alignment, expand=True, fill=True, padding=0)
image = Gtk.Image()
- image.set_from_file(os.path.join(PIXMAPS_DIR, 'tryton.png'))
+ image.set_from_file(os.path.join(PIXMAPS_DIR, 'tryton.svg'))
image.set_valign(Gtk.Align.START)
overlay = Gtk.Overlay()
overlay.add(image)