mirror of
https://github.com/YACReader/yacreader
synced 2025-05-25 18:00:46 -04:00
Replace DropShadow with a prerendered shadow image to boost performance
This commit is contained in:
parent
44ae4cc2a6
commit
974bc40e90
@ -27,5 +27,6 @@
|
|||||||
<file>qml/InfoTick.qml</file>
|
<file>qml/InfoTick.qml</file>
|
||||||
<file>qml/InfoFavorites.qml</file>
|
<file>qml/InfoFavorites.qml</file>
|
||||||
<file>qml/InfoRating.qml</file>
|
<file>qml/InfoRating.qml</file>
|
||||||
|
<file>qml/prerendered_cover_shadow.png</file>
|
||||||
</qresource>
|
</qresource>
|
||||||
</RCC>
|
</RCC>
|
||||||
|
@ -65,15 +65,19 @@ SplitView {
|
|||||||
NumberAnimation { duration: 90 }
|
NumberAnimation { duration: 90 }
|
||||||
}
|
}
|
||||||
|
|
||||||
DropShadow {
|
BorderImage {
|
||||||
anchors.fill: realCell
|
anchors {
|
||||||
horizontalOffset: 0
|
top: realCell.top
|
||||||
verticalOffset: 0
|
left: realCell.left
|
||||||
radius: 8.0
|
right: realCell.right
|
||||||
samples: 17
|
bottom: realCell.bottom
|
||||||
color: "#FF000000"
|
margins: -10
|
||||||
source: realCell
|
}
|
||||||
visible: showDropShadow;
|
border { left: 10; top: 10; right: 10; bottom: 10 }
|
||||||
|
horizontalTileMode: BorderImage.Stretch
|
||||||
|
verticalTileMode: BorderImage.Stretch
|
||||||
|
source: "prerendered_cover_shadow.png"
|
||||||
|
visible: showDropShadow
|
||||||
}
|
}
|
||||||
|
|
||||||
Rectangle {
|
Rectangle {
|
||||||
|
@ -67,16 +67,19 @@ SplitView {
|
|||||||
NumberAnimation { duration: 90 }
|
NumberAnimation { duration: 90 }
|
||||||
}
|
}
|
||||||
|
|
||||||
DropShadow {
|
BorderImage {
|
||||||
anchors.fill: realCell
|
anchors {
|
||||||
transparentBorder: true
|
top: realCell.top
|
||||||
horizontalOffset: 0
|
left: realCell.left
|
||||||
verticalOffset: 0
|
right: realCell.right
|
||||||
radius: 10.0
|
bottom: realCell.bottom
|
||||||
//samples: 17
|
margins: -10
|
||||||
color: "#FF000000"
|
}
|
||||||
source: realCell
|
border { left: 10; top: 10; right: 10; bottom: 10 }
|
||||||
visible: showDropShadow;
|
horizontalTileMode: BorderImage.Stretch
|
||||||
|
verticalTileMode: BorderImage.Stretch
|
||||||
|
source: "prerendered_cover_shadow.png"
|
||||||
|
visible: showDropShadow
|
||||||
}
|
}
|
||||||
|
|
||||||
Rectangle {
|
Rectangle {
|
||||||
|
BIN
YACReaderLibrary/qml/prerendered_cover_shadow.png
Normal file
BIN
YACReaderLibrary/qml/prerendered_cover_shadow.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 289 B |
@ -27,5 +27,6 @@
|
|||||||
<file>qml/info-tag@2x.png</file>
|
<file>qml/info-tag@2x.png</file>
|
||||||
<file>qml/info-tick.png</file>
|
<file>qml/info-tick.png</file>
|
||||||
<file>qml/info-tick@2x.png</file>
|
<file>qml/info-tick@2x.png</file>
|
||||||
|
<file>qml/prerendered_cover_shadow.png</file>
|
||||||
</qresource>
|
</qresource>
|
||||||
</RCC>
|
</RCC>
|
||||||
|
Loading…
Reference in New Issue
Block a user