Skip to content

Commit

Permalink
feat: Watermark text color adapt system dark mode
Browse files Browse the repository at this point in the history
  • Loading branch information
flingyp committed Oct 24, 2023
1 parent 172331e commit 61cc00d
Showing 1 changed file with 10 additions and 1 deletion.
11 changes: 10 additions & 1 deletion src/views/features/Watermark.vue
Original file line number Diff line number Diff line change
@@ -1,10 +1,19 @@
<script setup lang="ts">
import { Watermark } from '@pansy/vue-watermark'
const { contentContainerHeight } = storeToRefs(useVAdmireConfigStore())
const { contentContainerHeight, themeMode } = storeToRefs(useVAdmireConfigStore())
const watermarkOptions = ref({
text: 'VAdmire Admin',
fontColor: '#000',
})
watch(() => themeMode.value, (newVal) => {
if (newVal === 'LIGHT') {
watermarkOptions.value.fontColor = '#000'
} else {
watermarkOptions.value.fontColor = '#fff'
}
})
</script>
Expand Down

0 comments on commit 61cc00d

Please sign in to comment.