mirror of
https://github.com/zhuzichu520/FluentUI.git
synced 2024-11-23 11:17:15 +08:00
146 lines
3.5 KiB
QML
146 lines
3.5 KiB
QML
|
import QtQuick 2.15
|
|||
|
import QtQuick.Layouts 1.15
|
|||
|
import QtQuick.Window 2.15
|
|||
|
import QtGraphicalEffects 1.15
|
|||
|
import FluentUI 1.0
|
|||
|
|
|||
|
Item {
|
|||
|
|
|||
|
ColumnLayout{
|
|||
|
spacing: 5
|
|||
|
|
|||
|
FluText{
|
|||
|
text:"Rectangle"
|
|||
|
fontStyle: FluText.TitleLarge
|
|||
|
}
|
|||
|
|
|||
|
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]
|
|||
|
}
|
|||
|
|
|||
|
}
|
|||
|
|
|||
|
FluText{
|
|||
|
text:"配合图片使用"
|
|||
|
fontStyle: FluText.Subtitle
|
|||
|
Layout.topMargin: 20
|
|||
|
}
|
|||
|
|
|||
|
RowLayout{
|
|||
|
spacing: 14
|
|||
|
FluRectangle{
|
|||
|
width: 50
|
|||
|
height: 50
|
|||
|
radius:[25,0,25,25]
|
|||
|
Image {
|
|||
|
asynchronous: true
|
|||
|
anchors.fill: parent
|
|||
|
source: "qrc:/res/svg/avatar_1.svg"
|
|||
|
}
|
|||
|
layer.enabled: true
|
|||
|
layer.effect: FluDropShadow {}
|
|||
|
|
|||
|
}
|
|||
|
FluRectangle{
|
|||
|
width: 50
|
|||
|
height: 50
|
|||
|
radius:[10,10,10,10]
|
|||
|
Image {
|
|||
|
asynchronous: true
|
|||
|
anchors.fill: parent
|
|||
|
source: "qrc:/res/svg/avatar_2.svg"
|
|||
|
}
|
|||
|
layer.enabled: true
|
|||
|
layer.effect: FluDropShadow {}
|
|||
|
}
|
|||
|
FluRectangle{
|
|||
|
width: 50
|
|||
|
height: 50
|
|||
|
radius:[25,25,25,25]
|
|||
|
Image {
|
|||
|
asynchronous: true
|
|||
|
anchors.fill: parent
|
|||
|
source: "qrc:/res/svg/avatar_3.svg"
|
|||
|
}
|
|||
|
layer.enabled: true
|
|||
|
layer.effect: DropShadow {
|
|||
|
radius: 5
|
|||
|
samples: 4
|
|||
|
color: "#80000000"
|
|||
|
}
|
|||
|
}
|
|||
|
FluRectangle{
|
|||
|
width: 50
|
|||
|
height: 50
|
|||
|
radius:[0,25,25,25]
|
|||
|
Image {
|
|||
|
asynchronous: true
|
|||
|
anchors.fill: parent
|
|||
|
source: "qrc:/res/svg/avatar_4.svg"
|
|||
|
}
|
|||
|
layer.enabled: true
|
|||
|
layer.effect: FluDropShadow {}
|
|||
|
}
|
|||
|
}
|
|||
|
|
|||
|
FluRectangle{
|
|||
|
width: 1080/5
|
|||
|
height: 1439/5
|
|||
|
radius:[25,25,25,25]
|
|||
|
Image {
|
|||
|
asynchronous: true
|
|||
|
source: "qrc:/res/image/image_huoyin.webp"
|
|||
|
anchors.fill: parent
|
|||
|
}
|
|||
|
Layout.topMargin: 10
|
|||
|
layer.enabled: true
|
|||
|
layer.effect: FluDropShadow {}
|
|||
|
}
|
|||
|
|
|||
|
|
|||
|
|
|||
|
|
|||
|
}
|
|||
|
}
|