From 6b36e226c7dd47f855bcf501bbd9f01eb90068d4 Mon Sep 17 00:00:00 2001 From: Joas Schilling Date: Thu, 2 Jul 2020 11:49:04 +0200 Subject: [PATCH] Extend docs on theming with primary color Signed-off-by: Joas Schilling --- developer_manual/client_apis/OCS/ocs-api-overview.rst | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/developer_manual/client_apis/OCS/ocs-api-overview.rst b/developer_manual/client_apis/OCS/ocs-api-overview.rst index 3b39138b1..536bf6a35 100644 --- a/developer_manual/client_apis/OCS/ocs-api-overview.rst +++ b/developer_manual/client_apis/OCS/ocs-api-overview.rst @@ -166,13 +166,19 @@ Values of the theming app are exposed through the capabilities API, allowing cli A safe home for all your data #0082c9 #ffffff - #006295 + #0082c9 + #aaaaaa + #555555 http://cloud.example.com/index.php/apps/theming/logo?v=1 http://cloud.example.com/index.php/apps/theming/logo?v=1 +For elements like radio buttons, input borders and more, instead of the primary ``color`` value, the ``color-element-bright`` should be used on bright background and ``color-element-dark`` on dark background. +This when the primary color is e.g. set to ``#000000`` the ``color-elemenet-dark`` will be set to ``#555555`` so items are still visible. In the Nextcloud web UI only the top header uses ``color``, everything else uses ``color-element-*``. +Text and icons on these elements should use ``color-text``. + The background value can either be an URL to the background image or a hex color value.