From 2c6076c5ee6839ce065c24952a170ec35d640347 Mon Sep 17 00:00:00 2001 From: fofolee Date: Tue, 17 May 2022 00:13:47 +0800 Subject: [PATCH] =?UTF-8?q?=E6=9A=97=E9=BB=91=E6=A8=A1=E5=BC=8F=E8=B0=83?= =?UTF-8?q?=E6=95=B4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/App.vue | 8 ++++++ src/components/CommandCard.vue | 10 +++----- src/components/CommandEditor.vue | 26 ++++++++++---------- src/components/MonacoEditor.vue | 11 ++++----- src/components/quickcommandUI/SelectList.vue | 2 +- src/components/quickcommandUI/TextArea.vue | 3 +-- src/pages/ShareCenterPage.vue | 15 ++++++----- 7 files changed, 39 insertions(+), 36 deletions(-) diff --git a/src/App.vue b/src/App.vue index 255d0c5..6e291e2 100644 --- a/src/App.vue +++ b/src/App.vue @@ -186,6 +186,14 @@ export default defineComponent({ .q-card--dark { background: var(--q-dark-page); } +.container { + color: black; + background: white; +} +.body--dark .container { + color: white; + background: var(--q-dark-page); +} .q-tooltip { font-size: 11px; } diff --git a/src/components/CommandCard.vue b/src/components/CommandCard.vue index d040d41..37eebf8 100644 --- a/src/components/CommandCard.vue +++ b/src/components/CommandCard.vue @@ -103,9 +103,6 @@ @click="handleCardClick" v-ripple :class="{ [`text-${disabledColor}`]: !isCommandActivated }" - :style="{ - background: cardBgColor, - }" > @@ -317,9 +314,6 @@ export default { disabledColor() { return this.$q.dark.isActive ? "grey-6" : "grey-5"; }, - cardBgColor() { - return this.$q.dark.isActive ? "#ffffff08" : "#00000008"; - }, featureCode() { return this.commandInfo.features.code; }, @@ -425,6 +419,10 @@ export default { .q-card { cursor: pointer; user-select: none; + background: #00000008; +} +.q-card--dark { + background: #ffffff08; } .q-badge { font-size: 15px; diff --git a/src/components/CommandEditor.vue b/src/components/CommandEditor.vue index ce5132c..606771e 100644 --- a/src/components/CommandEditor.vue +++ b/src/components/CommandEditor.vue @@ -1,11 +1,5 @@