improve trademark positioning

--issue #886, improve spacings
pull/2/head
Michail Vourlakos 7 years ago
parent 7050d7ba1f
commit 1a6fbcdfe0

@ -182,26 +182,28 @@ FocusScope {
Item { Item {
Layout.alignment: Qt.AlignLeft | Qt.AlignTop Layout.alignment: Qt.AlignLeft | Qt.AlignTop
Layout.fillWidth: false Layout.fillWidth: false
Layout.topMargin: units.smallSpacing
Layout.preferredWidth: width Layout.preferredWidth: width
Layout.preferredHeight: height Layout.preferredHeight: height
width: Qt.application.layoutDirection !== Qt.RightToLeft ? logo.width + latteTxt.width + units.smallSpacing : logo.width + units.smallSpacing width: Qt.application.layoutDirection !== Qt.RightToLeft ? logo.width + latteTxt.width + units.smallSpacing : logo.width + units.smallSpacing
height: logo.height height: logo.height
PlasmaCore.IconItem { Latte.IconItem {
id: logo id: logo
width: 1.5 * latteTxtMetrics.font.pixelSize width: 1.4 * latteTxtMetrics.font.pixelSize
height: width height: width
source: "latte-dock" source: "latte-dock"
animated: true // animated: true
usesPlasmaTheme: false usesPlasmaTheme: false
active: aboutMouseArea.containsMouse active: aboutMouseArea.containsMouse
} }
PlasmaComponents.Label { PlasmaComponents.Label {
id: latteTxtMetrics id: latteTxtMetrics
text: "Latte" text: "Latte"
width: 0
font.pointSize: 2 * theme.defaultFont.pointSize font.pointSize: 2 * theme.defaultFont.pointSize
visible: false visible: false
} }
@ -210,12 +212,11 @@ FocusScope {
id: latteTxt id: latteTxt
width: 2.2 * height width: 2.2 * height
height: 0.42 * latteTxtMetrics.font.pixelSize height: 0.4 * latteTxtMetrics.font.pixelSize
visible: Qt.application.layoutDirection !== Qt.RightToLeft visible: Qt.application.layoutDirection !== Qt.RightToLeft
anchors.left: logo.right anchors.left: logo.right
anchors.leftMargin: -3
anchors.verticalCenter: logo.verticalCenter anchors.verticalCenter: logo.verticalCenter
svg: PlasmaCore.Svg{ svg: PlasmaCore.Svg{

Loading…
Cancel
Save