Remove retired theme aliases (#430)

* Remove required theme aliases

Replaced uses of headerURL, accentcolor, and textcolor with theme_frame, frame, and tab_background_text. Tested and confirmed all extensions working as expected.

* Fixed another reference to headerURL

Co-authored-by: Richard Bloor <rbloor@atlassian.com>
This commit is contained in:
rebloor
2020-03-24 13:00:00 +13:00
committed by GitHub
parent 177f603557
commit 0d46482e7d
7 changed files with 15 additions and 16 deletions

View File

@@ -1,10 +1,9 @@
function setSidebarStyle(theme) {
const myElement = document.getElementById("myElement");
// colors.frame and colors.accentcolor are aliases
if (theme.colors && (theme.colors.accentcolor || theme.colors.frame)) {
if (theme.colors && theme.colors.frame) {
document.body.style.backgroundColor =
theme.colors.accentcolor || theme.colors.frame;
theme.colors.frame;
} else {
document.body.style.backgroundColor = "white";
}