forked from Shinonome/dots-hyprland
chores: remove unnecessary import, suppress init null warnings
This commit is contained in:
@@ -27,7 +27,7 @@ Variants {
|
|||||||
|
|
||||||
// Hide when fullscreen
|
// Hide when fullscreen
|
||||||
readonly property Toplevel activeWindow: ToplevelManager.activeToplevel
|
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)
|
visible: !(activeWindow?.fullscreen && activeWindow?.activated && focusingThisMonitor)
|
||||||
|
|
||||||
// Workspaces
|
// Workspaces
|
||||||
@@ -156,7 +156,7 @@ Variants {
|
|||||||
const lower = Math.floor(bgRoot.firstWorkspaceId / chunkSize) * chunkSize;
|
const lower = Math.floor(bgRoot.firstWorkspaceId / chunkSize) * chunkSize;
|
||||||
const upper = Math.ceil(bgRoot.lastWorkspaceId / chunkSize) * chunkSize;
|
const upper = Math.ceil(bgRoot.lastWorkspaceId / chunkSize) * chunkSize;
|
||||||
const range = upper - lower;
|
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.sidebarRightOpen * Config.options.background.parallax.enableSidebar)
|
||||||
- (0.15 * GlobalStates.sidebarLeftOpen * Config.options.background.parallax.enableSidebar)
|
- (0.15 * GlobalStates.sidebarLeftOpen * Config.options.background.parallax.enableSidebar)
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -24,8 +24,6 @@ import "./modules/sidebarLeft/"
|
|||||||
import "./modules/sidebarRight/"
|
import "./modules/sidebarRight/"
|
||||||
|
|
||||||
import QtQuick
|
import QtQuick
|
||||||
import QtQuick.Controls
|
|
||||||
import QtQuick.Layouts
|
|
||||||
import QtQuick.Window
|
import QtQuick.Window
|
||||||
import Quickshell
|
import Quickshell
|
||||||
import "./services/"
|
import "./services/"
|
||||||
|
|||||||
Reference in New Issue
Block a user