Commit b127e545 authored by Safa AlFulaij's avatar Safa AlFulaij

[Kickoff] Fix RTL issues

Summary:
Fix 2 issues:
- the breadcrumbs alignment
- the alignment of English entries

Test Plan: Tested and working for both LTR and RTL layouts

Reviewers: #plasma, broulik

Reviewed By: #plasma, broulik

Subscribers: broulik, plasma-devel

Tags: #plasma

Differential Revision: https://phabricator.kde.org/D9786
parent ae219e89
......@@ -108,6 +108,9 @@ Item {
pixelAligned: true
//contentX: contentWidth - width
// HACK: Align the content to right for RTL locales
leftMargin: LayoutMirroring.enabled ? Math.max(0, width - contentWidth) : 0
PlasmaComponents.ButtonRow {
id: breadcrumbsElement
......@@ -132,7 +135,11 @@ Item {
}
}
onWidthChanged: {
breadcrumbFlickable.contentX = Math.max(0, breadcrumbsElement.width - breadcrumbFlickable.width)
if (LayoutMirroring.enabled) {
breadcrumbFlickable.contentX = -Math.max(0, breadcrumbsElement.width - breadcrumbFlickable.width)
} else {
breadcrumbFlickable.contentX = Math.max(0, breadcrumbsElement.width - breadcrumbFlickable.width)
}
}
}
} // Flickable
......
......@@ -97,6 +97,7 @@ Item {
level: 2
text: kuser.fullName
elide: Text.ElideRight
horizontalAlignment: Text.AlignLeft
verticalAlignment: Text.AlignTop
height: paintedHeight
......@@ -129,6 +130,7 @@ Item {
left: parent.left
right: parent.right
}
horizontalAlignment: Text.AlignLeft
verticalAlignment: Text.AlignBottom
text: kuser.os != "" ? i18n("%2@%3 (%1)", kuser.os, kuser.loginName, kuser.host) : i18n("%1@%2", kuser.loginName, kuser.host)
elide: Text.ElideRight
......
......@@ -203,6 +203,7 @@ Item {
// TODO: games should always show the by name!
text: model.display
elide: Text.ElideRight
horizontalAlignment: Text.AlignLeft
}
PlasmaComponents.Label {
id: subTitleElement
......@@ -219,6 +220,7 @@ Item {
opacity: isCurrent ? 0.8 : 0.6
font.pointSize: theme.smallestFont.pointSize
elide: Text.ElideMiddle
horizontalAlignment: Text.AlignLeft
}
PlasmaCore.SvgItem {
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment