fix: fixed widget positioning for rounded corners, fixed logo
This commit is contained in:
@@ -1,23 +1,26 @@
|
||||
import * as hmUI from '@zos/ui'
|
||||
import fontArray from '../fontData/secondaryFont'
|
||||
const moduleX = 50
|
||||
const moduleY = 10
|
||||
|
||||
export default function () {
|
||||
console.log("[modules]: date module init")
|
||||
hmUI.createWidget(hmUI.widget.IMG_DATE, {
|
||||
day_startX: 10,
|
||||
day_startY: 10,
|
||||
day_startX: moduleX,
|
||||
day_startY: moduleY,
|
||||
day_align: hmUI.align.LEFT,
|
||||
day_space: 0,
|
||||
day_zero: 1,
|
||||
day_en_array: fontArray
|
||||
})
|
||||
hmUI.createWidget(hmUI.widget.IMG, {
|
||||
x: 54,
|
||||
y: 14,
|
||||
x: moduleX + 44,
|
||||
y: moduleY + 4,
|
||||
src: 'date/point.PNG'
|
||||
})
|
||||
hmUI.createWidget(hmUI.widget.IMG_DATE, {
|
||||
month_startX: 70,
|
||||
month_startY: 10,
|
||||
month_startX: moduleX + 60,
|
||||
month_startY: moduleY,
|
||||
month_align: hmUI.align.LEFT,
|
||||
month_space: 0,
|
||||
month_zero: 1,
|
||||
|
||||
Reference in New Issue
Block a user