From 99c9b37ad177eb64a4145cea499828fda746109e Mon Sep 17 00:00:00 2001 From: ThetaDev Date: Thu, 25 Nov 2021 08:14:48 +0100 Subject: [PATCH] Detect dark theme via css variable (#17800) * detect dark theme via css variable * minor refactor, add documentation If your custom theme is considered a dark theme, set the global css variable `--is-dark-theme` to `true`. This allows gitea to adjust the Monaco code editor's theme accordingly. --- doc/advanced/customizing-gitea.en-us.md | 3 +++ 1 file changed, 3 insertions(+) diff --git a/doc/advanced/customizing-gitea.en-us.md b/doc/advanced/customizing-gitea.en-us.md index 040dcfd3..d0970198 100644 --- a/doc/advanced/customizing-gitea.en-us.md +++ b/doc/advanced/customizing-gitea.en-us.md @@ -337,6 +337,9 @@ Community themes are listed in [gitea/awesome-gitea#themes](https://gitea.com/gi The `arc-green` theme source can be found [here](https://github.com/go-gitea/gitea/blob/main/web_src/less/themes/theme-arc-green.less). +If your custom theme is considered a dark theme, set the global css variable `--is-dark-theme` to `true`. +This allows gitea to adjust the Monaco code editor's theme accordingly. + ## Customizing fonts Fonts can be customized using CSS variables: