Add fallback description for Applauncher.qml
This commit is contained in:
parent
59b1b29334
commit
f1cbe61f0d
1 changed files with 4 additions and 1 deletions
|
|
@ -297,10 +297,13 @@ PanelWindow {
|
||||||
Layout.fillWidth: true
|
Layout.fillWidth: true
|
||||||
}
|
}
|
||||||
Text {
|
Text {
|
||||||
text: modelData.isCalculator ? (modelData.expr + " = " + modelData.result) : (modelData.comment || modelData.genericName || "")
|
text: modelData.isCalculator ? (modelData.expr + " = " + modelData.result)
|
||||||
|
: (modelData.comment || modelData.genericName || "No description available")
|
||||||
color: hovered || isSelected ? Theme.onAccent : Theme.textSecondary
|
color: hovered || isSelected ? Theme.onAccent : Theme.textSecondary
|
||||||
font.family: Theme.fontFamily
|
font.family: Theme.fontFamily
|
||||||
font.pixelSize: Theme.fontSizeCaption
|
font.pixelSize: Theme.fontSizeCaption
|
||||||
|
font.italic: !(modelData.comment || modelData.genericName)
|
||||||
|
opacity: (modelData.comment || modelData.genericName) ? 1.0 : 0.6
|
||||||
elide: Text.ElideRight
|
elide: Text.ElideRight
|
||||||
Layout.fillWidth: true
|
Layout.fillWidth: true
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue