1e41f4b71Sopenharmony_ci# ArkUI Subsystem Changelog
2e41f4b71Sopenharmony_ci
3e41f4b71Sopenharmony_ci## cl.arkui.1 uiAppearance API Behavior Change
4e41f4b71Sopenharmony_ci
5e41f4b71Sopenharmony_ciChanged the return mode and return value of the **setDarkMode** and **getDarkMode** APIs.
6e41f4b71Sopenharmony_ci
7e41f4b71Sopenharmony_ci**Change Impact**
8e41f4b71Sopenharmony_ci
9e41f4b71Sopenharmony_ciThe application developed based on earlier versions needs to adapt to new return mode and return value. Otherwise, the original service logic will be affected.
10e41f4b71Sopenharmony_ci
11e41f4b71Sopenharmony_ci**Key API/Component Changes**
12e41f4b71Sopenharmony_ci
13e41f4b71Sopenharmony_ci
14e41f4b71Sopenharmony_ci- In the error thrown when the **setDarkMode** API is called in callback mode, what's contained changes from error code ID only to error code ID and message.
15e41f4b71Sopenharmony_ci- In the error thrown when the **setDarkMode** API is called in promise mode, what's contained changes from error code ID only to error code ID and message.
16e41f4b71Sopenharmony_ci- In the value returned in normal cases when the **setDarkMode** API is called in callback mode, the first parameter changes from **0** to **null**.
17e41f4b71Sopenharmony_ci- In the earlier version, the **getDarkMode** API directly returns **2** when an exception occurs. In this version, the API throws an error. You need to determine the error type based on the error code ID and message.
18e41f4b71Sopenharmony_ci
19e41f4b71Sopenharmony_ci> **NOTE**
20e41f4b71Sopenharmony_ci>
21e41f4b71Sopenharmony_ci> Exceptions refer to unexpected behavior such as incorrect parameters, unconfigured permissions, and internal execution errors. Normal cases refer to expected behavior that do not generate errors.
22e41f4b71Sopenharmony_ci
23e41f4b71Sopenharmony_ci**Adaptation Guide**
24e41f4b71Sopenharmony_ci
25e41f4b71Sopenharmony_ciFor details, see [@ohos.uiAppearance (UI Appearance)](../../../application-dev/reference/apis/js-apis-uiappearance.md).
26