Преглед на файлове

发现页的自定义封面背景搜索UI美化

onecold преди 4 месеца
родител
ревизия
92689fee3e
променени са 1 файла, в които са добавени 2 реда и са изтрити 9 реда
  1. 2 9
      entry/src/main/ets/view/FindView.ets

+ 2 - 9
entry/src/main/ets/view/FindView.ets

@@ -2279,10 +2279,6 @@ export struct FindView {
             .layoutWeight(1)
             .height(35)
             .maxLength(40)
-            .backgroundColor(this.getDiscoverySearchBackgroundColor())
-            .backgroundBlurStyle(this.shouldUseDiscoveryImageBackgroundOverlay()
-              ? BlurStyle.BACKGROUND_THICK
-              : BlurStyle.NONE)
             .placeholderColor(this.getSecondaryTextColor())
             .placeholderFont({ size: 14, weight: 400 })
             .textFont({ size: 14, weight: 400 })
@@ -2317,10 +2313,6 @@ export struct FindView {
     }
     .padding({ top: this.topSafeHeight + 10, left: 10, right: 10, bottom: 6 })
     .width('100%')
-    .backgroundColor(this.getDiscoveryTopBarBackgroundColor())
-    .backgroundBlurStyle(this.shouldUseDiscoveryImageBackgroundOverlay() && (this.isSearchMode || this.isAlbumMode)
-      ? BlurStyle.BACKGROUND_ULTRA_THICK
-      : BlurStyle.NONE)
   }
 
   @Builder
@@ -2554,7 +2546,7 @@ export struct FindView {
     }
     .width('100%')
     .height('100%')
-    .padding({ left: 12, right: 12, top: this.topSafeHeight + 65, bottom: this.bottomSafeHeight + 96 })
+    .padding({ left: 12, right: 12, top: this.topSafeHeight + 65 })
     .scrollBar(BarState.Off)
     .edgeEffect(EdgeEffect.Spring)
     .layoutWeight(1)
@@ -3473,6 +3465,7 @@ export struct FindView {
       Column() {
         this.topTitleBar()
       }
+      .backgroundColor(Color.Transparent)
       .width('100%')
       .visibility(this.isAlbumMode ? Visibility.None : (this.isShowTitleBar ? Visibility.Visible :
         this.autoHideTitle ? Visibility.None : Visibility.Visible))