Skip to content

Commit abe877a

Browse files
change table header styles to use vscode panel border color (#52)
for more integrated look and feel in light and dark vscode themes
1 parent 11bcf22 commit abe877a

File tree

4 files changed

+12
-3
lines changed

4 files changed

+12
-3
lines changed

package-lock.json

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
"name": "vscode-data-table",
33
"displayName": "Data Table",
44
"description": "Data Table 🈸 renderer for Notebook 📓 cell ⌗ data outputs.",
5-
"version": "1.4.0",
5+
"version": "1.5.0",
66
"engines": {
77
"node": ">14.5.0",
88
"vscode": "^1.57.0"

src/renderer/render.ts

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -106,9 +106,14 @@ function addStyles(document: HTMLDocument): HTMLStyleElement {
106106
background-color: var(--vscode-editor-background) !important;
107107
}
108108
109+
thead th {
110+
box-shadow: 0 1px 0 var(--vscode-panel-border) !important;
111+
}
112+
109113
th {
110114
text-align: left !important;
111115
}
112116
`;
117+
113118
return styles;
114119
}

src/renderer/style.css

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,10 @@
1212
background-color: var(--vscode-editor-background) !important;
1313
}
1414

15+
thead th {
16+
box-shadow: 0 1px 0 var(--vscode-panel-border) !important;
17+
}
18+
1519
th {
1620
text-align: left !important;
1721
}

0 commit comments

Comments
 (0)