mirror of
https://github.com/YACReader/yacreader
synced 2026-03-02 10:50:04 -05:00
Remove Qt5Compat dependency from qml
This commit is contained in:
@ -3,7 +3,7 @@ import QtQuick
|
||||
import QtQuick.Controls
|
||||
import QtQuick.Layouts
|
||||
|
||||
import Qt5Compat.GraphicalEffects
|
||||
import QtQuick.Effects
|
||||
|
||||
import com.yacreader.ComicModel 1.0
|
||||
|
||||
@ -119,18 +119,31 @@ Rectangle {
|
||||
mipmap: true
|
||||
asynchronous : true
|
||||
cache: true
|
||||
visible: false
|
||||
}
|
||||
|
||||
Item {
|
||||
id: coverMask
|
||||
anchors.fill: parent
|
||||
layer.enabled: true
|
||||
layer.effect: OpacityMask {
|
||||
layer.smooth: true
|
||||
visible: false
|
||||
|
||||
Rectangle {
|
||||
anchors.fill: parent
|
||||
cached: true
|
||||
maskSource: Rectangle {
|
||||
width: coverElement.width
|
||||
height: coverElement.height
|
||||
radius: 10
|
||||
}
|
||||
radius: 10
|
||||
color: "black"
|
||||
}
|
||||
}
|
||||
|
||||
MultiEffect {
|
||||
source: coverImage
|
||||
anchors.fill: coverImage
|
||||
maskEnabled: true
|
||||
maskSource: coverMask
|
||||
maskThresholdMin: 0.5
|
||||
maskSpreadAtMin: 1.0
|
||||
}
|
||||
}
|
||||
|
||||
//is new
|
||||
|
||||
Reference in New Issue
Block a user