Commit c3d0e408 authored by Anton's avatar Anton

Add UI_COLOR_HASH_SHADE env var

parent c610eb6d
......@@ -12,6 +12,7 @@ and this project adheres to
### Added
- Build time environment variable `UI_COLOR_HASH_SHADE` (default: '100')
- Build time environment variable `UI_HIDE_GROUPS` (default: false)
- Build time environment variable `USE_GENERIC_ANNOTATION` (default: false)
......
......@@ -156,6 +156,7 @@ module.exports = function (ctx) {
USE_TAGS: JSON.stringify(process.env.USE_TAGS || true),
USE_METADATA: JSON.stringify(process.env.USE_TAGS || true),
USE_CUSTOM_MEDIA_STORE: JSON.stringify(process.env.USE_CUSTOM_MEDIA_STORE || false),
UI_COLOR_HASH_SHADE: JSON.stringify(process.env.UI_COLOR_HASH_SHADE || '100'),
UI_HIDE_MOSYS: JSON.stringify(process.env.UI_HIDE_MOSYS || false),
UI_HIDE_DOCUMENTS: JSON.stringify(process.env.UI_HIDE_DOCUMENTS || false),
UI_HIDE_GROUPS: JSON.stringify(process.env.UI_HIDE_GROUPS || false),
......
......@@ -6,7 +6,7 @@ const getAnnotationColor = annotation => {
let type = annotation.body.source ? annotation.body.source.type : undefined
type = type || annotation.body.type
type = type && type.indexOf('#') > -1 ? type.split('#').pop() : type
return toMaterialStyle(type || 'SpecificResource', '100')
return toMaterialStyle(type || 'SpecificResource', process.env.UI_COLOR_HASH_SHADE)
}
export {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment