Skip to content

Commit

Permalink
Align message action button labels to the left
Browse files Browse the repository at this point in the history
As it was before the theming changes have been made
  • Loading branch information
MartinBriza committed Oct 18, 2023
1 parent 96ec421 commit a8e2c5d
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 0 deletions.
2 changes: 2 additions & 0 deletions modules/Lith/Style/Button.qml
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,8 @@ T.Button {
icon.height: 32

font.pixelSize: FontSizes.regular
property alias textHorizontalAlignment: buttonLabel.horizontalAlignment
property alias textVerticalAlignment: buttonLabel.verticalAlignment

contentItem: Item {

Expand Down
4 changes: 4 additions & 0 deletions modules/Lith/UI/ChannelMessageActionMenu.qml
Original file line number Diff line number Diff line change
Expand Up @@ -74,6 +74,7 @@ Dialog {

visible: !(nickname == "")
text: timestamp ? timestamp.toLocaleTimeString(Qt.locale(), Lith.settings.timestampFormat) + " <" + nickname + "> " + message : ""
textHorizontalAlignment: Text.AlignLeft

onClicked: {
channelMessageActionMenuDialog.close()
Expand All @@ -89,6 +90,7 @@ Dialog {

visible: !(nickname == "")
text: "<" + nickname + "> " + message
textHorizontalAlignment: Text.AlignLeft

onClicked: {
channelMessageActionMenuDialog.close()
Expand All @@ -102,7 +104,9 @@ Dialog {
Layout.preferredHeight: 1.5 * implicitHeight
Layout.bottomMargin: 16
flat: true

text: message
textHorizontalAlignment: Text.AlignLeft


onClicked: {
Expand Down

0 comments on commit a8e2c5d

Please sign in to comment.