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 "configuration"
|
||||
import "drawers"
|
||||
import "launcher"
|
||||
import "pomodoro"
|
||||
|
|
@ -75,6 +76,7 @@ Variants {
|
|||
}
|
||||
}
|
||||
}
|
||||
Configuration {}
|
||||
Launcher {}
|
||||
Pomodoro {}
|
||||
PowerMenu {}
|
||||
|
|
|
|||
|
|
@ -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'
|
||||
|
|
|
|||
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
|
||||
|
||||
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
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue