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
parent
commit
fac45c9c96
No known key found for this signature in database GPG Key ID: 4AEE18F83AFDEB23
  1. 4
      app/components/Activity/InvoiceModal.js
  2. 5
      app/components/Activity/InvoiceModal.scss
  3. 4
      app/components/Onboarding/Syncing.js
  4. 6
      app/components/Onboarding/Syncing.scss
  5. 5
      app/components/Wallet/ReceiveModal.js
  6. 6
      app/components/Wallet/ReceiveModal.scss

4
app/components/Activity/InvoiceModal.js

@ -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}
/>

5
app/components/Activity/InvoiceModal.scss

@ -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;
}
}

4
app/components/Onboarding/Syncing.js

@ -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}
/>

6
app/components/Onboarding/Syncing.scss

@ -70,6 +70,12 @@
}
}
}
.qrcode {
border-style: solid;
border-color: white;
border-width: 2px;
}
}
.progressContainer {

5
app/components/Wallet/ReceiveModal.js

@ -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>

6
app/components/Wallet/ReceiveModal.scss

@ -69,6 +69,12 @@
.qrCodeContainer {
text-align: center;
}
.qrcode {
border-style: solid;
border-color: white;
border-width: 2px;
}
}
.right {

Loading…
Cancel
Save