Skip to content

Commit

Permalink
Update files
Browse files Browse the repository at this point in the history
  • Loading branch information
leikareipa committed Dec 15, 2024
1 parent f176efb commit 8deba90
Showing 1 changed file with 13 additions and 12 deletions.
25 changes: 13 additions & 12 deletions experimental/w95/samples/analog-clock/app.js
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,8 @@ export default {
author: "ArtisaaniSoft",
},
App() {
const width = w95.state(clockFaceTexture.width + 14);
const height = w95.state(clockFaceTexture.height + 54);
const width = w95.state(clockFaceTexture.width + 20);
const height = w95.state(clockFaceTexture.height + 57);

const x = w95.state(~~(0.5 * (w95.shell.display.width - width.now)), w95.reRenderOnly);
const y = w95.state(~~(0.5 * (w95.shell.display.visibleHeight - height.now)), w95.reRenderOnly);
Expand Down Expand Up @@ -167,19 +167,18 @@ export default {
}),
],
}),
w95.widget.horizontalRule({
y: 19,
}),
w95.widget.frame({
x: 3,
y: 25,
width: clockFaceTexture.width,
height: clockFaceTexture.height,
shape: w95.frameShape.none,
x: 0,
y: 18,
width: clockFaceTexture.width+12,
height: clockFaceTexture.height+12,
shape: w95.frameShape.input,
children: [
w95.widget.renderSurface({
width: "pw",
height: "ph",
x: 6,
y: 6,
width: "pw - 12",
height: "ph - 12",
meshes: Object.values(clockMesh.now),
backgroundColor: w95.palette.named.transparent,
options: {
Expand Down Expand Up @@ -214,6 +213,8 @@ export default {
}
}),
w95.widget.bitmap({
x: 6,
y: 6,
image: clockFaceTexture,
}),
],
Expand Down

0 comments on commit 8deba90

Please sign in to comment.