2023-10-22 03:59:27 +00:00
|
|
|
// SPDX-FileCopyrightText: 2023 Devin Lin <devin@kde.org>
|
|
|
|
|
// SPDX-License-Identifier: LGPL-2.0-or-later
|
2015-02-25 18:26:04 +00:00
|
|
|
|
2023-11-16 04:24:44 +00:00
|
|
|
import QtQuick
|
|
|
|
|
import QtQuick.Window
|
|
|
|
|
import QtQuick.Layouts
|
|
|
|
|
import QtQuick.Effects
|
2024-03-06 18:04:25 +00:00
|
|
|
import Qt5Compat.GraphicalEffects
|
2015-02-25 18:26:04 +00:00
|
|
|
|
2026-03-07 03:08:07 +00:00
|
|
|
import org.kde.kirigami as Kirigami
|
2023-07-25 01:13:52 +00:00
|
|
|
|
2015-02-25 18:26:04 +00:00
|
|
|
import org.kde.plasma.plasmoid 2.0
|
2019-09-04 16:39:31 +00:00
|
|
|
import org.kde.plasma.components 3.0 as PlasmaComponents
|
2015-02-25 18:26:04 +00:00
|
|
|
|
2023-11-02 11:08:17 +00:00
|
|
|
import org.kde.plasma.private.mobileshell as MobileShell
|
|
|
|
|
import org.kde.plasma.private.mobileshell.state as MobileShellState
|
2023-03-16 07:21:01 +00:00
|
|
|
import org.kde.plasma.private.mobileshell.windowplugin as WindowPlugin
|
2024-03-08 15:38:59 +00:00
|
|
|
import org.kde.plasma.private.mobileshell.shellsettingsplugin as ShellSettings
|
2020-07-22 15:17:10 +00:00
|
|
|
|
2026-04-11 07:42:21 +00:00
|
|
|
import org.kde.layershell 1.0 as LayerShell
|
|
|
|
|
|
2025-07-16 17:02:18 +00:00
|
|
|
import plasma.applet.org.kde.plasma.mobile.homescreen.folio as Folio
|
|
|
|
|
|
Folio/Halcyon: Expand Background Blur Effect using a MaskLayer
This merge request expands upon the folio and halcyon background blur effects, making the folio background blur include the backgrounds of folder icons, the favorites bar, and wallpaper selector, and for halcyon, it now includes the folder icons, app library, search, and wallpaper selector. To accomplish this, a mask layer plugin was created to easily attach to these elements. This way, we can use a `OpacityMask` to cut out from the existing blur layer, thus hopefully keeping the performance cost low. And with my limited testing, it does at least seems to run about the same on my oneplus 6t, though it is not really a low end device, so I can not fairly judge the impact for something slower (eg. PinePhone). To be on the safe side, a third option was also added to the folio settings, allowing for the ability to toggle back to the old functionality if needed.




