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:
parent
965a8e203b
commit
ae552337bc
3 changed files with 18 additions and 6 deletions
|
@ -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;
|
||||
});
|
||||
});
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue