Skip to content
Snippets Groups Projects
Commit 163571a9 authored by Pierre H. Lehnen's avatar Pierre H. Lehnen Committed by Rodrigo Nascimento
Browse files

[FIX] Wrong font-family order (#11191)

* fix body font family order

* Update variables.js

* Set new font stack where the old one is still used
parent f33c6b50
No related branches found
No related tags found
No related merge requests found
......@@ -66,7 +66,7 @@ Object.keys(minorColors).forEach((key) => {
RocketChat.theme.addPublicColor(key, value, 'Old Colors (minor)', 'expression');
});
RocketChat.theme.addPublicFont('body-font-family', '-apple-system, BlinkMacSystemFont, Roboto, \'Helvetica Neue\', Arial, sans-serif, \'Apple Color Emoji\', \'Segoe UI\', \'Segoe UI Emoji\', \'Segoe UI Symbol\', \'Meiryo UI\'');
RocketChat.theme.addPublicFont('body-font-family', '-apple-system, BlinkMacSystemFont, \'Segoe UI\', Roboto, Oxygen, Ubuntu, Cantarell, \'Helvetica Neue\', \'Apple Color Emoji\', \'Segoe UI Emoji\', \'Segoe UI Symbol\', \'Meiryo UI\', Arial, sans-serif');
RocketChat.settings.add('theme-custom-css', '', {
group: 'Layout',
......
RocketChat.Migrations.add({
version: 128,
up() {
const _id = 'theme-font-body-font-family';
const oldValue = '-apple-system, BlinkMacSystemFont, Roboto, \'Helvetica Neue\', Arial, sans-serif, \'Apple Color Emoji\', \'Segoe UI\', \'Segoe UI Emoji\', \'Segoe UI Symbol\', \'Meiryo UI\'';
const newValue = '-apple-system, BlinkMacSystemFont, \'Segoe UI\', Roboto, Oxygen, Ubuntu, Cantarell, \'Helvetica Neue\', \'Apple Color Emoji\', \'Segoe UI Emoji\', \'Segoe UI Symbol\', \'Meiryo UI\', Arial, sans-serif';
RocketChat.models.Settings.update({ _id, value: oldValue }, {
$set: {
value: newValue
}
});
}
});
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment