From ed093aff6b258e2543c6822b6c2fd4adee401200 Mon Sep 17 00:00:00 2001 From: Don Gagne Date: Fri, 4 Aug 2023 15:14:38 -0700 Subject: [PATCH] Add showTouchAreas support --- src/QmlControls/QGCToolBarButton.qml | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/src/QmlControls/QGCToolBarButton.qml b/src/QmlControls/QGCToolBarButton.qml index 16380a9..c7903be 100644 --- a/src/QmlControls/QGCToolBarButton.qml +++ b/src/QmlControls/QGCToolBarButton.qml @@ -10,6 +10,7 @@ import QtQuick 2.3 import QtQuick.Controls 2.4 +import QGroundControl 1.0 import QGroundControl.Controls 1.0 import QGroundControl.Palette 1.0 import QGroundControl.ScreenTools 1.0 @@ -31,8 +32,10 @@ Button { onCheckedChanged: checkable = false background: Rectangle { - anchors.fill: parent - color: button.checked ? qgcPal.buttonHighlight : Qt.rgba(0,0,0,0) + anchors.fill: parent + color: button.checked ? qgcPal.buttonHighlight : Qt.rgba(0,0,0,0) + border.color: "red" + border.width: QGroundControl.corePlugin.showTouchAreas ? 3 : 0 } contentItem: Row {