Skip to content

Commit

Permalink
fixed the arrow color
Browse files Browse the repository at this point in the history
  • Loading branch information
LianaHus committed Feb 21, 2020
1 parent d9cec51 commit 2d82717
Showing 1 changed file with 30 additions and 14 deletions.
44 changes: 30 additions & 14 deletions src/app/ui/persmission-handler.js
Original file line number Diff line number Diff line change
Expand Up @@ -147,18 +147,22 @@ export class PermissionHandler {
? `"${fromName}" has changed and would like to access "${toName}"`
: `"${fromName}" would like to access "${toName}"`

const imgFrom = yo`<img id="permissionModalImagesFrom" src="${from.icon}" />`
const imgTo = yo`<img id="permissionModalImagesTo" src="${to.icon}" />`
const pluginsImages = yo`
<article id="permissionModalImages" class="${css.images}">
<img src="${from.icon}" />
<i class="text-warning fas fa-arrow-right"></i>
<img src="${to.icon}" />
<article class="${css.images}">
${imgFrom}
<i class="fas fa-arrow-right"></i>
${imgTo}
</article>
`

globalRegistry.get('themeModule').api.fixInvert(pluginsImages)

globalRegistry.get('themeModule').api.fixInvert(imgFrom)
globalRegistry.get('themeModule').api.fixInvert(imgTo)

return yo`
<<<<<<< HEAD
<section class="${css.permission}">
${pluginsImages}
<article>
Expand All @@ -178,14 +182,26 @@ export class PermissionHandler {
</article>
</section>
=======
<section class="${css.permission}">
${pluginsImages}
<article>
<h4>${message} :</h4>
<h6>${fromName}</h6>
<p>${from.description || yo`<i>No description Provided</i>`}</p>
<h6>${toName} :</p>
<p>${to.description || yo`<i>No description Provided</i>`}</p>
</article>
<article class="${css.remember}">
<div class="form-check">
${rememberSwitch}
<label class="form-check-label" for="remember">Remember this choice</label>
</div>
<button class="btn btn-sm" onclick="${_ => this.clear()}">Reset all Permissions</button>
</article>
</section>
>>>>>>> d318f2ee... fixed the arrow color
`
}

listenOnThemeChange (images) {
// update invert for Plugin icons
if (!globalRegistry.get('themeModule')) return
globalRegistry.get('themeModule').api.events.on('themeChanged', (theme) => {
globalRegistry.get('themeModule').api.fixInvert(images)
})
}
}

0 comments on commit 2d82717

Please sign in to comment.