From 4e88b2e1fb1a228bb0b8158613ad69066c9e638a Mon Sep 17 00:00:00 2001 From: antonsimakov Date: Tue, 10 Dec 2024 14:16:14 +0000 Subject: [PATCH] fix: use proper system toke for switch point color Signed-off-by: antonsimakov --- .../src/main/ets/pages/components/TogglePage.ets | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/samples/demo/entry/src/main/ets/pages/components/TogglePage.ets b/samples/demo/entry/src/main/ets/pages/components/TogglePage.ets index 98ea98f..39f2de5 100644 --- a/samples/demo/entry/src/main/ets/pages/components/TogglePage.ets +++ b/samples/demo/entry/src/main/ets/pages/components/TogglePage.ets @@ -18,19 +18,19 @@ import { ThemeMgmtPanel } from '../../components/ThemeMgmtPanel' import { switchColorMode, toString } from './Utils' /* - * compBackgroundEmphasize CheckBox, Switch background color when turned on. - * compBackgroundSecondary CheckBox, Switch background color when turned off. - * compEmphasizeSecondary Button background color when turned on. - * compBackgroundTertiary Button background color when turned off. - * compBackgroundPrimary Switch point color. - * fontPrimary Button text font color. + * compBackgroundEmphasize CheckBox, Switch background color when turned on. + * compBackgroundSecondary CheckBox, Switch background color when turned off. + * compEmphasizeSecondary Button background color when turned on. + * compBackgroundTertiary Button background color when turned off. + * compBackgroundPrimaryContrary Switch point color. + * fontPrimary Button text font color. */ class TogglePageGreenColors implements CustomColors { compBackgroundEmphasize = $r('app.color.toggleCompBackgroundEmphasizeGreen') compEmphasizeSecondary = $r('app.color.toggleCompEmphasizeSecondaryGreen') compBackgroundTertiary = $r('app.color.toggleCompBackgroundTertiaryGreen') - compBackgroundPrimary = $r('app.color.toggleCompBackgroundPrimaryGreen') + compBackgroundPrimaryContrary = $r('app.color.toggleCompBackgroundPrimaryGreen') compBackgroundSecondary = $r('app.color.toggleCompBackgroundSecondaryGreen') fontPrimary = $r('app.color.toggleFontPrimaryGreen') iconOnPrimary = $r('app.color.checkboxIconOnPrimary2') @@ -41,7 +41,7 @@ class TogglePageRedColors implements CustomColors { compBackgroundEmphasize = $r('app.color.toggleCompBackgroundEmphasizeRed') compEmphasizeSecondary = $r('app.color.toggleCompEmphasizeSecondaryRed') compBackgroundTertiary = $r('app.color.toggleCompBackgroundTertiaryRed') - compBackgroundPrimary = $r('app.color.toggleCompBackgroundPrimaryRed') + compBackgroundPrimaryContrary = $r('app.color.toggleCompBackgroundPrimaryRed') compBackgroundSecondary = $r('app.color.toggleCompBackgroundSecondaryRed') fontPrimary = $r('app.color.toggleFontPrimaryRed') iconOnPrimary = $r('app.color.checkboxIconOnPrimary1') -- Gitee