Skip to content

Issue with flatlaf-jide-oss customizations of JideButton #1045

@acepe

Description

@acepe

Hi,

I have encountered a small issue with DateChoosePane from jidesoft (payed version, not part of jide-oss), wenn using the flatlaf customizations from com.formdev.flatlaf-jide-oss.

Flatlaf-jide-oss introduces customizations for JideButton:

JideButton.border = com.formdev.flatlaf.ui.FlatMarginBorder
[…]
JideButton.background = $Button.background
JideButton.foreground = $Button.foreground
JideButton.focusedBackground = $Button.toolbar.hoverBackground
JideButton.selectedBackground = $Button.toolbar.selectedBackground
JideButton.selectedAndFocusedBackground = $Button.toolbar.pressedBackground
JideButton.borderColor = $Button.borderColor
[…]

The problem is, that JideButtons are used for displaying and selecting dates in the DateChooserPane. Due to using FlatMarginBorder and white-on-white background the selected date is not visible anymore.

Original, without including flatlaf-jide-oss:

Image

When including flatlaf-jide-oss:

Image

I was wondering, is there a reason you are using $Button.toolbar.hoverBackground, instead of $Button.hoverBackground (same for selected and pressed variants)?
Because when taking the styles from $Button directly, it looks somewhat acceptable, even without the border:

Image

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions