Coder Social home page Coder Social logo

Comments (8)

Robhox avatar Robhox commented on July 22, 2024 1

I think that the colors are working as intended and you inverted colors. I would bet your QR code is not scannable in the current state. You should try :
colorLight = #ffffff
colorDark = #0080b9

from angularx-qrcode.

foramkumar-parekh avatar foramkumar-parekh commented on July 22, 2024 1

@Cordobo would you like to share your thoughts on this?

from angularx-qrcode.

Cordobo avatar Cordobo commented on July 22, 2024 1

I haven't tried it (please attach a working repo if you want me to check it out) but as @Robhox mentioned, the code looks inverted - have a look at a working QR code and compare the squares in the corners with the one in your version.

I close this for now, please reopen and add a repo to reproduce the issue if it still exists

from angularx-qrcode.

foramkumar-parekh avatar foramkumar-parekh commented on July 22, 2024 1

Please find below image with both the colour combinations. The light and dark colours are mentioned in the image itself. Hope this helps.
image
image

the code snippet used in my code is as below

<qrcode #qrTag [qrdata]="userDetailStr" [level]="'M'" [colorlight]="colorLight" [colordark]="colorDark" [usesvg]="false"></qrcode>

I need the QRcode in white and background in blue.

@Cordobo I guess above will help you explain the problem.

from angularx-qrcode.

Cordobo avatar Cordobo commented on July 22, 2024 1

Fixed in Version 2.0.0

from angularx-qrcode.

foramkumar-parekh avatar foramkumar-parekh commented on July 22, 2024

Well for some of my other colour combinations, the Light colour is #ffffff and the background is displayed as white. so I am expecting it to be a blue background and white QRcode colour.

Note: I am using version 1.5.3

from angularx-qrcode.

Robhox avatar Robhox commented on July 22, 2024

I can ensure you that the colors work as intended. Please print the same QR code with colorLight and colorDark inverted and see by yourself that the two generated codes aren't the same.

from angularx-qrcode.

foramkumar-parekh avatar foramkumar-parekh commented on July 22, 2024

I tried inverting colors as well and got the same result.

That's the reason I have raised the issue

from angularx-qrcode.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.