Browse Source
Merge pull request #732 from musdom/fix/qr-invert
fix(qrcode): re-invert QR colors and 2 px border for maximum compatibility
renovate/lint-staged-8.x
Tom Kirkpatrick
6 years ago
committed by
GitHub
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
6 changed files with
23 additions and
7 deletions
-
app/components/Activity/InvoiceModal.js
-
app/components/Activity/InvoiceModal.scss
-
app/components/Onboarding/Syncing.js
-
app/components/Onboarding/Syncing.scss
-
app/components/Wallet/ReceiveModal.js
-
app/components/Wallet/ReceiveModal.scss
|
|
@ -43,8 +43,8 @@ const InvoiceModal = ({ |
|
|
|
value={invoice.payment_request} |
|
|
|
renderAs="svg" |
|
|
|
size={150} |
|
|
|
bgColor="transparent" |
|
|
|
fgColor="white" |
|
|
|
bgColor="white" |
|
|
|
fgColor="#252832" |
|
|
|
level="L" |
|
|
|
className={styles.qrcode} |
|
|
|
/> |
|
|
|
|
|
@ -16,13 +16,16 @@ |
|
|
|
.left { |
|
|
|
width: 25%; |
|
|
|
padding: 0 60px; |
|
|
|
text-align: center; |
|
|
|
|
|
|
|
h2 { |
|
|
|
text-align: center; |
|
|
|
margin-bottom: 20px; |
|
|
|
} |
|
|
|
|
|
|
|
.qrcode { |
|
|
|
border-style: solid; |
|
|
|
border-color: white; |
|
|
|
border-width: 2px; |
|
|
|
margin-bottom: 20px; |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
@ -108,8 +108,8 @@ class Syncing extends Component { |
|
|
|
value={address} |
|
|
|
renderAs="svg" |
|
|
|
size={100} |
|
|
|
bgColor="transparent" |
|
|
|
fgColor="white" |
|
|
|
bgColor="white" |
|
|
|
fgColor="#252832" |
|
|
|
level="L" |
|
|
|
className={styles.qrcode} |
|
|
|
/> |
|
|
|
|
|
@ -70,6 +70,12 @@ |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
.qrcode { |
|
|
|
border-style: solid; |
|
|
|
border-color: white; |
|
|
|
border-width: 2px; |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
.progressContainer { |
|
|
|
|
|
@ -76,9 +76,10 @@ class ReceiveModal extends React.Component { |
|
|
|
value={qrCodeType === 1 ? pubkey : address} |
|
|
|
renderAs="svg" |
|
|
|
size={150} |
|
|
|
bgColor="transparent" |
|
|
|
fgColor="white" |
|
|
|
bgColor="white" |
|
|
|
fgColor="#252832" |
|
|
|
level="L" |
|
|
|
className={styles.qrcode} |
|
|
|
/> |
|
|
|
</div> |
|
|
|
</section> |
|
|
|
|
|
@ -69,6 +69,12 @@ |
|
|
|
.qrCodeContainer { |
|
|
|
text-align: center; |
|
|
|
} |
|
|
|
|
|
|
|
.qrcode { |
|
|
|
border-style: solid; |
|
|
|
border-color: white; |
|
|
|
border-width: 2px; |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
.right { |
|
|
|