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

More consistent legacy color conversion #37

Merged
merged 1 commit into from
Feb 11, 2024

Commits on Feb 11, 2024

  1. More consistent legacy color conversion

    When a given "legacy color" argument is not in fact a recognised color
    name, `legacy_color` should return nil, and indeed it does when the
    argument is a string.
    
    However, the color symbol method will just return the symbol argument if
    it is not recognised, creating an inconsistency in the behaviour.
    Instead, it should return nothing, as the string case does.
    
    This change is made, and a little of the surrounding code rearranged for
    clarity.
    tecosaur committed Feb 11, 2024
    Configuration menu
    Copy the full SHA
    7ce4e69 View commit details
    Browse the repository at this point in the history