1# Globalization Changelog
2
3## cl.global.1 Change of the Default Behavior in Dark Color Mode
4
5**Access Level**
6
7Other
8
9**Reason for Change**
10
11Many applications have not adapted to the dark color mode. To ensure user experience in dark color mode, the system adds a judgment rule as follows: If an application does not have dark color resources and does not call **setColorMode** to specify the color mode, the built-in components of the system do not invert colors.
12
13**Change Impact**
14
15This change is a non-compatible change. If an application does not have dark color resources and does not call **setColorMode** to specify the color mode, the built-in components of the system do not invert colors.
16
17**Start API Level**
18
199
20
21**Change Since**
22
23OpenHarmony SDK 5.0.0.26
24
25**Key API/Component Changes**
26
27Before change: The built-in components of the system automatically switch between dark and light colors based on the color mode setting of the application.
28
29After change: The built-in components of the system switch between dark and light colors only when the application has dark color resources or **setColorMode** is used to configure the application to follow the color mode setting of the system.
30
31**Adaptation Guide**
32
33If all your application is developed using system controls or system colors and you want to switch to the dark or light color mode with the system, modify your code as shown below to ensure user experience.
34
35```typescript
36onCreate(): void {
37  this.context.getApplicationContext().setColorMode(ConfigurationConstant.ColorMode.COLOR_MODE_NOT_SET);
38}
39```
40