Skip to content

Commit

Permalink
font depends on text lineCount
Browse files Browse the repository at this point in the history
  • Loading branch information
VitorVieiraZ committed Jul 31, 2024
1 parent ddd36b4 commit 5ba3100
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions app/qml/components/private/MMToolbarShortButton.qml
Original file line number Diff line number Diff line change
Expand Up @@ -72,14 +72,17 @@ Item {
Text {
id: text

width: parent.width
text: root.text
color: root.useDisabledVisual ? root.iconColorDisabled : root.iconColor
font: __style.t4
font: lineCount === 1 ? __style.t4 : __style.t5
anchors.horizontalCenter: parent.horizontalCenter
anchors.top: icon.bottom
anchors.topMargin: root.buttonSpacing
horizontalAlignment: Text.AlignHCenter
elide: Text.ElideMiddle
elide: Text.ElideRight
wrapMode: Text.Wrap
maximumLineCount: 2
}

MouseArea {
Expand Down

1 comment on commit 5ba3100

@inputapp-bot
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

iOS - version 24.7.646311 just submitted!

Please sign in to comment.