mirror of
https://github.com/zhuzichu520/FluentUI.git
synced 2024-11-01 08:31:33 +08:00
75 lines
1.8 KiB
QML
75 lines
1.8 KiB
QML
import QtQuick 2.15
|
|
import QtQuick.Layouts 1.15
|
|
import QtQuick.Controls 2.15
|
|
import QtQuick.Window 2.15
|
|
import FluentUI 1.0
|
|
import "../component"
|
|
|
|
FluScrollablePage{
|
|
|
|
title:"Rectangle"
|
|
|
|
FluArea{
|
|
Layout.fillWidth: true
|
|
Layout.topMargin: 20
|
|
height: 80
|
|
paddings: 10
|
|
|
|
Column{
|
|
spacing: 15
|
|
anchors{
|
|
left: parent.left
|
|
verticalCenter: parent.verticalCenter
|
|
}
|
|
RowLayout{
|
|
Layout.topMargin: 20
|
|
FluRectangle{
|
|
width: 50
|
|
height: 50
|
|
color:"#0078d4"
|
|
radius:[0,0,0,0]
|
|
}
|
|
FluRectangle{
|
|
width: 50
|
|
height: 50
|
|
color:"#744da9"
|
|
radius:[15,15,15,15]
|
|
}
|
|
FluRectangle{
|
|
width: 50
|
|
height: 50
|
|
color:"#ffeb3b"
|
|
radius:[15,0,0,0]
|
|
}
|
|
FluRectangle{
|
|
width: 50
|
|
height: 50
|
|
color:"#f7630c"
|
|
radius:[0,15,0,0]
|
|
}
|
|
FluRectangle{
|
|
width: 50
|
|
height: 50
|
|
color:"#e71123"
|
|
radius:[0,0,15,0]
|
|
}
|
|
FluRectangle{
|
|
width: 50
|
|
height: 50
|
|
color:"#b4009e"
|
|
radius:[0,0,0,15]
|
|
}
|
|
}
|
|
}
|
|
}
|
|
CodeExpander{
|
|
Layout.fillWidth: true
|
|
Layout.topMargin: -1
|
|
code:'FluRectangle{
|
|
radius: [25,25,25,25]
|
|
width: 50
|
|
height: 50
|
|
}'
|
|
}
|
|
}
|