Changeset View
Changeset View
Standalone View
Standalone View
applets/kickoff/package/contents/ui/Header.qml
Show First 20 Lines • Show All 80 Lines • ▼ Show 20 Line(s) | 67 | Image { | |||
---|---|---|---|---|---|
81 | anchors { | 81 | anchors { | ||
82 | top: parent.top | 82 | top: parent.top | ||
83 | left: parent.left | 83 | left: parent.left | ||
84 | topMargin: units.gridUnit | 84 | topMargin: units.gridUnit | ||
85 | leftMargin: units.gridUnit | 85 | leftMargin: units.gridUnit | ||
86 | } | 86 | } | ||
87 | 87 | | |||
88 | // Crop the avatar to fit in a circle, like the lock and login screens | 88 | // Crop the avatar to fit in a circle, like the lock and login screens | ||
89 | layer.enabled: true | 89 | // but don't on software rendering where this won't render | ||
90 | layer.enabled: faceIcon.GraphicsInfo.api !== GraphicsInfo.Software | ||||
90 | layer.effect: OpacityMask { | 91 | layer.effect: OpacityMask { | ||
91 | // this Rectangle is a circle due to radius size | 92 | // this Rectangle is a circle due to radius size | ||
92 | maskSource: Rectangle { | 93 | maskSource: Rectangle { | ||
93 | width: faceIcon.width | 94 | width: faceIcon.width | ||
94 | height: faceIcon.height | 95 | height: faceIcon.height | ||
95 | radius: height / 2 | 96 | radius: height / 2 | ||
96 | visible: false | 97 | visible: false | ||
97 | } | 98 | } | ||
▲ Show 20 Lines • Show All 112 Lines • Show Last 20 Lines |