mirror of
https://github.com/YACReader/yacreader
synced 2026-03-01 10:22:58 -05:00
Remove Qt5Compat dependency from qml
This commit is contained in:
@ -2,7 +2,7 @@ import QtQuick
|
|||||||
|
|
||||||
import QtQuick.Controls
|
import QtQuick.Controls
|
||||||
|
|
||||||
import Qt5Compat.GraphicalEffects
|
import QtQuick.Effects
|
||||||
|
|
||||||
import com.yacreader.ComicModel 1.0
|
import com.yacreader.ComicModel 1.0
|
||||||
|
|
||||||
@ -39,14 +39,16 @@ Rectangle {
|
|||||||
mipmap: true
|
mipmap: true
|
||||||
asynchronous : true
|
asynchronous : true
|
||||||
cache: false //TODO clear cache only when it is needed
|
cache: false //TODO clear cache only when it is needed
|
||||||
opacity: 0
|
layer.enabled: true
|
||||||
visible: false
|
visible: false
|
||||||
}
|
}
|
||||||
|
|
||||||
FastBlur {
|
MultiEffect {
|
||||||
anchors.fill: backgroundImg
|
anchors.fill: backgroundImg
|
||||||
source: backgroundImg
|
source: backgroundImg
|
||||||
radius: backgroundBlurRadius
|
blurEnabled: true
|
||||||
|
blur: 1.0
|
||||||
|
blurMax: 64
|
||||||
opacity: backgroundBlurOpacity
|
opacity: backgroundBlurOpacity
|
||||||
visible: backgroundBlurVisible
|
visible: backgroundBlurVisible
|
||||||
}
|
}
|
||||||
|
|||||||
@ -3,7 +3,7 @@ import QtQuick
|
|||||||
import QtQuick.Controls
|
import QtQuick.Controls
|
||||||
import QtQuick.Layouts
|
import QtQuick.Layouts
|
||||||
|
|
||||||
import Qt5Compat.GraphicalEffects
|
import QtQuick.Effects
|
||||||
|
|
||||||
import com.yacreader.ComicModel 1.0
|
import com.yacreader.ComicModel 1.0
|
||||||
|
|
||||||
@ -119,18 +119,31 @@ Rectangle {
|
|||||||
mipmap: true
|
mipmap: true
|
||||||
asynchronous : true
|
asynchronous : true
|
||||||
cache: true
|
cache: true
|
||||||
|
visible: false
|
||||||
|
}
|
||||||
|
|
||||||
|
Item {
|
||||||
|
id: coverMask
|
||||||
|
anchors.fill: parent
|
||||||
layer.enabled: true
|
layer.enabled: true
|
||||||
layer.effect: OpacityMask {
|
layer.smooth: true
|
||||||
|
visible: false
|
||||||
|
|
||||||
|
Rectangle {
|
||||||
anchors.fill: parent
|
anchors.fill: parent
|
||||||
cached: true
|
radius: 10
|
||||||
maskSource: Rectangle {
|
color: "black"
|
||||||
width: coverElement.width
|
|
||||||
height: coverElement.height
|
|
||||||
radius: 10
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
MultiEffect {
|
||||||
|
source: coverImage
|
||||||
|
anchors.fill: coverImage
|
||||||
|
maskEnabled: true
|
||||||
|
maskSource: coverMask
|
||||||
|
maskThresholdMin: 0.5
|
||||||
|
maskSpreadAtMin: 1.0
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
//is new
|
//is new
|
||||||
|
|||||||
@ -3,7 +3,7 @@ import QtQuick
|
|||||||
import QtQuick.Controls
|
import QtQuick.Controls
|
||||||
import QtQuick.Layouts
|
import QtQuick.Layouts
|
||||||
|
|
||||||
import Qt5Compat.GraphicalEffects
|
import QtQuick.Effects
|
||||||
|
|
||||||
import com.yacreader.ComicModel 1.0
|
import com.yacreader.ComicModel 1.0
|
||||||
|
|
||||||
@ -33,14 +33,16 @@ SplitView {
|
|||||||
mipmap: true
|
mipmap: true
|
||||||
asynchronous : true
|
asynchronous : true
|
||||||
cache: false //TODO clear cache only when it is needed
|
cache: false //TODO clear cache only when it is needed
|
||||||
opacity: 0
|
layer.enabled: true
|
||||||
visible: false
|
visible: false
|
||||||
}
|
}
|
||||||
|
|
||||||
FastBlur {
|
MultiEffect {
|
||||||
anchors.fill: backgroundImg
|
anchors.fill: backgroundImg
|
||||||
source: backgroundImg
|
source: backgroundImg
|
||||||
radius: backgroundBlurRadius
|
blurEnabled: true
|
||||||
|
blur: 1.0
|
||||||
|
blurMax: 64
|
||||||
opacity: backgroundBlurOpacity
|
opacity: backgroundBlurOpacity
|
||||||
visible: backgroundBlurVisible
|
visible: backgroundBlurVisible
|
||||||
}
|
}
|
||||||
@ -472,18 +474,16 @@ SplitView {
|
|||||||
mipmap: true
|
mipmap: true
|
||||||
asynchronous : true
|
asynchronous : true
|
||||||
cache: false //TODO clear cache only when it is needed
|
cache: false //TODO clear cache only when it is needed
|
||||||
}
|
|
||||||
|
|
||||||
DropShadow {
|
layer.enabled: showDropShadow
|
||||||
anchors.fill: currentCoverElement
|
layer.effect: MultiEffect {
|
||||||
horizontalOffset: 0
|
shadowEnabled: true
|
||||||
verticalOffset: 0
|
shadowColor: "#FF000000"
|
||||||
radius: 8.0
|
shadowBlur: 1.0
|
||||||
transparentBorder: true
|
blurMax: 8
|
||||||
//samples: 17
|
shadowHorizontalOffset: 0
|
||||||
color: "#FF000000"
|
shadowVerticalOffset: 0
|
||||||
source: currentCoverElement
|
}
|
||||||
visible: showDropShadow;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
ColumnLayout
|
ColumnLayout
|
||||||
@ -685,19 +685,16 @@ SplitView {
|
|||||||
color: "white"
|
color: "white"
|
||||||
text: readButton.text
|
text: readButton.text
|
||||||
}
|
}
|
||||||
}
|
|
||||||
|
|
||||||
|
layer.enabled: showDropShadow && !readButton.pressed
|
||||||
DropShadow {
|
layer.effect: MultiEffect {
|
||||||
anchors.fill: readButton
|
shadowEnabled: true
|
||||||
transparentBorder: true
|
shadowColor: "#AA000000"
|
||||||
horizontalOffset: 0
|
shadowBlur: 1.0
|
||||||
verticalOffset: 0
|
blurMax: 8
|
||||||
radius: 8.0
|
shadowHorizontalOffset: 0
|
||||||
//samples: 17
|
shadowVerticalOffset: 0
|
||||||
color: "#AA000000"
|
}
|
||||||
source: readButton
|
|
||||||
visible: showDropShadow && !readButton.pressed
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user