VHS-watch/watchface/modules/heartRate.js

22 lines
626 B
JavaScript
Raw Normal View History

2024-10-20 03:27:14 +03:00
import { getScene, SCENE_AOD } from '@zos/app'
2024-10-20 02:54:13 +03:00
import * as hmUI from '@zos/ui';
import secondaryFont from '../fontData/secondaryFont';
2024-10-20 03:27:14 +03:00
export default function () {
2024-10-20 02:54:13 +03:00
console.log("[modules]: heartrate module init")
2024-10-20 03:29:33 +03:00
if (getScene() != SCENE_AOD) {
2024-10-20 03:27:14 +03:00
hmUI.createWidget(hmUI.widget.IMG, {
x: 20,
2024-10-20 03:27:14 +03:00
y: 365,
src: 'misc/hb.PNG'
})
hmUI.createWidget(hmUI.widget.TEXT_IMG, {
x: 105,
2024-10-20 03:27:14 +03:00
y: 365,
font_array: secondaryFont,
h_space: 1,
align_h: hmUI.align.LEFT,
type: hmUI.data_type.HEART
2024-10-20 03:27:14 +03:00
})
}
2024-10-20 02:54:13 +03:00
}