HButtonContent: Enable label eliding
This commit is contained in:
parent
4ffa3470c7
commit
d7fc0ad0b8
|
@ -14,11 +14,15 @@ Button {
|
|||
icon.color: theme.icons.colorize
|
||||
enabled: ! loading
|
||||
|
||||
// Must be explicitely set to display correctly on KDE, but no need on i3?
|
||||
implicitWidth: Math.max(implicitBackgroundWidth + leftInset + rightInset,
|
||||
implicitContentWidth + leftPadding + rightPadding)
|
||||
implicitHeight: Math.max(implicitBackgroundHeight + topInset + bottomInset,
|
||||
implicitContentHeight + topPadding + bottomPadding)
|
||||
// Must be explicitely set to display correctly on KDE
|
||||
implicitWidth: Math.max(
|
||||
implicitBackgroundWidth + leftInset + rightInset,
|
||||
implicitContentWidth + leftPadding + rightPadding
|
||||
)
|
||||
implicitHeight: Math.max(
|
||||
implicitBackgroundHeight + topInset + bottomInset,
|
||||
implicitContentHeight + topPadding + bottomPadding
|
||||
)
|
||||
|
||||
|
||||
readonly property alias iconItem: contentItem.icon
|
||||
|
|
|
@ -83,6 +83,7 @@ HRowLayout {
|
|||
color: buttonTheme.text
|
||||
horizontalAlignment: Text.AlignHCenter
|
||||
verticalAlignment: Text.AlignVCenter
|
||||
elide: Text.ElideRight
|
||||
|
||||
Layout.fillWidth: true
|
||||
Layout.fillHeight: true
|
||||
|
|
Loading…
Reference in New Issue
Block a user