From b1e1cfe2f6660124beaf9ca9d456222f2524afea Mon Sep 17 00:00:00 2001 From: huqiyao <2097420261@qq.com> Date: Tue, 22 Oct 2024 17:54:57 +0800 Subject: [PATCH 1/3] update blurStyle --- .../ets/pages/Component/Tabs/TabsBlur/DefaultTabBar/Index.ets | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/AnimationDemos/entry/src/main/ets/pages/Component/Tabs/TabsBlur/DefaultTabBar/Index.ets b/AnimationDemos/entry/src/main/ets/pages/Component/Tabs/TabsBlur/DefaultTabBar/Index.ets index b5b9197..f2f328c 100644 --- a/AnimationDemos/entry/src/main/ets/pages/Component/Tabs/TabsBlur/DefaultTabBar/Index.ets +++ b/AnimationDemos/entry/src/main/ets/pages/Component/Tabs/TabsBlur/DefaultTabBar/Index.ets @@ -84,7 +84,7 @@ struct TabsBlur { // .margin({ bottom: -16 }) .barHeight('auto') // barHeight不能设置具体的数值,否则底部导航条不会有模糊效果 .barOverlap(true) // 相当于设置了BlurStyle.COMPONENT_THICK,所以如果需要让目标模糊材质生效,需要写在.barBackgroundBlurStyle之前,以免覆盖效果 - .barBackgroundBlurStyle(BlurStyle.COMPONENT_THICK) + .barBackgroundBlurStyle(BlurStyle.COMPONENT_THIN) .barBackgroundColor(Color.Transparent) .barMode(BarMode.Fixed) .onChange((index: number) => { -- Gitee From 69584ceec3b115c4c15c677cf70627294957f7e8 Mon Sep 17 00:00:00 2001 From: huqiyao <2097420261@qq.com> Date: Tue, 22 Oct 2024 18:05:09 +0800 Subject: [PATCH 2/3] update comments --- .../ets/pages/Component/Tabs/TabsBlur/DefaultTabBar/Index.ets | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/AnimationDemos/entry/src/main/ets/pages/Component/Tabs/TabsBlur/DefaultTabBar/Index.ets b/AnimationDemos/entry/src/main/ets/pages/Component/Tabs/TabsBlur/DefaultTabBar/Index.ets index f2f328c..2178337 100644 --- a/AnimationDemos/entry/src/main/ets/pages/Component/Tabs/TabsBlur/DefaultTabBar/Index.ets +++ b/AnimationDemos/entry/src/main/ets/pages/Component/Tabs/TabsBlur/DefaultTabBar/Index.ets @@ -83,7 +83,7 @@ struct TabsBlur { // 如果觉得太高了,设置marginBottom负值 // .margin({ bottom: -16 }) .barHeight('auto') // barHeight不能设置具体的数值,否则底部导航条不会有模糊效果 - .barOverlap(true) // 相当于设置了BlurStyle.COMPONENT_THICK,所以如果需要让目标模糊材质生效,需要写在.barBackgroundBlurStyle之前,以免覆盖效果 + .barOverlap(true) // 73版本后,barOverlap(true)相当于设置了BlurStyle.COMPONENT_THICK。所以如果需要让目标模糊材质生效,barBackgroundBlurStyle需要写在barOverlap之后,以免被覆盖效果 .barBackgroundBlurStyle(BlurStyle.COMPONENT_THIN) .barBackgroundColor(Color.Transparent) .barMode(BarMode.Fixed) -- Gitee From 6d940ab21d60bc4af4a57c81ee123b0b34d1af56 Mon Sep 17 00:00:00 2001 From: huqiyao <2097420261@qq.com> Date: Tue, 22 Oct 2024 18:06:23 +0800 Subject: [PATCH 3/3] update comments --- .../ets/pages/Component/Tabs/TabsBlur/DefaultTabBar/Index.ets | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/AnimationDemos/entry/src/main/ets/pages/Component/Tabs/TabsBlur/DefaultTabBar/Index.ets b/AnimationDemos/entry/src/main/ets/pages/Component/Tabs/TabsBlur/DefaultTabBar/Index.ets index 2178337..502fe36 100644 --- a/AnimationDemos/entry/src/main/ets/pages/Component/Tabs/TabsBlur/DefaultTabBar/Index.ets +++ b/AnimationDemos/entry/src/main/ets/pages/Component/Tabs/TabsBlur/DefaultTabBar/Index.ets @@ -83,7 +83,7 @@ struct TabsBlur { // 如果觉得太高了,设置marginBottom负值 // .margin({ bottom: -16 }) .barHeight('auto') // barHeight不能设置具体的数值,否则底部导航条不会有模糊效果 - .barOverlap(true) // 73版本后,barOverlap(true)相当于设置了BlurStyle.COMPONENT_THICK。所以如果需要让目标模糊材质生效,barBackgroundBlurStyle需要写在barOverlap之后,以免被覆盖效果 + .barOverlap(true) // 73版本后,barOverlap(true)相当于设置了BlurStyle.COMPONENT_THICK。所以想让目标模糊材质生效,barBackgroundBlurStyle需要写在barOverlap之后,以免被覆盖效果 .barBackgroundBlurStyle(BlurStyle.COMPONENT_THIN) .barBackgroundColor(Color.Transparent) .barMode(BarMode.Fixed) -- Gitee