feat: fixed distance render, added "km" mark
This commit is contained in:
parent
32feab4483
commit
36ac898508
BIN
assets/390x450-amazfit-gts-4/misc/altDot.PNG
Normal file
BIN
assets/390x450-amazfit-gts-4/misc/altDot.PNG
Normal file
Binary file not shown.
After Width: | Height: | Size: 139 B |
BIN
assets/390x450-amazfit-gts-4/misc/km.png
Normal file
BIN
assets/390x450-amazfit-gts-4/misc/km.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 933 B |
@ -13,12 +13,18 @@ export default function () {
|
||||
src: 'misc/dist.PNG'
|
||||
})
|
||||
hmUI.createWidget(hmUI.widget.TEXT_IMG, {
|
||||
x: moduleX + 150,
|
||||
x: moduleX + 145,
|
||||
y: moduleY,
|
||||
font_array: secondaryFont,
|
||||
h_space: 1,
|
||||
align_h: hmUI.align.LEFT,
|
||||
type: hmUI.data_type.DISTANCE
|
||||
type: hmUI.data_type.DISTANCE,
|
||||
dot_image: "misc/altDot.PNG"
|
||||
})
|
||||
hmUI.createWidget(hmUI.widget.IMG, {
|
||||
x: moduleX + 243,
|
||||
y: moduleY,
|
||||
src: "misc/km.png"
|
||||
})
|
||||
}
|
||||
}
|
@ -6,12 +6,12 @@ export default function () {
|
||||
console.log("[modules]: heartrate module init")
|
||||
if (getScene() != SCENE_AOD) {
|
||||
hmUI.createWidget(hmUI.widget.IMG, {
|
||||
x: 10,
|
||||
x: 20,
|
||||
y: 365,
|
||||
src: 'misc/hb.PNG'
|
||||
})
|
||||
hmUI.createWidget(hmUI.widget.TEXT_IMG, {
|
||||
x: 100,
|
||||
x: 105,
|
||||
y: 365,
|
||||
font_array: secondaryFont,
|
||||
h_space: 1,
|
||||
|
Loading…
x
Reference in New Issue
Block a user