Compare commits

..

No commits in common. "13e6345b1de163189213d056b0bcebd38ffdafe2" and "2d1de46031b8b1b419133b0cbc9e820ae2fa3dea" have entirely different histories.

4 changed files with 5 additions and 65 deletions

View file

@ -2,9 +2,10 @@ import "bar"
import "launcher" import "launcher"
import "pomodoro" import "pomodoro"
import "powermenu" import "powermenu"
import "storybook"
import Quickshell import Quickshell
import Quickshell.Wayland
import QtQuick import QtQuick
import QtQuick.Effects
Variants { Variants {
model: Quickshell.screens model: Quickshell.screens
@ -18,6 +19,5 @@ Variants {
Launcher {} Launcher {}
Pomodoro {} Pomodoro {}
PowerMenu {} PowerMenu {}
Storybook {}
} }
} }

View file

@ -22,10 +22,4 @@ Scope {
description: 'Open the Power Menu' description: 'Open the Power Menu'
onPressed: Visibility.powermenu = !Visibility.powermenu onPressed: Visibility.powermenu = !Visibility.powermenu
} }
LuxShortcut {
name: 'storybook'
description: 'Open the Component Storybook'
onPressed: Visibility.storybook = !Visibility.storybook
}
} }

View file

@ -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 {}
}
}

View file

@ -4,10 +4,9 @@ import qs.widgets
import Quickshell import Quickshell
Singleton { Singleton {
property alias launcher: properties.launcher property bool launcher
property alias pomodoro: properties.pomodoro property bool pomodoro
property alias powermenu: properties.powermenu property bool powermenu
property alias storybook: properties.storybook
property StyledPopupWindow activePopup property StyledPopupWindow activePopup
function togglePopup(popup: StyledPopupWindow) { function togglePopup(popup: StyledPopupWindow) {
@ -17,13 +16,4 @@ Singleton {
popup.state = popup.state == "opened" ? "" : "opened"; popup.state = popup.state == "opened" ? "" : "opened";
activePopup = popup; activePopup = popup;
} }
PersistentProperties {
id: properties
property bool launcher
property bool pomodoro
property bool powermenu
property bool storybook
}
} }