On Wed, 18 Nov 2026 00:20:46 GMT, Marius Hanl <[email protected]> wrote:

> Code and dialog looks good to me. Just want to recheck. In my opinion, this 
> is fine. Is there anything we should change as part of the default `Modena` 
> stylesheet, or are we fine with the minor change:

Modena itself is fine I think, it defines correct colors for `.hyperlink` -- it 
was more that the code would wipe out this base style when it wanted to just 
add/remove the `less`/`more` style (which probably should be a pseudo class, 
but fine...), ie. this line used `setAll`:

    detailsButton.getStyleClass().setAll("details-button", (isExpanded ? "less" 
: "more"))

It does change how it looks from before, but for a Hyperlink that's actually 
the correct behavior (it's blue, and changes to a darker tint when visited).

I won't go into details as to WHY dialogs use a hyperlink for this purpose 
(Windows does this for its dialogs, so it may come from there) instead of just 
a more standard toggle button or check box, but if you do use a hyperlink, then 
we should be able to style it properly :)

-------------

PR Comment: https://git.openjdk.org/jfx/pull/1779#issuecomment-6980353873

Reply via email to