UNPKG

@web-atoms/core

Version:
53 lines (52 loc) 2.18 kB
System.register(["tslib", "../../App", "../../core/Colors", "../../di/Inject", "../../di/RegisterSingleton", "../../services/NavigationService", "../styles/AtomStyleSheet"], function (_export, _context) { "use strict"; var __decorate, __metadata, __param, App, Colors, Inject, RegisterSingleton, NavigationService, AtomStyleSheet, AtomTheme; return { setters: [function (_tslib) { __decorate = _tslib.__decorate; __metadata = _tslib.__metadata; __param = _tslib.__param; }, function (_App) { App = _App.App; }, function (_coreColors) { Colors = _coreColors.default; }, function (_diInject) { Inject = _diInject.Inject; }, function (_diRegisterSingleton) { RegisterSingleton = _diRegisterSingleton.RegisterSingleton; }, function (_servicesNavigationService) { NavigationService = _servicesNavigationService.NavigationService; }, function (_stylesAtomStyleSheet) { AtomStyleSheet = _stylesAtomStyleSheet.AtomStyleSheet; }], execute: function () { _export("AtomTheme", AtomTheme = class AtomTheme extends AtomStyleSheet { constructor(app, navigationService) { super(app, "atom-theme"); this.navigationService = navigationService; this.bgColor = Colors.white; this.color = Colors.gray; this.hoverColor = Colors.lightGray; this.activeColor = Colors.lightBlue; this.selectedBgColor = Colors.blue; this.selectedColor = Colors.white; this.padding = 5; setTimeout(() => { window.addEventListener("resize", () => { setTimeout(() => { this.pushUpdate(); }, 10); }); document.body.addEventListener("resize", () => { setTimeout(() => { this.pushUpdate(); }, 10); }); }, 1000); } }); _export("AtomTheme", AtomTheme = __decorate([RegisterSingleton, __param(0, Inject), __param(1, Inject), __metadata("design:paramtypes", [App, NavigationService])], AtomTheme)); } }; }); //# sourceMappingURL=AtomTheme.js.map