diff options
author | Asaad Mahmood <Unknowngi@live.com> | 2015-10-06 10:04:39 +0500 |
---|---|---|
committer | Asaad Mahmood <Unknowngi@live.com> | 2015-10-06 10:04:39 +0500 |
commit | 06fbb8b7dfbf03832163c75e84fb5e6899f2c655 (patch) | |
tree | 6f0cd0ece5a0514e1acb929dce3fa22cc1c03373 /web/react/utils/utils.jsx | |
parent | 8c7f4672eb6c0efb4b678866f1d0da286cfdd8ce (diff) | |
download | chat-06fbb8b7dfbf03832163c75e84fb5e6899f2c655.tar.gz chat-06fbb8b7dfbf03832163c75e84fb5e6899f2c655.tar.bz2 chat-06fbb8b7dfbf03832163c75e84fb5e6899f2c655.zip |
Adding mention highlight setting and improving search highlight too
Diffstat (limited to 'web/react/utils/utils.jsx')
-rw-r--r-- | web/react/utils/utils.jsx | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/web/react/utils/utils.jsx b/web/react/utils/utils.jsx index 750da59fc..0094ebcab 100644 --- a/web/react/utils/utils.jsx +++ b/web/react/utils/utils.jsx @@ -530,6 +530,10 @@ export function applyTheme(theme) { if (theme.buttonColor) { changeCss('.btn.btn-primary', 'color:' + theme.buttonColor, 2); } + + if (theme.mentionHighlightBg) { + changeCss('.mention-highlight, .search-highlight', 'background:' + theme.mentionHighlightBg, 1); + } } export function changeCss(className, classValue, classRepeat) { // we need invisible container to store additional css definitions |