Adding mention highlight setting and improving search highlight too

This commit is contained in:
Asaad Mahmood
2015-10-06 10:04:39 +05:00
parent 8c7f4672eb
commit 06fbb8b7df
4 changed files with 32 additions and 9 deletions

View File

@@ -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