1e41f4b71Sopenharmony_ci# ArkUI Subsystem Changelog 2e41f4b71Sopenharmony_ci 3e41f4b71Sopenharmony_ci## cl.arkui.1 Display Effect Change for the showTips Method of the \<Slider> Component 4e41f4b71Sopenharmony_ci 5e41f4b71Sopenharmony_ci**Access Level** 6e41f4b71Sopenharmony_ci 7e41f4b71Sopenharmony_ciPublic 8e41f4b71Sopenharmony_ci 9e41f4b71Sopenharmony_ci**Reason for Change** 10e41f4b71Sopenharmony_ci 11e41f4b71Sopenharmony_ciThis change is a compatible change, which involves how the tooltip is displayed for the **\<Slider>** component. 12e41f4b71Sopenharmony_ci 13e41f4b71Sopenharmony_ci**Change Impact** 14e41f4b71Sopenharmony_ci 15e41f4b71Sopenharmony_ciThe **showTips** method of the **\<Slider>** component is affected. This method has two parameters: The first parameter of the Boolean type indicates whether to display a tooltip; the second parameter of the ResourceStr type indicates the text content of the tooltip. 16e41f4b71Sopenharmony_ciSpecifically, the affected scenarios are as follows: 17e41f4b71Sopenharmony_ci 18e41f4b71Sopenharmony_ci- Style of the tooltip when the first parameter of **showTips** is set to **true** 19e41f4b71Sopenharmony_ci 20e41f4b71Sopenharmony_ciBefore change 21e41f4b71Sopenharmony_ci 22e41f4b71Sopenharmony_ci 23e41f4b71Sopenharmony_ci 24e41f4b71Sopenharmony_ciAfter change 25e41f4b71Sopenharmony_ci 26e41f4b71Sopenharmony_ci 27e41f4b71Sopenharmony_ci 28e41f4b71Sopenharmony_ci- Width of the text content specified by the second parameter of **showTips** 29e41f4b71Sopenharmony_ci 30e41f4b71Sopenharmony_ciBefore change: The text can be displayed in multiple lines in full based on the grid width. 31e41f4b71Sopenharmony_ci 32e41f4b71Sopenharmony_ciAfter change: The text is displayed in a single line, with the maximum width of 36 vp. That is, a maximum of four digits can be displayed. 33e41f4b71Sopenharmony_ci 34e41f4b71Sopenharmony_ci**API Level** 35e41f4b71Sopenharmony_ci 36e41f4b71Sopenharmony_ci7 37e41f4b71Sopenharmony_ci 38e41f4b71Sopenharmony_ci**Change Since** 39e41f4b71Sopenharmony_ci 40e41f4b71Sopenharmony_ciOpenHarmony SDK 4.1.5.5 41e41f4b71Sopenharmony_ci 42e41f4b71Sopenharmony_ci**Key API/Component Changes** 43e41f4b71Sopenharmony_ci 44e41f4b71Sopenharmony_ci\<Slider> 45e41f4b71Sopenharmony_ci 46e41f4b71Sopenharmony_ci**Adaptation Guide** 47e41f4b71Sopenharmony_ci 48e41f4b71Sopenharmony_ciN/A 49e41f4b71Sopenharmony_ci 50e41f4b71Sopenharmony_ci## cl.Arkui.2 Change in the Default Colors of the \<Progress> Component 51e41f4b71Sopenharmony_ci 52e41f4b71Sopenharmony_ci**Access Level** 53e41f4b71Sopenharmony_ci 54e41f4b71Sopenharmony_ciPublic 55e41f4b71Sopenharmony_ci 56e41f4b71Sopenharmony_ci**Reason for Change** 57e41f4b71Sopenharmony_ci 58e41f4b71Sopenharmony_ciThe original default colors of the **\<Progress>** component do not comply with the UX specifications. 59e41f4b71Sopenharmony_ci 60e41f4b71Sopenharmony_ci**Change Impact** 61e41f4b71Sopenharmony_ci 62e41f4b71Sopenharmony_ciThis change is a compatible change. It delivers a more visually appealing component. 63e41f4b71Sopenharmony_ci 64e41f4b71Sopenharmony_ci**API Level** 65e41f4b71Sopenharmony_ci 66e41f4b71Sopenharmony_ci8 67e41f4b71Sopenharmony_ci 68e41f4b71Sopenharmony_ci**Change Since** 69e41f4b71Sopenharmony_ci 70e41f4b71Sopenharmony_ciOpenHarmony SDK 4.1.5.5 71e41f4b71Sopenharmony_ci 72e41f4b71Sopenharmony_ci**Key API/Component Changes** 73e41f4b71Sopenharmony_ci 74e41f4b71Sopenharmony_ci> **NOTE** 75e41f4b71Sopenharmony_ci> 76e41f4b71Sopenharmony_ci> The color values listed below refer to the resource IDs in the system. 77e41f4b71Sopenharmony_ci 78e41f4b71Sopenharmony_ciIn versions earlier than API version 11: 79e41f4b71Sopenharmony_ci 80e41f4b71Sopenharmony_ci- The default colors of the capsule-style progress indicator are as follows: foreground color: **ohos_id_color_emphasize_contrary**; border: **ohos_id_color_emphasize_contrary**. 81e41f4b71Sopenharmony_ci- The default background color of the ring-style progress indicator is **ohos_id_color_component_normal**. 82e41f4b71Sopenharmony_ci 83e41f4b71Sopenharmony_ci 84e41f4b71Sopenharmony_ci 85e41f4b71Sopenharmony_ciSince API version 11: 86e41f4b71Sopenharmony_ci 87e41f4b71Sopenharmony_ci- The default colors of the capsule-style progress indicator are as follows: foreground color: **ohos_id_color_emphasize**; foreground color opacity: **ohos_id_alpha_highlight_bg**; border: **ohos_id_color_emphasize**; border opacity: **ohos_id_alpha_highlight_bg**. 88e41f4b71Sopenharmony_ci- The default background color of the ring-style progress indicator is **ohos_id_color_button_normal**. 89e41f4b71Sopenharmony_ci 90e41f4b71Sopenharmony_ci 91e41f4b71Sopenharmony_ci 92e41f4b71Sopenharmony_ci**Adaptation Guide** 93e41f4b71Sopenharmony_ci 94e41f4b71Sopenharmony_ciN/A 95e41f4b71Sopenharmony_ci 96e41f4b71Sopenharmony_ci## cl.Arkui.3 Change in the Default Colors of the \<LoadingProgress> Component 97e41f4b71Sopenharmony_ci 98e41f4b71Sopenharmony_ci**Access Level** 99e41f4b71Sopenharmony_ci 100e41f4b71Sopenharmony_ciPublic 101e41f4b71Sopenharmony_ci 102e41f4b71Sopenharmony_ci**Reason for Change** 103e41f4b71Sopenharmony_ci 104e41f4b71Sopenharmony_ciThe original default foreground color of the **\<LoadingProgress>** component does not comply with the UX specifications. 105e41f4b71Sopenharmony_ci 106e41f4b71Sopenharmony_ci**Change Impact** 107e41f4b71Sopenharmony_ci 108e41f4b71Sopenharmony_ciThis change is a compatible change. It delivers a more visually appealing component. 109e41f4b71Sopenharmony_ci 110e41f4b71Sopenharmony_ci**API Level** 111e41f4b71Sopenharmony_ci 112e41f4b71Sopenharmony_ci8 113e41f4b71Sopenharmony_ci 114e41f4b71Sopenharmony_ci**Change Since** 115e41f4b71Sopenharmony_ci 116e41f4b71Sopenharmony_ciOpenHarmony SDK 4.1.5.5 117e41f4b71Sopenharmony_ci 118e41f4b71Sopenharmony_ci**Key API/Component Changes** 119e41f4b71Sopenharmony_ci 120e41f4b71Sopenharmony_ciIn versions earlier than API version 11: The default foreground color opacity is **0.6**, and the default foreground color is **#99666666**. 121e41f4b71Sopenharmony_ci 122e41f4b71Sopenharmony_ci 123e41f4b71Sopenharmony_ci 124e41f4b71Sopenharmony_ciSince API version 11: The default foreground color opacity is **1.0**, and the default foreground color is **#ff666666**. 125e41f4b71Sopenharmony_ci 126e41f4b71Sopenharmony_ci 127e41f4b71Sopenharmony_ci 128e41f4b71Sopenharmony_ci**Adaptation Guide** 129e41f4b71Sopenharmony_ci 130e41f4b71Sopenharmony_ciN/A 131e41f4b71Sopenharmony_ci 132e41f4b71Sopenharmony_ci## cl.arkui.4 Change in the Default Behavior for the colorFilter Attribute of the \<Image> Component 133e41f4b71Sopenharmony_ci 134e41f4b71Sopenharmony_ci**Access Level** 135e41f4b71Sopenharmony_ci 136e41f4b71Sopenharmony_ciPublic 137e41f4b71Sopenharmony_ci 138e41f4b71Sopenharmony_ci**Reason for Change** 139e41f4b71Sopenharmony_ci 140e41f4b71Sopenharmony_ciThe change is made to meet user expectations. 141e41f4b71Sopenharmony_ci 142e41f4b71Sopenharmony_ci**Change Impact** 143e41f4b71Sopenharmony_ci 144e41f4b71Sopenharmony_ciThis change is a non-compatible change. 145e41f4b71Sopenharmony_ci 146e41f4b71Sopenharmony_ciBefore change: When the **colorFilter** attribute of the **\<Image>** component is set to an invalid value, no operation is performed. 147e41f4b71Sopenharmony_ci 148e41f4b71Sopenharmony_ciAfter change: When the **colorFilter** attribute of the **\<Image>** component is set to an invalid value, the system uses a value that represents a $4 \times 5$ matrix with entries of $1$ on the diagonal and entries of $0$ in other places. 149e41f4b71Sopenharmony_ci 150e41f4b71Sopenharmony_ci**API Level** 151e41f4b71Sopenharmony_ci 152e41f4b71Sopenharmony_ci11 153e41f4b71Sopenharmony_ci 154e41f4b71Sopenharmony_ci**Change Since** 155e41f4b71Sopenharmony_ci 156e41f4b71Sopenharmony_ciOpenHarmony SDK 4.1.5.5 157e41f4b71Sopenharmony_ci 158e41f4b71Sopenharmony_ci**Key API/Component Changes** 159e41f4b71Sopenharmony_ci 160e41f4b71Sopenharmony_ci\<Image> 161e41f4b71Sopenharmony_ci 162e41f4b71Sopenharmony_ci**Adaptation Guide** 163e41f4b71Sopenharmony_ci 164e41f4b71Sopenharmony_ciN/A 165e41f4b71Sopenharmony_ci 166e41f4b71Sopenharmony_ci## cl.arkui.5 Change in the Default Behavior for the fillColor Attribute of the \<Image> Component 167e41f4b71Sopenharmony_ci 168e41f4b71Sopenharmony_ci**Access Level** 169e41f4b71Sopenharmony_ci 170e41f4b71Sopenharmony_ciPublic 171e41f4b71Sopenharmony_ci 172e41f4b71Sopenharmony_ci**Reason for Change** 173e41f4b71Sopenharmony_ci 174e41f4b71Sopenharmony_ciThe change is made to meet user expectations. 175e41f4b71Sopenharmony_ci 176e41f4b71Sopenharmony_ci**Change Impact** 177e41f4b71Sopenharmony_ci 178e41f4b71Sopenharmony_ciThis change is a non-compatible change. 179e41f4b71Sopenharmony_ci 180e41f4b71Sopenharmony_ciBefore change: When the **fillColor** attribute of the **\<Image>** component is set to an invalid value, no operation is performed. 181e41f4b71Sopenharmony_ci 182e41f4b71Sopenharmony_ciAfter change: When the **fillColor** attribute of the **\<Image>** component is set to an invalid value, the system uses the default value. 183e41f4b71Sopenharmony_ci 184e41f4b71Sopenharmony_ci**API Level** 185e41f4b71Sopenharmony_ci 186e41f4b71Sopenharmony_ci11 187e41f4b71Sopenharmony_ci 188e41f4b71Sopenharmony_ci**Change Since** 189e41f4b71Sopenharmony_ci 190e41f4b71Sopenharmony_ciOpenHarmony SDK 4.1.5.5 191e41f4b71Sopenharmony_ci 192e41f4b71Sopenharmony_ci**Key API/Component Changes** 193e41f4b71Sopenharmony_ci 194e41f4b71Sopenharmony_ci\<Image> 195e41f4b71Sopenharmony_ci 196e41f4b71Sopenharmony_ci**Adaptation Guide** 197e41f4b71Sopenharmony_ci 198e41f4b71Sopenharmony_ciN/A 199e41f4b71Sopenharmony_ci 200e41f4b71Sopenharmony_ci 201e41f4b71Sopenharmony_ci## cl.Arkui.6 Change in the Default Shadow Blur Radius of the \<Datapanel> Component 202e41f4b71Sopenharmony_ci 203e41f4b71Sopenharmony_ci**Access Level** 204e41f4b71Sopenharmony_ci 205e41f4b71Sopenharmony_ciPublic 206e41f4b71Sopenharmony_ci 207e41f4b71Sopenharmony_ci**Reason for Change** 208e41f4b71Sopenharmony_ci 209e41f4b71Sopenharmony_ciThe original default shadow blur radius, 5 vp, is too small to meet the UX specifications. 210e41f4b71Sopenharmony_ci 211e41f4b71Sopenharmony_ci**Change Impact** 212e41f4b71Sopenharmony_ci 213e41f4b71Sopenharmony_ciThis change is a compatible change. It delivers a more visually appealing component. 214e41f4b71Sopenharmony_ci 215e41f4b71Sopenharmony_ci**API Level** 216e41f4b71Sopenharmony_ci 217e41f4b71Sopenharmony_ci10 218e41f4b71Sopenharmony_ci 219e41f4b71Sopenharmony_ci**Change Since** 220e41f4b71Sopenharmony_ci 221e41f4b71Sopenharmony_ciOpenHarmony SDK 4.1.5.5 222e41f4b71Sopenharmony_ci 223e41f4b71Sopenharmony_ci**Key API/Component Changes** 224e41f4b71Sopenharmony_ci 225e41f4b71Sopenharmony_ciIn versions earlier than API version 11: The default shadow blur radius of the **\<Datapanel>** component is 5 vp. 226e41f4b71Sopenharmony_ci 227e41f4b71Sopenharmony_ci 228e41f4b71Sopenharmony_ci 229e41f4b71Sopenharmony_ciSince API version 11: The default shadow blur radius of the **\<Datapanel>** component is 20 vp. 230e41f4b71Sopenharmony_ci 231e41f4b71Sopenharmony_ci 232e41f4b71Sopenharmony_ci 233e41f4b71Sopenharmony_ci**Adaptation Guide** 234e41f4b71Sopenharmony_ci 235e41f4b71Sopenharmony_ciN/A 236e41f4b71Sopenharmony_ci 237e41f4b71Sopenharmony_ci## cl.Arkui.7 Change in the Default Alignment Mode for Dialog Box Content 238e41f4b71Sopenharmony_ci 239e41f4b71Sopenharmony_ci**Access Level** 240e41f4b71Sopenharmony_ci 241e41f4b71Sopenharmony_ciPublic 242e41f4b71Sopenharmony_ci 243e41f4b71Sopenharmony_ci**Reason for Change** 244e41f4b71Sopenharmony_ci 245e41f4b71Sopenharmony_ciThe change is made to maintain consistency with UX specifications. 246e41f4b71Sopenharmony_ci 247e41f4b71Sopenharmony_ci**Change Impact** 248e41f4b71Sopenharmony_ci 249e41f4b71Sopenharmony_ciThis change is a compatible change. It delivers a more visually appealing dialog box when there are multiple lines but no title in the dialog box. 250e41f4b71Sopenharmony_ci 251e41f4b71Sopenharmony_ci**API Level** 252e41f4b71Sopenharmony_ci 253e41f4b71Sopenharmony_ci7 254e41f4b71Sopenharmony_ci 255e41f4b71Sopenharmony_ci**Change Since** 256e41f4b71Sopenharmony_ci 257e41f4b71Sopenharmony_ciOpenHarmony SDK 4.1.5.5 258e41f4b71Sopenharmony_ci 259e41f4b71Sopenharmony_ci**Key API/Component Changes** 260e41f4b71Sopenharmony_ci 261e41f4b71Sopenharmony_ciIn versions earlier than API version 11: By default, content in the dialog box is center aligned when there is no title. 262e41f4b71Sopenharmony_ci 263e41f4b71Sopenharmony_ciSince API version 11: By default, content in the dialog box is center aligned when there is no title and the content contains only one line, and is left aligned when there is no title and the content contains multiple lines. 264e41f4b71Sopenharmony_ci 265e41f4b71Sopenharmony_ci**Adaptation Guide** 266e41f4b71Sopenharmony_ci 267e41f4b71Sopenharmony_ciN/A 268e41f4b71Sopenharmony_ci 269e41f4b71Sopenharmony_ci## cl.Arkui.8 Change in the Default Background Effect of Dialog Boxes 270e41f4b71Sopenharmony_ci 271e41f4b71Sopenharmony_ci**Access Level** 272e41f4b71Sopenharmony_ci 273e41f4b71Sopenharmony_ciPublic 274e41f4b71Sopenharmony_ci 275e41f4b71Sopenharmony_ci**Reason for Change** 276e41f4b71Sopenharmony_ci 277e41f4b71Sopenharmony_ciThe change is made to enhance visual effects. 278e41f4b71Sopenharmony_ci 279e41f4b71Sopenharmony_ci**Change Impact** 280e41f4b71Sopenharmony_ci 281e41f4b71Sopenharmony_ciThis change is a compatible change. In unified rendering mode, the default background of the dialog box is changed to a blur material. 282e41f4b71Sopenharmony_ci 283e41f4b71Sopenharmony_ciTo change the blur material and background color, you can use the **backgroundColor** and **backgroundBlurStyle** parameters. 284e41f4b71Sopenharmony_ci 285e41f4b71Sopenharmony_ci**API Level** 286e41f4b71Sopenharmony_ci 287e41f4b71Sopenharmony_ci11 288e41f4b71Sopenharmony_ci 289e41f4b71Sopenharmony_ci**Change Since** 290e41f4b71Sopenharmony_ci 291e41f4b71Sopenharmony_ciOpenHarmony SDK 4.1.5.5 292e41f4b71Sopenharmony_ci 293e41f4b71Sopenharmony_ci**Key API/Component Changes** 294e41f4b71Sopenharmony_ci 295e41f4b71Sopenharmony_ciComponents: **\<AlertDialog>**, **\<ActionSheet>**, **\<CalendarPickerDialog>**, **\<DatePickerDialog>**, **\<TimePickerDialog>**, **\<TextPickerDialog>**<br>API: **showDialog** in the **promptAction** module 296e41f4b71Sopenharmony_ci 297e41f4b71Sopenharmony_ciIn versions earlier than API version 11: The default background of the dialog box is in the theme color. 298e41f4b71Sopenharmony_ci 299e41f4b71Sopenharmony_ciSince API version 11: The default background of the dialog box is a blur material. 300e41f4b71Sopenharmony_ci 301e41f4b71Sopenharmony_ci**Adaptation Guide** 302e41f4b71Sopenharmony_ci 303e41f4b71Sopenharmony_ciExample of removing the blur material: 304e41f4b71Sopenharmony_ci```ts 305e41f4b71Sopenharmony_ci@Entry 306e41f4b71Sopenharmony_ci@Component 307e41f4b71Sopenharmony_cistruct AlertDialogExample { 308e41f4b71Sopenharmony_ci build() { 309e41f4b71Sopenharmony_ci Column({ space: 5 }) { 310e41f4b71Sopenharmony_ci Button('one button dialog') 311e41f4b71Sopenharmony_ci .onClick(() => { 312e41f4b71Sopenharmony_ci AlertDialog.show({ 313e41f4b71Sopenharmony_ci message:"alertDialog", 314e41f4b71Sopenharmony_ci }) 315e41f4b71Sopenharmony_ci }).backgroundColor(0x317aff) 316e41f4b71Sopenharmony_ci }.width('100%').margin({ top: 5 }) 317e41f4b71Sopenharmony_ci } 318e41f4b71Sopenharmony_ci} 319e41f4b71Sopenharmony_ci``` 320e41f4b71Sopenharmony_ciBefore change: 321e41f4b71Sopenharmony_ci```ts 322e41f4b71Sopenharmony_ciAlertDialog.show({ 323e41f4b71Sopenharmony_ci message:"alertDialog", 324e41f4b71Sopenharmony_ci}) 325e41f4b71Sopenharmony_ci``` 326e41f4b71Sopenharmony_ciAfter change: 327e41f4b71Sopenharmony_ci```ts 328e41f4b71Sopenharmony_ciAlertDialog.show({ 329e41f4b71Sopenharmony_ci message:"alertDialog", 330e41f4b71Sopenharmony_ci backgroundColor:Color.White, 331e41f4b71Sopenharmony_ci backgroundBlurStyle:BlurStyle.NONE 332e41f4b71Sopenharmony_ci}) 333e41f4b71Sopenharmony_ci``` 334e41f4b71Sopenharmony_ciAs shown in the preceding example, you can manually set the enumerated values of the background color and background blur material. 335e41f4b71Sopenharmony_ci 336e41f4b71Sopenharmony_ci## cl.Arkui.9 Change in the Default Line Break Rule for Dialog Boxes 337e41f4b71Sopenharmony_ci 338e41f4b71Sopenharmony_ci**Access Level** 339e41f4b71Sopenharmony_ci 340e41f4b71Sopenharmony_ciPublic 341e41f4b71Sopenharmony_ci 342e41f4b71Sopenharmony_ci**Reason for Change** 343e41f4b71Sopenharmony_ci 344e41f4b71Sopenharmony_ciThe change is made to maintain consistency with UX specifications. 345e41f4b71Sopenharmony_ci 346e41f4b71Sopenharmony_ci**Change Impact** 347e41f4b71Sopenharmony_ci 348e41f4b71Sopenharmony_ciThis change is a compatible change. It delivers a more visually appealing component. 349e41f4b71Sopenharmony_ci 350e41f4b71Sopenharmony_ci**API Level** 351e41f4b71Sopenharmony_ci 352e41f4b71Sopenharmony_ci7 353e41f4b71Sopenharmony_ci 354e41f4b71Sopenharmony_ci**Change Since** 355e41f4b71Sopenharmony_ci 356e41f4b71Sopenharmony_ciOpenHarmony SDK 4.1.5.5 357e41f4b71Sopenharmony_ci 358e41f4b71Sopenharmony_ci**Key API/Component Changes** 359e41f4b71Sopenharmony_ci 360e41f4b71Sopenharmony_ciIn versions earlier than API version 11: The default line break rule of the dialog box is **BREAK_WORD**. 361e41f4b71Sopenharmony_ci 362e41f4b71Sopenharmony_ciSince API version 11: The default line break rule of the dialog box is **BREAK_ALL**. 363e41f4b71Sopenharmony_ci 364e41f4b71Sopenharmony_ciFor details about the differences between **BREAK_WORD** and **BREAK_ALL**, see [WordBreak](../../../application-dev/reference/apis-arkui/arkui-ts/ts-appendix-enums.md#wordbreak11). 365e41f4b71Sopenharmony_ci 366e41f4b71Sopenharmony_ci**Adaptation Guide** 367e41f4b71Sopenharmony_ci 368e41f4b71Sopenharmony_ciN/A 369e41f4b71Sopenharmony_ci 370e41f4b71Sopenharmony_ci## cl.arkui.10 Change in Handling of Invalid Opacity Values 371e41f4b71Sopenharmony_ci 372e41f4b71Sopenharmony_ci**Access Level** 373e41f4b71Sopenharmony_ci 374e41f4b71Sopenharmony_ciPublic 375e41f4b71Sopenharmony_ci 376e41f4b71Sopenharmony_ci**Reason for Change** 377e41f4b71Sopenharmony_ci 378e41f4b71Sopenharmony_ciIf the **opacity** attribute is set to a value less than 0, the opacity should be treated as completely transparent. 379e41f4b71Sopenharmony_ci 380e41f4b71Sopenharmony_ci**Change Impact** 381e41f4b71Sopenharmony_ci 382e41f4b71Sopenharmony_ciThis change is a non-compatible change. 383e41f4b71Sopenharmony_ci 384e41f4b71Sopenharmony_ciBefore change: The **opacity** attribute is treated as completely opaque when set to a value less than 0. 385e41f4b71Sopenharmony_ci 386e41f4b71Sopenharmony_ciAfter change: The **opacity** attribute is treated as completely transparent when set to a value less than 0. 387e41f4b71Sopenharmony_ci 388e41f4b71Sopenharmony_ci**API Level** 389e41f4b71Sopenharmony_ci 390e41f4b71Sopenharmony_ci7 391e41f4b71Sopenharmony_ci 392e41f4b71Sopenharmony_ci**Change Since** 393e41f4b71Sopenharmony_ci 394e41f4b71Sopenharmony_ciOpenHarmony SDK 4.1.5.5 395e41f4b71Sopenharmony_ci 396e41f4b71Sopenharmony_ci**Key API/Component Changes** 397e41f4b71Sopenharmony_ci 398e41f4b71Sopenharmony_ciopacity 399e41f4b71Sopenharmony_ci 400e41f4b71Sopenharmony_ci**Adaptation Guide** 401e41f4b71Sopenharmony_ci 402e41f4b71Sopenharmony_ciN/A 403e41f4b71Sopenharmony_ci 404e41f4b71Sopenharmony_ci## cl.Arkui.11 Change in Handling of Invalid selectable Values for the \<ListItem> and \<GridItem> Components 405e41f4b71Sopenharmony_ci 406e41f4b71Sopenharmony_ci**Access Level** 407e41f4b71Sopenharmony_ci 408e41f4b71Sopenharmony_ciPublic 409e41f4b71Sopenharmony_ci 410e41f4b71Sopenharmony_ci**Reason for Change** 411e41f4b71Sopenharmony_ci 412e41f4b71Sopenharmony_ciThe change is made to meet user expectations. 413e41f4b71Sopenharmony_ci 414e41f4b71Sopenharmony_ci**Change Impact** 415e41f4b71Sopenharmony_ci 416e41f4b71Sopenharmony_ciThis change is a non-compatible change. 417e41f4b71Sopenharmony_ci 418e41f4b71Sopenharmony_ciBefore change: Any invalid value of the **selectable** attribute is regarded as **false** for the **\<ListItem>** and **\<GridItem>** components. 419e41f4b71Sopenharmony_ci 420e41f4b71Sopenharmony_ciAfter change: Any invalid value of the **selectable** attribute is regarded as **true** for the **\<ListItem>** and **\<GridItem>** components. 421e41f4b71Sopenharmony_ci 422e41f4b71Sopenharmony_ci**API Level** 423e41f4b71Sopenharmony_ci 424e41f4b71Sopenharmony_ci8 425e41f4b71Sopenharmony_ci 426e41f4b71Sopenharmony_ci**Change Since** 427e41f4b71Sopenharmony_ci 428e41f4b71Sopenharmony_ciOpenHarmony SDK 4.1.5.5 429e41f4b71Sopenharmony_ci 430e41f4b71Sopenharmony_ci**Key API/Component Changes** 431e41f4b71Sopenharmony_ci 432e41f4b71Sopenharmony_ci**selectable** attribute of the **\<ListItem>** and **\<GridItem>** components 433e41f4b71Sopenharmony_ci 434e41f4b71Sopenharmony_ci 435e41f4b71Sopenharmony_ci 436e41f4b71Sopenharmony_ci 437e41f4b71Sopenharmony_ci 438e41f4b71Sopenharmony_ci**Adaptation Guide** 439e41f4b71Sopenharmony_ci 440e41f4b71Sopenharmony_ciN/A 441e41f4b71Sopenharmony_ci 442e41f4b71Sopenharmony_ci## cl.arkui.12 Change in Handling of Certain Invalid Values of the fontSize attribute of the \<Text> Component 443e41f4b71Sopenharmony_ci 444e41f4b71Sopenharmony_ci**Access Level** 445e41f4b71Sopenharmony_ci 446e41f4b71Sopenharmony_ciPublic 447e41f4b71Sopenharmony_ci 448e41f4b71Sopenharmony_ci**Reason for Change** 449e41f4b71Sopenharmony_ci 450e41f4b71Sopenharmony_ciThe previous handling mode for invalid strings that contain digits, such as **"5abc"**, is incorrect. 451e41f4b71Sopenharmony_ci 452e41f4b71Sopenharmony_ci**Change Impact** 453e41f4b71Sopenharmony_ci 454e41f4b71Sopenharmony_ciThis change is a non-compatible change. 455e41f4b71Sopenharmony_ci 456e41f4b71Sopenharmony_ciBefore change: If an invalid value set for the **fontSize** attribute contains a number, the number is regarded as the entire value. For example, **"5abc"** is regarded as 5 fp. 457e41f4b71Sopenharmony_ci 458e41f4b71Sopenharmony_ciAfter change: If an invalid value is set for the **fontSize** attribute, regardless of whether it contains a number, the default value 16 fp is used. 459e41f4b71Sopenharmony_ci 460e41f4b71Sopenharmony_ci**API Level** 461e41f4b71Sopenharmony_ci 462e41f4b71Sopenharmony_ci11 463e41f4b71Sopenharmony_ci 464e41f4b71Sopenharmony_ci**Change Since** 465e41f4b71Sopenharmony_ci 466e41f4b71Sopenharmony_ciOpenHarmony SDK 4.1.5.5 467e41f4b71Sopenharmony_ci 468e41f4b71Sopenharmony_ci**Key API/Component Changes** 469e41f4b71Sopenharmony_ci 470e41f4b71Sopenharmony_ci**fontSize** attribute of the **\<Text>** component 471e41f4b71Sopenharmony_ci 472e41f4b71Sopenharmony_ci**Adaptation Guide** 473e41f4b71Sopenharmony_ci 474e41f4b71Sopenharmony_ciN/A 475e41f4b71Sopenharmony_ci 476e41f4b71Sopenharmony_ci## cl.arkui.13 Click Event Specification Change 477e41f4b71Sopenharmony_ci 478e41f4b71Sopenharmony_ci**Access Level** 479e41f4b71Sopenharmony_ci 480e41f4b71Sopenharmony_ciPublic 481e41f4b71Sopenharmony_ci 482e41f4b71Sopenharmony_ci**Reason for Change** 483e41f4b71Sopenharmony_ci 484e41f4b71Sopenharmony_ciA tap gesture should detect all fingers touching the screen within the touch target. The temporary specification that the finger movement must not exceed 20 px during the recognition process is removed. 485e41f4b71Sopenharmony_ci 486e41f4b71Sopenharmony_ci**Change Impact** 487e41f4b71Sopenharmony_ci 488e41f4b71Sopenharmony_ciThis change is a non-compatible change. 489e41f4b71Sopenharmony_ci 490e41f4b71Sopenharmony_ciBefore change: For a tap gesture to be recognized successfully, the fingers involved must not move more than 20 px from the initial touch points. 491e41f4b71Sopenharmony_ci 492e41f4b71Sopenharmony_ciAfter change: The tap gesture recognizer collects and caches the touch targets when fingers touch the screen. If any of the fingers moves outside the cached touch targets, the tap gesture cannot be recognized. 493e41f4b71Sopenharmony_ci 494e41f4b71Sopenharmony_ci**API Level** 495e41f4b71Sopenharmony_ci 496e41f4b71Sopenharmony_ci7 497e41f4b71Sopenharmony_ci 498e41f4b71Sopenharmony_ci**Change Since** 499e41f4b71Sopenharmony_ci 500e41f4b71Sopenharmony_ciOpenHarmony SDK 4.1.5.5 501e41f4b71Sopenharmony_ci 502e41f4b71Sopenharmony_ci**Key API/Component Changes** 503e41f4b71Sopenharmony_ci 504e41f4b71Sopenharmony_ciTapGesture 505e41f4b71Sopenharmony_ci 506e41f4b71Sopenharmony_ci**Adaptation Guide** 507e41f4b71Sopenharmony_ci 508e41f4b71Sopenharmony_ciIf the tap gesture and pan gesture are placed in a parallel gesture group, they may be recognized at the same time. 509e41f4b71Sopenharmony_ci 510e41f4b71Sopenharmony_ciAs such, consider the following measures: 511e41f4b71Sopenharmony_ci1. If the tap gesture and pan gesture are placed in a parallel gesture group, upgroup them when possible to avoid possible recognition conflicts. 512e41f4b71Sopenharmony_ciBefore modification: 513e41f4b71Sopenharmony_ci```ts 514e41f4b71Sopenharmony_ci .parallelGesture(GestureGroup(GestureMode.Parallel, 515e41f4b71Sopenharmony_ci TapGesture({count: 1}) 516e41f4b71Sopenharmony_ci .onAction((event?: GestureEvent)=> { 517e41f4b71Sopenharmony_ci if (event) { 518e41f4b71Sopenharmony_ci console.info("Tapgesture") 519e41f4b71Sopenharmony_ci } 520e41f4b71Sopenharmony_ci }), 521e41f4b71Sopenharmony_ci PanGesture({fingers: 1}) 522e41f4b71Sopenharmony_ci .onActionStart((event?: GestureEvent)=>{ 523e41f4b71Sopenharmony_ci console.info("Pan start") 524e41f4b71Sopenharmony_ci }) 525e41f4b71Sopenharmony_ci .onActionUpdate((event?: GestureEvent)=>{ 526e41f4b71Sopenharmony_ci console.info("Pan update") 527e41f4b71Sopenharmony_ci }) 528e41f4b71Sopenharmony_ci .onActionEnd((event?: GestureEvent)=>{ 529e41f4b71Sopenharmony_ci console.info("Pan end") 530e41f4b71Sopenharmony_ci }) 531e41f4b71Sopenharmony_ci )) 532e41f4b71Sopenharmony_ci``` 533e41f4b71Sopenharmony_ciAfter modification: 534e41f4b71Sopenharmony_ci```ts 535e41f4b71Sopenharmony_ci .parallelGesture(GestureGroup(GestureMode.Parallel, 536e41f4b71Sopenharmony_ci PanGesture({fingers: 1}) 537e41f4b71Sopenharmony_ci .onActionStart((event?: GestureEvent)=>{ 538e41f4b71Sopenharmony_ci console.info("Pan start") 539e41f4b71Sopenharmony_ci }) 540e41f4b71Sopenharmony_ci .onActionUpdate((event?: GestureEvent)=>{ 541e41f4b71Sopenharmony_ci console.info("Pan update") 542e41f4b71Sopenharmony_ci }) 543e41f4b71Sopenharmony_ci .onActionEnd((event?: GestureEvent)=>{ 544e41f4b71Sopenharmony_ci console.info("Pan end") 545e41f4b71Sopenharmony_ci }) 546e41f4b71Sopenharmony_ci )) 547e41f4b71Sopenharmony_ci .gesture( 548e41f4b71Sopenharmony_ci TapGesture({count: 1}) 549e41f4b71Sopenharmony_ci .onAction((event?: GestureEvent)=> { 550e41f4b71Sopenharmony_ci if (event) { 551e41f4b71Sopenharmony_ci console.info("Tapgesture") 552e41f4b71Sopenharmony_ci } 553e41f4b71Sopenharmony_ci }) 554e41f4b71Sopenharmony_ci ) 555e41f4b71Sopenharmony_ci``` 556e41f4b71Sopenharmony_ci2. If the tap gesture and pan gesture must be placed in the same parallel gesture group, you can use the custom gesture judgment APIs to specify that the finger involved in the tap gesture must not move a certain distance from the initial touch point. 557e41f4b71Sopenharmony_ciThe sample code is as follows: 558e41f4b71Sopenharmony_ci```ts 559e41f4b71Sopenharmony_ci .gesture( 560e41f4b71Sopenharmony_ci TapGesture({count: 1}) 561e41f4b71Sopenharmony_ci .onAction((event?: GestureEvent)=> { 562e41f4b71Sopenharmony_ci if (event) { 563e41f4b71Sopenharmony_ci console.log("Tapgesture") 564e41f4b71Sopenharmony_ci } 565e41f4b71Sopenharmony_ci }) 566e41f4b71Sopenharmony_ci ) 567e41f4b71Sopenharmony_ci .onTouch((event?: TouchEvent)=> { 568e41f4b71Sopenharmony_ci if (event) { 569e41f4b71Sopenharmony_ci if (event.type === TouchType.Down) { 570e41f4b71Sopenharmony_ci this.downX = event.touches[0].windowX 571e41f4b71Sopenharmony_ci this.downY = event.touches[0].windowY 572e41f4b71Sopenharmony_ci } 573e41f4b71Sopenharmony_ci } 574e41f4b71Sopenharmony_ci }) 575e41f4b71Sopenharmony_ci .onGestureJudgeBegin((gestureInfo: GestureInfo, event: BaseGestureEvent)=> { 576e41f4b71Sopenharmony_ci if (gestureInfo.type == GestureControl.GestureType.TAP_GESTURE) { 577e41f4b71Sopenharmony_ci let xGap = event.fingerList[0].globalX - this.downX 578e41f4b71Sopenharmony_ci if (xGap > 5) { 579e41f4b71Sopenharmony_ci return GestureJudgeResult.REJECT 580e41f4b71Sopenharmony_ci } 581e41f4b71Sopenharmony_ci let yGap = event.fingerList[0].globalY - this.downY 582e41f4b71Sopenharmony_ci if (yGap > 5) { 583e41f4b71Sopenharmony_ci return GestureJudgeResult.REJECT 584e41f4b71Sopenharmony_ci } 585e41f4b71Sopenharmony_ci return GestureJudgeResult.CONTINUE 586e41f4b71Sopenharmony_ci } else { 587e41f4b71Sopenharmony_ci return GestureJudgeResult.CONTINUE 588e41f4b71Sopenharmony_ci } 589e41f4b71Sopenharmony_ci }) 590e41f4b71Sopenharmony_ci``` 591e41f4b71Sopenharmony_ci3. If the tap gesture and pan gesture must be placed in the same parallel gesture group, you can also use the custom gesture judgment APIs to set the component flag to avoid recognition conflicts. 592e41f4b71Sopenharmony_ci```ts 593e41f4b71Sopenharmony_ci@Entry 594e41f4b71Sopenharmony_ci@Component 595e41f4b71Sopenharmony_cistruct Index { 596e41f4b71Sopenharmony_ci @State message: string = ''; 597e41f4b71Sopenharmony_ci private hasPanActive = false; 598e41f4b71Sopenharmony_ci build() { 599e41f4b71Sopenharmony_ci Column() { 600e41f4b71Sopenharmony_ci Row({ space: 20 }) { 601e41f4b71Sopenharmony_ci Text(this.message).width(100).height(40).backgroundColor(Color.Pink) 602e41f4b71Sopenharmony_ci }.margin(20) 603e41f4b71Sopenharmony_ci } 604e41f4b71Sopenharmony_ci .width('100%') 605e41f4b71Sopenharmony_ci .height(200) 606e41f4b71Sopenharmony_ci .borderWidth(2) 607e41f4b71Sopenharmony_ci .parallelGesture(GestureGroup(GestureMode.Parallel, 608e41f4b71Sopenharmony_ci TapGesture({count: 1}) 609e41f4b71Sopenharmony_ci .onAction((event?: GestureEvent)=> { 610e41f4b71Sopenharmony_ci if (event) { 611e41f4b71Sopenharmony_ci console.info("Tapgesture") 612e41f4b71Sopenharmony_ci } 613e41f4b71Sopenharmony_ci }).tag("Single-Finger-Click"), 614e41f4b71Sopenharmony_ci PanGesture({fingers: 1}) 615e41f4b71Sopenharmony_ci .onActionStart((event?: GestureEvent)=>{ 616e41f4b71Sopenharmony_ci console.info("Pan start") 617e41f4b71Sopenharmony_ci }) 618e41f4b71Sopenharmony_ci .onActionUpdate((event?: GestureEvent)=>{ 619e41f4b71Sopenharmony_ci console.info("Pan update") 620e41f4b71Sopenharmony_ci }) 621e41f4b71Sopenharmony_ci .onActionEnd((event?: GestureEvent)=>{ 622e41f4b71Sopenharmony_ci console.info("Pan end") 623e41f4b71Sopenharmony_ci }).tag("Single-Finger-Pan") 624e41f4b71Sopenharmony_ci )) 625e41f4b71Sopenharmony_ci .onGestureJudgeBegin((gestureInfo: GestureInfo, event: BaseGestureEvent) => { 626e41f4b71Sopenharmony_ci // If a pan gesture is recognized, set the flag to true. 627e41f4b71Sopenharmony_ci if (gestureInfo.tag === "Single-Finger-Pan") { 628e41f4b71Sopenharmony_ci this.hasPanActive = true 629e41f4b71Sopenharmony_ci } 630e41f4b71Sopenharmony_ci // If a tap gesture is recognized and the flag is true, the component resets the flag and does not respond to the tap gesture. 631e41f4b71Sopenharmony_ci if (gestureInfo.tag === "Single-Finger-Click" && this.hasPanActive) { 632e41f4b71Sopenharmony_ci this.hasPanActive = false; 633e41f4b71Sopenharmony_ci return GestureJudgeResult.REJECT 634e41f4b71Sopenharmony_ci } 635e41f4b71Sopenharmony_ci return GestureJudgeResult.CONTINUE 636e41f4b71Sopenharmony_ci }) 637e41f4b71Sopenharmony_ci } 638e41f4b71Sopenharmony_ci} 639e41f4b71Sopenharmony_ci``` 640e41f4b71Sopenharmony_ci## cl.arkui.14 Change in the Default Menu Item Height 641e41f4b71Sopenharmony_ci 642e41f4b71Sopenharmony_ci**Access Level** 643e41f4b71Sopenharmony_ci 644e41f4b71Sopenharmony_ciOther 645e41f4b71Sopenharmony_ci 646e41f4b71Sopenharmony_ci**Reason for Change** 647e41f4b71Sopenharmony_ci 648e41f4b71Sopenharmony_ciThe change is made to maintain consistency with UX specifications. 649e41f4b71Sopenharmony_ci 650e41f4b71Sopenharmony_ci**Change Impact** 651e41f4b71Sopenharmony_ci 652e41f4b71Sopenharmony_ciThis change is a compatible change. 653e41f4b71Sopenharmony_ci 654e41f4b71Sopenharmony_ciBefore change: If a menu item does not have its height specified, its height is 0, even when an icon is passed in. 655e41f4b71Sopenharmony_ci 656e41f4b71Sopenharmony_ciBefore change: If a menu item does not have its height specified, its height is the same as the height of the icon passed in. 657e41f4b71Sopenharmony_ci 658e41f4b71Sopenharmony_ci**API Level** 659e41f4b71Sopenharmony_ci 660e41f4b71Sopenharmony_ci11 661e41f4b71Sopenharmony_ci 662e41f4b71Sopenharmony_ci**Change Since** 663e41f4b71Sopenharmony_ci 664e41f4b71Sopenharmony_ciOpenHarmony SDK 4.1.5.5 665e41f4b71Sopenharmony_ci 666e41f4b71Sopenharmony_ci**Key API/Component Changes** 667e41f4b71Sopenharmony_ci 668e41f4b71Sopenharmony_ci\<MenuItem>, \<Menu>, \<MenuItemGroup> 669e41f4b71Sopenharmony_ci 670e41f4b71Sopenharmony_ci**Adaptation Guide** 671e41f4b71Sopenharmony_ci 672e41f4b71Sopenharmony_ciIf the default height is inconsistent with the application UX specification, you can customize the height. 673e41f4b71Sopenharmony_ci 674e41f4b71Sopenharmony_ci## cl.arkui.15 Change in the Logic for Setting the indicator Attribute of the \<Swiper> Component 675e41f4b71Sopenharmony_ci 676e41f4b71Sopenharmony_ci**Access Level** 677e41f4b71Sopenharmony_ci 678e41f4b71Sopenharmony_ciOther 679e41f4b71Sopenharmony_ci 680e41f4b71Sopenharmony_ci**Reason for Change** 681e41f4b71Sopenharmony_ci 682e41f4b71Sopenharmony_ciThe previous logic for handling invalid values of the **left**, **top**, **right**, and **bottom** parameters of the **indicator** attribute is incorrect. 683e41f4b71Sopenharmony_ci 684e41f4b71Sopenharmony_ci**Change Impact** 685e41f4b71Sopenharmony_ci 686e41f4b71Sopenharmony_ciThis change is a non-compatible change. 687e41f4b71Sopenharmony_ci 688e41f4b71Sopenharmony_ciBefore change: If any of the **left**, **top**, **right**, and **bottom** parameters of the **indicator** attribute is set to **0** or an invalid value, the navigation point indicator is located in the center of the bottom of the **\<Swiper>** component. 689e41f4b71Sopenharmony_ci 690e41f4b71Sopenharmony_ciAfter change: If any of the **left**, **top**, **right**, and **bottom** parameters of the **indicator** attribute is set to **0** or an invalid value, the navigation point indicator is located at the edge of the **\<Swiper>** component. That is, the default value 0 vp is used. 691e41f4b71Sopenharmony_ci 692e41f4b71Sopenharmony_ci**API Level** 693e41f4b71Sopenharmony_ci 694e41f4b71Sopenharmony_ci10 695e41f4b71Sopenharmony_ci 696e41f4b71Sopenharmony_ci**Change Since** 697e41f4b71Sopenharmony_ci 698e41f4b71Sopenharmony_ciOpenHarmony SDK 4.1.5.5 699e41f4b71Sopenharmony_ci 700e41f4b71Sopenharmony_ci**Key API/Component Changes** 701e41f4b71Sopenharmony_ci 702e41f4b71Sopenharmony_ci\<Tabs> 703e41f4b71Sopenharmony_ci 704e41f4b71Sopenharmony_ci**Adaptation Guide** 705e41f4b71Sopenharmony_ci 706e41f4b71Sopenharmony_ciN/A 707