forked from Shinonome/dots-hyprland
use StyledImage in more places
This commit is contained in:
@@ -175,16 +175,10 @@ Variants {
|
|||||||
anchors.fill: parent
|
anchors.fill: parent
|
||||||
clip: true
|
clip: true
|
||||||
|
|
||||||
Image {
|
StyledImage {
|
||||||
id: wallpaper
|
id: wallpaper
|
||||||
visible: opacity > 0 && !blurLoader.active
|
visible: opacity > 0 && !blurLoader.active
|
||||||
opacity: (status === Image.Ready && !bgRoot.wallpaperIsVideo) ? 1 : 0
|
|
||||||
Behavior on opacity {
|
|
||||||
animation: Appearance.animation.elementMoveEnter.numberAnimation.createObject(this)
|
|
||||||
}
|
|
||||||
cache: false
|
cache: false
|
||||||
asynchronous: true
|
|
||||||
retainWhileLoading: true
|
|
||||||
smooth: false
|
smooth: false
|
||||||
// Range = groups that workspaces span on
|
// Range = groups that workspaces span on
|
||||||
property int chunkSize: Config?.options.bar.workspaces.shown ?? 10
|
property int chunkSize: Config?.options.bar.workspaces.shown ?? 10
|
||||||
|
|||||||
@@ -77,7 +77,7 @@ Rectangle {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
Image {
|
StyledImage {
|
||||||
id: image
|
id: image
|
||||||
anchors.fill: parent
|
anchors.fill: parent
|
||||||
|
|
||||||
|
|||||||
@@ -161,7 +161,7 @@ Item { // Player instance
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
Image { // Art image
|
StyledImage { // Art image
|
||||||
id: mediaArt
|
id: mediaArt
|
||||||
property int size: parent.height
|
property int size: parent.height
|
||||||
anchors.fill: parent
|
anchors.fill: parent
|
||||||
@@ -170,7 +170,6 @@ Item { // Player instance
|
|||||||
fillMode: Image.PreserveAspectCrop
|
fillMode: Image.PreserveAspectCrop
|
||||||
cache: false
|
cache: false
|
||||||
antialiasing: true
|
antialiasing: true
|
||||||
asynchronous: true
|
|
||||||
|
|
||||||
width: size
|
width: size
|
||||||
height: size
|
height: size
|
||||||
|
|||||||
@@ -125,13 +125,12 @@ Rectangle {
|
|||||||
sourceComponent: Item {
|
sourceComponent: Item {
|
||||||
implicitHeight: root.imageHeight * root.scale
|
implicitHeight: root.imageHeight * root.scale
|
||||||
implicitWidth: imagePreview.implicitWidth
|
implicitWidth: imagePreview.implicitWidth
|
||||||
Image {
|
StyledImage {
|
||||||
id: imagePreview
|
id: imagePreview
|
||||||
anchors.fill: parent
|
anchors.fill: parent
|
||||||
source: Qt.resolvedUrl(root.filePath)
|
source: Qt.resolvedUrl(root.filePath)
|
||||||
fillMode: Image.PreserveAspectFit
|
fillMode: Image.PreserveAspectFit
|
||||||
antialiasing: true
|
antialiasing: true
|
||||||
asynchronous: true
|
|
||||||
width: root.imageWidth * root.scale
|
width: root.imageWidth * root.scale
|
||||||
height: root.imageHeight * root.scale
|
height: root.imageHeight * root.scale
|
||||||
sourceSize.width: root.imageWidth * root.scale
|
sourceSize.width: root.imageWidth * root.scale
|
||||||
|
|||||||
@@ -58,7 +58,7 @@ Button {
|
|||||||
contentItem: Item {
|
contentItem: Item {
|
||||||
anchors.fill: parent
|
anchors.fill: parent
|
||||||
|
|
||||||
Image {
|
StyledImage {
|
||||||
id: imageObject
|
id: imageObject
|
||||||
anchors.fill: parent
|
anchors.fill: parent
|
||||||
width: root.rowHeight * modelData.aspect_ratio
|
width: root.rowHeight * modelData.aspect_ratio
|
||||||
@@ -68,12 +68,6 @@ Button {
|
|||||||
sourceSize.width: root.rowHeight * modelData.aspect_ratio
|
sourceSize.width: root.rowHeight * modelData.aspect_ratio
|
||||||
sourceSize.height: root.rowHeight
|
sourceSize.height: root.rowHeight
|
||||||
|
|
||||||
visible: opacity > 0
|
|
||||||
opacity: status === Image.Ready ? 1 : 0
|
|
||||||
Behavior on opacity {
|
|
||||||
animation: Appearance.animation.elementMoveEnter.numberAnimation.createObject(this)
|
|
||||||
}
|
|
||||||
|
|
||||||
layer.enabled: true
|
layer.enabled: true
|
||||||
layer.effect: OpacityMask {
|
layer.effect: OpacityMask {
|
||||||
maskSource: Rectangle {
|
maskSource: Rectangle {
|
||||||
|
|||||||
Reference in New Issue
Block a user