2023-03-30 21:52:55 +08:00
|
|
|
|
import QtQuick
|
|
|
|
|
import QtQuick.Controls
|
|
|
|
|
import QtQuick.Layouts
|
|
|
|
|
import QtQuick.Window
|
|
|
|
|
import FluentUI
|
2023-03-23 17:40:10 +08:00
|
|
|
|
|
|
|
|
|
FluScrollablePage{
|
|
|
|
|
|
|
|
|
|
title:"ColorPicker"
|
2023-03-28 17:53:46 +08:00
|
|
|
|
leftPadding:10
|
|
|
|
|
rightPadding:10
|
|
|
|
|
bottomPadding:20
|
2023-03-23 17:40:10 +08:00
|
|
|
|
|
|
|
|
|
FluArea{
|
2023-04-03 09:32:06 +08:00
|
|
|
|
Layout.fillWidth: true
|
2023-03-23 17:40:10 +08:00
|
|
|
|
height: 280
|
|
|
|
|
Layout.topMargin: 20
|
|
|
|
|
paddings: 10
|
|
|
|
|
ColumnLayout{
|
|
|
|
|
anchors{
|
|
|
|
|
verticalCenter: parent.verticalCenter
|
|
|
|
|
left:parent.left
|
|
|
|
|
}
|
|
|
|
|
FluText{
|
2023-03-24 14:15:06 +08:00
|
|
|
|
text:"此颜色组件是Github上的开源项目"
|
2023-03-23 17:40:10 +08:00
|
|
|
|
}
|
|
|
|
|
FluTextButton{
|
|
|
|
|
leftPadding: 0
|
|
|
|
|
rightPadding: 0
|
|
|
|
|
text:"https://github.com/rshest/qml-colorpicker"
|
|
|
|
|
onClicked: {
|
|
|
|
|
Qt.openUrlExternally(text)
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
FluColorView{
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
FluArea{
|
2023-04-03 09:32:06 +08:00
|
|
|
|
Layout.fillWidth: true
|
2023-03-23 17:40:10 +08:00
|
|
|
|
Layout.topMargin: 20
|
|
|
|
|
height: 60
|
|
|
|
|
paddings: 10
|
|
|
|
|
|
|
|
|
|
RowLayout{
|
|
|
|
|
FluText{
|
|
|
|
|
text:"点击选择颜色->"
|
|
|
|
|
Layout.alignment: Qt.AlignVCenter
|
|
|
|
|
}
|
|
|
|
|
FluColorPicker{
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|