From 433373bad127eafa66660b6f473f13540fac5e53 Mon Sep 17 00:00:00 2001 From: schlagmichdoch Date: Mon, 23 Oct 2023 19:39:33 +0200 Subject: [PATCH] Do not inverse QR-code colors on dark mode to fix readability with some readers and the native camera app on Android (fixes #187) --- public/scripts/ui.js | 12 ++++++------ public_included_ws_fallback/scripts/ui.js | 12 ++++++------ 2 files changed, 12 insertions(+), 12 deletions(-) diff --git a/public/scripts/ui.js b/public/scripts/ui.js index c124d2b..16c83f5 100644 --- a/public/scripts/ui.js +++ b/public/scripts/ui.js @@ -1268,9 +1268,9 @@ class PairDeviceDialog extends Dialog { content: this._getPairUrl(), width: 150, height: 150, - padding: 0, - background: "transparent", - color: `rgb(var(--text-color))`, + padding: 1, + background: 'rgb(238,238,238)', + color: 'rgb(18, 18, 18)', ecl: "L", join: true }); @@ -1619,9 +1619,9 @@ class PublicRoomDialog extends Dialog { content: this._getShareRoomUrl(), width: 150, height: 150, - padding: 0, - background: "transparent", - color: `rgb(var(--text-color))`, + padding: 1, + background: 'rgb(238,238,238)', + color: 'rgb(18, 18, 18)', ecl: "L", join: true }); diff --git a/public_included_ws_fallback/scripts/ui.js b/public_included_ws_fallback/scripts/ui.js index 1346f67..cff8931 100644 --- a/public_included_ws_fallback/scripts/ui.js +++ b/public_included_ws_fallback/scripts/ui.js @@ -1270,9 +1270,9 @@ class PairDeviceDialog extends Dialog { content: this._getPairUrl(), width: 150, height: 150, - padding: 0, - background: "transparent", - color: `rgb(var(--text-color))`, + padding: 1, + background: 'rgb(238,238,238)', + color: 'rgb(18, 18, 18)', ecl: "L", join: true }); @@ -1621,9 +1621,9 @@ class PublicRoomDialog extends Dialog { content: this._getShareRoomUrl(), width: 150, height: 150, - padding: 0, - background: "transparent", - color: `rgb(var(--text-color))`, + padding: 1, + background: 'rgb(238,238,238)', + color: 'rgb(18, 18, 18)', ecl: "L", join: true });