Skip to content

Pick a reasonable default for line highlight color based on theme background color #106

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

Merged
merged 7 commits into from
Jul 6, 2020

Conversation

andrewbranch
Copy link
Owner

Fixes #51

image

Light theme users will still probably want to pick their own, as I think this is pretty ugly, but it at least lets them know their configuration isn’t broken, which is the point of #51.

@andrewbranch andrewbranch mentioned this pull request Jul 6, 2020
12 tasks
@andrewbranch andrewbranch merged commit 37eeb47 into v3 Jul 6, 2020
@andrewbranch andrewbranch deleted the default-colors branch July 6, 2020 01:32
andrewbranch added a commit that referenced this pull request Jul 10, 2020
* Add concept of gutter cells

* Adjust rendering and styling

* Finish layout, add test, make it work with line highlighting

* Fix copy and paste

* Update alpha publishing to point to v3 branch

* Update other v2 reference

* Another 2

* Add diff highlighting line transformer (#88)

* fix typo in CONTRIBUTING.md

* fix formatting error preventing tests in src/utils.js

* wip: diff line transformer draft implementation

* add diff line transformer integration test

* diffLineTransformer return new v3 gutterCells prop

* readme fix typo

* pick default red/green colors for diff line highlighting

* fix diffLineTransformer.schemaExtension,  avoid mutating input params

* don't require diff lines to start with +/-

* Update tests, fix type errors

* Remove postfix space requirement

Co-authored-by: Andrew Branch <[email protected]>

* Add GraphQL testing infrastructure

* Update workflows and CONTRIBUTING.md

* Add missing proc.kill

* Ignore tty message?

* Remove meta from test query because apparently languageId isn’t stable

* Totally ignore tty error

* Update snapshot

* Shallow checkout vscode

* Pick a reasonable default for line highlight color based on theme background color (#106)

* Detect dark themes by luminance

* Fix dependencies

* Update README

* Update MIGRATING

* Add test, adjust light default color

* Ignore report.html

* Don’t cache in GraphQL tests

* Officially deprecate `codeFenceNode`

* Add line number docs

* Add diff highlighting docs

* Remove old `colorTheme` option

* Update baselines

Co-authored-by: Janosh Riebesell <[email protected]>
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.

1 participant