From 237ea8cfc3e07da68abceed9eb5432eb60b2d6ee Mon Sep 17 00:00:00 2001 From: Zacharias-Brohn Date: Wed, 19 Nov 2025 19:50:15 +0100 Subject: [PATCH] wallFadeDuration config opt --- .gitignore | 3 +++ CMakeLists.txt | 1 + Config/Config.qml | 2 ++ Modules/Background.qml | 2 ++ 4 files changed, 8 insertions(+) diff --git a/.gitignore b/.gitignore index 17b4a1c..14739c1 100644 --- a/.gitignore +++ b/.gitignore @@ -1,2 +1,5 @@ +.cache/ +.venv/ .qmlls.ini build/ +compile_commands.json diff --git a/CMakeLists.txt b/CMakeLists.txt index bdd6504..ea51dd6 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -6,6 +6,7 @@ set(CMAKE_CXX_STANDARD 20) set(CMAKE_CXX_STANDARD_REQUIRED ON) set(CMAKE_CXX_EXTENSIONS OFF) set(CMAKE_RUNTIME_OUTPUT_DIRECTORY "${CMAKE_BINARY_DIR}/lib") +set(CMAKE_EXPORT_COMPILE_COMMANDS ON) set(INSTALL_LIBDIR "usr/lib/ZShell" CACHE STRING "Library install dir") set(INSTALL_QMLDIR "usr/lib/qt6/qml" CACHE STRING "QML install dir") diff --git a/Config/Config.qml b/Config/Config.qml index bd666d3..cd10135 100644 --- a/Config/Config.qml +++ b/Config/Config.qml @@ -2,6 +2,7 @@ pragma Singleton import Quickshell import Quickshell.Io +import qs.Modules Singleton { @@ -39,6 +40,7 @@ Singleton { property WorkspaceWidget workspaceWidget: WorkspaceWidget {} property Colors colors: Colors {} property string gpuType: "" + property int wallFadeDuration: MaterialEasing.standardTime } } } diff --git a/Modules/Background.qml b/Modules/Background.qml index dd80626..384b6d9 100644 --- a/Modules/Background.qml +++ b/Modules/Background.qml @@ -2,6 +2,7 @@ pragma ComponentBehavior: Bound import QtQuick import qs.Helpers +import qs.Config Item { id: root @@ -71,6 +72,7 @@ Item { Anim { target: img properties: "opacity,scale" + duration: Config.wallFadeDuration } } }