Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix: Material colorpicker label gets string by converting color value to hexadecimal instead of using toString method #120

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

Lucas-Haux
Copy link

Fix for #119

Using toString method on Type Color will only work in debug mode. On profile or release mode, the toString() method returns an Instance of 'Color'. The solution to this is to convert the value of Type Color to hexadecimal with toRadixString(16) method.

The subString(2) is used to remove the first to "ff" like was done before with the replaceFirst() method.

… to hexadecimal instead of using toString method
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant