Adding mention highlight setting and improving search highlight too

Этот коммит содержится в:
Asaad Mahmood
2015-10-06 10:04:39 +05:00
родитель 8c7f4672eb
Коммит 06fbb8b7df
4 изменённых файлов: 32 добавлений и 9 удалений

Просмотреть файл

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