1
0
Fork 0
mirror of https://github.com/jellyfin/jellyfin-web synced 2025-03-30 19:56:21 +00:00

Add theme color support

This commit is contained in:
Bill Thornton 2021-09-23 23:33:05 -04:00
parent 965a8e203b
commit ae552337bc
3 changed files with 18 additions and 6 deletions

View file

@ -31,7 +31,8 @@ function getThemeStylesheetInfo(id) {
return {
stylesheetPath: 'themes/' + theme.id + '/theme.css',
themeId: theme.id
themeId: theme.id,
color: theme.color
};
});
}
@ -74,6 +75,8 @@ function setTheme(id) {
link.setAttribute('href', linkUrl);
themeStyleElement = link;
currentThemeId = info.themeId;
document.getElementById('themeColor').content = info.color;
});
});
}