diff --git a/assets/tile.png b/assets/tile.png new file mode 100644 index 0000000..f3fb2a1 Binary files /dev/null and b/assets/tile.png differ diff --git a/assets/tile2.png b/assets/tile2.png new file mode 100644 index 0000000..36f9d52 Binary files /dev/null and b/assets/tile2.png differ diff --git a/canvas.js b/canvas.js index 41e5240..78825db 100644 --- a/canvas.js +++ b/canvas.js @@ -3,19 +3,19 @@ document.querySelectorAll(".clock").forEach((clock) => { var ctx = canvas.getContext("2d"); ctx.resetTransform(); ctx.translate(32, 32); - ctx.strokeStyle = "#FFFFFF"; + ctx.strokeStyle = getComputedStyle(document.documentElement).getPropertyValue('--foreground'); ctx.lineWidth = 2; ctx.lineCap = "round"; update(); }); function update() { document.querySelectorAll(".clock").forEach((clock, i) => { - if (clock.classList.contains("main-clock")) return; var canvas = clock.querySelector("canvas"); var ctx = canvas.getContext("2d"); + ctx.strokeStyle = getComputedStyle(document.documentElement).getPropertyValue('--foreground'); + if (clock.classList.contains("main-clock")) return; ctx.resetTransform(); ctx.translate(32, 32); - ctx.strokeStyle = "#FFFFFF"; ctx.lineWidth = 2; ctx.lineCap = "round"; var canvas = clock.querySelector("canvas"); diff --git a/index.html b/index.html index 03b3a20..8188105 100644 --- a/index.html +++ b/index.html @@ -47,23 +47,29 @@