RE: Converting a Color object to its string representation

2023-12-23 Thread Eran Leshem
Yes, exactly what I would like every client to avoid writing. Eran From: Nir Lisker [mailto:nlis...@gmail.com] Sent: Saturday, December 23, 2023 9:24 PM To: Eran Leshem Cc: Kevin Rushforth; openjfx-dev@openjdk.org Subject: Re: Converting a Color object to its string representation I

RE: Converting a Color object to its string representation

2023-12-16 Thread Eran Leshem
. I see some value in a minimal API (option 1), returning a fixed format, perhaps: if alpha == 1 { "#rrggbb" } else { "#rrggbbaa" } -- Kevin On 12/12/2023 4:04 PM, Eran Leshem wrote: I can see two options: 1. Minimal, just in order to satisfy the style APIs need –

RE: Converting a Color object to its string representation

2023-12-12 Thread Eran Leshem
having higher priority than programmatically set colours as per my misunderstanding in https://bugs.openjdk.org/browse/JDK-8317434 So I see value in having Color implement something like this. Scott On Dec 11, 2023, at 4:19 PM, Eran Leshem wrote: Thank you for your responses. Given

RE: Converting a Color object to its string representation

2023-12-11 Thread Eran Leshem
Thank you for your responses. Given that the framework requires colors in string format in its style APIs, I think it should provide some way to convert colors to strings as expected by these APIs. Otherwise, clients are forced to implement this bridging logic on their own, due to a framework g

Converting a Color object to its string representation

2023-12-09 Thread Eran Leshem
Hello, Can I contribute an implementation for https://bugs.openjdk.org/browse/JDK-8090778? Eran