2023-05-12 19:26:49 +08:00
|
|
|
|
import QtQuick
|
|
|
|
|
import QtQuick.Layouts
|
|
|
|
|
import QtQuick.Window
|
|
|
|
|
import QtQuick.Controls
|
|
|
|
|
import FluentUI
|
|
|
|
|
import "../component"
|
|
|
|
|
|
|
|
|
|
FluScrollablePage{
|
|
|
|
|
|
|
|
|
|
title:"Acrylic"
|
|
|
|
|
|
|
|
|
|
FluArea{
|
|
|
|
|
Layout.fillWidth: true
|
|
|
|
|
Layout.topMargin: 20
|
2023-05-12 22:22:55 +08:00
|
|
|
|
height: 1200/5+20
|
2023-05-12 19:26:49 +08:00
|
|
|
|
paddings: 10
|
|
|
|
|
|
|
|
|
|
FluRectangle{
|
2023-05-12 22:22:55 +08:00
|
|
|
|
width: 1920/5
|
|
|
|
|
height: 1200/5
|
|
|
|
|
radius:[15,15,15,15]
|
2023-05-12 19:26:49 +08:00
|
|
|
|
Image {
|
|
|
|
|
asynchronous: true
|
2023-05-12 22:22:55 +08:00
|
|
|
|
source: "qrc:/example/res/image/banner_3.jpg"
|
2023-05-12 19:26:49 +08:00
|
|
|
|
anchors.fill: parent
|
|
|
|
|
sourceSize: Qt.size(width,height)
|
|
|
|
|
FluAcrylic {
|
2023-05-12 22:22:55 +08:00
|
|
|
|
anchors.bottom: parent.bottom
|
|
|
|
|
anchors.right: parent.right
|
2023-05-12 19:26:49 +08:00
|
|
|
|
width: 100
|
|
|
|
|
height: 100
|
|
|
|
|
FluText {
|
|
|
|
|
anchors.centerIn: parent
|
|
|
|
|
text: "Acrylic"
|
|
|
|
|
color: "#FFFFFF"
|
|
|
|
|
font.bold: true
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
2023-05-12 22:22:55 +08:00
|
|
|
|
Layout.topMargin: 20
|
2023-05-12 19:26:49 +08:00
|
|
|
|
}
|
2023-05-12 22:22:55 +08:00
|
|
|
|
|
2023-05-12 19:26:49 +08:00
|
|
|
|
}
|
|
|
|
|
CodeExpander{
|
|
|
|
|
Layout.fillWidth: true
|
|
|
|
|
Layout.topMargin: -1
|
|
|
|
|
code:'Image{
|
|
|
|
|
width: 800
|
|
|
|
|
height: 600
|
|
|
|
|
source: "qrc:/example/res/image/image_huoyin.webp"
|
|
|
|
|
radius: 8
|
|
|
|
|
FluAcrylic{
|
|
|
|
|
width: 100
|
|
|
|
|
height: 100
|
|
|
|
|
anchors.centerIn: parent
|
|
|
|
|
}
|
|
|
|
|
}'
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
}
|