From 9548337a7c49879e8b58c2dfece46e3cfc9517eb Mon Sep 17 00:00:00 2001
From: Jonas S <code@violoncello.ch>
Date: Tue, 31 May 2022 17:15:52 +0000
Subject: [PATCH] feat: apply colour theme to embed player

closes #201
---
 themes/cp_app/embed.php | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/themes/cp_app/embed.php b/themes/cp_app/embed.php
index 3dc10c6139..478e0b2c91 100644
--- a/themes/cp_app/embed.php
+++ b/themes/cp_app/embed.php
@@ -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', [
-- 
GitLab