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

Rename palette entry grey -> gray #486

Merged
merged 1 commit into from
Jul 24, 2024
Merged

Rename palette entry grey -> gray #486

merged 1 commit into from
Jul 24, 2024

Conversation

rock3r
Copy link
Collaborator

@rock3r rock3r commented Jul 23, 2024

The name was changed in 242 to reflect the fact that everything else is named in en-US, and for consistency with the Int UI specs. This change aligns us to that, leaving a deprecated grey accessor in ThemeColorPalette for backwards compat. The lookup function also accepts both spellings for the time being.

This also bumps the theme generator to target IJP 242.

Note that some of these changes will not be ported to earlier releases — only the ThemeColorPalette property name changes and lookup behaviour — since in 233 and 241 the keys are still named in en-GB in the theme json.

Most relevant changes: ThemeColorPalette.kt and IntUiThemeDescriptorReader.kt; the rest is just running a rename refactor.

The name was changed in 242 to reflect the fact that everything else is
named in en-US, and for consistency with the Int UI specs. This change
aligns us to that, leaving a deprecated grey accessor in
ThemeColorPalette for backwards compat. The lookup function also accepts
both spellings for the time being.

This also bumps the theme generator to target IJP 242.

Note that some of these changes will not be ported to earlier releases —
only the ThemeColorPalette property name changes and lookup behaviour —
since in 233 and 241 the keys are still named in en-GB in the theme json
@rock3r rock3r added consistency Our UI presentation is not consistent with IJ api Changes related to the public API labels Jul 23, 2024
@rock3r rock3r self-assigned this Jul 23, 2024
@rock3r rock3r linked an issue Jul 23, 2024 that may be closed by this pull request
@rock3r rock3r enabled auto-merge (squash) July 23, 2024 16:38
@rock3r rock3r merged commit 3f24aca into main Jul 24, 2024
4 checks passed
@rock3r rock3r deleted the avoid-gb-spelling branch July 24, 2024 08:47
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
api Changes related to the public API consistency Our UI presentation is not consistent with IJ
Projects
None yet
Development

Successfully merging this pull request may close these issues.

ThemeColorPalette should use en-US spelling for "gray"
2 participants