Changeset View
Changeset View
Standalone View
Standalone View
containments/desktop/package/contents/ui/FolderItemDelegate.qml
Show First 20 Lines • Show All 423 Lines • ▼ Show 20 Line(s) | 422 | Component { | |||
---|---|---|---|---|---|
424 | 424 | | |||
425 | DropShadow { | 425 | DropShadow { | ||
426 | anchors.fill: icon | 426 | anchors.fill: icon | ||
427 | 427 | | |||
428 | z: 1 | 428 | z: 1 | ||
429 | 429 | | |||
430 | verticalOffset: 1 | 430 | verticalOffset: 1 | ||
431 | 431 | | |||
432 | radius: 5 | 432 | radius: 5 * units.devicePixelRatio | ||
433 | samples: 10 | 433 | samples: radius * 2 + 1 | ||
apol: Why's the + 1? | |||||
https://doc.qt.io/qt-5/qml-qtgraphicaleffects-dropshadow.html#samples-prop gvgeo: https://doc.qt.io/qt-5/qml-qtgraphicaleffects-dropshadow.html#samples-prop
`Ideally, this value… | |||||
And I ate the "one" gvgeo: And I ate the "one"
`Ideally, this value should be twice as large as the highest required… | |||||
434 | spread: 0.05 | 434 | spread: 0.05 | ||
435 | 435 | | |||
436 | color: "black" | 436 | color: "black" | ||
437 | 437 | | |||
438 | opacity: model.isHidden ? 0.3 : 0.6 | 438 | opacity: model.isHidden ? 0.3 : 0.6 | ||
439 | 439 | | |||
440 | source: icon | 440 | source: icon | ||
441 | 441 | | |||
442 | visible: !editor || editor.targetItem != main | 442 | visible: !editor || editor.targetItem != main | ||
443 | } | 443 | } | ||
444 | } | 444 | } | ||
445 | 445 | | |||
446 | Component { | 446 | Component { | ||
447 | id: textShadowComponent | 447 | id: textShadowComponent | ||
448 | 448 | | |||
449 | DropShadow { | 449 | DropShadow { | ||
450 | anchors.fill: label | 450 | anchors.fill: label | ||
451 | 451 | | |||
452 | z: 1 | 452 | z: 1 | ||
453 | 453 | | |||
454 | horizontalOffset: 1 | 454 | horizontalOffset: 1 | ||
455 | verticalOffset: 1 | 455 | verticalOffset: 1 | ||
456 | 456 | | |||
457 | radius: 4 | 457 | radius: 4 * units.devicePixelRatio | ||
458 | samples: 9 | 458 | samples: radius * 2 + 1 | ||
459 | spread: 0.35 | 459 | spread: 0.35 | ||
460 | 460 | | |||
461 | color: "black" | 461 | color: "black" | ||
462 | 462 | | |||
463 | opacity: model.isHidden ? 0.6 : 1 | 463 | opacity: model.isHidden ? 0.6 : 1 | ||
464 | 464 | | |||
465 | source: label | 465 | source: label | ||
466 | 466 | | |||
▲ Show 20 Lines • Show All 74 Lines • Show Last 20 Lines |
Why's the + 1?