Giter Site home page Giter Site logo

Comments (6)

LarsWerkman avatar LarsWerkman commented on July 19, 2024

It is possible to set Gray Colors in a recent update I added a Saturation Bar and a Value Bar which can complement each other in making gray color, as you can see in the readme file the second photo it has the saturation bar and value bar. if the saturation bar is set to white the value bar can make every gray color.

from holocolorpicker.

Harteg avatar Harteg commented on July 19, 2024

Thank you. I've implemented the value and saturation bar instead of the svBar, and it's now possible to get a gray color out of the picker, thanks.

An issue still remains though, I've added an EditText to the picker which displays the hex code of the color, and gives the user the ability to type in a hex code manually, which the color picker then previews, via picker.setColor(). However, this has a couple of problems. I use the setColor() like this:

String hex = "#5511AA"
picker.setColor(Color.parseColor(hex));

In the onColorChanged() method, I update the EditText's text with the hex code of the color of the picker (like this: int colorInt = picker.getColor(); ). But the Color Picker has changed the color a bit, i get the same visual result, but the hex code changes, in this case to #4C00AA. It's pretty much the same color, but the changing of the hex code is gonna confuse users. Why does this happen, and how to fix it?

Second issue: When try setting the color picker to a gray color, with the hex code of say #666666, this changes to #660000. But the weird part is that the markers or dots on the saturation bar and value bar, are in the exact right position to choose this color, but somehow they aren't taking effect. If just slides the markers back and forth to the same position, i get the gray color of #666666.

from holocolorpicker.

LarsWerkman avatar LarsWerkman commented on July 19, 2024

I have to check to check the errors, the first error occurs because the setColor method isn't perfect and should need some work. for the second error i know why this is happening, its because i think i forgot to implement the setColor for the saturation and value bar because i was in a hurry to make it!.
Although these errors don't take to long to fix I don't have time for a few weeks. I try to fix it as soon as possible, but if you feel like helping out, that would be great ofcourse :)

from holocolorpicker.

Harteg avatar Harteg commented on July 19, 2024

Okay, I think I will give it a try, but I'm still new in developing so i'm not expecting much success. But thank you for your answer, and your work. Really appreciate it.

from holocolorpicker.

LarsWerkman avatar LarsWerkman commented on July 19, 2024

I fixed the problem when you tried to set the gray color!

from holocolorpicker.

Harteg avatar Harteg commented on July 19, 2024

Thank you very much
On Apr 13, 2013 3:35 PM, "Lars Werkman" [email protected] wrote:

I fixed the problem when you tried to set the gray color!

β€”
Reply to this email directly or view it on GitHubhttps://github.com//issues/16#issuecomment-16333193
.

from holocolorpicker.

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.