Merge pull request #2302 from ethereum/swarmLogo

adding swarm logo on Publish on swarm
pull/1/head
yann300 5 years ago committed by GitHub
commit c7e519475f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 3
      src/app/components/vertical-icons.js
  2. 14
      src/app/tabs/compile-tab.js
  3. 5
      src/app/tabs/styles/compile-tab-styles.js

@ -173,11 +173,12 @@ export class VerticalIcons extends Plugin {
addActive (name) {
const themeType = globalRegistry.get('themeModule').api.currentTheme().quality
const invert = themeType === 'dark' ? 1 : 0
const brightness = themeType === 'dark' ? '150' : '0' // should be >100 for icons with color
const nextActive = this.view.querySelector(`[plugin="${name}"]`)
if (nextActive) {
let image = nextActive.querySelector('.image')
nextActive.classList.add(`active`)
image.style.setProperty('filter', `invert(${invert}) grayscale(1) brightness(0%)`)
image.style.setProperty('filter', `invert(${invert}) grayscale(1) brightness(${brightness}%)`)
}
}

File diff suppressed because one or more lines are too long

@ -156,7 +156,10 @@ const css = csjs`
padding-right: 5px;
word-break: break-all;
}
.swarmLogo {
width: 20px;
height: 20px;
}
.spinningIcon {
display: inline-block;
position: relative;

Loading…
Cancel
Save