From f55c5aedc157b8ff8672818acef51f71a351c5d3 Mon Sep 17 00:00:00 2001 From: Bruno Windels Date: Mon, 27 Apr 2020 19:44:05 +0200 Subject: [PATCH 1/3] update docs with custom theming changes --- docs/theming.md | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/docs/theming.md b/docs/theming.md index 19967067de..8012b2b956 100644 --- a/docs/theming.md +++ b/docs/theming.md @@ -54,7 +54,9 @@ eg. in config.json: "timeline-background-color": "#ffffff", "timeline-text-color": "#2e2f32", "timeline-text-secondary-color": "#61708b", - "timeline-highlights-color": "#f3f8fd" + "timeline-highlights-color": "#f3f8fd", + "username-colors": ["#ff0000", ...] + "avatar-background-colors": ["#cc0000", ...] } }, { "name": "Deep Purple", @@ -78,3 +80,5 @@ eg. in config.json: ] } ``` + +`username-colors` is expected to contain 8 colors. `avatar-background-colors` is expected to contain 3 colors. Both values are optional and have fallbacks from the built-in theme. From 1c413a4f819353a69265171cb1e1ba567e1a0f89 Mon Sep 17 00:00:00 2001 From: Bruno Windels Date: Mon, 27 Apr 2020 20:17:13 +0200 Subject: [PATCH 2/3] clarify how to use in CSS --- docs/theming.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/theming.md b/docs/theming.md index 8012b2b956..1fffbb6a4d 100644 --- a/docs/theming.md +++ b/docs/theming.md @@ -81,4 +81,4 @@ eg. in config.json: } ``` -`username-colors` is expected to contain 8 colors. `avatar-background-colors` is expected to contain 3 colors. Both values are optional and have fallbacks from the built-in theme. +`username-colors` is expected to contain 8 colors. `avatar-background-colors` is expected to contain 3 colors. Both values are optional and have fallbacks from the built-in theme. These are exposed as `--username-colors_0`, ... and `--avatar-background-colors_0`, ... respectively in CSS. From 5c77b0371a1431c876c205203091c2d8732744c8 Mon Sep 17 00:00:00 2001 From: Bruno Windels Date: Tue, 28 Apr 2020 11:07:16 +0200 Subject: [PATCH 3/3] add line break --- docs/theming.md | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/docs/theming.md b/docs/theming.md index 1fffbb6a4d..6bd66b5891 100644 --- a/docs/theming.md +++ b/docs/theming.md @@ -81,4 +81,6 @@ eg. in config.json: } ``` -`username-colors` is expected to contain 8 colors. `avatar-background-colors` is expected to contain 3 colors. Both values are optional and have fallbacks from the built-in theme. These are exposed as `--username-colors_0`, ... and `--avatar-background-colors_0`, ... respectively in CSS. +`username-colors` is expected to contain 8 colors. `avatar-background-colors` is expected to contain 3 colors. Both values are optional and have fallbacks from the built-in theme. + +These are exposed as `--username-colors_0`, ... and `--avatar-background-colors_0`, ... respectively in CSS.