From 1a6fbcdfe0811436f39fc189b1a0eea707de3c60 Mon Sep 17 00:00:00 2001 From: Michail Vourlakos Date: Wed, 28 Feb 2018 00:13:25 +0200 Subject: [PATCH] improve trademark positioning --issue #886, improve spacings --- .../contents/configuration/LatteDockConfiguration.qml | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/shell/package/contents/configuration/LatteDockConfiguration.qml b/shell/package/contents/configuration/LatteDockConfiguration.qml index 7a6315e7a..21d47bb6f 100644 --- a/shell/package/contents/configuration/LatteDockConfiguration.qml +++ b/shell/package/contents/configuration/LatteDockConfiguration.qml @@ -182,26 +182,28 @@ FocusScope { Item { Layout.alignment: Qt.AlignLeft | Qt.AlignTop Layout.fillWidth: false + Layout.topMargin: units.smallSpacing Layout.preferredWidth: width Layout.preferredHeight: height width: Qt.application.layoutDirection !== Qt.RightToLeft ? logo.width + latteTxt.width + units.smallSpacing : logo.width + units.smallSpacing height: logo.height - PlasmaCore.IconItem { + Latte.IconItem { id: logo - width: 1.5 * latteTxtMetrics.font.pixelSize + width: 1.4 * latteTxtMetrics.font.pixelSize height: width source: "latte-dock" - animated: true + // animated: true usesPlasmaTheme: false active: aboutMouseArea.containsMouse } PlasmaComponents.Label { id: latteTxtMetrics text: "Latte" + width: 0 font.pointSize: 2 * theme.defaultFont.pointSize visible: false } @@ -210,12 +212,11 @@ FocusScope { id: latteTxt width: 2.2 * height - height: 0.42 * latteTxtMetrics.font.pixelSize + height: 0.4 * latteTxtMetrics.font.pixelSize visible: Qt.application.layoutDirection !== Qt.RightToLeft anchors.left: logo.right - anchors.leftMargin: -3 anchors.verticalCenter: logo.verticalCenter svg: PlasmaCore.Svg{