1e41f4b71Sopenharmony_ci# Globalization Changelog 2e41f4b71Sopenharmony_ci 3e41f4b71Sopenharmony_ci## cl.global.1 Change of the Default Behavior in Dark Color Mode 4e41f4b71Sopenharmony_ci 5e41f4b71Sopenharmony_ci**Access Level** 6e41f4b71Sopenharmony_ci 7e41f4b71Sopenharmony_ciOther 8e41f4b71Sopenharmony_ci 9e41f4b71Sopenharmony_ci**Reason for Change** 10e41f4b71Sopenharmony_ci 11e41f4b71Sopenharmony_ciMany 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. 12e41f4b71Sopenharmony_ci 13e41f4b71Sopenharmony_ci**Change Impact** 14e41f4b71Sopenharmony_ci 15e41f4b71Sopenharmony_ciThis 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. 16e41f4b71Sopenharmony_ci 17e41f4b71Sopenharmony_ci**Start API Level** 18e41f4b71Sopenharmony_ci 19e41f4b71Sopenharmony_ci9 20e41f4b71Sopenharmony_ci 21e41f4b71Sopenharmony_ci**Change Since** 22e41f4b71Sopenharmony_ci 23e41f4b71Sopenharmony_ciOpenHarmony SDK 5.0.0.26 24e41f4b71Sopenharmony_ci 25e41f4b71Sopenharmony_ci**Key API/Component Changes** 26e41f4b71Sopenharmony_ci 27e41f4b71Sopenharmony_ciBefore change: The built-in components of the system automatically switch between dark and light colors based on the color mode setting of the application. 28e41f4b71Sopenharmony_ci 29e41f4b71Sopenharmony_ciAfter 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. 30e41f4b71Sopenharmony_ci 31e41f4b71Sopenharmony_ci**Adaptation Guide** 32e41f4b71Sopenharmony_ci 33e41f4b71Sopenharmony_ciIf 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. 34e41f4b71Sopenharmony_ci 35e41f4b71Sopenharmony_ci```typescript 36e41f4b71Sopenharmony_cionCreate(): void { 37e41f4b71Sopenharmony_ci this.context.getApplicationContext().setColorMode(ConfigurationConstant.ColorMode.COLOR_MODE_NOT_SET); 38e41f4b71Sopenharmony_ci} 39e41f4b71Sopenharmony_ci``` 40