From 63573bd0258abc3f82e3b397ef308d861e0feaae Mon Sep 17 00:00:00 2001 From: reionwong Date: Sun, 3 Oct 2021 20:06:54 +0800 Subject: [PATCH] Fix background --- qml/AllAppsView.qml | 2 +- qml/GridItemDelegate.qml | 2 +- qml/main.qml | 19 +++++++++++++------ 3 files changed, 15 insertions(+), 8 deletions(-) diff --git a/qml/AllAppsView.qml b/qml/AllAppsView.qml index a7934c3..a169c63 100644 --- a/qml/AllAppsView.qml +++ b/qml/AllAppsView.qml @@ -1,7 +1,7 @@ /* * Copyright (C) 2021 CutefishOS. * - * Author: Reoin Wong + * Author: Reoin Wong * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by diff --git a/qml/GridItemDelegate.qml b/qml/GridItemDelegate.qml index 7b8940e..9f93d90 100755 --- a/qml/GridItemDelegate.qml +++ b/qml/GridItemDelegate.qml @@ -1,7 +1,7 @@ /* * Copyright (C) 2021 CutefishOS. * - * Author: revenmartin + * Author: Reoin Wong * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by diff --git a/qml/main.qml b/qml/main.qml index f72fad0..c5df004 100755 --- a/qml/main.qml +++ b/qml/main.qml @@ -1,7 +1,7 @@ /* * Copyright (C) 2021 CutefishOS. * - * Author: revenmartin + * Author: Reoin Wong * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by @@ -110,8 +110,14 @@ Item { id: backend } + Rectangle { + anchors.fill: parent + color: backend.color + visible: backend.type === 1 + } + Image { - id: wallpaper + id: wallpaperImage anchors.fill: parent source: "file://" + backend.path sourceSize: Qt.size(launcher.screenRect.width, @@ -120,21 +126,22 @@ Item { asynchronous: false cache: false smooth: true + visible: backend.type === 0 } FastBlur { id: wallpaperBlur anchors.fill: parent radius: 72 - source: wallpaper - cached: true - visible: true + source: wallpaperImage + cached: false + visible: wallpaperImage.visible } ColorOverlay { id: wallpaperColor anchors.fill: parent - source: wallpaperBlur + source: parent color: "#000000" opacity: backend.dimsWallpaper ? 0.5 : 0.4 visible: true