From 87f7bc28a3ef2a9f5139f7dd61b9a2707027ae19 Mon Sep 17 00:00:00 2001 From: end-4 <97237370+end-4@users.noreply.github.com> Date: Sun, 3 Aug 2025 18:17:01 +0700 Subject: [PATCH] chores: remove unnecessary import, suppress init null warnings --- .config/quickshell/ii/modules/background/Background.qml | 4 ++-- .config/quickshell/ii/shell.qml | 2 -- 2 files changed, 2 insertions(+), 4 deletions(-) diff --git a/.config/quickshell/ii/modules/background/Background.qml b/.config/quickshell/ii/modules/background/Background.qml index 32bbe54a0..f960adf8c 100644 --- a/.config/quickshell/ii/modules/background/Background.qml +++ b/.config/quickshell/ii/modules/background/Background.qml @@ -27,7 +27,7 @@ Variants { // Hide when fullscreen readonly property Toplevel activeWindow: ToplevelManager.activeToplevel - property bool focusingThisMonitor: HyprlandData.activeWorkspace.monitor == monitor.name + property bool focusingThisMonitor: HyprlandData.activeWorkspace?.monitor == monitor.name visible: !(activeWindow?.fullscreen && activeWindow?.activated && focusingThisMonitor) // Workspaces @@ -156,7 +156,7 @@ Variants { const lower = Math.floor(bgRoot.firstWorkspaceId / chunkSize) * chunkSize; const upper = Math.ceil(bgRoot.lastWorkspaceId / chunkSize) * chunkSize; const range = upper - lower; - return (Config.options.background.parallax.enableWorkspace ? ((bgRoot.monitor.activeWorkspace.id - lower) / range) : 0.5) + return (Config.options.background.parallax.enableWorkspace ? ((bgRoot.monitor.activeWorkspace?.id - lower) / range) : 0.5) + (0.15 * GlobalStates.sidebarRightOpen * Config.options.background.parallax.enableSidebar) - (0.15 * GlobalStates.sidebarLeftOpen * Config.options.background.parallax.enableSidebar) } diff --git a/.config/quickshell/ii/shell.qml b/.config/quickshell/ii/shell.qml index 43b8171cd..e46d7a439 100644 --- a/.config/quickshell/ii/shell.qml +++ b/.config/quickshell/ii/shell.qml @@ -24,8 +24,6 @@ import "./modules/sidebarLeft/" import "./modules/sidebarRight/" import QtQuick -import QtQuick.Controls -import QtQuick.Layouts import QtQuick.Window import Quickshell import "./services/"