Skip to content

Commit

Permalink
fix vscode settings for dark theme (#147)
Browse files Browse the repository at this point in the history
* fix vscode settings for dark theme

* Update onyxia-init.sh
  • Loading branch information
ihiverlet authored Oct 17, 2023
1 parent 7354bd9 commit 80a74cc
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions scripts/onyxia-init.sh
Original file line number Diff line number Diff line change
Expand Up @@ -150,12 +150,12 @@ if command -v R; then
env | grep "IMAGE_NAME" >> ${R_HOME}/etc/Renviron.site
fi
if [[ -n "$DARK_MODE" ]]; then
if [[ "$DARK_MODE" == "true" ]]; then
if command -v jupyter lab; then
echo "{\"@jupyterlab/apputils-extension:themes\": {\"theme\": \"JupyterLab Dark\"}}" > ${MAMBA_DIR}/share/jupyter/lab/settings/overrides.json;
fi
if command -v vscode; then
jq '.|= . + {"workbench.colorTheme": "Default Dark Modern", }' ${HOME}/.local/share/code-server/User/settings.json
jq '. + {"workbench.colorTheme": "Default Dark Modern" }' ${HOME}/.local/share/code-server/User/settings.json > ${HOME}/tmp.settings.json && mv ${HOME}/tmp.settings.json ${HOME}/.local/share/code-server/User/settings.json
fi
if command -v R; then
touch ${R_HOME}/etc/Rprofile.site
Expand Down

0 comments on commit 80a74cc

Please sign in to comment.