summaryrefslogtreecommitdiffstats
path: root/web/react/utils/utils.jsx
diff options
context:
space:
mode:
authorAsaad Mahmood <Unknowngi@live.com>2015-10-07 14:41:24 +0500
committerAsaad Mahmood <Unknowngi@live.com>2015-10-07 14:41:24 +0500
commit698ca63d991f4246060223642116a78302a5af32 (patch)
tree048726a02a491f660a0c583c29616234fb71cc8c /web/react/utils/utils.jsx
parentfe802fb9c4afdf27a2fb56eb472f48eb921b4de0 (diff)
downloadchat-698ca63d991f4246060223642116a78302a5af32.tar.gz
chat-698ca63d991f4246060223642116a78302a5af32.tar.bz2
chat-698ca63d991f4246060223642116a78302a5af32.zip
PLT-522 - Adding option for mentionHighlightLink for themes
Diffstat (limited to 'web/react/utils/utils.jsx')
-rw-r--r--web/react/utils/utils.jsx4
1 files changed, 4 insertions, 0 deletions
diff --git a/web/react/utils/utils.jsx b/web/react/utils/utils.jsx
index 3a04f3623..2fcac4900 100644
--- a/web/react/utils/utils.jsx
+++ b/web/react/utils/utils.jsx
@@ -536,6 +536,10 @@ export function applyTheme(theme) {
if (theme.mentionHighlightBg) {
changeCss('.mention-highlight, .search-highlight', 'background:' + theme.mentionHighlightBg, 1);
}
+
+ if (theme.mentionHighlightLink) {
+ changeCss('.mention-highlight .mention-link', 'color:' + theme.mentionHighlightLink, 1);
+ }
}
export function changeCss(className, classValue, classRepeat) {
// we need invisible container to store additional css definitions