From: Jan Szejko Date: Tue, 12 Jun 2018 13:39:19 +0000 (+0200) Subject: add mpw cover class X-Git-Tag: 1.7~21 X-Git-Url: https://git.mdrn.pl/librarian.git/commitdiff_plain/0c0fdd2db2c1277108b03a1acf88ad63d140451a?ds=inline;hp=c220cf2765a0c7bef4094b2628a20f45d99f6068 add mpw cover class --- diff --git a/librarian/cover.py b/librarian/cover.py index 717d5f0..6390f8a 100644 --- a/librarian/cover.py +++ b/librarian/cover.py @@ -554,9 +554,20 @@ class KMLUCover(LogoWLCover): ] +class MPWCover(LogoWLCover): + gradient_logo_height = 58 + gradient_logo_spacing = 25 + gradient_logos = [ + 'res/mpw-logo-white.png', + 'res/wl-logo-white.png', + 'res/fnp-logo-white.png', + ] + + COVER_CLASSES = { 'default': LogoWLCover, 'kmlu': KMLUCover, + 'mpw': MPWCover, } diff --git a/librarian/res/mpv-logo-white.svg b/librarian/res/mpv-logo-white.svg new file mode 100644 index 0000000..826a7b4 --- /dev/null +++ b/librarian/res/mpv-logo-white.svg @@ -0,0 +1,190 @@ + + + +image/svg+xml \ No newline at end of file diff --git a/librarian/res/mpw-logo-white.png b/librarian/res/mpw-logo-white.png new file mode 100644 index 0000000..e6ca31f Binary files /dev/null and b/librarian/res/mpw-logo-white.png differ