funky-framadate-front/src/app/shared/components/selectors/theme-selector/theme-selector.component.html

28 lines
727 B
HTML
Raw Normal View History

<div class="columns">
2020-05-12 19:16:23 +02:00
<div class="column">
2020-05-05 18:17:12 +02:00
<div class="buttons has-addons">
<button
class="button"
[ngClass]="{ 'is-active': (currentTheme | async) === themeEnum.LIGHT }"
(click)="selectTheme('LIGHT')"
>
2020-05-12 19:16:23 +02:00
<i class="fa fa-sun-o" aria-hidden="true"></i>
2020-05-05 18:17:12 +02:00
</button>
<button
class="button"
[ngClass]="{ 'is-active': (currentTheme | async) === themeEnum.DARK }"
(click)="selectTheme('DARK')"
>
2020-05-12 19:16:23 +02:00
<i class="fa fa-moon" aria-hidden="true"></i>
2020-05-05 18:17:12 +02:00
</button>
<button
class="button"
[ngClass]="{ 'is-active': (currentTheme | async) === themeEnum.RED }"
(click)="selectTheme('RED')"
>
2020-05-12 19:16:23 +02:00
<i class="fa fa-adjust" aria-hidden="true"></i>
2020-05-05 18:17:12 +02:00
</button>
</div>
</div>
</div>