clean console logs. update themeStyle

pull/4182/head
Joseph Izang 1 year ago
parent b3e636eca5
commit 6581f42df9
  1. 10
      apps/remix-ide/src/app/plugins/vyper-compilation-details.tsx

@ -49,14 +49,11 @@ export class VyperCompilationDetailsPlugin extends ViewPlugin {
} }
async showDetails(sentPayload: any) { async showDetails(sentPayload: any) {
console.log(sentPayload )
const contractName = Object.entries(sentPayload).find(([key, value]) => key ) const contractName = Object.entries(sentPayload).find(([key, value]) => key )
await this.call('tabs', 'focus', 'vyperCompilationDetails') await this.call('tabs', 'focus', 'vyperCompilationDetails')
this.profile.displayName = `${contractName}` this.profile.displayName = `${contractName}`
this.renderComponent()
this.payload = sentPayload this.payload = sentPayload
const active = await this.call('theme', 'currentTheme') const active = await this.call('theme', 'currentTheme')
console.log(active)
if (active.quality === 'dark') { if (active.quality === 'dark') {
switch(active.name) { switch(active.name) {
case 'HackerOwl': case 'HackerOwl':
@ -112,24 +109,29 @@ export class VyperCompilationDetailsPlugin extends ViewPlugin {
switch(theme.name) { switch(theme.name) {
case 'HackerOwl': case 'HackerOwl':
this.theme = 'solarized' this.theme = 'solarized'
this.themeStyle = { backgroundColor: theme.backgroundColor }
break break
case 'Black': case 'Black':
this.theme = 'shapeshifter' this.theme = 'shapeshifter'
this.themeStyle = { backgroundColor: theme.backgroundColor }
break break
case 'Cyborg': case 'Cyborg':
this.theme = 'shapeshifter' this.theme = 'shapeshifter'
this.themeStyle = { backgroundColor: theme.backgroundColor }
break break
case 'Dark': case 'Dark':
this.theme = 'harmonic' this.theme = 'harmonic'
this.themeStyle = { backgroundColor: theme.backgroundColor }
break break
default: default:
this.theme = 'shapeshifter' this.theme = 'shapeshifter'
this.themeStyle = { backgroundColor: theme.backgroundColor }
break break
} }
} else { } else {
this.theme = 'bright:inverted' this.theme = 'bright:inverted'
this.themeStyle = { backgroundColor: theme.backgroundColor }
} }
this.themeStyle = { color: theme.quality === 'dark' ? '#ffffff'/*theme.textColor*/ : theme.textColor }
this.renderComponent() this.renderComponent()
}) })
} }

Loading…
Cancel
Save