2603.11 added dark/light mode
This commit is contained in:
@@ -34,6 +34,7 @@ $update_available = $upstream_version && is_newer_version($upstream_version, APP
|
||||
<style>
|
||||
<?php include __DIR__ . '/includes/style.php'; ?>
|
||||
</style>
|
||||
<script>document.documentElement.setAttribute('data-theme',localStorage.getItem('theme')||'dark')</script>
|
||||
</head>
|
||||
<body>
|
||||
<header>
|
||||
@@ -45,6 +46,7 @@ $update_available = $upstream_version && is_newer_version($upstream_version, APP
|
||||
<?php if (auth_enabled()): ?>
|
||||
<a href="logout.php" style="color:var(--muted)">Sign out</a>
|
||||
<?php endif; ?>
|
||||
<?php include __DIR__ . '/includes/theme_toggle.php'; ?>
|
||||
</nav>
|
||||
</header>
|
||||
<main>
|
||||
|
||||
Reference in New Issue
Block a user