Added icons.

This commit is contained in:
2019-04-11 11:28:43 +02:00
parent 1fbbbbe9a9
commit d2fc9820b2
965 changed files with 244 additions and 212 deletions
+1 -1
View File
@@ -624,7 +624,7 @@ export default class Button extends PIXI.Container {
size = this.opts.minHeight - (2 * this.opts.padding)
}
const url = Button.iconIsUrl(icon) ? icon : `../../assets/icons/png/flat/${icon}.png`
const url = Button.iconIsUrl(icon) ? icon : `../../assets/icons/${icon}.png`
const iconTexture = PIXI.Texture.fromImage(url, true)
const sprite = new PIXI.Sprite(iconTexture)
+1 -1
View File
@@ -72,7 +72,7 @@ export class InteractivePopup extends AbstractPopup {
// closeButton
//-----------------
if (this.opts.closeButton) {
let closeButton = PIXI.Sprite.fromImage('../../assets/icons/png/flat/close.png', true)
let closeButton = PIXI.Sprite.fromImage('../../assets/icons/close.png', true)
closeButton.width = this.headerStyle.fontSize
closeButton.height = closeButton.width
closeButton.tint = this.theme.color2