From 0d7999ccf14e4016c4ae9f6a3cb610ab541257b5 Mon Sep 17 00:00:00 2001 From: zyronon Date: Tue, 31 Oct 2023 11:53:01 +0800 Subject: [PATCH] debug --- src/assets/css/style.scss | 2 ++ src/components/ListItem.vue | 4 ++-- src/components/Practice/Options.vue | 6 +++++- .../Practice/PracticeArticle/TypingArticle.vue | 1 + .../Practice/PracticeWord/PracticeWord.vue | 11 ++++++++++- .../Practice/PracticeWord/Typing.vue | 2 +- .../Practice/PracticeWord/TypingWord.vue | 3 ++- src/components/VolumeIcon.vue | 6 +++++- src/components/WordList.vue | 1 + src/stores/base.ts | 18 +++++++++--------- 10 files changed, 38 insertions(+), 16 deletions(-) diff --git a/src/assets/css/style.scss b/src/assets/css/style.scss index 57e43bd6..c9d40cf3 100644 --- a/src/assets/css/style.scss +++ b/src/assets/css/style.scss @@ -29,6 +29,8 @@ html[data-theme='dark'] { //--color-tooltip-bg: rgb(60, 63, 65); --color-tooltip-bg: #252525; --color-font-1: white; + + --color-item-bg: gray; } $anim-time: 0.3s; diff --git a/src/components/ListItem.vue b/src/components/ListItem.vue index 5a3f3d58..85e35786 100644 --- a/src/components/ListItem.vue +++ b/src/components/ListItem.vue @@ -38,8 +38,8 @@ defineEmits<{ .list-item { width: 100%; box-sizing: border-box; - background: white; - color: black; + background: var(--color-item-bg); + color: var(--color-font-1); font-size: 18rem; border-radius: 8rem; display: flex; diff --git a/src/components/Practice/Options.vue b/src/components/Practice/Options.vue index a65dc7cb..e79f9d27 100644 --- a/src/components/Practice/Options.vue +++ b/src/components/Practice/Options.vue @@ -4,6 +4,10 @@ import Tooltip from "@/components/Tooltip.vue"; import IconWrapper from "@/components/IconWrapper.vue"; import {Icon} from "@iconify/vue"; +defineProps<{ + showEdit?: boolean +}>() + const emit = defineEmits<{ remove: [], collect: [], @@ -14,7 +18,7 @@ const emit = defineEmits<{