Merge pull request #1535 from florianorben/PLT-1233

PLT-1233: "Display Font" option in Account Settings > Display
Этот коммит содержится в:
Christopher Speller
2015-12-02 10:18:42 -05:00
родитель 7678d4aafa 42bf8173bd
Коммит 2aa78002fe
62 изменённых файлов: 18819 добавлений и 2 удалений

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

@@ -693,6 +693,17 @@ export function applyTheme(theme) {
}
updateCodeTheme(theme.codeTheme);
}
export function applyFont(fontName) {
const body = document.querySelector('body');
body.classList.forEach((className) => {
if (className.lastIndexOf('font') === 0) {
body.classList.remove(className);
}
});
body.classList.add(Constants.FONTS[fontName]);
}
export function changeCss(className, classValue, classRepeat) {
// we need invisible container to store additional css definitions
var cssMainContainer = $('#css-modifier-container');