diff options
Diffstat (limited to 'config/LauncherConfig.qml')
| -rw-r--r-- | config/LauncherConfig.qml | 26 |
1 files changed, 11 insertions, 15 deletions
diff --git a/config/LauncherConfig.qml b/config/LauncherConfig.qml index a3c154f..1757c7e 100644 --- a/config/LauncherConfig.qml +++ b/config/LauncherConfig.qml @@ -1,19 +1,15 @@ -pragma Singleton +import Quickshell.Io -import Quickshell -import QtQuick +JsonObject { + property int maxShown: 8 + property int maxWallpapers: 9 // Warning: even numbers look bad + property string actionPrefix: ">" + property bool allowDangerousActions: false // Allow actions that can change the system state, like shutdown, reboot and logout -Singleton { - readonly property int maxShown: 8 - readonly property int maxWallpapers: 9 // Warning: even numbers look bad - readonly property string actionPrefix: ">" - readonly property Sizes sizes: Sizes {} - readonly property bool allowDangerousActions: false // Allow actions that can change the system state, like shutdown, reboot and logout - - component Sizes: QtObject { - readonly property int itemWidth: 600 - readonly property int itemHeight: 57 - readonly property int wallpaperWidth: 280 - readonly property int wallpaperHeight: 200 + property JsonObject sizes: JsonObject { + property int itemWidth: 600 + property int itemHeight: 57 + property int wallpaperWidth: 280 + property int wallpaperHeight: 200 } } |