Skip to content

Commit

Permalink
fix: enforce dark theme on bridge (#105)
Browse files Browse the repository at this point in the history
Co-authored-by: Jack Hamer <jackhamer0990@gmail.com>
Co-authored-by: Jack Hamer <47187316+JackHamer09@users.noreply.github.com>
  • Loading branch information
3 people authored Aug 21, 2023
1 parent 073dd41 commit fad0b7c
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions composables/useColorMode.ts
Original file line number Diff line number Diff line change
@@ -1,10 +1,11 @@
import { useColorMode } from "@vueuse/core";

export default () => {
const { store } = useColorMode({
initialValue: "dark",
});
const { store } = useColorMode({
initialValue: "dark",
listenToStorageChanges: false,
});

export default () => {
const selectedColorMode = computed(() => (store.value === "auto" ? "dark" : store.value));

const switchColorMode = (colorMode?: "dark" | "light") => {
Expand Down

0 comments on commit fad0b7c

Please sign in to comment.