diff options
author | 2022-08-06 11:12:19 +0300 | |
---|---|---|
committer | 2022-08-06 13:59:33 +0300 | |
commit | d0e544716f90eff4e3d6a9490d1c6d86a1bba047 (patch) | |
tree | d441574aa5146bfbf3c6e07838a46681ba74fba5 /app/HVAC.qml | |
parent | d37674bb6dbb5ceb15c650a0344b0caf624963bc (diff) |
homescreenhandler: Include homescreen handlersandbox/mvlad/split-t
Signed-off-by: Marius Vlad <marius.vlad@collabora.com>
Diffstat (limited to 'app/HVAC.qml')
-rw-r--r-- | app/HVAC.qml | 33 |
1 files changed, 33 insertions, 0 deletions
diff --git a/app/HVAC.qml b/app/HVAC.qml index 4e27e2d..c8dc7bb 100644 --- a/app/HVAC.qml +++ b/app/HVAC.qml @@ -148,6 +148,39 @@ ApplicationWindow { } } } + + ColumnLayout { + Layout.fillWidth: true + spacing: 20 + ToggleButton { + onImage: './images/HMI_HVAC_Active.svg' + offImage: './images/HMI_HVAC_Inactive.svg' + Label { + anchors.centerIn: parent + color: parent.checked ? '#00ADDC' : '#848286' + text: translator.translate(qsTr('Split Right'), translator.language) + font.pixelSize: parent.height / 4 + } + onCheckedChanged: { + console.debug('Split on the right', checked) + homescreenHandler.setOrientation("hvac", 2) + } + } + ToggleButton { + onImage: './images/HMI_HVAC_Active.svg' + offImage: './images/HMI_HVAC_Inactive.svg' + Label { + anchors.centerIn: parent + color: parent.checked ? '#00ADDC' : '#848286' + text: translator.translate(qsTr('Split Top'), translator.language) + font.pixelSize: parent.height / 4 + } + onCheckedChanged: { + console.debug('Split on top', checked) + homescreenHandler.setOrientation("hvac", 3) + } + } + } } RowLayout { |