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: selected text bg in default-light theme #1578

Merged
merged 1 commit into from
Sep 3, 2024

Conversation

stephen-huan
Copy link
Contributor

@stephen-huan stephen-huan commented Sep 3, 2024

Description

This change fixes a regression in btm --theme default-light. Currently, selected_text_style is White with no background, which causes the text to be borderline unreadable in a white background terminal (see below).

image

This change adds back the LightBlue background that was present before the theming changes introduced in #1499.

image

Testing

If relevant, please state how this was tested. All changes must be tested to work:

If this is a code change, please also indicate which platforms were tested:

  • Windows
  • macOS
  • Linux

Checklist

If relevant, ensure the following have been met:

  • Areas your change affects have been linted using rustfmt (cargo fmt)
  • The change has been tested and doesn't appear to cause any unintended breakage
  • Documentation has been added/updated if needed (README.md, help menu, doc pages, etc.)
  • The pull request passes the provided CI pipeline
  • There are no merge conflicts
  • If relevant, new tests were added (don't worry too much about coverage)

Copy link

codecov bot commented Sep 3, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 41.65%. Comparing base (c63574d) to head (ae2f880).
Report is 2 commits behind head on main.

Additional details and impacted files
@@           Coverage Diff           @@
##             main    #1578   +/-   ##
=======================================
  Coverage   41.65%   41.65%           
=======================================
  Files         114      114           
  Lines       17893    17893           
=======================================
  Hits         7453     7453           
  Misses      10440    10440           
Flag Coverage Δ
macos-12 36.94% <100.00%> (ø)
ubuntu-latest 43.38% <100.00%> (ø)
windows-2019 36.87% <100.00%> (ø)

Flags with carried forward coverage won't be shown. Click here to find out more.

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@ClementTsang
Copy link
Owner

Thanks for catching this!

@all-contributors please add @stephen-huan for code.

@ClementTsang ClementTsang merged commit 7c35def into ClementTsang:main Sep 3, 2024
36 checks passed
Copy link
Contributor

@ClementTsang

I couldn't determine any contributions to add, did you specify any contributions?
Please make sure to use valid contribution names.

I've put up a pull request to add @stephen-huan! 🎉

@ClementTsang ClementTsang mentioned this pull request Sep 3, 2024
9 tasks
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.

2 participants