提交 424258bd 编写于 作者: S sunjiakun

fix search xts blue and yellow resource different

Signed-off-by: Nsunjiakun <sunjiakun3@huawei.com>
上级 4f6c2781
......@@ -145,6 +145,7 @@ struct SliderExample {
fontColor: $r('sys.color.ohos_id_color_text_primary_activated')
}
)
.fontColor($r('sys.color.ohos_id_color_text_primary'))
.key('searchTestDefaultValue')
Search({ value: '', placeholder: 'Type to search...' })
......@@ -246,6 +247,39 @@ struct SliderExample {
.fontColor(this.textColorResource)
.key('searchTestResource')
Search({ value: '', placeholder: 'Type to search...' })
.width(300)
.height(40)
.margin(5)
.caretStyle({
width: this.caretWidthResource,
color: $r('sys.color.ohos_id_color_connected')
})
.searchIcon({
size: this.leftSearchIconSizeResource,
color: $r('sys.color.ohos_id_color_connected'),
src: this.searchSrcPathResource
})
.cancelButton({
style: this.rightButtonStyleParam,
icon: {
size: this.rightCancelIconSizeResource,
color: $r('sys.color.ohos_id_color_connected'),
src: this.rightIconSrcPathResource
}
})
.searchButton(
'Search',
{
fontSize: this.searchButtonFontSizeResource,
fontColor: $r('sys.color.ohos_id_color_connected')
}
)
.placeholderFont(this.placeholderFont)
.textFont(this.textFont)
.fontColor($r('sys.color.ohos_id_color_connected'))
.key('searchTestResource2')
Search({ value: '', placeholder: 'Type to search...' })
.width(300)
.height(40)
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册