From dc02fe034e13ab2543ba97d13cfc2450488a5250 Mon Sep 17 00:00:00 2001 From: Angela Mazzurco Date: Tue, 13 Jun 2017 14:24:07 +0200 Subject: [PATCH] Add left margin to toolbar --- retroshare-qml-app/src/main-app.qml | 18 ++++++++++++++---- 1 file changed, 14 insertions(+), 4 deletions(-) diff --git a/retroshare-qml-app/src/main-app.qml b/retroshare-qml-app/src/main-app.qml index 468da0ecd..2b40b54ef 100644 --- a/retroshare-qml-app/src/main-app.qml +++ b/retroshare-qml-app/src/main-app.qml @@ -16,7 +16,7 @@ * along with this program. If not, see . */ -import QtQuick 2.7 +import QtQuick 2.1 import QtQuick.Controls 2.0 import org.retroshare.qml_components.LibresapiLocalClient 1.0 import "URI.js" as UriJs @@ -61,7 +61,8 @@ ApplicationWindow property alias loaderSource: imageLoader.sourceComponent property string defaultLabel: "RetroShare" - states: [ + states: + [ State { name: "DEFAULT" PropertyChanges { target: toolBar; titleText: defaultLabel} @@ -72,13 +73,22 @@ ApplicationWindow } ] - Loader { + Item + { + id: tolbarLeftPadding + width: 4 + } + + Loader + { id: imageLoader anchors.verticalCenter: parent.verticalCenter height: Math.max(30, toolBar.height - 4) + anchors.left: tolbarLeftPadding.right } - Component { + Component + { id: rsIcon Image {