mirror of
https://github.com/zhuzichu520/FluentUI.git
synced 2024-10-31 00:07:36 +08:00
52 lines
1.4 KiB
QML
52 lines
1.4 KiB
QML
import QtQuick
|
|
import QtQuick.Layouts
|
|
import QtQuick.Window
|
|
import QtQuick.Controls
|
|
import FluentUI
|
|
import "qrc:///global/"
|
|
import "./component"
|
|
|
|
FluScrollablePage{
|
|
|
|
title:"Settings"
|
|
leftPadding:10
|
|
rightPadding:10
|
|
bottomPadding:20
|
|
spacing: 0
|
|
|
|
FluArea{
|
|
Layout.fillWidth: true
|
|
Layout.topMargin: 20
|
|
height: 200
|
|
paddings: 10
|
|
|
|
ColumnLayout{
|
|
spacing: 10
|
|
anchors{
|
|
verticalCenter: parent.verticalCenter
|
|
left: parent.left
|
|
}
|
|
|
|
FluText{
|
|
text:"NavigationView Display Mode"
|
|
fontStyle: FluText.BodyStrong
|
|
Layout.bottomMargin: 4
|
|
}
|
|
|
|
Repeater{
|
|
id:repeater
|
|
model: [{title:"Top",mode:FluNavigationView2.Top},{title:"Open",mode:FluNavigationView2.Open},{title:"Compact",mode:FluNavigationView2.Compact},{title:"Minimal",mode:FluNavigationView2.Minimal},{title:"Auto",mode:FluNavigationView2.Auto}]
|
|
delegate: FluRadioButton{
|
|
selected : MainEvent.displayMode===modelData.mode
|
|
text:modelData.title
|
|
onClicked:{
|
|
MainEvent.displayMode = modelData.mode
|
|
console.debug(modelData.mode)
|
|
}
|
|
}
|
|
}
|
|
}
|
|
|
|
}
|
|
}
|