diff --git a/example/T_Typography.qml b/example/T_Typography.qml index d602fd1..1f2eb2c 100644 --- a/example/T_Typography.qml +++ b/example/T_Typography.qml @@ -8,6 +8,10 @@ FluContentPage { title: "Typography" property int textSize: 13 + Component.onCompleted: { + slider.seek(31) + } + ScrollView{ clip: true width: parent.width @@ -68,6 +72,7 @@ FluContentPage { FluSlider{ + id:slider orientation:FluSlider.Vertical anchors{ right: parent.right @@ -78,7 +83,6 @@ FluContentPage { onValueChanged:{ textSize = value/100*16+8 } - value: 31 } } diff --git a/example/main.cpp b/example/main.cpp index 5fd27ef..5fa46be 100644 --- a/example/main.cpp +++ b/example/main.cpp @@ -18,7 +18,6 @@ int main(int argc, char *argv[]) QCoreApplication::setOrganizationName("ZhuZiChu"); QCoreApplication::setOrganizationDomain("https://zhuzichu520.github.io"); QCoreApplication::setApplicationName("FluentUI"); -// QQuickWindow::setSceneGraphBackend(QSGRendererInterface::Software); QQuickStyle::setStyle("Basic"); QGuiApplication app(argc, argv); QQmlApplicationEngine engine; diff --git a/src/controls/FluContentDialog.qml b/src/controls/FluContentDialog.qml index 2173c32..9c3911e 100644 --- a/src/controls/FluContentDialog.qml +++ b/src/controls/FluContentDialog.qml @@ -22,7 +22,8 @@ Popup { modal:true anchors.centerIn: Overlay.overlay closePolicy: Popup.CloseOnEscape - background: Rectangle { + background:Item{} + contentItem: Rectangle { id:layout_content implicitWidth:minWidth implicitHeight: text_title.height + text_message.height + layout_actions.height