Changeset View
Changeset View
Standalone View
Standalone View
containments/desktop/package/contents/ui/FolderItemDelegate.qml
Show First 20 Lines • Show All 344 Lines • ▼ Show 20 Line(s) | 305 | PlasmaComponents.Label { | |||
---|---|---|---|---|---|
345 | 345 | | |||
346 | height: undefined // Unset PlasmaComponents.Label's default. | 346 | height: undefined // Unset PlasmaComponents.Label's default. | ||
347 | 347 | | |||
348 | textFormat: Text.PlainText | 348 | textFormat: Text.PlainText | ||
349 | 349 | | |||
350 | wrapMode: (maximumLineCount == 1) ? Text.NoWrap : Text.Wrap | 350 | wrapMode: (maximumLineCount == 1) ? Text.NoWrap : Text.Wrap | ||
351 | elide: Text.ElideRight | 351 | elide: Text.ElideRight | ||
352 | 352 | | |||
353 | color: (frameLoader.textShadow && frameLoader.textShadow.visible | 353 | color: frameLoader.textShadow && frameLoader.textShadow.visible | ||
354 | ? "#fff" : PlasmaCore.ColorScope.textColor) | 354 | ? "#fff" : (model.selected ? PlasmaCore.ColorScope.highlightedTextColor : PlasmaCore.ColorScope.textColor) | ||
ndavis: Is there not a better way to make nested if statements in QML? | |||||
355 | 355 | | |||
356 | opacity: model.isHidden ? 0.6 : 1 | 356 | opacity: model.isHidden ? 0.6 : 1 | ||
357 | 357 | | |||
358 | text: model.blank ? "" : model.display | 358 | text: model.blank ? "" : model.display | ||
359 | 359 | | |||
360 | font.italic: model.isLink | 360 | font.italic: model.isLink | ||
361 | 361 | | |||
362 | visible: { | 362 | visible: { | ||
▲ Show 20 Lines • Show All 167 Lines • Show Last 20 Lines |
Is there not a better way to make nested if statements in QML?