mirror of
https://github.com/zhuzichu520/FluentUI.git
synced 2024-11-23 11:17:15 +08:00
58 lines
1.2 KiB
QML
58 lines
1.2 KiB
QML
import QtQuick 2.15
|
|
import QtQuick.Controls 2.15
|
|
import QtQuick.Layouts 1.15
|
|
import QtQuick.Window 2.15
|
|
import QtGraphicalEffects 1.15
|
|
import FluentUI 1.0
|
|
|
|
FluScrollablePage{
|
|
|
|
title:"ColorPicker"
|
|
|
|
FluArea{
|
|
width: parent.width
|
|
height: 280
|
|
Layout.topMargin: 20
|
|
paddings: 10
|
|
ColumnLayout{
|
|
anchors{
|
|
verticalCenter: parent.verticalCenter
|
|
left:parent.left
|
|
}
|
|
FluText{
|
|
text:"此颜色组件是Github上的开源项目"
|
|
}
|
|
FluTextButton{
|
|
leftPadding: 0
|
|
rightPadding: 0
|
|
text:"https://github.com/rshest/qml-colorpicker"
|
|
onClicked: {
|
|
Qt.openUrlExternally(text)
|
|
}
|
|
}
|
|
FluColorView{
|
|
|
|
}
|
|
}
|
|
}
|
|
|
|
FluArea{
|
|
width: parent.width
|
|
Layout.topMargin: 20
|
|
height: 60
|
|
paddings: 10
|
|
|
|
RowLayout{
|
|
FluText{
|
|
text:"点击选择颜色->"
|
|
Layout.alignment: Qt.AlignVCenter
|
|
}
|
|
FluColorPicker{
|
|
|
|
}
|
|
}
|
|
}
|
|
|
|
}
|
|
|