From a6493a41da9a5294c3d721a02dee3d7488824e90 Mon Sep 17 00:00:00 2001 From: "xiaoqi.cxq" Date: Thu, 8 Sep 2022 00:12:47 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E5=A4=8D=E6=9A=97=E8=89=B2=E4=B8=BB?= =?UTF-8?q?=E9=A2=98=E4=B8=8Bfind=E9=AB=98=E4=BA=AE=E6=97=B6=E5=85=89?= =?UTF-8?q?=E6=A0=87=E7=9C=8B=E4=B8=8D=E6=B8=85=E7=9A=84=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/components/FindReplace.vue | 4 ++++ src/styles/variables.scss | 1 + 2 files changed, 5 insertions(+) diff --git a/src/components/FindReplace.vue b/src/components/FindReplace.vue index 608af36c..cb5dba35 100644 --- a/src/components/FindReplace.vue +++ b/src/components/FindReplace.vue @@ -383,6 +383,10 @@ export default { .find-replace-highlighting { background-color: $highlighting-color; color: $editor-color-light !important; + + .app--dark & { + background-color: $dark-highlighting-color; + } } .find-replace-selection { diff --git a/src/styles/variables.scss b/src/styles/variables.scss index 6f440bc5..ed909961 100644 --- a/src/styles/variables.scss +++ b/src/styles/variables.scss @@ -8,6 +8,7 @@ $line-height-base: 1.67; $line-height-title: 1.33; $font-size-monospace: 0.85em; $highlighting-color: #ff0; +$dark-highlighting-color: rgba(255, 255, 0, 0.6); $selection-highlighting-color: #ffb067; $info-bg: #ffad3326; $code-border-radius: 3px;