Auto merge of #47686 - GuillaumeGomez:theme-fixes, r=QuietMisdreavus
Few fixes for multiple themes support feature r? @QuietMisdreavus Fixes #47695.
This commit is contained in:
commit
4cf26f8a13
5 changed files with 48 additions and 24 deletions
|
@ -918,12 +918,12 @@ themePicker.onclick = function() {{
|
|||
}}
|
||||
}};
|
||||
[{}].forEach(function(item) {{
|
||||
var div = document.createElement('div');
|
||||
div.innerHTML = item;
|
||||
div.onclick = function(el) {{
|
||||
var but = document.createElement('button');
|
||||
but.innerHTML = item;
|
||||
but.onclick = function(el) {{
|
||||
switchTheme(currentTheme, mainTheme, item);
|
||||
}};
|
||||
themes.appendChild(div);
|
||||
themes.appendChild(but);
|
||||
}});
|
||||
"#, themes.iter()
|
||||
.map(|s| format!("\"{}\"", s))
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue