question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

AWT dependencies in ECSSColor and CSSColorHelper and Android usage of ph-css

See original GitHub issue

Hi Philip, We are using ph-css in our Android-App. Today I started implementing parsing of colors and discovered, that there are dependencies to AWT in bot ECSSColor and CSSColorHelper. However, there is no AWT support on Android that I know of. So sadly, I can’t make use of those classes/ enums to determine what kind of Color it is, the CSS contains or get RGB values of named CSS colors.

The root of all evil lies in final float [] aHSL = CSSColorHelper.getRGBAsHSLValue (nRed, nGreen, nBlue); of ECSSColor’s constructor. Is there a possibility or plan for you to ditch AWT dependencies, or move them somewhere else, so we don’t have to have AWT in order to use ECSSColor?

Issue Analytics

  • State:closed
  • Created 6 years ago
  • Comments:8 (5 by maintainers)

github_iconTop GitHub Comments

1reaction
phaxcommented, Mar 23, 2018

And finally - ph-css 6.1.0: http://repo2.maven.org/maven2/com/helger/ph-css/6.1.0/ n-joy 😄

1reaction
phaxcommented, Mar 22, 2018
Read more comments on GitHub >

github_iconTop Results From Across the Web

No results found

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found