mirror of
https://github.com/zhuzichu520/FluentUI.git
synced 2024-11-30 07:03:46 +08:00
update
This commit is contained in:
parent
cd577c5599
commit
e1096b8e22
@ -5,7 +5,8 @@ import QtQuick.Layouts
|
||||
import FluentUI
|
||||
|
||||
Window {
|
||||
id:app
|
||||
id: app
|
||||
flags: Qt.SplashScreen
|
||||
Component.onCompleted: {
|
||||
FluApp.init(app)
|
||||
FluTheme.darkMode = FluDarkMode.System
|
||||
|
@ -134,6 +134,7 @@ CustomWindow {
|
||||
|
||||
FluRemoteLoader{
|
||||
id:loader
|
||||
lazy: true
|
||||
anchors.fill: parent
|
||||
// source: "http://localhost:9000/RemoteComponent.qml"
|
||||
source: "https://zhu-zichu.gitee.io/RemoteComponent.qml"
|
||||
|
@ -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 {
|
||||
|
@ -14,6 +14,7 @@ TextEdit {
|
||||
leftPadding: 0
|
||||
rightPadding: 0
|
||||
topPadding: 0
|
||||
selectedTextColor: FluColors.Grey220
|
||||
bottomPadding: 0
|
||||
selectionColor: FluTheme.primaryColor.lightest
|
||||
font:FluTextStyle.Body
|
||||
|
@ -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){
|
||||
|
Loading…
Reference in New Issue
Block a user