2019-01-10 15:39:37 +03:00
|
|
|
|
define(['layoutManager', 'css!./emby-button', 'registerElement'], function (layoutManager) {
|
|
|
|
|
'use strict';
|
|
|
|
|
|
2018-10-23 01:05:09 +03:00
|
|
|
|
var EmbyButtonPrototype = Object.create(HTMLButtonElement.prototype);
|
2019-01-10 15:39:37 +03:00
|
|
|
|
|
|
|
|
|
EmbyButtonPrototype.createdCallback = function () {
|
|
|
|
|
|
|
|
|
|
this.classList.add('paper-icon-button-light');
|
|
|
|
|
|
|
|
|
|
if (layoutManager.tv) {
|
|
|
|
|
this.classList.add('icon-button-focusscale');
|
|
|
|
|
}
|
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
document.registerElement('paper-icon-button-light', {
|
2018-10-23 01:05:09 +03:00
|
|
|
|
prototype: EmbyButtonPrototype,
|
2019-01-10 15:39:37 +03:00
|
|
|
|
extends: 'button'
|
|
|
|
|
});
|
2018-10-23 01:05:09 +03:00
|
|
|
|
});
|