2023-02-17 20:16:20 +08:00

34 lines
737 B
Vue

<script lang="ts" setup>
import { useThemeLocaleData } from '../../composables/index.js'
import SwitchAppearance from '../SwitchAppearance.vue'
const theme = useThemeLocaleData()
</script>
<template>
<div v-if="theme.appearance" class="nav-screen-appearance">
<p class="text">Appearance</p>
<SwitchAppearance />
</div>
</template>
<style scoped>
.nav-screen-appearance {
display: flex;
justify-content: space-between;
align-items: center;
border-radius: 8px;
padding: 12px 14px 12px 16px;
background-color: var(--vp-c-bg-soft);
transition: var(--t-color);
transition-property: background-color;
}
.text {
line-height: 24px;
font-size: 12px;
font-weight: 500;
color: var(--vp-c-text-2);
}
</style>