AWT dependencies in ECSSColor and CSSColorHelper and Android usage of ph-css
See original GitHub issueHi 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:
- Created 6 years ago
- Comments:8 (5 by maintainers)
Top Results From Across the Web
No results found
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
And finally - ph-css 6.1.0: http://repo2.maven.org/maven2/com/helger/ph-css/6.1.0/ n-joy 😄
ph-css 4.2.0: http://repo2.maven.org/maven2/com/helger/ph-css/4.2.0/