forked from Shinonome/dots-hyprland
Revert "wallpaper selector: add thumbnail loading indicator"
This reverts commit fa47c6778c.
This commit is contained in:
@@ -11,7 +11,6 @@ MouseArea {
|
|||||||
required property var fileModelData
|
required property var fileModelData
|
||||||
property bool isDirectory: fileModelData.fileIsDir
|
property bool isDirectory: fileModelData.fileIsDir
|
||||||
property bool useThumbnail: Images.isValidImageByName(fileModelData.fileName)
|
property bool useThumbnail: Images.isValidImageByName(fileModelData.fileName)
|
||||||
property bool showLoadingIndicator: false
|
|
||||||
|
|
||||||
property alias colBackground: background.color
|
property alias colBackground: background.color
|
||||||
property alias colText: wallpaperItemName.color
|
property alias colText: wallpaperItemName.color
|
||||||
@@ -70,8 +69,6 @@ MouseArea {
|
|||||||
sourceSize.width: wallpaperItemColumnLayout.width
|
sourceSize.width: wallpaperItemColumnLayout.width
|
||||||
sourceSize.height: wallpaperItemColumnLayout.height - wallpaperItemColumnLayout.spacing - wallpaperItemName.height
|
sourceSize.height: wallpaperItemColumnLayout.height - wallpaperItemColumnLayout.spacing - wallpaperItemName.height
|
||||||
|
|
||||||
onVisibleChanged: root.showLoadingIndicator = !thumbnailImage.visible
|
|
||||||
|
|
||||||
Connections {
|
Connections {
|
||||||
target: Wallpapers
|
target: Wallpapers
|
||||||
function onThumbnailGenerated(directory) {
|
function onThumbnailGenerated(directory) {
|
||||||
@@ -109,15 +106,6 @@ MouseArea {
|
|||||||
sourceSize.height: wallpaperItemColumnLayout.height - wallpaperItemColumnLayout.spacing - wallpaperItemName.height
|
sourceSize.height: wallpaperItemColumnLayout.height - wallpaperItemColumnLayout.spacing - wallpaperItemName.height
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
FadeLoader {
|
|
||||||
id: loadingIndicatorLoader
|
|
||||||
shown: root.showLoadingIndicator
|
|
||||||
anchors.centerIn: parent
|
|
||||||
sourceComponent: MaterialLoadingIndicator {
|
|
||||||
loading: true
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
StyledText {
|
StyledText {
|
||||||
|
|||||||
Reference in New Issue
Block a user