mirror of
https://invent.kde.org/marcoa/shift-shell.git
synced 2026-08-04 02:34:45 +00:00
smaller label, only one line of text
This commit is contained in:
parent
5bd75786bc
commit
ba9c60f54c
2 changed files with 4 additions and 5 deletions
|
|
@ -126,15 +126,14 @@ ContainmentLayoutManager.ItemContainer {
|
||||||
visible: text.length > 0
|
visible: text.length > 0
|
||||||
|
|
||||||
Layout.fillWidth: true
|
Layout.fillWidth: true
|
||||||
Layout.preferredHeight: root.reservedSpaceForLabel
|
|
||||||
wrapMode: Text.WordWrap
|
|
||||||
horizontalAlignment: Text.AlignHCenter
|
horizontalAlignment: Text.AlignHCenter
|
||||||
verticalAlignment: Text.AlignTop
|
verticalAlignment: Text.AlignTop
|
||||||
maximumLineCount: 2
|
maximumLineCount: 2
|
||||||
elide: Text.ElideRight
|
elide: Text.ElideRight
|
||||||
|
|
||||||
text: model.ApplicationNameRole
|
text: model.ApplicationNameRole.split(" ")[0]
|
||||||
font.pixelSize: theme.defaultFont.pixelSize
|
//FIXME: export smallestReadableFont
|
||||||
|
font.pixelSize: theme.defaultFont.pixelSize * 0.8
|
||||||
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
|
||||||
|
|
|
||||||
|
|
@ -45,7 +45,7 @@ Item {
|
||||||
|
|
||||||
Controls.Label {
|
Controls.Label {
|
||||||
id: metrics
|
id: metrics
|
||||||
text: "M\nM"
|
text: "M"
|
||||||
visible: false
|
visible: false
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue