From 41a5fa81b5c12feb8aab0ad82d42c135e93065f7 Mon Sep 17 00:00:00 2001 From: alyx Date: Wed, 22 Nov 2023 19:49:27 -0500 Subject: Add custom font support. --- src/themes/plain.hbs | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) (limited to 'src/themes/plain.hbs') diff --git a/src/themes/plain.hbs b/src/themes/plain.hbs index fe33d28..bbd0589 100644 --- a/src/themes/plain.hbs +++ b/src/themes/plain.hbs @@ -1,5 +1,5 @@ - + {{#if error}}Error!{{else}}@{{user.name}}'s Last.fm Stats{{/if}} @@ -11,6 +11,13 @@ a:visited { color: pink } a { color: cyan; } {{/if}} + * { font-size: {{#if font}}17px{{else}}20px{{/if}}; } + {{#if font.css}} + {{{font.css}}} + {{/if}} + {{#if (or font.name font.css)}} + * { font-family: '{{#if font.name}}{{font.name}}{{/if}}{{#if font.url}}included_font{{/if}}' } + {{/if}} p { margin: 0px; padding: 0px; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; } @@ -18,7 +25,7 @@ {{#if error}}

{{error}}

{{else}} - +

@{{user.name}}{{#if scrobble.now_playing}} is scrobbling{{else}}'s last scrobble was {{/if}} -- cgit v1.2.3-54-g00ecf