From a51a42b4ed07cbb4c13cb6bf1c45614f5e951cdc Mon Sep 17 00:00:00 2001 From: Yasen Date: Wed, 31 Jul 2019 21:21:16 +0200 Subject: [PATCH] Custom Vehicle Selector visual improvements Custom vehicle selector now affected by theme change. Cosnistent with other actrive elements --- custom-example/res/Custom/Widgets/CustomVehicleButton.qml | 2 +- custom-example/res/MainToolbar/CustomMultiVehicleSelector.qml | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/custom-example/res/Custom/Widgets/CustomVehicleButton.qml b/custom-example/res/Custom/Widgets/CustomVehicleButton.qml index 91a5c2141..de864a0c4 100644 --- a/custom-example/res/Custom/Widgets/CustomVehicleButton.qml +++ b/custom-example/res/Custom/Widgets/CustomVehicleButton.qml @@ -47,7 +47,7 @@ Button { background: Rectangle { anchors.fill: parent - color: button.checked ? qgcPal.window : qgcPal.button + color: button.checked ? qgcPal.buttonHighlight : qgcPal.button radius: ScreenTools.defaultFontPixelWidth * 0.5 } diff --git a/custom-example/res/MainToolbar/CustomMultiVehicleSelector.qml b/custom-example/res/MainToolbar/CustomMultiVehicleSelector.qml index 89f95a785..2c23e2fbf 100644 --- a/custom-example/res/MainToolbar/CustomMultiVehicleSelector.qml +++ b/custom-example/res/MainToolbar/CustomMultiVehicleSelector.qml @@ -9,8 +9,8 @@ * @author Gus Grubba */ -import QtQuick 2.11 -import QtQuick.Controls 1.4 +import QtQuick 2.11 +import QtQuick.Controls 1.4 import QGroundControl 1.0 import QGroundControl.Controls 1.0 -- 2.22.0