From 29e7d8dd3cbf8e232f9837d23a5d6f2c0be23155 Mon Sep 17 00:00:00 2001 From: Stefan Dunca Date: Sun, 28 Jul 2019 16:13:59 +0200 Subject: [PATCH] Add external Zoom buttons --- custom-example/res/CustomCameraControl.qml | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/custom-example/res/CustomCameraControl.qml b/custom-example/res/CustomCameraControl.qml index 9a41878..cc011d1 100644 --- a/custom-example/res/CustomCameraControl.qml +++ b/custom-example/res/CustomCameraControl.qml @@ -161,15 +161,20 @@ Item { sourceSize.height: height } } + // Thermal with color-map QGCHoverButton { width: buttonSize height: width checkable: true radius: buttonRadius + + function isDesiredThermalPalette(name) { + return name === 'Rainbow'; + } onClicked: { if(_irPaletteFact) { - var entryIdx = _irPaletteFact.enumStrings.find("Rainbow") + var entryIdx = _irPaletteFact.enumStrings.find(isDesiredThermalPalette) if(entryIdx !== undefined) { _irPaletteFact.value = entryIdx; } @@ -421,7 +426,7 @@ Item { ZoomControl { id: zoomControl visible: _hasZoom - mainColor: qgcPal.window + mainColor: qgcPal.windowShade contentColor: qgcPal.text fontPointSize: ScreenTools.defaultFontPointSize * 1.25 zoomLevelVisible: false