Commit f4b2e7e
fix(theme): button text uses VS Code theme tokens for contrast (1.5.2)
Action buttons (Apply Changes, Add Row, Create Table, Export, Save, …)
drew their label in hardcoded `color: white`, which could fall below a
readable contrast on custom VS Code themes whose button/accent colors
are light (#436).
`.btn-primary` now uses `--vscode-button-background`/`-foreground` with
`--vscode-button-hoverBackground` on hover; `.btn-secondary` uses the
`--vscode-button-secondary*` tokens; `.btn-danger` keeps its
error-colored background with `--vscode-button-foreground` text; and
`.cell-preview-toolbar-btn.active` uses `--vscode-button-foreground`.
Each token carries a fallback matching the previous appearance so the
standalone web demo (rendered outside VS Code) is unchanged.
Bumps the extension to 1.5.2 (changelog updated). Build regenerates the
webview + web-demo bundles; 414/414 unit tests pass.
Closes #436
Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>1 parent 6cca038 commit f4b2e7e
5 files changed
Lines changed: 26 additions & 11 deletions
File tree
- core/ui
- website/public/sqlite-viewer
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | 2 | | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
3 | 9 | | |
4 | 10 | | |
5 | 11 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
887 | 887 | | |
888 | 888 | | |
889 | 889 | | |
890 | | - | |
| 890 | + | |
| 891 | + | |
| 892 | + | |
| 893 | + | |
| 894 | + | |
891 | 895 | | |
892 | | - | |
| 896 | + | |
893 | 897 | | |
894 | 898 | | |
895 | 899 | | |
896 | 900 | | |
897 | 901 | | |
898 | 902 | | |
899 | 903 | | |
900 | | - | |
| 904 | + | |
| 905 | + | |
| 906 | + | |
901 | 907 | | |
902 | 908 | | |
903 | 909 | | |
904 | | - | |
| 910 | + | |
905 | 911 | | |
906 | | - | |
| 912 | + | |
907 | 913 | | |
908 | 914 | | |
909 | 915 | | |
910 | 916 | | |
911 | 917 | | |
912 | 918 | | |
913 | 919 | | |
914 | | - | |
| 920 | + | |
915 | 921 | | |
916 | 922 | | |
917 | 923 | | |
| 924 | + | |
| 925 | + | |
| 926 | + | |
918 | 927 | | |
919 | 928 | | |
920 | | - | |
| 929 | + | |
921 | 930 | | |
922 | 931 | | |
923 | 932 | | |
| |||
1073 | 1082 | | |
1074 | 1083 | | |
1075 | 1084 | | |
1076 | | - | |
| 1085 | + | |
1077 | 1086 | | |
1078 | 1087 | | |
1079 | 1088 | | |
| |||
0 commit comments