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} value={invoice.payment_request}
renderAs="svg" renderAs="svg"
size={150} size={150}
bgColor="transparent" bgColor="white"
fgColor="white" fgColor="#252832"
level="L" level="L"
className={styles.qrcode} className={styles.qrcode}
/> />

5
app/components/Activity/InvoiceModal.scss

@ -16,13 +16,16 @@
.left { .left {
width: 25%; width: 25%;
padding: 0 60px; padding: 0 60px;
text-align: center;
h2 { h2 {
text-align: center;
margin-bottom: 20px; margin-bottom: 20px;
} }
.qrcode { .qrcode {
border-style: solid;
border-color: white;
border-width: 2px;
margin-bottom: 20px; margin-bottom: 20px;
} }
} }

4
app/components/Onboarding/Syncing.js

@ -108,8 +108,8 @@ class Syncing extends Component {
value={address} value={address}
renderAs="svg" renderAs="svg"
size={100} size={100}
bgColor="transparent" bgColor="white"
fgColor="white" fgColor="#252832"
level="L" level="L"
className={styles.qrcode} className={styles.qrcode}
/> />

6
app/components/Onboarding/Syncing.scss

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

5
app/components/Wallet/ReceiveModal.js

@ -76,9 +76,10 @@ class ReceiveModal extends React.Component {
value={qrCodeType === 1 ? pubkey : address} value={qrCodeType === 1 ? pubkey : address}
renderAs="svg" renderAs="svg"
size={150} size={150}
bgColor="transparent" bgColor="white"
fgColor="white" fgColor="#252832"
level="L" level="L"
className={styles.qrcode}
/> />
</div> </div>
</section> </section>

6
app/components/Wallet/ReceiveModal.scss

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

Loading…
Cancel
Save