This commit is contained in:
zhuzichu
2023-06-25 19:01:22 +08:00
parent cd577c5599
commit e1096b8e22
5 changed files with 14 additions and 3 deletions

View File

@ -44,6 +44,7 @@ ComboBox {
bottomPadding: 6 - control.padding
renderType: FluTheme.nativeText ? Text.NativeRendering : Text.QtRendering
selectionColor: FluTheme.primaryColor.lightest
selectedTextColor: control.palette.highlightedText
text: control.editable ? control.editText : control.displayText
enabled: control.editable
autoScroll: control.editable
@ -57,12 +58,14 @@ ComboBox {
leftInset:1
topInset:1
bottomInset:1
focus: true
rightInset:1
background: FluTextBoxBackground{
border.width: 0
inputItem: contentItem
}
Component.onCompleted: {
focus = true
}
}
background: Rectangle {

View File

@ -14,6 +14,7 @@ TextEdit {
leftPadding: 0
rightPadding: 0
topPadding: 0
selectedTextColor: FluColors.Grey220
bottomPadding: 0
selectionColor: FluTheme.primaryColor.lightest
font:FluTextStyle.Body

View File

@ -4,15 +4,20 @@ import FluentUI
FluStatusView {
property url source: ""
property bool lazy: false
color:"transparent"
id:control
onErrorClicked: {
reload()
}
Component.onCompleted: {
if(!lazy){
loader.source = control.source
}
}
Loader{
id:loader
anchors.fill: parent
source: control.source
asynchronous: true
onStatusChanged: {
if(status === Loader.Error){