Merge branch 'develop' of https://github.com/matrix-org/matrix-react-sdk into joriks/font-scaling-slider
This commit is contained in:
commit
33a5b5142d
62 changed files with 2367 additions and 728 deletions
|
@ -242,6 +242,10 @@ export async function setTheme(theme) {
|
|||
if (a == styleElements[stylesheetName]) return;
|
||||
a.disabled = true;
|
||||
});
|
||||
const bodyStyles = global.getComputedStyle(document.getElementsByTagName("body")[0]);
|
||||
if (bodyStyles.backgroundColor) {
|
||||
document.querySelector('meta[name="theme-color"]').content = bodyStyles.backgroundColor;
|
||||
}
|
||||
Tinter.setTheme(theme);
|
||||
resolve();
|
||||
};
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue