mirror of
https://github.com/zhuzichu520/FluentUI.git
synced 2024-11-27 05:38:37 +08:00
commit
4e4760e37f
@ -22,6 +22,7 @@ FluScrollablePage{
|
|||||||
Layout.fillWidth: true
|
Layout.fillWidth: true
|
||||||
height: 320
|
height: 320
|
||||||
Image {
|
Image {
|
||||||
|
id: bg
|
||||||
fillMode:Image.PreserveAspectCrop
|
fillMode:Image.PreserveAspectCrop
|
||||||
anchors.fill: parent
|
anchors.fill: parent
|
||||||
verticalAlignment: Qt.AlignTop
|
verticalAlignment: Qt.AlignTop
|
||||||
@ -61,6 +62,7 @@ FluScrollablePage{
|
|||||||
}
|
}
|
||||||
clip: false
|
clip: false
|
||||||
delegate:Item{
|
delegate:Item{
|
||||||
|
id: control
|
||||||
width: 220
|
width: 220
|
||||||
height: 240
|
height: 240
|
||||||
FluArea{
|
FluArea{
|
||||||
@ -68,6 +70,15 @@ FluScrollablePage{
|
|||||||
width: 200
|
width: 200
|
||||||
height: 220
|
height: 220
|
||||||
anchors.centerIn: parent
|
anchors.centerIn: parent
|
||||||
|
color: 'transparent'
|
||||||
|
FluAcrylic {
|
||||||
|
sourceItem:bg
|
||||||
|
anchors.fill: parent
|
||||||
|
color: FluTheme.dark ? 'black' : 'white'
|
||||||
|
rectX: control.parent.x-control.parent.contentX+10+(control.width)*index
|
||||||
|
rectY: control.parent.y+10
|
||||||
|
acrylicOpacity:0.5
|
||||||
|
}
|
||||||
Rectangle{
|
Rectangle{
|
||||||
anchors.fill: parent
|
anchors.fill: parent
|
||||||
radius: 8
|
radius: 8
|
||||||
|
@ -8,6 +8,8 @@ Item {
|
|||||||
property alias acrylicOpacity: rect.opacity
|
property alias acrylicOpacity: rect.opacity
|
||||||
property alias radius:bg.radius
|
property alias radius:bg.radius
|
||||||
property alias blurRadius: blur.radius
|
property alias blurRadius: blur.radius
|
||||||
|
property int rectX: control.x
|
||||||
|
property int rectY: control.y
|
||||||
property var sourceItem: control.parent
|
property var sourceItem: control.parent
|
||||||
FluRectangle{
|
FluRectangle{
|
||||||
id:bg
|
id:bg
|
||||||
@ -17,7 +19,7 @@ Item {
|
|||||||
id: effect_source
|
id: effect_source
|
||||||
anchors.fill: parent
|
anchors.fill: parent
|
||||||
sourceItem: control.sourceItem
|
sourceItem: control.sourceItem
|
||||||
sourceRect: Qt.rect(control.x, control.y, control.width, control.height)
|
sourceRect: Qt.rect(rectX, rectY, control.width, control.height)
|
||||||
Rectangle {
|
Rectangle {
|
||||||
id: rect
|
id: rect
|
||||||
anchors.fill: parent
|
anchors.fill: parent
|
||||||
|
Loading…
Reference in New Issue
Block a user