Skip to content

Change Color.lightgrey to have a white background - dark theme friendly#5458

Merged
greg-finley merged 1 commit intosqlfluff:mainfrom
ryaminal:patch-1
Dec 10, 2023
Merged

Change Color.lightgrey to have a white background - dark theme friendly#5458
greg-finley merged 1 commit intosqlfluff:mainfrom
ryaminal:patch-1

Conversation

@ryaminal
Copy link
Copy Markdown
Contributor

@ryaminal ryaminal commented Dec 6, 2023

Brief summary of the change made

To allow a better experience for dark-background users, adding a background of WHITE seems to be a good experience.

Tested on about 10 themes in MacOS' Terminal.app and alacritty for both dark and light backgrounds.

Related to #1170

Explored replacing the output formatter with rich, but that seems like too much work when I think this simple fix will do.

Are there any other side effects of this change that we should be aware of?

No known side effects

Pull Request checklist

  • Please confirm you have completed any of the necessary steps below.

  • Included test cases to demonstrate any code changes, which may be one or more of the following:

    • .yml rule test cases in test/fixtures/rules/std_rule_cases.
    • .sql/.yml parser test cases in test/fixtures/dialects (note YML files can be auto generated with tox -e generate-fixture-yml).
    • Full autofix test cases in test/fixtures/linter/autofix.
    • Other.
  • Added appropriate documentation for the change.

  • Created GitHub issues for any relevant followup/future enhancements if appropriate.

To allow a better experience for dark-background users, adding a background of WHITE seems to be a good experience.

Tested on about 10 themes in MacOS' Terminal.app and alacritty for both dark and light backgrounds.
Copy link
Copy Markdown
Contributor

@greg-finley greg-finley left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks!

@greg-finley greg-finley added this pull request to the merge queue Dec 10, 2023
@coveralls
Copy link
Copy Markdown

Coverage Status

coverage: 100.0%. remained the same
when pulling 71224bb on ryaminal:patch-1
into cd725c6 on sqlfluff:main.

@github-actions
Copy link
Copy Markdown
Contributor

Coverage Results ✅

Name    Stmts   Miss  Cover   Missing
-------------------------------------
TOTAL   16926      0   100%

222 files skipped due to complete coverage.

Merged via the queue into sqlfluff:main with commit c9fa71b Dec 10, 2023
@ryaminal ryaminal deleted the patch-1 branch December 12, 2023 00:15
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants