From 5a81f9b457fb8af08a4dc51fe1cc9796643c93d9 Mon Sep 17 00:00:00 2001 From: guy Date: Thu, 13 Jan 2022 23:33:02 +0800 Subject: [PATCH 1/2] =?UTF-8?q?chore:=20switch=E6=A0=B7=E5=BC=8F=E4=BC=98?= =?UTF-8?q?=E5=8C=96?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/less/base/single/button/switch.less | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/src/less/base/single/button/switch.less b/src/less/base/single/button/switch.less index 21206d89e..f308cfceb 100644 --- a/src/less/base/single/button/switch.less +++ b/src/less/base/single/button/switch.less @@ -18,4 +18,10 @@ & .content-tip { color: @color-bi-font-switch-tip; } -} \ No newline at end of file +} + +.bi-theme-dark { + .bi-switch { + background-color: @color-bi-background-switch-theme-dark; + } +} From 05b941c94bc27d8cc087fd8c930da3e1af664d97 Mon Sep 17 00:00:00 2001 From: guy Date: Thu, 13 Jan 2022 23:53:34 +0800 Subject: [PATCH 2/2] =?UTF-8?q?chore:=20switch=E6=A0=B7=E5=BC=8F=E4=BC=98?= =?UTF-8?q?=E5=8C=96?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/less/base/single/button/switch.less | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/less/base/single/button/switch.less b/src/less/base/single/button/switch.less index f308cfceb..9fbab0e73 100644 --- a/src/less/base/single/button/switch.less +++ b/src/less/base/single/button/switch.less @@ -23,5 +23,8 @@ .bi-theme-dark { .bi-switch { background-color: @color-bi-background-switch-theme-dark; + &.active { + background-color: @color-bi-background-active-switch; + } } }