mirror of
https://invent.kde.org/marcoa/shift-shell.git
synced 2026-08-04 02:34:45 +00:00
try to avoid ... on launchers
This commit is contained in:
parent
85bc6a3029
commit
9a2d2269c0
2 changed files with 15 additions and 5 deletions
|
|
@ -129,17 +129,26 @@ ContainmentLayoutManager.ItemContainer {
|
||||||
|
|
||||||
Layout.fillWidth: true
|
Layout.fillWidth: true
|
||||||
Layout.preferredHeight: root.reservedSpaceForLabel
|
Layout.preferredHeight: root.reservedSpaceForLabel
|
||||||
|
height: root.reservedSpaceForLabel
|
||||||
wrapMode: Text.WordWrap
|
wrapMode: Text.WordWrap
|
||||||
Layout.leftMargin: -parent.anchors.leftMargin
|
Layout.leftMargin: -parent.anchors.leftMargin + units.smallSpacing
|
||||||
Layout.rightMargin: -parent.anchors.rightMargin
|
Layout.rightMargin: -parent.anchors.rightMargin + units.smallSpacing
|
||||||
horizontalAlignment: Text.AlignHCenter
|
horizontalAlignment: Text.AlignHCenter
|
||||||
verticalAlignment: Text.AlignTop
|
verticalAlignment: Text.AlignTop
|
||||||
maximumLineCount: 2
|
maximumLineCount: 2
|
||||||
elide: Text.ElideRight
|
//elide: Text.ElideRight
|
||||||
|
elide: truncated ? Text.ElideLeft : Text.ElideRight
|
||||||
|
|
||||||
text: model.ApplicationNameRole
|
text: {
|
||||||
|
// This trick can get us a shorter text but without ...
|
||||||
|
if (truncated) {
|
||||||
|
return model.ApplicationNameRole + "\x9C"
|
||||||
|
} else {
|
||||||
|
return model.ApplicationNameRole;
|
||||||
|
}
|
||||||
|
}
|
||||||
//FIXME: export smallestReadableFont
|
//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
|
color: model.ApplicationLocationRole == ApplicationListModel.Desktop ? "white" : theme.textColor
|
||||||
|
|
||||||
layer.enabled: model.ApplicationLocationRole == ApplicationListModel.Desktop
|
layer.enabled: model.ApplicationLocationRole == ApplicationListModel.Desktop
|
||||||
|
|
|
||||||
|
|
@ -47,6 +47,7 @@ Item {
|
||||||
id: metrics
|
id: metrics
|
||||||
text: "M\nM"
|
text: "M\nM"
|
||||||
visible: false
|
visible: false
|
||||||
|
font.pointSize: theme.defaultFont.pointSize * 0.9
|
||||||
}
|
}
|
||||||
|
|
||||||
Item {
|
Item {
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue