Skip to content

Commit

Permalink
change #rrggbbaa hex color notation to rgba (#563)
Browse files Browse the repository at this point in the history
  • Loading branch information
jackhe16 authored Oct 24, 2022
1 parent 19eed79 commit 5e8251e
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 7 deletions.
6 changes: 3 additions & 3 deletions src/html5-qrcode-scanner.ts
Original file line number Diff line number Diff line change
Expand Up @@ -912,16 +912,16 @@ export class Html5QrcodeScanner {

switch (scannerStatus) {
case Html5QrcodeScannerStatus.STATUS_SUCCESS:
messageDiv.style.background = "#6aaf5042";
messageDiv.style.background = "rgba(106, 175, 80, 0.26)";
messageDiv.style.color = "#477735";
break;
case Html5QrcodeScannerStatus.STATUS_WARNING:
messageDiv.style.background = "#cb243124";
messageDiv.style.background = "rgba(203, 36, 49, 0.14)";
messageDiv.style.color = "#cb2431";
break;
case Html5QrcodeScannerStatus.STATUS_DEFAULT:
default:
messageDiv.style.background = "#00000000";
messageDiv.style.background = "rgba(0, 0, 0, 0)";
messageDiv.style.color = "rgb(17, 17, 17)";
break;
}
Expand Down
8 changes: 4 additions & 4 deletions src/html5-qrcode.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1535,13 +1535,13 @@ export class Html5Qrcode {
const topBottomBorderSize = (height - qrboxSize.height) / 2;

shadingElement.style.borderLeft
= `${rightLeftBorderSize}px solid #0000007a`;
= `${rightLeftBorderSize}px solid rgba(0, 0, 0, 0.48)`;
shadingElement.style.borderRight
= `${rightLeftBorderSize}px solid #0000007a`;
= `${rightLeftBorderSize}px solid rgba(0, 0, 0, 0.48)`;
shadingElement.style.borderTop
= `${topBottomBorderSize}px solid #0000007a`;
= `${topBottomBorderSize}px solid rgba(0, 0, 0, 0.48)`;
shadingElement.style.borderBottom
= `${topBottomBorderSize}px solid #0000007a`;
= `${topBottomBorderSize}px solid rgba(0, 0, 0, 0.48)`;
shadingElement.style.boxSizing = "border-box";
shadingElement.style.top = "0px";
shadingElement.style.bottom = "0px";
Expand Down

0 comments on commit 5e8251e

Please sign in to comment.