Fix display of right-to-left text in timeline

Set an explicit default left alignment for label components, to prevent
other people's right-to-left names or text from messing up the UI
in a left-to-right environment.
This commit is contained in:
miruka 2020-09-28 21:38:39 -04:00
parent dbd78587fe
commit 53d2ab17af
2 changed files with 3 additions and 3 deletions

View File

@ -9,10 +9,9 @@ Label {
font.pixelSize: theme.fontSize.normal
font.pointSize: -1
textFormat: Label.PlainText
horizontalAlignment: Label.AlignLeft
color: theme.colors.text
linkColor: theme.colors.link
maximumLineCount: elide === Label.ElideNone ? Number.MAX_VALUE : 1
onLinkActivated: Qt.openUrlExternally(link)

View File

@ -22,14 +22,15 @@ TextEdit {
font.family: theme.fontFamily.sans
font.pixelSize: theme.fontSize.normal
color: theme.colors.text
textFormat: Label.PlainText
tabStopDistance: 4 * 4 // 4 spaces
horizontalAlignment: Label.AlignLeft
readOnly: true
activeFocusOnPress: false
focus: false
selectByMouse: true
onLinkActivated: if (enableLinkActivation) Qt.openUrlExternally(link)
MouseArea {