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

Use vscode tree.tableColumnsBorder to add contrast in light themes #1803

Merged
merged 4 commits into from
Jun 2, 2022

Conversation

wolmir
Copy link
Contributor

@wolmir wolmir commented May 31, 2022

Closes #1787

This PR uses VSCode's built-in tree.tableColumnsBorder for the experiments table header borders in order to add more contrast in light themes.

Screen Shot 2022-05-31 at 00 07 45

@wolmir wolmir self-assigned this May 31, 2022
@@ -12,6 +12,7 @@ $row-bg-color: $bg-color;
$header-fg-color: $fg-color;
$row-bg-alt-color: var(--vscode-sideBar-background);
$header-bg-color: var(--vscode-dropdown-background);
$header-border-color: var(--vscode-tree-tableColumnsBorder);
Copy link
Contributor

Choose a reason for hiding this comment

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

[I] Need to add a value for this to webview/src/stories/test-vscode-styles.scss so that it appears in the storybook.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Good catch, thanks!

@mattseddon mattseddon added the bug Something isn't working label May 31, 2022
@mattseddon
Copy link
Contributor

We probably want to drop the second line between the header and the rest of the table too:

image

image

@wolmir wolmir force-pushed the exp-table-fix-light-theme-contrast branch from 69c8c91 to aa171c5 Compare June 1, 2022 14:39
@mattseddon mattseddon enabled auto-merge (squash) June 2, 2022 01:43
@codeclimate
Copy link

codeclimate bot commented Jun 2, 2022

Code Climate has analyzed commit 6b4626f and detected 0 issues on this pull request.

The test coverage on the diff in this pull request is 100.0% (85% is the threshold).

This pull request will bring the total coverage in the repository to 96.8% (0.0% change).

View more on Code Climate.

@mattseddon mattseddon requested a review from maxagin June 2, 2022 01:50
@mattseddon mattseddon merged commit 1a2d5c2 into main Jun 2, 2022
@mattseddon mattseddon deleted the exp-table-fix-light-theme-contrast branch June 2, 2022 01:51
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Add more contrast to the webviews in the light mode
3 participants