From f436467245d9121e20a39655f11b68c9e2ef7b60 Mon Sep 17 00:00:00 2001 From: shawn_he Date: Thu, 27 Apr 2023 10:03:25 +0800 Subject: [PATCH] update doc Signed-off-by: shawn_he --- .../web/web-in-page-app-function-invoking.md | 2 +- en/application-dev/web/web-set-dark-mode.md | 10 ++++++++-- 2 files changed, 9 insertions(+), 3 deletions(-) diff --git a/en/application-dev/web/web-in-page-app-function-invoking.md b/en/application-dev/web/web-in-page-app-function-invoking.md index 6ef1ed5fa8..a06af719f8 100644 --- a/en/application-dev/web/web-in-page-app-function-invoking.md +++ b/en/application-dev/web/web-in-page-app-function-invoking.md @@ -92,7 +92,7 @@ The following example registers the **test()** function with the frontend page. > If you use [registerJavaScriptProxy()](../reference/apis/js-apis-webview.md#registerjavascriptproxy) to register a function, call **[refresh()]**(../reference/apis/js-apis-webview.md#refresh) for the function to take effect. -- Sample code for invoking application functions on the **index.htm** frontend page: +- Sample code for invoking application functions on the **index.htm** page: ```html diff --git a/en/application-dev/web/web-set-dark-mode.md b/en/application-dev/web/web-set-dark-mode.md index e8a2381d39..21937caff8 100644 --- a/en/application-dev/web/web-set-dark-mode.md +++ b/en/application-dev/web/web-set-dark-mode.md @@ -4,7 +4,10 @@ The **Web** component allows you to set the dark mode for frontend pages. -- Call [darkMode()](../reference/arkui-ts/ts-basic-components-web.md#darkmode9) to configure an expected dark mode. [WebDarkMode.Off](../reference/arkui-ts/ts-basic-components-web.md#webdarkmode9) indicates that the dark mode is disabled. [WebDarkMode.On](../reference/arkui-ts/ts-basic-components-web.md#webdarkmode9) indicates that the dark mode is enabled and its setting follows the frontend page. [WebDarkMode.Auto](../reference/arkui-ts/ts-basic-components-web.md#webdarkmode9) indicates that the dark mode is enabled and its setting follows the system. +- Call [darkMode()](../reference/arkui-ts/ts-basic-components-web.md#darkmode9) to configure an expected dark mode. + + [WebDarkMode.Off](../reference/arkui-ts/ts-basic-components-web.md#webdarkmode9) indicates that the dark mode is disabled. [WebDarkMode.On](../reference/arkui-ts/ts-basic-components-web.md#webdarkmode9) indicates that the dark mode is enabled and its setting follows the frontend page. [WebDarkMode.Auto](../reference/arkui-ts/ts-basic-components-web.md#webdarkmode9) indicates that the dark mode is enabled and its setting follows the system. + In the following example, the dark mode setting is configured to follow the system by using [darkMode()](../reference/arkui-ts/ts-basic-components-web.md#darkmode9). ```ts @@ -26,7 +29,10 @@ The **Web** component allows you to set the dark mode for frontend pages. ``` -- Call [forceDarkAccess()](../reference/arkui-ts/ts-basic-components-web.md#forcedarkaccess9) to forcibly set the dark mode for the frontend page and configure its setting not to follow the frontend page or system. In this mode, you need to specify **WebDarkMode.On** when calling **darkMode()**. +- Call [forceDarkAccess()](../reference/arkui-ts/ts-basic-components-web.md#forcedarkaccess9) to forcibly set the dark mode for the frontend page and configure the dark mode not to follow the frontend page or system setting. + + In this mode, you need to specify **WebDarkMode.On** when calling **darkMode()**. + In the following example, [forceDarkAccess()](../reference/arkui-ts/ts-basic-components-web.md#forcedarkaccess9) is used to forcibly set the dark mode for the frontend page. ```ts -- GitLab