From 47532bd62644cc1825949010fdd1b8cc15553c48 Mon Sep 17 00:00:00 2001 From: Benjamin Palko Date: Sun, 7 Sep 2025 13:25:02 -0400 Subject: [PATCH] add configuration menu --- modules/Shell.qml | 2 ++ modules/Shortcuts.qml | 6 ++++++ modules/configuration/Configuration.qml | 25 +++++++++++++++++++++++++ services/Visibility.qml | 2 ++ 4 files changed, 35 insertions(+) create mode 100644 modules/configuration/Configuration.qml diff --git a/modules/Shell.qml b/modules/Shell.qml index e9fdcc9..b25fbe3 100644 --- a/modules/Shell.qml +++ b/modules/Shell.qml @@ -1,4 +1,5 @@ import "bar" +import "configuration" import "drawers" import "launcher" import "pomodoro" @@ -75,6 +76,7 @@ Variants { } } } + Configuration {} Launcher {} Pomodoro {} PowerMenu {} diff --git a/modules/Shortcuts.qml b/modules/Shortcuts.qml index e240bf9..7027fcd 100644 --- a/modules/Shortcuts.qml +++ b/modules/Shortcuts.qml @@ -5,6 +5,12 @@ import Quickshell.Hyprland Scope { id: root + LuxShortcut { + name: 'configuration' + description: 'Open the configuration screen' + onPressed: Visibility.configuration = !Visibility.configuration + } + LuxShortcut { name: 'launcher' description: 'Open the application launcher' diff --git a/modules/configuration/Configuration.qml b/modules/configuration/Configuration.qml new file mode 100644 index 0000000..f03879d --- /dev/null +++ b/modules/configuration/Configuration.qml @@ -0,0 +1,25 @@ +import qs.components +import qs.services +import QtQuick +import QtQuick.Controls + +StyledPanelWindow { + id: window + + name: "configuration" + + visible: Visibility.configuration + implicitWidth: 800 + implicitHeight: 800 + + ScrollView { + id: view + + anchors.fill: parent + background: Item {} + } + + component Menus: QtObject { + property Component theme + } +} diff --git a/services/Visibility.qml b/services/Visibility.qml index d3ea806..a2576e0 100644 --- a/services/Visibility.qml +++ b/services/Visibility.qml @@ -3,6 +3,7 @@ pragma Singleton import Quickshell Singleton { + property alias configuration: properties.configuration property alias dashboard: properties.dashboard property alias launcher: properties.launcher property alias pomodoro: properties.pomodoro @@ -12,6 +13,7 @@ Singleton { PersistentProperties { id: properties + property bool configuration property bool dashboard property bool launcher property bool pomodoro