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.pixelSize: theme.fontSize.normal
font.pointSize: -1 font.pointSize: -1
textFormat: Label.PlainText textFormat: Label.PlainText
horizontalAlignment: Label.AlignLeft
color: theme.colors.text color: theme.colors.text
linkColor: theme.colors.link linkColor: theme.colors.link
maximumLineCount: elide === Label.ElideNone ? Number.MAX_VALUE : 1 maximumLineCount: elide === Label.ElideNone ? Number.MAX_VALUE : 1
onLinkActivated: Qt.openUrlExternally(link) onLinkActivated: Qt.openUrlExternally(link)

View File

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