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: use const colors to skip reading querying for the terminal bg color #93

Merged
merged 1 commit into from
Nov 27, 2023

Conversation

aymanbagabas
Copy link
Member

Don't use AdaptiveColors and use regular colors instead. This makes the default styles not use HasDarkBackground to determine the terminal background color. HasDarkBackground will query the terminal for the background color using OSC 11 to determine which color to use in AdaptiveColor.

For users who still want to use AdaptiveColors, they can supply their own custom styles.

Fixes: #90

Don't use AdaptiveColors and use regular colors instead. This makes the
default styles _not_ use HasDarkBackground to determine the terminal
background color. HasDarkBackground will query the terminal for the
background color using `OSC 11` to determine which color to use in
AdaptiveColor.

For users who still want to use AdaptiveColors, they can supply their
own custom styles.

Fixes: #90
Copy link

codecov bot commented Nov 22, 2023

Codecov Report

All modified and coverable lines are covered by tests ✅

Comparison is base (f36448c) 80.56% compared to head (9d027f0) 80.16%.

Additional details and impacted files
@@            Coverage Diff             @@
##             main      #93      +/-   ##
==========================================
- Coverage   80.56%   80.16%   -0.40%     
==========================================
  Files          11       11              
  Lines         746      731      -15     
==========================================
- Hits          601      586      -15     
  Misses        131      131              
  Partials       14       14              

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

@aymanbagabas aymanbagabas merged commit b7f36a8 into main Nov 27, 2023
16 checks passed
@aymanbagabas aymanbagabas deleted the ansi-chars branch November 27, 2023 16:37
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.

ansi characters when air is used
1 participant