Shadows: conditional via settings

q
This commit is contained in:
ItsLemmy
2025-11-03 10:29:49 -05:00
parent f4672df2e0
commit fea06c2164
11 changed files with 81 additions and 31 deletions
+15 -13
View File
@@ -54,8 +54,9 @@ Singleton {
// This should only be activated once when the settings structure has changed
// Then it should be commented out again, regular users don't need to generate
// default settings on every start
// TODO: automate this someday!
//generateDefaultSettings()
if (isDebug) {
generateDefaultSettings()
}
// Patch-in the local default, resolved to user's home
adapter.general.avatarImage = defaultAvatar
@@ -198,9 +199,21 @@ Singleton {
property bool animationDisabled: false
property bool compactLockScreen: false
property bool lockOnSuspend: true
property bool enableShadows: true
property string language: ""
}
// ui
property JsonObject ui: JsonObject {
property string fontDefault: "Roboto"
property string fontFixed: "DejaVu Sans Mono"
property real fontDefaultScale: 1.0
property real fontFixedScale: 1.0
property bool tooltipsEnabled: true
property bool panelsAttachedToBar: true
property bool panelsOverlayLayer: true
}
// location
property JsonObject location: JsonObject {
property string name: defaultLocation
@@ -353,17 +366,6 @@ Singleton {
property string preferredPlayer: ""
}
// ui
property JsonObject ui: JsonObject {
property string fontDefault: "Roboto"
property string fontFixed: "DejaVu Sans Mono"
property real fontDefaultScale: 1.0
property real fontFixedScale: 1.0
property bool tooltipsEnabled: true
property bool panelsAttachedToBar: true
property bool panelsOverlayLayer: true
}
// brightness
property JsonObject brightness: JsonObject {
property int brightnessStep: 5