From b60e23c32b5b6e4aed8d8aa339b92a970336c70a Mon Sep 17 00:00:00 2001 From: Reed Johns <115313701+vertumnal@users.noreply.github.com> Date: Mon, 24 Feb 2025 15:42:29 -0700 Subject: [PATCH] Add new setting for toggling use of background image --- app/qml/ApplicationSettings.qml | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/app/qml/ApplicationSettings.qml b/app/qml/ApplicationSettings.qml index 43ca8bb..e3120bc 100644 --- a/app/qml/ApplicationSettings.qml +++ b/app/qml/ApplicationSettings.qml @@ -66,6 +66,7 @@ QtObject { property real contrast: 0.80 property real brightness: 0.5 + property bool useBackgroundImage: true property string backgroundImage: "" property real backgroundTint: 0.0 @@ -252,8 +253,9 @@ QtObject { function composeProfileObject() { var settings = { - "backgroundImage": backgroundImage - "backgroundTint": backgroundTint + "useBackgroundImage": useBackgroundImage, + "backgroundImage": backgroundImage, + "backgroundTint": backgroundTint, "backgroundColor": _backgroundColor, "fontColor": _fontColor, "flickering": flickering, @@ -347,6 +349,8 @@ QtObject { function loadProfileString(profileString) { var settings = JSON.parse(profileString) + useBackgroundImage = settings.useBackgroundImage + !== undefined ? settings.useBackgroundImage : useBackgroundImage backgroundImage = settings.backgroundImage !== undefined ? settings.backgroundImage : backgroundImage backgroundTint = settings.backgroundTint