This commit is contained in:
朱子楚\zhuzi
2024-03-09 18:26:54 +08:00
parent 7c0c4cc451
commit 97b9a789b0
32 changed files with 470 additions and 97 deletions

View File

@ -7,7 +7,7 @@ import "../component"
FluScrollablePage{
title:"Bar Chart"
title: qsTr("Bar Chart")
FluArea{
width: 500

View File

@ -7,7 +7,7 @@ import "../component"
FluScrollablePage{
title:"Bubble Chart"
title: qsTr("Bubble Chart")
function randomScalingFactor() {
return Math.random().toFixed(1);

View File

@ -7,7 +7,7 @@ import "../component"
FluScrollablePage{
title:"Line Chart"
title: qsTr("Line Chart")
FluArea{
width: 500

View File

@ -7,7 +7,7 @@ import "../component"
FluScrollablePage{
title:"Doughnut and Pie Chart"
title: qsTr("Pie Chart")
FluArea{
width: 500

View File

@ -7,7 +7,7 @@ import "../component"
FluScrollablePage{
title:"PolarArea Chart"
title: qsTr("Polar Area Chart")
FluArea{
width: 500

View File

@ -7,7 +7,7 @@ import "../component"
FluScrollablePage{
title:"Radar Chart"
title: qsTr("Radar Chart")
FluArea{
width: 500

View File

@ -7,7 +7,7 @@ import "../component"
FluScrollablePage{
title:"Scatter Chart"
title: qsTr("Scatter Chart")
function randomScalingFactor() {
return Math.random().toFixed(1);

View File

@ -14,14 +14,20 @@ FluScrollablePage{
Layout.topMargin: 20
height: 60
paddings: 10
RowLayout{
FluText{
text:"点击选择颜色->"
text: qsTr("Click to Select a Color - >")
Layout.alignment: Qt.AlignVCenter
}
FluColorPicker{
cancelText: qsTr("Cancel")
okText: qsTr("OK")
titleText: qsTr("Color Picker")
editText: qsTr("Edit Color")
redText: qsTr("Red")
greenText: qsTr("Green")
blueText: qsTr("Blue")
opacityText: qsTr("Opacity")
}
}
}

View File

@ -9,7 +9,7 @@ import "../component"
FluContentPage{
id:root
title:"Network"
title: qsTr("Network")
FluNetworkCallable{
id:callable

View File

@ -16,6 +16,11 @@ FluScrollablePage{
paddings: 10
FluShortcutPicker{
anchors.verticalCenter: parent.verticalCenter
title: qsTr("Activate the Shortcut")
message: qsTr("Press the key combination to change the shortcut")
positiveText: qsTr("Save")
neutralText: qsTr("Cancel")
negativeText: qsTr("Reset")
}
}
CodeExpander{

View File

@ -416,7 +416,7 @@ FluContentPage{
}
FluButton{
text:"Delete Selection"
text: qsTr("Delete Selection")
onClicked: {
var data = []
var rows = []
@ -440,7 +440,7 @@ FluContentPage{
}
FluButton{
text:"Add a row of Data"
text: qsTr("Add a row of Data")
onClicked: {
table_view.appendRow(genTestObject())
}

View File

@ -7,7 +7,7 @@ import "../component"
FluScrollablePage{
title:"Tour"
title: qsTr("Tour")
FluTour{
id:tour

View File

@ -8,11 +8,11 @@ import "../component"
FluWindow {
id:window
title:"FluentUI Initalizr"
title:qsTr("FluentUI Initalizr")
width: 600
height: 400
fixSize: true
modality: Qt.ApplicationModal
// modality: Qt.ApplicationModal
launchMode: FluWindowType.SingleTask
showStayTop: false
@ -28,7 +28,7 @@ FluWindow {
FluText{
id:text_title
text:"FluentUI脚手架"
text:qsTr("FluentUI Initalizr")
font: FluTextStyle.Title
anchors{
left: parent.left
@ -49,7 +49,7 @@ FluWindow {
FluTextBox{
id:text_box_name
width: 180
placeholderText: "名称"
placeholderText: qsTr("Name")
focus: true
}
Row{
@ -57,14 +57,14 @@ FluWindow {
FluTextBox{
id:text_box_path
width: 300
placeholderText: "创建路径"
placeholderText: qsTr("Create In")
anchors.verticalCenter: parent.verticalCenter
Component.onCompleted: {
text = FluTools.toLocalPath(StandardPaths.standardLocations(StandardPaths.DocumentsLocation)[0])
}
}
FluButton{
text:"浏览"
text:qsTr("Browse")
anchors.verticalCenter: parent.verticalCenter
onClicked: {
folder_dialog.open()
@ -95,7 +95,7 @@ FluWindow {
rightMargin: 20
}
FluButton{
text:"取消"
text:qsTr("Cancel")
width: 120
anchors.verticalCenter: parent.verticalCenter
onClicked: {
@ -103,7 +103,7 @@ FluWindow {
}
}
FluFilledButton{
text:"创建"
text:qsTr("Create")
width: 120
anchors.verticalCenter: parent.verticalCenter
onClicked: {