From 375b97796763153f7c215a880d086d89999f69dd Mon Sep 17 00:00:00 2001 From: Rob Pilling Date: Thu, 25 Apr 2024 12:46:52 +0100 Subject: [PATCH] ctrlpad: work with light & dark themes --- apps/ctrlpad/main.ts | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/apps/ctrlpad/main.ts b/apps/ctrlpad/main.ts index b908b68d1..50e72ce4b 100644 --- a/apps/ctrlpad/main.ts +++ b/apps/ctrlpad/main.ts @@ -60,7 +60,9 @@ renderG2(): void { this.g2 .reset() - .clearRect(0, 0, this.width, this.height) + .setColor(g.theme.bg) + .fillRect(0, 0, this.width, this.height) + .setColor(colour.on.bg) .drawRect(0, 0, this.width - 1, this.height - 1) .drawRect(1, 1, this.width - 2, this.height - 2); }