Compare commits
No commits in common. "13e6345b1de163189213d056b0bcebd38ffdafe2" and "2d1de46031b8b1b419133b0cbc9e820ae2fa3dea" have entirely different histories.
13e6345b1d
...
2d1de46031
4 changed files with 5 additions and 65 deletions
|
|
@ -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 {}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -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
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -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 {}
|
||||
}
|
||||
}
|
||||
|
|
@ -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
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue