Adapt theme-color and background-color for different themes

Signed-off-by: Kenneth Chew <kenneth.c0@protonmail.com>
This commit is contained in:
Kenneth Chew
2021-06-19 00:12:11 -04:00
parent 731bb98820
commit 2f3f4e6056
2 changed files with 7 additions and 0 deletions

View File

@@ -181,7 +181,13 @@
<link rel="shortcut icon" href="img/favicons/favicon.ico">
<meta name="msapplication-TileColor" content="#367fa9">
<meta name="msapplication-TileImage" content="img/favicons/mstile-150x150.png">
<?php if ($theme == "default-light") { ?>
<meta name="theme-color" content="#367fa9">
<?php } elseif ($theme == "default-dark") { ?>
<meta name="theme-color" content="#272c30">
<?php } elseif ($theme == "default-darker") { ?>
<meta name="theme-color" content="#2e6786">
<?php } ?>
<?php if ($darkmode) { ?>
<style>