diff --git a/modules/Shell.qml b/modules/Shell.qml index ed1e550..d38c685 100644 --- a/modules/Shell.qml +++ b/modules/Shell.qml @@ -2,9 +2,10 @@ import "bar" import "launcher" import "pomodoro" import "powermenu" -import "storybook" import Quickshell +import Quickshell.Wayland import QtQuick +import QtQuick.Effects Variants { model: Quickshell.screens @@ -18,6 +19,5 @@ Variants { Launcher {} Pomodoro {} PowerMenu {} - Storybook {} } } diff --git a/modules/Shortcuts.qml b/modules/Shortcuts.qml index 2eb064e..2c47882 100644 --- a/modules/Shortcuts.qml +++ b/modules/Shortcuts.qml @@ -22,10 +22,4 @@ Scope { description: 'Open the Power Menu' onPressed: Visibility.powermenu = !Visibility.powermenu } - - LuxShortcut { - name: 'storybook' - description: 'Open the Component Storybook' - onPressed: Visibility.storybook = !Visibility.storybook - } } diff --git a/modules/storybook/Storybook.qml b/modules/storybook/Storybook.qml deleted file mode 100644 index 6334ec2..0000000 --- a/modules/storybook/Storybook.qml +++ /dev/null @@ -1,44 +0,0 @@ -pragma ComponentBehavior: Bound - -import qs.components -import qs.config -import qs.services -import qs.widgets -import Quickshell.Hyprland -import Quickshell.Wayland -import Quickshell.Widgets -import QtQuick -import QtQuick.Layouts - -StyledWindow { - id: root - name: "storybook" - - visible: Visibility.storybook - implicitWidth: rect.width - implicitHeight: rect.height - - WlrLayershell.layer: WlrLayer.Top - WlrLayershell.keyboardFocus: root.visible ? WlrKeyboardFocus.OnDemand : WlrKeyboardFocus.None - - WrapperRectangle { - id: rect - - color: Theme.palette.base300 - leftMargin: 48 - rightMargin: 48 - topMargin: 24 - bottomMargin: 24 - radius: 8 - - HyprlandFocusGrab { - active: Visibility.storybook - windows: [root] - onCleared: { - Visibility.storybook = false; - } - } - - ColumnLayout {} - } -} diff --git a/services/Visibility.qml b/services/Visibility.qml index b3a2678..b4895b4 100644 --- a/services/Visibility.qml +++ b/services/Visibility.qml @@ -4,10 +4,9 @@ import qs.widgets import Quickshell Singleton { - property alias launcher: properties.launcher - property alias pomodoro: properties.pomodoro - property alias powermenu: properties.powermenu - property alias storybook: properties.storybook + property bool launcher + property bool pomodoro + property bool powermenu property StyledPopupWindow activePopup function togglePopup(popup: StyledPopupWindow) { @@ -17,13 +16,4 @@ Singleton { popup.state = popup.state == "opened" ? "" : "opened"; activePopup = popup; } - - PersistentProperties { - id: properties - - property bool launcher - property bool pomodoro - property bool powermenu - property bool storybook - } }