feat: apply colour theme to embed player

closes #201
This commit is contained in:
Jonas S 2022-05-31 17:15:52 +00:00 committed by Yassine Doghri
parent 0d9800123b
commit 9548337a7c
1 changed files with 2 additions and 1 deletions

View File

@ -19,7 +19,8 @@
->asset('js/embed.ts', 'js') ?>
</head>
<body class="flex" style="background: <?= $themeData['background'] ?>; color: <?= $themeData['text'] ?>;">
<body class="flex theme-<?= service('settings')
->get('App.theme') ?>" style="background: <?= $themeData['background'] ?>; color: <?= $themeData['text'] ?>;">
<img src="<?= $episode->cover->thumbnail_url ?>" alt="<?= esc($episode->title) ?>" class="flex-shrink w-28 h-28 aspect-square" loading="lazy" />
<div class="flex flex-col items-start flex-1 min-w-0 px-4 pt-4 h-28">
<a href="https://castopod.org/" class="absolute top-0 right-0 mt-1 mr-2 text-2xl text-pine-500 hover:opacity-75" title="<?= lang('Common.powered_by', [