From 23b3912302625aa64346da5474f4190d43ec819d Mon Sep 17 00:00:00 2001 From: Gus Grubba Date: Thu, 20 Apr 2017 11:41:09 -0400 Subject: [PATCH] Added a subtle border to the Toolstrip Added a bit more separation between the Toolstrip and the Toolbar --- src/FlightDisplay/FlightDisplayView.qml | 2 +- src/QmlControls/ToolStrip.qml | 2 ++ 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/src/FlightDisplay/FlightDisplayView.qml b/src/FlightDisplay/FlightDisplayView.qml index 697a18c11..db2b793e1 100644 --- a/src/FlightDisplay/FlightDisplayView.qml +++ b/src/FlightDisplay/FlightDisplayView.qml @@ -407,7 +407,7 @@ QGCView { id: toolStrip anchors.leftMargin: ScreenTools.defaultFontPixelWidth anchors.left: _panel.left - anchors.topMargin: ScreenTools.toolbarHeight + _margins + anchors.topMargin: ScreenTools.toolbarHeight + (_margins * 2) anchors.top: _panel.top z: _panel.z + 4 title: qsTr("Fly") diff --git a/src/QmlControls/ToolStrip.qml b/src/QmlControls/ToolStrip.qml index 5f8746a9d..4d7d9aeeb 100644 --- a/src/QmlControls/ToolStrip.qml +++ b/src/QmlControls/ToolStrip.qml @@ -19,6 +19,8 @@ Rectangle { width: ScreenTools.isMobile ? ScreenTools.minTouchPixels : ScreenTools.defaultFontPixelWidth * 6 height: buttonStripColumn.height + (buttonStripColumn.anchors.margins * 2) radius: _radius + border.width: 1 + border.color: qgcPal.globalTheme === QGCPalette.Light ? Qt.rgba(0,0,0,0.35) : Qt.rgba(1,1,1,0.35) property string title: "Title" property alias model: repeater.model -- 2.22.0