Make color theme switch more flexible

This commit is contained in:
2026-05-17 17:33:22 +02:00
parent 170f188435
commit 5d98f27b6b
5 changed files with 109 additions and 55 deletions
+2 -20
View File
@@ -15,12 +15,9 @@ limitations under the License.
-->
<script setup>
import DarkModeToggleButton from '@/features/colorTheme/components/DarkModeToggleButton.vue';
import ColorThemeButton from '@/features/colorTheme/components/ColorThemeButton.vue';
import { inject } from 'vue';
import logo from '@/assets/logo.svg';
const isDark = inject('isDark');
</script>
<template>
<nav class="global-nav">
@@ -29,7 +26,7 @@ const isDark = inject('isDark');
</RouterLink>
<ul class="right-links">
<li>
<DarkModeToggleButton />
<ColorThemeButton />
</li>
</ul>
</nav>
@@ -59,22 +56,7 @@ const isDark = inject('isDark');
.global-nav .right-links a:hover{
text-decoration: underline;
}
.dark-mode-toggle {
background: none;
border: 1.5px solid var(--light-d-3);
border-radius: 50%;
width: 36px;
height: 36px;
cursor: pointer;
font-size: 1rem;
display: flex;
align-items: center;
justify-content: center;
}
.dark-mode-toggle:hover {
background: var(--light-d-2);
}
.nav-logo {
height: 24px;
width: auto;