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: { | ||
354 | ? "#fff" : PlasmaCore.ColorScope.textColor) | 354 | if (frameLoader.textShadow && frameLoader.textShadow.visible) { | ||
ndavis: Is there not a better way to make nested if statements in QML? | |||||
355 | return "#fff"; | ||||
356 | } else if (model.selected) { | ||||
357 | return PlasmaCore.ColorScope.highlightedTextColor; | ||||
358 | } else { | ||||
359 | return PlasmaCore.ColorScope.textColor | ||||
360 | } | ||||
361 | } | ||||
355 | 362 | | |||
356 | opacity: model.isHidden ? 0.6 : 1 | 363 | opacity: model.isHidden ? 0.6 : 1 | ||
357 | 364 | | |||
358 | text: model.blank ? "" : model.display | 365 | text: model.blank ? "" : model.display | ||
359 | 366 | | |||
360 | font.italic: model.isLink | 367 | font.italic: model.isLink | ||
361 | 368 | | |||
362 | visible: { | 369 | 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?