From b804bb3f8405bcf73cc1a0e628d75188e1723109 Mon Sep 17 00:00:00 2001 From: Justin W. Flory Date: Feb 12 2020 19:38:17 +0000 Subject: Update logo to use final SVG approved by Fedora Design Team Closes #21. This commit integrates the final SVG created by @terezahl in design#606. There were a few cosmetic differences from the previous rendered PNG. --- diff --git a/assets/images/logo.svg b/assets/images/logo.svg new file mode 100644 index 0000000..9af7f1f --- /dev/null +++ b/assets/images/logo.svg @@ -0,0 +1,388 @@ + + + + + + + + + + image/svg+xml + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/happinesspacket_schema_package/happinesspacket_schema/schema.py b/happinesspacket_schema_package/happinesspacket_schema/schema.py index f173793..6d0c3ca 100644 --- a/happinesspacket_schema_package/happinesspacket_schema/schema.py +++ b/happinesspacket_schema_package/happinesspacket_schema/schema.py @@ -29,7 +29,7 @@ class BaseMessage(message.Message): @property def app_icon(self): - return "https://pagure.io/fedora-commops/fedora-happiness-packets/blob/master/f/assets/images/logo.png" + return "https://pagure.io/fedora-commops/fedora-happiness-packets/blob/master/f/assets/images/logo.svg" @property def usernames(self): diff --git a/happinesspackets/tasks.py b/happinesspackets/tasks.py index c899b62..9a324f7 100644 --- a/happinesspackets/tasks.py +++ b/happinesspackets/tasks.py @@ -10,10 +10,10 @@ def send_html_mail(subject, body_txt, body_html, recipient): message.attach_alternative(body_html, 'text/html') message.mixed_subtype = 'related' - logo_file = open(settings.STATIC_ROOT.child('images').child('logo.png'), 'rb') + logo_file = open(settings.STATIC_ROOT.child('images').child('logo.svg'), 'rb') logo_mime = MIMEImage(logo_file.read()) logo_file.close() - logo_mime.add_header('Content-ID', '') + logo_mime.add_header('Content-ID', '') logo_mime.add_header('Content-Disposition', 'attachment') message.attach(logo_mime) diff --git a/happinesspackets/utils/misc.py b/happinesspackets/utils/misc.py index 4c715e4..b764a0b 100644 --- a/happinesspackets/utils/misc.py +++ b/happinesspackets/utils/misc.py @@ -37,10 +37,10 @@ def send_html_mail(subject, body_txt, body_html, recipient): message.attach_alternative(body_html, 'text/html') message.mixed_subtype = 'related' - logo_file = open(settings.STATIC_ROOT.child('images').child('logo.png')) + logo_file = open(settings.STATIC_ROOT.child('images').child('logo.svg')) logo_mime = MIMEImage(logo_file.read()) logo_file.close() - logo_mime.add_header('Content-ID', '') + logo_mime.add_header('Content-ID', '') logo_mime.add_header('Content-Disposition', 'attachment') message.attach(logo_mime) diff --git a/templates/base.html b/templates/base.html index ab55e5b..9cde176 100644 --- a/templates/base.html +++ b/templates/base.html @@ -28,7 +28,7 @@