mirror of
https://github.com/jellyfin/jellyfin-web
synced 2025-03-30 19:56:21 +00:00
update fonts
This commit is contained in:
parent
dfac46b2ca
commit
9401f38a57
77 changed files with 566 additions and 346 deletions
|
@ -1633,10 +1633,14 @@ var AppInfo = {};
|
|||
|
||||
}
|
||||
|
||||
function setDocumentClasses() {
|
||||
function setDocumentClasses(browser) {
|
||||
|
||||
var elem = document.documentElement;
|
||||
|
||||
if (!browser.android && !browser.mobile) {
|
||||
elem.classList.add('smallerDefault');
|
||||
}
|
||||
|
||||
if (AppInfo.isTouchPreferred) {
|
||||
elem.classList.add('touch');
|
||||
}
|
||||
|
@ -1910,6 +1914,10 @@ var AppInfo = {};
|
|||
define("userSettings", [embyWebComponentsBowerPath + "/usersettings"], returnFirstDependency);
|
||||
define("material-design-lite", [bowerPath + "/material-design-lite/material.min", "css!" + bowerPath + "/material-design-lite/material"]);
|
||||
|
||||
define("robotoFont", ['css!' + embyWebComponentsBowerPath + '/fonts/roboto/style']);
|
||||
define("opensansFont", ['css!' + embyWebComponentsBowerPath + '/fonts/opensans/style']);
|
||||
define("montserratFont", ['css!' + embyWebComponentsBowerPath + '/fonts/montserrat/style']);
|
||||
|
||||
// alias
|
||||
define("historyManager", [], function () {
|
||||
return {
|
||||
|
@ -2302,6 +2310,11 @@ var AppInfo = {};
|
|||
|
||||
postInitDependencies.push('components/remotecontrolautoplay');
|
||||
|
||||
// Prefer OpenSans over Segoe if on desktop windows
|
||||
if (!browserInfo.mobile && navigator.userAgent.toLowerCase().indexOf('windows') != -1) {
|
||||
postInitDependencies.push('opensansFont');
|
||||
}
|
||||
|
||||
require(postInitDependencies);
|
||||
});
|
||||
}
|
||||
|
@ -2427,7 +2440,7 @@ var AppInfo = {};
|
|||
window.browserInfo = browser;
|
||||
|
||||
setAppInfo();
|
||||
setDocumentClasses();
|
||||
setDocumentClasses(browser);
|
||||
|
||||
getHostingAppInfo().then(init);
|
||||
});
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue