diff options
author | Arseniy Movshev <dodoradio@outlook.com> | 2023-07-02 16:12:55 +0100 |
---|---|---|
committer | dodoradio <dodoradio@outlook.com> | 2023-08-02 22:54:32 +0100 |
commit | 1747034feba274292cc9acfde21a1576d59a11a9 (patch) | |
tree | 5e3991bb9ed580a83cf084f415d540c93d7808c1 /src/settings | |
parent | 756e6b53fb64b75d3f08014338640f197d354ea1 (diff) |
Add weight graph and preview
The weight data collection is manual, so we need a page for the user to input data, hence this commit isn't sufficient for a weight logging implementation on its own.
Weight doesn't have a dataChanged signal in sensorlogd, so that's currently not implemented here either
Because weight tracking isn't for everyone, the preview isn't shown by default.
Diffstat (limited to 'src/settings')
-rw-r--r-- | src/settings/UiSettingsPage.qml | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/src/settings/UiSettingsPage.qml b/src/settings/UiSettingsPage.qml index 2009ec6..c349db7 100644 --- a/src/settings/UiSettingsPage.qml +++ b/src/settings/UiSettingsPage.qml @@ -49,6 +49,13 @@ Item { checked: hrPreviewVisible.value onCheckedChanged: hrPreviewVisible.value = checked } + LabeledSwitch { + width: parent.width + height: width*0.25 + text: "Show weight preview" + checked: weightPreviewVisible.value + onCheckedChanged: weightPreviewVisible.value = checked + } } } @@ -62,4 +69,9 @@ Item { key: "/org/asteroidos/health/ui/heartrate/showpreview" defaultValue: true } + ConfigurationValue { + id: weightPreviewVisible + key: "/org/asteroidos/health/ui/weight/showpreview" + defaultValue: true + } } |