Unverified Commit c7e51947 authored by yann300's avatar yann300 Committed by GitHub

Merge pull request #2302 from ethereum/swarmLogo

adding swarm logo on Publish on swarm
parents f420fa1d 208ddbae
......@@ -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}%)`)
}
}
......
This diff is collapsed.
......@@ -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;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment