mirror of
https://github.com/zhuzichu520/FluentUI.git
synced 2025-07-02 08:05:29 +08:00
update
This commit is contained in:
@ -55,6 +55,10 @@ FluWindow {
|
||||
text:"Rectangle"
|
||||
page:"qrc:/T_Rectangle.qml"
|
||||
}
|
||||
ListElement{
|
||||
text:"TreeView"
|
||||
page:"qrc:/T_TreeView.qml"
|
||||
}
|
||||
ListElement{
|
||||
text:"Theme"
|
||||
page:"qrc:/T_Theme.qml"
|
||||
@ -93,12 +97,6 @@ FluWindow {
|
||||
FluApp.navigate("/About")
|
||||
}
|
||||
}
|
||||
// FluMenuItem{
|
||||
// text:"设置"
|
||||
// onClicked:{
|
||||
// FluApp.navigate("/Setting")
|
||||
// }
|
||||
// }
|
||||
}
|
||||
onClicked:{
|
||||
menu.open()
|
||||
|
@ -6,11 +6,29 @@ import QtGraphicalEffects 1.15
|
||||
import FluentUI 1.0
|
||||
|
||||
Item {
|
||||
|
||||
FluText{
|
||||
id:title
|
||||
text:"Dialog"
|
||||
text:"Dialog"
|
||||
fontStyle: FluText.TitleLarge
|
||||
}
|
||||
|
||||
FluContentDialog{
|
||||
id:dialog
|
||||
title:"友情提示"
|
||||
message:"确定要退出程序么?"
|
||||
negativeText:"取消"
|
||||
onNegativeClicked:{
|
||||
showSuccess("点击取消按钮")
|
||||
}
|
||||
positiveText:"确定"
|
||||
onPositiveClicked:{
|
||||
showSuccess("点击确定按钮")
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
|
||||
ScrollView{
|
||||
clip: true
|
||||
width: parent.width
|
||||
@ -25,7 +43,7 @@ Item {
|
||||
Layout.topMargin: 20
|
||||
text:"Show Dialog"
|
||||
onClicked: {
|
||||
|
||||
dialog.open()
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@ -44,6 +44,7 @@ Item {
|
||||
progress_bar.progress = value/100
|
||||
progress_ring.progress = value/100
|
||||
}
|
||||
Layout.bottomMargin: 30
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@ -23,6 +23,7 @@ Item {
|
||||
spacing: 5
|
||||
FluSlider{
|
||||
Layout.topMargin: 20
|
||||
Layout.leftMargin: 15
|
||||
value: 50
|
||||
}
|
||||
}
|
||||
|
27
example/T_TreeView.qml
Normal file
27
example/T_TreeView.qml
Normal file
@ -0,0 +1,27 @@
|
||||
import QtQuick 2.15
|
||||
import QtQuick.Layouts 1.15
|
||||
import QtQuick.Window 2.15
|
||||
import QtQuick.Controls 2.15
|
||||
import QtGraphicalEffects 1.15
|
||||
import FluentUI 1.0
|
||||
|
||||
Item {
|
||||
FluText{
|
||||
id:title
|
||||
text:"TreeView"
|
||||
fontStyle: FluText.TitleLarge
|
||||
}
|
||||
FluTreeView{
|
||||
id:tree_view
|
||||
width:100
|
||||
anchors{
|
||||
top:title.bottom
|
||||
left:parent.left
|
||||
bottom:parent.bottom
|
||||
}
|
||||
Component.onCompleted: {
|
||||
|
||||
}
|
||||
|
||||
}
|
||||
}
|
@ -6,7 +6,7 @@ import FluentUI 1.0
|
||||
Item {
|
||||
FluText{
|
||||
id:title
|
||||
text:"Theme"
|
||||
text:"Typography"
|
||||
fontStyle: FluText.TitleLarge
|
||||
}
|
||||
ScrollView{
|
||||
@ -21,6 +21,7 @@ Item {
|
||||
spacing: 5
|
||||
FluText{
|
||||
text:"Display"
|
||||
Layout.topMargin: 20
|
||||
fontStyle: FluText.Display
|
||||
}
|
||||
FluText{
|
||||
|
@ -28,5 +28,6 @@
|
||||
<file>T_TextBox.qml</file>
|
||||
<file>T_Theme.qml</file>
|
||||
<file>T_Dialog.qml</file>
|
||||
<file>T_TreeView.qml</file>
|
||||
</qresource>
|
||||
</RCC>
|
||||
|
Reference in New Issue
Block a user