From ac1d0d07046dced40d6bd5b0542a210797cd3321 Mon Sep 17 00:00:00 2001 From: Akash Yadav Date: Tue, 24 Jan 2023 08:06:36 +0530 Subject: [PATCH] docs: add docs for dark variant of a color scheme --- docs/editor/code_editor.md | 7 ++++++- docs/editor/color_schemes.md | 18 +++++++++++++++++- 2 files changed, 23 insertions(+), 2 deletions(-) diff --git a/docs/editor/code_editor.md b/docs/editor/code_editor.md index 4258321c4..290c8b402 100644 --- a/docs/editor/code_editor.md +++ b/docs/editor/code_editor.md @@ -27,4 +27,9 @@ As of now, only [Java code actions](./java_code_actions.md) are available.
See location of code actions item in text actions window -
\ No newline at end of file + + +## Color schemes + +You can define your own color schemes that can be used in the editor. The color schemes are defined with JSON files. [Learn more](./color_schemes.md) about how to +define your own color schemes. \ No newline at end of file diff --git a/docs/editor/color_schemes.md b/docs/editor/color_schemes.md index ff0221a42..b3b968194 100644 --- a/docs/editor/color_schemes.md +++ b/docs/editor/color_schemes.md @@ -24,10 +24,26 @@ $HOME/.androidide/ui/editor/schemes └── scheme.prop ``` +### Dark variants + +Dark variant of a color scheme can be defined by simply creating another color +scheme with its id suffixed with `-dark`. For example : + +``` +$HOME/.androidide/ui/editor/schemes +├── default <-- 'default' color scheme +| ├── ... +| └── scheme.prop +| +└── default-dark <-- Dark variant of 'default' color scheme + ├── ... + └── scheme.prop +``` + ## Scheme props The `scheme.prop` file contains basic information about the color scheme such as the scheme name, -version, etc. This is the file that is first read by the IDE get +version, etc. This is the file that is first read by the IDE to get information about the color scheme. The supported properties are : ```properties