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

Support upper-case theme color spec & Clarify 16-color names #1160

Merged
merged 2 commits into from
Mar 9, 2022

Conversation

neiljp
Copy link
Collaborator

@neiljp neiljp commented Mar 5, 2022

What does this PR do?

The documentation for urwid generally refers to lower case as the valid
format, but it lowers the barrier to entry for theme authors if we allow
upper case and explicitly convert ourselves.

For 16 color names, our color specification uses underscores to enable styling within a
single string (more generally) and make it simpler to separate color variations (eg.
"light gray") within a longer space-separated string.

Tested?

  • Manually
  • Existing tests (adapted, if necessary)

The documentation for urwid generally refers to lower case as the valid
format, but it lowers the barrier to entry for theme authors if we allow
upper case and explicitly convert ourselves.

Note added to THEME_CONTRIBUTING.md

Tests updated.
Our color specification uses underscores to enable styling within a
single string and make it simpler to separate color variations (eg.
"light gray") within a longer space-separated string.

Tests simplified to check directly against versions with underscores.
@neiljp neiljp added this to the Next Release milestone Mar 5, 2022
@zulipbot zulipbot added the size: L [Automatic label added by zulipbot] label Mar 5, 2022
@zulipbot
Copy link
Member

zulipbot commented Mar 5, 2022

Hello @zulip/server-refactoring members, this pull request was labeled with the "area: refactoring" label, so you may want to check it out!

@neiljp neiljp mentioned this pull request Mar 5, 2022
4 tasks
@neiljp neiljp merged commit 4318eb3 into zulip:main Mar 9, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area: colors/styles/themes area: documentation Requires changes in documentation area: refactoring size: L [Automatic label added by zulipbot]
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants