add configuration menu
This commit is contained in:
parent
25e313e31b
commit
47532bd626
4 changed files with 35 additions and 0 deletions
|
|
@ -1,4 +1,5 @@
|
||||||
import "bar"
|
import "bar"
|
||||||
|
import "configuration"
|
||||||
import "drawers"
|
import "drawers"
|
||||||
import "launcher"
|
import "launcher"
|
||||||
import "pomodoro"
|
import "pomodoro"
|
||||||
|
|
@ -75,6 +76,7 @@ Variants {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Configuration {}
|
||||||
Launcher {}
|
Launcher {}
|
||||||
Pomodoro {}
|
Pomodoro {}
|
||||||
PowerMenu {}
|
PowerMenu {}
|
||||||
|
|
|
||||||
|
|
@ -5,6 +5,12 @@ import Quickshell.Hyprland
|
||||||
Scope {
|
Scope {
|
||||||
id: root
|
id: root
|
||||||
|
|
||||||
|
LuxShortcut {
|
||||||
|
name: 'configuration'
|
||||||
|
description: 'Open the configuration screen'
|
||||||
|
onPressed: Visibility.configuration = !Visibility.configuration
|
||||||
|
}
|
||||||
|
|
||||||
LuxShortcut {
|
LuxShortcut {
|
||||||
name: 'launcher'
|
name: 'launcher'
|
||||||
description: 'Open the application launcher'
|
description: 'Open the application launcher'
|
||||||
|
|
|
||||||
25
modules/configuration/Configuration.qml
Normal file
25
modules/configuration/Configuration.qml
Normal file
|
|
@ -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
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
@ -3,6 +3,7 @@ pragma Singleton
|
||||||
import Quickshell
|
import Quickshell
|
||||||
|
|
||||||
Singleton {
|
Singleton {
|
||||||
|
property alias configuration: properties.configuration
|
||||||
property alias dashboard: properties.dashboard
|
property alias dashboard: properties.dashboard
|
||||||
property alias launcher: properties.launcher
|
property alias launcher: properties.launcher
|
||||||
property alias pomodoro: properties.pomodoro
|
property alias pomodoro: properties.pomodoro
|
||||||
|
|
@ -12,6 +13,7 @@ Singleton {
|
||||||
PersistentProperties {
|
PersistentProperties {
|
||||||
id: properties
|
id: properties
|
||||||
|
|
||||||
|
property bool configuration
|
||||||
property bool dashboard
|
property bool dashboard
|
||||||
property bool launcher
|
property bool launcher
|
||||||
property bool pomodoro
|
property bool pomodoro
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue