diff --git a/apps/remix-ide/src/app/panels/tab-proxy.js b/apps/remix-ide/src/app/panels/tab-proxy.js
index 1671648a36..5b942a9e65 100644
--- a/apps/remix-ide/src/app/panels/tab-proxy.js
+++ b/apps/remix-ide/src/app/panels/tab-proxy.js
@@ -22,12 +22,14 @@ export class TabProxy extends Plugin {
this.loadedTabs = []
this.el = document.createElement('div')
this.dispatch = null
+ this.themeQuality = 'dark'
}
onActivation () {
this.on('theme', 'themeChanged', (theme) => {
+ this.themeQuality = theme.quality
// update invert for all icons
- this.updateImgStyles()
+ this.renderComponent()
})
this.on('fileManager', 'filesAllClosed', () => {
@@ -157,13 +159,6 @@ export class TabProxy extends Plugin {
this.tabsApi.activateTab(name)
}
- updateImgStyles () {
- const images = this.el.getElementsByClassName('iconImage')
- for (const element of images) {
- this.call('theme', 'fixInvert', element)
- }
- }
-
switchTab (tabName) {
if (this._handlers[tabName]) {
this._handlers[tabName].switchTo()
@@ -265,7 +260,6 @@ export class TabProxy extends Plugin {
}
this.renderComponent()
- this.updateImgStyles()
this._handlers[name] = { switchTo, close }
}
@@ -277,7 +271,6 @@ export class TabProxy extends Plugin {
return tab.name !== name
})
this.renderComponent()
- this.updateImgStyles()
if (previous) this.switchTab(previous.name)
}
@@ -291,7 +284,7 @@ export class TabProxy extends Plugin {
}
updateComponent(state) {
- return