2025-06-27 18:27:30 +00:00
|
|
|
import "./private"
|
|
|
|
|
|
2023-06-12 23:58:17 +00:00
|
|
|
ContainmentItem {
|
2015-02-25 18:26:04 +00:00
|
|
|
id: root
|
2024-06-21 04:42:14 +00:00
|
|
|
property Folio.HomeScreen folio: root.plasmoid
|
2015-02-25 18:26:04 +00:00
|
|
|
|
2019-09-04 16:39:31 +00:00
|
|
|
Component.onCompleted: {
|
2024-06-21 04:42:14 +00:00
|
|
|
folio.FolioSettings.load();
|
|
|
|
|
folio.FavouritesModel.load();
|
|
|
|
|
folio.PageListModel.load();
|
2015-03-05 12:37:39 +00:00
|
|
|
}
|
2023-06-12 23:58:17 +00:00
|
|
|
|
Folio/Halcyon: Expand Background Blur Effect using a MaskLayer
This merge request expands upon the folio and halcyon background blur effects, making the folio background blur include the backgrounds of folder icons, the favorites bar, and wallpaper selector, and for halcyon, it now includes the folder icons, app library, search, and wallpaper selector. To accomplish this, a mask layer plugin was created to easily attach to these elements. This way, we can use a `OpacityMask` to cut out from the existing blur layer, thus hopefully keeping the performance cost low. And with my limited testing, it does at least seems to run about the same on my oneplus 6t, though it is not really a low end device, so I can not fairly judge the impact for something slower (eg. PinePhone). To be on the safe side, a third option was also added to the folio settings, allowing for the ability to toggle back to the old functionality if needed.




2025-06-27 18:27:30 +00:00
|
|
|
property MobileShell.MaskManager maskManager: MobileShell.MaskManager {
|
|
|
|
|
height: root.height
|
|
|
|
|
width: root.width
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
property MobileShell.MaskManager frontMaskManager: MobileShell.MaskManager {
|
|
|
|
|
height: root.height
|
|
|
|
|
width: root.width
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
// wallpaper blur layer
|
|
|
|
|
MobileShell.BlurEffect {
|
2025-06-25 23:22:58 +00:00
|
|
|
id: wallpaperBlur
|
Folio/Halcyon: Expand Background Blur Effect using a MaskLayer
This merge request expands upon the folio and halcyon background blur effects, making the folio background blur include the backgrounds of folder icons, the favorites bar, and wallpaper selector, and for halcyon, it now includes the folder icons, app library, search, and wallpaper selector. To accomplish this, a mask layer plugin was created to easily attach to these elements. This way, we can use a `OpacityMask` to cut out from the existing blur layer, thus hopefully keeping the performance cost low. And with my limited testing, it does at least seems to run about the same on my oneplus 6t, though it is not really a low end device, so I can not fairly judge the impact for something slower (eg. PinePhone). To be on the safe side, a third option was also added to the folio settings, allowing for the ability to toggle back to the old functionality if needed.




2025-06-27 18:27:30 +00:00
|
|
|
active: folio.FolioSettings.wallpaperBlurEffect > 0
|
2023-11-17 06:40:07 +00:00
|
|
|
anchors.fill: parent
|
Folio/Halcyon: Expand Background Blur Effect using a MaskLayer
This merge request expands upon the folio and halcyon background blur effects, making the folio background blur include the backgrounds of folder icons, the favorites bar, and wallpaper selector, and for halcyon, it now includes the folder icons, app library, search, and wallpaper selector. To accomplish this, a mask layer plugin was created to easily attach to these elements. This way, we can use a `OpacityMask` to cut out from the existing blur layer, thus hopefully keeping the performance cost low. And with my limited testing, it does at least seems to run about the same on my oneplus 6t, though it is not really a low end device, so I can not fairly judge the impact for something slower (eg. PinePhone). To be on the safe side, a third option was also added to the folio settings, allowing for the ability to toggle back to the old functionality if needed.




2025-06-27 18:27:30 +00:00
|
|
|
sourceLayer: Plasmoid.wallpaperGraphicsObject
|
|
|
|
|
maskSourceLayer: folio.FolioSettings.wallpaperBlurEffect > 1 ? maskManager.maskLayer : null
|
|
|
|
|
|
|
|
|
|
fullBlur: Math.min(1,
|
|
|
|
|
Math.max(
|
|
|
|
|
1 - homeScreen.contentOpacity,
|
2026-04-09 10:29:46 +00:00
|
|
|
// Convergence: no blur for popup drawer
|
|
|
|
|
ShellSettings.Settings.convergenceModeEnabled ? 0 : folio.HomeScreenState.appDrawerOpenProgress * 2,
|
Folio/Halcyon: Expand Background Blur Effect using a MaskLayer
This merge request expands upon the folio and halcyon background blur effects, making the folio background blur include the backgrounds of folder icons, the favorites bar, and wallpaper selector, and for halcyon, it now includes the folder icons, app library, search, and wallpaper selector. To accomplish this, a mask layer plugin was created to easily attach to these elements. This way, we can use a `OpacityMask` to cut out from the existing blur layer, thus hopefully keeping the performance cost low. And with my limited testing, it does at least seems to run about the same on my oneplus 6t, though it is not really a low end device, so I can not fairly judge the impact for something slower (eg. PinePhone). To be on the safe side, a third option was also added to the folio settings, allowing for the ability to toggle back to the old functionality if needed.




2025-06-27 18:27:30 +00:00
|
|
|
folio.HomeScreenState.searchWidgetOpenProgress * 1.5, // blur faster during swipe
|
|
|
|
|
folio.HomeScreenState.folderOpenProgress
|
|
|
|
|
)
|
2025-06-25 23:22:58 +00:00
|
|
|
)
|
2023-11-15 16:42:43 +00:00
|
|
|
}
|
|
|
|
|
|
2024-06-23 22:47:24 +00:00
|
|
|
WindowPlugin.WindowMaximizedTracker {
|
|
|
|
|
id: windowMaximizedTracker
|
|
|
|
|
screenGeometry: Plasmoid.containment.screenGeometry
|
|
|
|
|
}
|
|
|
|
|
|
2026-04-09 08:14:33 +00:00
|
|
|
// Close app drawer when a new window appears
|
|
|
|
|
Connections {
|
|
|
|
|
target: WindowPlugin.WindowUtil
|
|
|
|
|
function onWindowCreated() {
|
|
|
|
|
if (folio.HomeScreenState.viewState === Folio.HomeScreenState.AppDrawerView) {
|
|
|
|
|
folio.HomeScreenState.closeAppDrawer();
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
2023-10-22 03:59:27 +00:00
|
|
|
function homeAction() {
|
2024-06-23 22:47:24 +00:00
|
|
|
const isInWindow = (!WindowPlugin.WindowUtil.isShowingDesktop && windowMaximizedTracker.showingWindow);
|
2023-03-20 01:32:19 +00:00
|
|
|
|
2024-03-08 15:38:59 +00:00
|
|
|
// Always close action drawer
|
|
|
|
|
if (MobileShellState.ShellDBusClient.isActionDrawerOpen) {
|
|
|
|
|
MobileShellState.ShellDBusClient.closeActionDrawer();
|
|
|
|
|
}
|
|
|
|
|
|
2023-10-22 03:59:27 +00:00
|
|
|
if (isInWindow) {
|
2024-07-08 04:08:53 +00:00
|
|
|
// Only minimize windows and go to homescreen when not in docked mode
|
2024-03-08 15:38:59 +00:00
|
|
|
if (!ShellSettings.Settings.convergenceModeEnabled) {
|
2024-06-21 04:42:14 +00:00
|
|
|
folio.HomeScreenState.closeFolder();
|
|
|
|
|
folio.HomeScreenState.closeSearchWidget();
|
|
|
|
|
folio.HomeScreenState.closeAppDrawer();
|
2024-11-09 17:34:57 +00:00
|
|
|
folio.HomeScreenState.goToPage(0, false);
|
2024-03-08 15:38:59 +00:00
|
|
|
|
2026-04-08 17:07:47 +00:00
|
|
|
WindowPlugin.WindowUtil.minimizeAll();
|
|
|
|
|
} else {
|
|
|
|
|
// In convergence mode, toggle "show desktop" (minimize all to reveal homescreen)
|
2024-03-16 04:06:42 +00:00
|
|
|
WindowPlugin.WindowUtil.minimizeAll();
|
2024-03-08 15:38:59 +00:00
|
|
|
}
|
2024-07-08 04:08:53 +00:00
|
|
|
|
|
|
|
|
// Always ensure settings view is closed
|
|
|
|
|
if (folio.HomeScreenState.viewState == Folio.HomeScreenState.SettingsView) {
|
|
|
|
|
folio.HomeScreenState.closeSettingsView();
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
} else { // If we are already on the homescreen
|
2024-06-21 04:42:14 +00:00
|
|
|
switch (folio.HomeScreenState.viewState) {
|
2023-10-22 03:59:27 +00:00
|
|
|
case Folio.HomeScreenState.PageView:
|
2026-04-08 18:12:48 +00:00
|
|
|
if (ShellSettings.Settings.convergenceModeEnabled || folio.HomeScreenState.currentPage === 0) {
|
2024-06-21 04:42:14 +00:00
|
|
|
folio.HomeScreenState.openAppDrawer();
|
2023-10-22 03:59:27 +00:00
|
|
|
} else {
|
2024-11-09 17:34:57 +00:00
|
|
|
folio.HomeScreenState.goToPage(0, false);
|
2023-10-22 03:59:27 +00:00
|
|
|
}
|
|
|
|
|
break;
|
|
|
|
|
case Folio.HomeScreenState.AppDrawerView:
|
2024-06-21 04:42:14 +00:00
|
|
|
folio.HomeScreenState.closeAppDrawer();
|
2023-10-22 03:59:27 +00:00
|
|
|
break;
|
|
|
|
|
case Folio.HomeScreenState.SearchWidgetView:
|
2024-06-21 04:42:14 +00:00
|
|
|
folio.HomeScreenState.closeSearchWidget();
|
2023-10-22 03:59:27 +00:00
|
|
|
break;
|
|
|
|
|
case Folio.HomeScreenState.FolderView:
|
2024-06-21 04:42:14 +00:00
|
|
|
folio.HomeScreenState.closeFolder();
|
2023-10-22 03:59:27 +00:00
|
|
|
break;
|
2024-07-08 04:08:53 +00:00
|
|
|
case Folio.HomeScreenState.SettingsView:
|
|
|
|
|
folio.HomeScreenState.closeSettingsView();
|
|
|
|
|
break;
|
2023-10-22 03:59:27 +00:00
|
|
|
}
|
2023-03-20 01:32:19 +00:00
|
|
|
}
|
2023-10-22 03:59:27 +00:00
|
|
|
}
|
2023-03-20 01:32:19 +00:00
|
|
|
|
2023-10-22 03:59:27 +00:00
|
|
|
Plasmoid.onActivated: homeAction()
|
2023-06-12 23:58:17 +00:00
|
|
|
|
2023-10-22 03:59:27 +00:00
|
|
|
Rectangle {
|
|
|
|
|
id: appDrawerBackground
|
|
|
|
|
anchors.fill: parent
|
2026-04-09 10:29:46 +00:00
|
|
|
// Convergence: no scrim (popup has own background); mobile: dark scrim
|
|
|
|
|
color: ShellSettings.Settings.convergenceModeEnabled
|
|
|
|
|
? "transparent"
|
|
|
|
|
: Qt.rgba(0, 0, 0, 0.6)
|
2023-06-12 23:58:17 +00:00
|
|
|
|
2024-06-21 04:42:14 +00:00
|
|
|
opacity: folio.HomeScreenState.appDrawerOpenProgress
|
2023-10-22 03:59:27 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
|
|
Rectangle {
|
|
|
|
|
id: searchWidgetBackground
|
|
|
|
|
anchors.fill: parent
|
|
|
|
|
color: Qt.rgba(0, 0, 0, 0.3)
|
|
|
|
|
|
2024-06-21 04:42:14 +00:00
|
|
|
opacity: folio.HomeScreenState.searchWidgetOpenProgress
|
2023-10-22 03:59:27 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
|
|
Rectangle {
|
|
|
|
|
id: settingsViewBackground
|
|
|
|
|
anchors.fill: parent
|
|
|
|
|
color: Qt.rgba(0, 0, 0, 0.3)
|
|
|
|
|
|
2024-06-21 04:42:14 +00:00
|
|
|
opacity: folio.HomeScreenState.settingsOpenProgress
|
2019-09-04 16:39:31 +00:00
|
|
|
}
|
2023-06-12 23:58:17 +00:00
|
|
|
|
2026-04-11 07:42:21 +00:00
|
|
|
// Dock overlay window — renders the favourites bar above application
|
|
|
|
|
// windows in convergence mode. LayerTop sits above normal windows but
|
|
|
|
|
// below LayerOverlay (notifications, volume OSD). The exclusive zone
|
|
|
|
|
// that reserves screen space is handled by the dockSpaceReserver in the
|
|
|
|
|
// task panel containment; this window only provides the visible dock.
|
|
|
|
|
Window {
|
|
|
|
|
id: dockOverlay
|
|
|
|
|
visible: ShellSettings.Settings.convergenceModeEnabled
|
|
|
|
|
color: "transparent"
|
|
|
|
|
width: Screen.width
|
|
|
|
|
height: Kirigami.Units.gridUnit * 3
|
|
|
|
|
|
|
|
|
|
LayerShell.Window.scope: "dock-overlay"
|
|
|
|
|
LayerShell.Window.layer: LayerShell.Window.LayerTop
|
|
|
|
|
LayerShell.Window.anchors: LayerShell.Window.AnchorBottom | LayerShell.Window.AnchorLeft | LayerShell.Window.AnchorRight
|
|
|
|
|
LayerShell.Window.exclusionZone: -1
|
|
|
|
|
LayerShell.Window.keyboardInteractivity: LayerShell.Window.KeyboardInteractivityOnDemand
|
|
|
|
|
|
2026-04-11 10:05:15 +00:00
|
|
|
// Auto-hide: slide dock content off-screen when a window is
|
|
|
|
|
// maximized. A HoverHandler brings it back on mouse proximity.
|
|
|
|
|
property real dockOffset: 0
|
|
|
|
|
readonly property real dockHeight: Kirigami.Units.gridUnit * 3
|
|
|
|
|
readonly property bool dockHovered: dockHoverHandler.hovered
|
|
|
|
|
readonly property bool shouldHide: windowMaximizedTracker.showingWindow && !dockHovered
|
|
|
|
|
|
|
|
|
|
onShouldHideChanged: {
|
|
|
|
|
if (shouldHide) {
|
|
|
|
|
dockOffset = dockHeight
|
|
|
|
|
} else {
|
|
|
|
|
dockOffset = 0
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
HoverHandler {
|
|
|
|
|
id: dockHoverHandler
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
Behavior on dockOffset {
|
|
|
|
|
NumberAnimation {
|
|
|
|
|
easing.type: dockOverlay.shouldHide ? Easing.InExpo : Easing.OutExpo
|
|
|
|
|
duration: Kirigami.Units.longDuration
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
2026-04-11 08:34:23 +00:00
|
|
|
Rectangle {
|
|
|
|
|
anchors.fill: parent
|
|
|
|
|
Kirigami.Theme.inherit: false
|
|
|
|
|
Kirigami.Theme.colorSet: Kirigami.Theme.Window
|
|
|
|
|
color: Kirigami.Theme.backgroundColor
|
2026-04-11 10:05:15 +00:00
|
|
|
transform: Translate { y: dockOverlay.dockOffset }
|
2026-04-11 08:34:23 +00:00
|
|
|
}
|
|
|
|
|
|
2026-04-11 07:42:21 +00:00
|
|
|
FavouritesBar {
|
|
|
|
|
id: dockOverlayBar
|
|
|
|
|
anchors.fill: parent
|
|
|
|
|
folio: root.folio
|
|
|
|
|
maskManager: root.maskManager
|
|
|
|
|
homeScreen: folioHomeScreen
|
2026-04-11 10:05:15 +00:00
|
|
|
transform: Translate { y: dockOverlay.dockOffset }
|
2026-04-11 07:42:21 +00:00
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
2023-06-12 23:58:17 +00:00
|
|
|
MobileShell.HomeScreen {
|
|
|
|
|
id: homeScreen
|
2023-10-22 03:59:27 +00:00
|
|
|
anchors.fill: parent
|
2023-06-12 23:58:17 +00:00
|
|
|
|
2023-09-20 12:41:40 +00:00
|
|
|
plasmoidItem: root
|
2023-06-12 23:58:17 +00:00
|
|
|
onResetHomeScreenPosition: {
|
2023-10-22 03:59:27 +00:00
|
|
|
// NOTE: empty, because this is handled by homeAction()
|
2022-04-06 21:59:36 +00:00
|
|
|
}
|
2023-06-12 23:58:17 +00:00
|
|
|
|
2023-10-22 03:59:27 +00:00
|
|
|
onHomeTriggered: root.homeAction()
|
2023-06-12 23:58:17 +00:00
|
|
|
|
|
|
|
|
contentItem: Item {
|
2023-10-22 03:59:27 +00:00
|
|
|
|
2023-06-12 23:58:17 +00:00
|
|
|
// homescreen component
|
2025-07-16 17:02:18 +00:00
|
|
|
FolioHomeScreen {
|
2023-06-12 23:58:17 +00:00
|
|
|
id: folioHomeScreen
|
2024-06-21 04:42:14 +00:00
|
|
|
folio: root.folio
|
Folio/Halcyon: Expand Background Blur Effect using a MaskLayer
This merge request expands upon the folio and halcyon background blur effects, making the folio background blur include the backgrounds of folder icons, the favorites bar, and wallpaper selector, and for halcyon, it now includes the folder icons, app library, search, and wallpaper selector. To accomplish this, a mask layer plugin was created to easily attach to these elements. This way, we can use a `OpacityMask` to cut out from the existing blur layer, thus hopefully keeping the performance cost low. And with my limited testing, it does at least seems to run about the same on my oneplus 6t, though it is not really a low end device, so I can not fairly judge the impact for something slower (eg. PinePhone). To be on the safe side, a third option was also added to the folio settings, allowing for the ability to toggle back to the old functionality if needed.




2025-06-27 18:27:30 +00:00
|
|
|
maskManager: root.maskManager
|
2023-06-12 23:58:17 +00:00
|
|
|
anchors.fill: parent
|
|
|
|
|
|
|
|
|
|
topMargin: homeScreen.topMargin
|
|
|
|
|
bottomMargin: homeScreen.bottomMargin
|
|
|
|
|
leftMargin: homeScreen.leftMargin
|
|
|
|
|
rightMargin: homeScreen.rightMargin
|
Folio/Halcyon: Expand Background Blur Effect using a MaskLayer
This merge request expands upon the folio and halcyon background blur effects, making the folio background blur include the backgrounds of folder icons, the favorites bar, and wallpaper selector, and for halcyon, it now includes the folder icons, app library, search, and wallpaper selector. To accomplish this, a mask layer plugin was created to easily attach to these elements. This way, we can use a `OpacityMask` to cut out from the existing blur layer, thus hopefully keeping the performance cost low. And with my limited testing, it does at least seems to run about the same on my oneplus 6t, though it is not really a low end device, so I can not fairly judge the impact for something slower (eg. PinePhone). To be on the safe side, a third option was also added to the folio settings, allowing for the ability to toggle back to the old functionality if needed.




2025-06-27 18:27:30 +00:00
|
|
|
|
2025-08-11 20:04:35 +00:00
|
|
|
// Ensure is the focused item at start
|
|
|
|
|
Component.onCompleted: forceActiveFocus()
|
|
|
|
|
|
Folio/Halcyon: Expand Background Blur Effect using a MaskLayer
This merge request expands upon the folio and halcyon background blur effects, making the folio background blur include the backgrounds of folder icons, the favorites bar, and wallpaper selector, and for halcyon, it now includes the folder icons, app library, search, and wallpaper selector. To accomplish this, a mask layer plugin was created to easily attach to these elements. This way, we can use a `OpacityMask` to cut out from the existing blur layer, thus hopefully keeping the performance cost low. And with my limited testing, it does at least seems to run about the same on my oneplus 6t, though it is not really a low end device, so I can not fairly judge the impact for something slower (eg. PinePhone). To be on the safe side, a third option was also added to the folio settings, allowing for the ability to toggle back to the old functionality if needed.




2025-06-27 18:27:30 +00:00
|
|
|
onWallpaperSelectorTriggered: wallpaperSelectorLoader.active = true
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
// top blur layer for items on top of the base homescreen
|
|
|
|
|
MobileShell.BlurEffect {
|
|
|
|
|
id: homescreenBlur
|
|
|
|
|
anchors.fill: parent
|
|
|
|
|
active: folio.FolioSettings.wallpaperBlurEffect > 1 && ((delegateDragItem.visible && folio.HomeScreenState.dragState.dropDelegate.type === Folio.FolioDelegate.Folder) || wallpaperSelectorLoader.active)
|
|
|
|
|
visible: active
|
|
|
|
|
fullBlur: 0
|
|
|
|
|
|
|
|
|
|
sourceLayer: homeScreenLayer
|
|
|
|
|
maskSourceLayer: frontMaskManager.maskLayer
|
|
|
|
|
|
|
|
|
|
// stacking both wallpaper and homescreen layers so we can blur them in one pass
|
|
|
|
|
Item {
|
|
|
|
|
id: homeScreenLayer
|
|
|
|
|
anchors.fill: parent
|
|
|
|
|
opacity: 0
|
|
|
|
|
|
|
|
|
|
// wallpaper blur
|
|
|
|
|
ShaderEffectSource {
|
|
|
|
|
anchors.fill: parent
|
|
|
|
|
|
|
|
|
|
textureSize: homescreenBlur.textureSize
|
|
|
|
|
sourceItem: Plasmoid.wallpaperGraphicsObject
|
|
|
|
|
hideSource: false
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
// homescreen blur
|
|
|
|
|
ShaderEffectSource {
|
|
|
|
|
anchors.fill: parent
|
|
|
|
|
|
|
|
|
|
textureSize: homescreenBlur.textureSize
|
|
|
|
|
sourceItem: homeScreen
|
|
|
|
|
hideSource: false
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
// drag and drop component
|
|
|
|
|
DelegateDragItem {
|
|
|
|
|
id: delegateDragItem
|
|
|
|
|
folio: root.folio
|
|
|
|
|
maskManager: root.frontMaskManager
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
// drag and drop for widgets
|
|
|
|
|
WidgetDragItem {
|
|
|
|
|
id: widgetDragItem
|
|
|
|
|
folio: root.folio
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
// loader for wallpaper selector
|
|
|
|
|
Loader {
|
|
|
|
|
id: wallpaperSelectorLoader
|
|
|
|
|
anchors.fill: parent
|
|
|
|
|
asynchronous: true
|
|
|
|
|
active: false
|
|
|
|
|
|
|
|
|
|
onLoaded: {
|
|
|
|
|
wallpaperSelectorLoader.item.open();
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
sourceComponent: MobileShell.WallpaperSelector {
|
|
|
|
|
maskManager: root.frontMaskManager
|
|
|
|
|
horizontal: root.width > root.height
|
|
|
|
|
edge: horizontal ? Qt.LeftEdge : Qt.BottomEdge
|
|
|
|
|
bottomMargin: horizontal ? 0 : folioHomeScreen.bottomMargin
|
|
|
|
|
leftMargin: horizontal ? folioHomeScreen.leftMargin : 0
|
|
|
|
|
rightMargin: horizontal ? folioHomeScreen.rightMargin : 0
|
|
|
|
|
onClosed: {
|
|
|
|
|
wallpaperSelectorLoader.active = false;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
onWallpaperSettingsRequested: {
|
|
|
|
|
close();
|
|
|
|
|
folioHomeScreen.openConfigure();
|
2023-06-12 23:58:17 +00:00
|
|
|
}
|
2022-04-06 16:04:57 +00:00
|
|
|
}
|
|
|
|
|
}
|
2015-06-20 21:45:19 +00:00
|
|
|
}
|
2023-10-22 03:59:27 +00:00
|
|
|
|