Skip to content

Commit

Permalink
Changed label colours in SC-8850.
Browse files Browse the repository at this point in the history
  • Loading branch information
PoneyClairDeLune committed Jun 30, 2024
1 parent dd66b3c commit bb9c3ab
Showing 1 changed file with 9 additions and 7 deletions.
16 changes: 9 additions & 7 deletions src/disp/disp_sc8850.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -135,17 +135,19 @@ let Sc8850Display = class extends RootDisplay {
// Prepare the canvas
if (timeNow - upThis.#lastBg >= 3600000) {
ctx.fillStyle = backlight.orange;
ctx.fillRect(0, 0, ctx.canvas.width, ctx.canvas.height);
ctx.fillRect(0, 0, 808, ctx.canvas.height);
// Show text
ctx.fillStyle = "#000";
ctx.fillRect(808, 0, ctx.canvas.width - 808, ctx.canvas.height);
ctx.fillStyle = backlight.orange;
ctx.textAlign = "left";
ctx.font = '300 14px "Work Sans"';
ctx.font = '400 14px "Work Sans"';
ctx.textRendering = "geometricPrecision";
ctx.fillText("EFX", 808, 122);
ctx.fillText("8850", 808, 166);
ctx.fillText("Pro", 808, 192);
ctx.fillText("88", 808, 217);
ctx.fillText("55", 808, 242);
ctx.fillText("EFX", 810, 121);
ctx.fillText("8850", 810, 166);
ctx.fillText("Pro", 810, 192);
ctx.fillText("88", 810, 216);
ctx.fillText("55", 810, 241);
upThis.#lastBg = timeNow;
fullRefresh = true;
};
Expand Down

0 comments on commit bb9c3ab

Please sign in to comment.