Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: ClassCastException for Color conversion in newer Java versions #161

Merged
merged 3 commits into from
Aug 28, 2024

Commits on Aug 8, 2024

  1. fix: ClassCastException for Color conversion in newer Java versions

    This commit corrects the issue by converting the Color object to its RGB hex string representation.
    Rhodless committed Aug 8, 2024
    Configuration menu
    Copy the full SHA
    560eae1 View commit details
    Browse the repository at this point in the history

Commits on Aug 26, 2024

  1. fix: Restore HEX string compatibility while retaining Color object su…

    …pport
    
    This commit addresses the regression introduced in the previous fix that enabled Color object usage but broke HEX string compatibility. The code has been adjusted to ensure that both HEX strings (e.g., "#FFFFAA00") and Color objects (e.g., Color.RED) can be used interchangeably when setting color values in options.set(). This fix ensures backward compatibility with the previous behavior while retaining the ability to use Color objects without causing a ClassCastException.
    Rhodless committed Aug 26, 2024
    Configuration menu
    Copy the full SHA
    75df5dd View commit details
    Browse the repository at this point in the history

Commits on Aug 27, 2024

  1. Configuration menu
    Copy the full SHA
    e1e09d0 View commit details
    Browse the repository at this point in the history