Changeset View
Changeset View
Standalone View
Standalone View
containments/desktop/package/contents/ui/FolderItemDelegate.qml
Show First 20 Lines • Show All 425 Lines • ▼ Show 20 Line(s) | 424 | Component { | |||
---|---|---|---|---|---|
426 | 426 | | |||
427 | DropShadow { | 427 | DropShadow { | ||
428 | anchors.fill: icon | 428 | anchors.fill: icon | ||
429 | 429 | | |||
430 | z: 1 | 430 | z: 1 | ||
431 | 431 | | |||
432 | verticalOffset: 1 | 432 | verticalOffset: 1 | ||
433 | 433 | | |||
434 | radius: 5 | 434 | radius: Math.round(5 * units.devicePixelRatio) | ||
435 | samples: 10 | 435 | 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… | |||||
436 | spread: 0.05 | 436 | spread: 0.05 | ||
437 | 437 | | |||
438 | color: "black" | 438 | color: "black" | ||
439 | 439 | | |||
440 | opacity: model.isHidden ? 0.3 : 0.6 | 440 | opacity: model.isHidden ? 0.3 : 0.6 | ||
441 | 441 | | |||
442 | source: icon | 442 | source: icon | ||
443 | 443 | | |||
444 | visible: !editor || editor.targetItem != main | 444 | visible: !editor || editor.targetItem != main | ||
445 | } | 445 | } | ||
446 | } | 446 | } | ||
447 | 447 | | |||
448 | Component { | 448 | Component { | ||
449 | id: textShadowComponent | 449 | id: textShadowComponent | ||
450 | 450 | | |||
451 | DropShadow { | 451 | DropShadow { | ||
452 | anchors.fill: label | 452 | anchors.fill: label | ||
453 | 453 | | |||
454 | z: 1 | 454 | z: 1 | ||
455 | 455 | | |||
456 | horizontalOffset: 1 | 456 | horizontalOffset: 1 | ||
457 | verticalOffset: 1 | 457 | verticalOffset: 1 | ||
458 | 458 | | |||
459 | radius: 4 | 459 | radius: Math.round(4 * units.devicePixelRatio) | ||
460 | samples: 9 | 460 | samples: radius * 2 + 1 | ||
461 | spread: 0.35 | 461 | spread: 0.35 | ||
462 | 462 | | |||
463 | color: "black" | 463 | color: "black" | ||
464 | 464 | | |||
465 | opacity: model.isHidden ? 0.6 : 1 | 465 | opacity: model.isHidden ? 0.6 : 1 | ||
466 | 466 | | |||
467 | source: label | 467 | source: label | ||
468 | 468 | | |||
▲ Show 20 Lines • Show All 74 Lines • Show Last 20 Lines |
Why's the + 1?