internal: fix types for lsp

This commit is contained in:
2 * r + 2 * t 2025-07-19 15:03:22 +10:00
parent 1b6c19b131
commit df4b3b85a9
9 changed files with 38 additions and 27 deletions

View file

@ -4,15 +4,10 @@ JsonObject {
property bool persistent: true property bool persistent: true
property bool showOnHover: true property bool showOnHover: true
property int dragThreshold: 20 property int dragThreshold: 20
property Workspaces workspaces: Workspaces {}
property Sizes sizes: Sizes {}
property JsonObject sizes: JsonObject { component Workspaces: JsonObject {
property int innerHeight: 30
property int windowPreviewSize: 400
property int trayMenuWidth: 300
property int batteryWidth: 250
}
property JsonObject workspaces: JsonObject {
property int shown: 5 property int shown: 5
property bool rounded: true property bool rounded: true
property bool activeIndicator: true property bool activeIndicator: true
@ -23,4 +18,11 @@ JsonObject {
property string occupiedLabel: "󰮯 " property string occupiedLabel: "󰮯 "
property string activeLabel: "󰮯 " property string activeLabel: "󰮯 "
} }
component Sizes: JsonObject {
property int innerHeight: 30
property int windowPreviewSize: 400
property int trayMenuWidth: 300
property int batteryWidth: 250
}
} }

View file

@ -28,17 +28,17 @@ Singleton {
JsonAdapter { JsonAdapter {
id: adapter id: adapter
property JsonObject bar: BarConfig {} property BarConfig bar: BarConfig {}
property JsonObject border: BorderConfig {} property BorderConfig border: BorderConfig {}
property JsonObject dashboard: DashboardConfig {} property DashboardConfig dashboard: DashboardConfig {}
property JsonObject launcher: LauncherConfig {} property LauncherConfig launcher: LauncherConfig {}
property JsonObject notifs: NotifsConfig {} property NotifsConfig notifs: NotifsConfig {}
property JsonObject osd: OsdConfig {} property OsdConfig osd: OsdConfig {}
property JsonObject session: SessionConfig {} property SessionConfig session: SessionConfig {}
property JsonObject winfo: WInfoConfig {} property WInfoConfig winfo: WInfoConfig {}
property JsonObject lock: LockConfig {} property LockConfig lock: LockConfig {}
property JsonObject services: ServiceConfig {} property ServiceConfig services: ServiceConfig {}
property JsonObject paths: UserPaths {} property UserPaths paths: UserPaths {}
} }
} }
} }

View file

@ -3,8 +3,9 @@ import Quickshell.Io
JsonObject { JsonObject {
property int mediaUpdateInterval: 500 property int mediaUpdateInterval: 500
property int visualiserBars: 45 property int visualiserBars: 45
property Sizes sizes: Sizes {}
property JsonObject sizes: JsonObject { component Sizes: JsonObject {
readonly property int tabIndicatorHeight: 3 readonly property int tabIndicatorHeight: 3
readonly property int tabIndicatorSpacing: 5 readonly property int tabIndicatorSpacing: 5
readonly property int infoWidth: 200 readonly property int infoWidth: 200

View file

@ -6,8 +6,10 @@ JsonObject {
property string actionPrefix: ">" property string actionPrefix: ">"
property bool enableDangerousActions: false // Allow actions that can cause losing data, like shutdown, reboot and logout property bool enableDangerousActions: false // Allow actions that can cause losing data, like shutdown, reboot and logout
property int dragThreshold: 50 property int dragThreshold: 50
property UseFuzzy useFuzzy: UseFuzzy {}
property Sizes sizes: Sizes {}
property JsonObject useFuzzy: JsonObject { component UseFuzzy: JsonObject {
property bool apps: false property bool apps: false
property bool actions: false property bool actions: false
property bool schemes: false property bool schemes: false
@ -15,7 +17,7 @@ JsonObject {
property bool wallpapers: false property bool wallpapers: false
} }
property JsonObject sizes: JsonObject { component Sizes: JsonObject {
property int itemWidth: 600 property int itemWidth: 600
property int itemHeight: 57 property int itemHeight: 57
property int wallpaperWidth: 280 property int wallpaperWidth: 280

View file

@ -2,8 +2,9 @@ import Quickshell.Io
JsonObject { JsonObject {
property int maxNotifs: 5 property int maxNotifs: 5
property Sizes sizes: Sizes {}
property JsonObject sizes: JsonObject { component Sizes: JsonObject {
property int border: 100 property int border: 100
property int clockWidth: 800 property int clockWidth: 800
property int clockHeight: 200 property int clockHeight: 200

View file

@ -6,8 +6,9 @@ JsonObject {
property real clearThreshold: 0.3 property real clearThreshold: 0.3
property int expandThreshold: 20 property int expandThreshold: 20
property bool actionOnClick: false property bool actionOnClick: false
property Sizes sizes: Sizes {}
property JsonObject sizes: JsonObject { component Sizes: JsonObject {
property int width: 400 property int width: 400
property int image: 41 property int image: 41
property int badge: 20 property int badge: 20

View file

@ -2,8 +2,9 @@ import Quickshell.Io
JsonObject { JsonObject {
property int hideDelay: 2000 property int hideDelay: 2000
property Sizes sizes: Sizes {}
property JsonObject sizes: JsonObject { component Sizes: JsonObject {
property int sliderWidth: 30 property int sliderWidth: 30
property int sliderHeight: 150 property int sliderHeight: 150
} }

View file

@ -2,8 +2,9 @@ import Quickshell.Io
JsonObject { JsonObject {
property int dragThreshold: 30 property int dragThreshold: 30
property Sizes sizes: Sizes {}
property JsonObject sizes: JsonObject { component Sizes: JsonObject {
property int button: 80 property int button: 80
} }
} }

View file

@ -1,7 +1,9 @@
import Quickshell.Io import Quickshell.Io
JsonObject { JsonObject {
property JsonObject sizes: JsonObject { property Sizes sizes: Sizes {}
component Sizes: JsonObject {
property real heightMult: 0.7 property real heightMult: 0.7
property real detailsWidth: 500 property real detailsWidth: 500
} }