Commit 9a2d2269 authored by Marco Martin's avatar Marco Martin
Browse files

try to avoid ... on launchers

parent 85bc6a30
......@@ -129,17 +129,26 @@ ContainmentLayoutManager.ItemContainer {
Layout.fillWidth: true
Layout.preferredHeight: root.reservedSpaceForLabel
height: root.reservedSpaceForLabel
wrapMode: Text.WordWrap
Layout.leftMargin: -parent.anchors.leftMargin
Layout.rightMargin: -parent.anchors.rightMargin
Layout.leftMargin: -parent.anchors.leftMargin + units.smallSpacing
Layout.rightMargin: -parent.anchors.rightMargin + units.smallSpacing
horizontalAlignment: Text.AlignHCenter
verticalAlignment: Text.AlignTop
maximumLineCount: 2
elide: Text.ElideRight
text: model.ApplicationNameRole
//elide: Text.ElideRight
elide: truncated ? Text.ElideLeft : Text.ElideRight
text: {
// This trick can get us a shorter text but without ...
if (truncated) {
return model.ApplicationNameRole + "\x9C"
} else {
return model.ApplicationNameRole;
}
}
//FIXME: export smallestReadableFont
font.pixelSize: theme.defaultFont.pixelSize * 0.9
font.pointSize: theme.defaultFont.pointSize * 0.9
color: model.ApplicationLocationRole == ApplicationListModel.Desktop ? "white" : theme.textColor
layer.enabled: model.ApplicationLocationRole == ApplicationListModel.Desktop
......
......@@ -47,6 +47,7 @@ Item {
id: metrics
text: "M\nM"
visible: false
font.pointSize: theme.defaultFont.pointSize * 0.9
}
Item {
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment