Changeset View
Changeset View
Standalone View
Standalone View
applets/analog-clock/contents/ui/analogclock.qml
Show First 20 Lines • Show All 107 Lines • ▼ Show 20 Line(s) | 106 | PlasmaCore.SvgItem { | |||
---|---|---|---|---|---|
108 | anchors.centerIn: parent | 108 | anchors.centerIn: parent | ||
109 | width: Math.min(parent.width, parent.height) | 109 | width: Math.min(parent.width, parent.height) | ||
110 | height: Math.min(parent.width, parent.height) | 110 | height: Math.min(parent.width, parent.height) | ||
111 | svg: clockSvg | 111 | svg: clockSvg | ||
112 | elementId: "ClockFace" | 112 | elementId: "ClockFace" | ||
113 | } | 113 | } | ||
114 | 114 | | |||
115 | Hand { | 115 | Hand { | ||
116 | anchors.topMargin: 3 | 116 | anchors.topMargin: -6 | ||
117 | elementId: "HourHandShdow" | 117 | elementId: "HourHandShadow" | ||
118 | rotation: 180 + hours * 30 + (minutes/2) | 118 | rotation: 180 + hours * 30 + (minutes/2) | ||
119 | svgScale: face.width / face.naturalSize.width | 119 | svgScale: face.width / face.naturalSize.width | ||
120 | 120 | | |||
121 | } | 121 | } | ||
122 | Hand { | 122 | Hand { | ||
123 | elementId: "HourHand" | 123 | elementId: "HourHand" | ||
124 | rotation: 180 + hours * 30 + (minutes/2) | 124 | rotation: 180 + hours * 30 + (minutes/2) | ||
125 | svgScale: face.width / face.naturalSize.width | 125 | svgScale: face.width / face.naturalSize.width | ||
126 | } | 126 | } | ||
127 | 127 | | |||
128 | Hand { | 128 | Hand { | ||
129 | anchors.topMargin: 3 | 129 | anchors.topMargin: 3 | ||
130 | elementId: "MinuteHandShadow" | 130 | elementId: "MinuteHandShadow" | ||
131 | rotation: 180 + minutes * 6 | 131 | rotation: 180 + minutes * 6 | ||
132 | svgScale: face.width / face.naturalSize.width | 132 | svgScale: face.width / face.naturalSize.width | ||
133 | } | 133 | } | ||
134 | Hand { | 134 | Hand { | ||
135 | elementId: "MinuteHand" | 135 | elementId: "MinuteHand" | ||
136 | rotation: 180 + minutes * 6 | 136 | rotation: 180 + minutes * 6 | ||
137 | svgScale: face.width / face.naturalSize.width | 137 | svgScale: face.width / face.naturalSize.width | ||
138 | } | 138 | } | ||
139 | 139 | | |||
140 | Hand { | 140 | Hand { | ||
141 | anchors.topMargin: 3 | 141 | anchors.topMargin: 2 | ||
142 | elementId: "SecondHandShadow" | 142 | elementId: "SecondHandShadow" | ||
143 | rotation: 180 + seconds * 6 | 143 | rotation: 180 + seconds * 6 | ||
144 | visible: showSecondsHand | 144 | visible: showSecondsHand | ||
145 | svgScale: face.width / face.naturalSize.width | 145 | svgScale: face.width / face.naturalSize.width | ||
146 | } | 146 | } | ||
147 | Hand { | 147 | Hand { | ||
148 | elementId: "SecondHand" | 148 | elementId: "SecondHand" | ||
149 | rotation: 180 + seconds * 6 | 149 | rotation: 180 + seconds * 6 | ||
▲ Show 20 Lines • Show All 50 Lines • Show Last 20 Lines |