|
|
|
|
@ -1,37 +1,37 @@
|
|
|
|
|
<div [style.background]="postsService.theme ? postsService.theme.background_color : null" style="width: 100%; height: 100%;">
|
|
|
|
|
<div class="mat-elevation-z3" style="position: relative; z-index: 10;">
|
|
|
|
|
<mat-toolbar color="primary" class="sticky-toolbar top-toolbar">
|
|
|
|
|
<div class="flex-row" width="100%" height="100%">
|
|
|
|
|
<div class="flex-column" style="text-align: left; margin-top: 1px;">
|
|
|
|
|
<button #hamburgerMenu style="outline: none" *ngIf="router.url.split(';')[0] !== '/player'" mat-icon-button aria-label="Toggle side navigation" (click)="toggleSidenav()"><mat-icon>menu</mat-icon></button>
|
|
|
|
|
<button (click)="goBack()" *ngIf="router.url.split(';')[0] === '/player'" mat-icon-button><mat-icon>arrow_back</mat-icon></button>
|
|
|
|
|
</div>
|
|
|
|
|
<div class="flex-column" style="text-align: center; justify-content: center;">
|
|
|
|
|
<div style="font-size: 22px; text-shadow: #141414 0.25px 0.25px 1px;">
|
|
|
|
|
{{topBarTitle}}
|
|
|
|
|
<mat-toolbar class="sticky-toolbar top-toolbar">
|
|
|
|
|
<div class="container-fluid" style="padding-left: 0px; padding-right: 0px">
|
|
|
|
|
<div class="row" width="100%" height="100%">
|
|
|
|
|
<div class="col-6" style="text-align: left; margin-top: 1px;">
|
|
|
|
|
<div style="display: flex; align-items: center;">
|
|
|
|
|
<button #hamburgerMenu style="outline: none" *ngIf="router.url.split(';')[0] !== '/player'" mat-icon-button aria-label="Toggle side navigation" (click)="toggleSidenav()"><mat-icon>menu</mat-icon></button>
|
|
|
|
|
<button (click)="goBack()" *ngIf="router.url.split(';')[0] === '/player'" mat-icon-button><mat-icon>arrow_back</mat-icon></button>
|
|
|
|
|
<div style="margin-left: 8px; display: inline-block;"><a routerLink='/home'><img style="width: 32px;" src="assets/images/logo_128px.png"></a></div>
|
|
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
|
<div class="col-6" style="text-align: right; align-items: flex-end; display: inline-block">
|
|
|
|
|
<button [matMenuTriggerFor]="notificationsMenu" mat-icon-button><mat-icon [matBadge]="notification_count" matBadgeColor="warn" matBadgeSize="small" *ngIf="notification_count > 0">notifications</mat-icon><mat-icon *ngIf="notification_count === 0">notifications_none</mat-icon></button>
|
|
|
|
|
<mat-menu (close)="notificationMenuClosed()" #notificationsMenu="matMenu">
|
|
|
|
|
<app-notifications #notifications (notificationCount)="notificationCountUpdate($event)" (click)="$event.stopPropagation()"></app-notifications>
|
|
|
|
|
</mat-menu>
|
|
|
|
|
<button [matMenuTriggerFor]="menuSettings" mat-icon-button><mat-icon>more_vert</mat-icon></button>
|
|
|
|
|
<mat-menu #menuSettings="matMenu">
|
|
|
|
|
<button class="top-menu-button" (click)="openProfileDialog()" *ngIf="postsService.isLoggedIn" mat-menu-item>
|
|
|
|
|
<mat-icon>person</mat-icon>
|
|
|
|
|
<span i18n="Profile menu label">Profile</span>
|
|
|
|
|
</button>
|
|
|
|
|
<button class="top-menu-button" (click)="themeMenuItemClicked($event)" *ngIf="allowThemeChange" mat-menu-item>
|
|
|
|
|
<mat-icon>{{(postsService.theme.key === 'default') ? 'brightness_5' : 'brightness_2'}}</mat-icon>
|
|
|
|
|
<span i18n="Dark mode toggle label">Dark</span>
|
|
|
|
|
<mat-slide-toggle class="theme-slide-toggle" [checked]="postsService.theme.key === 'dark'"></mat-slide-toggle>
|
|
|
|
|
</button>
|
|
|
|
|
<button class="top-menu-button" (click)="openAboutDialog()" mat-menu-item>
|
|
|
|
|
<mat-icon>info</mat-icon>
|
|
|
|
|
<span i18n="About menu label">About</span>
|
|
|
|
|
</button>
|
|
|
|
|
</mat-menu>
|
|
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
|
<div class="flex-column" style="text-align: right; align-items: flex-end; display: inline-block">
|
|
|
|
|
<button [matMenuTriggerFor]="notificationsMenu" mat-icon-button><mat-icon [matBadge]="notification_count" matBadgeColor="warn" matBadgeSize="small" *ngIf="notification_count > 0">notifications</mat-icon><mat-icon *ngIf="notification_count === 0">notifications_none</mat-icon></button>
|
|
|
|
|
<mat-menu (close)="notificationMenuClosed()" #notificationsMenu="matMenu">
|
|
|
|
|
<app-notifications #notifications (notificationCount)="notificationCountUpdate($event)" (click)="$event.stopPropagation()"></app-notifications>
|
|
|
|
|
</mat-menu>
|
|
|
|
|
<button [matMenuTriggerFor]="menuSettings" mat-icon-button><mat-icon>more_vert</mat-icon></button>
|
|
|
|
|
<mat-menu #menuSettings="matMenu">
|
|
|
|
|
<button class="top-menu-button" (click)="openProfileDialog()" *ngIf="postsService.isLoggedIn" mat-menu-item>
|
|
|
|
|
<mat-icon>person</mat-icon>
|
|
|
|
|
<span i18n="Profile menu label">Profile</span>
|
|
|
|
|
</button>
|
|
|
|
|
<button class="top-menu-button" (click)="themeMenuItemClicked($event)" *ngIf="allowThemeChange" mat-menu-item>
|
|
|
|
|
<mat-icon>{{(postsService.theme.key === 'default') ? 'brightness_5' : 'brightness_2'}}</mat-icon>
|
|
|
|
|
<span i18n="Dark mode toggle label">Dark</span>
|
|
|
|
|
<mat-slide-toggle class="theme-slide-toggle" [checked]="postsService.theme.key === 'dark'"></mat-slide-toggle>
|
|
|
|
|
</button>
|
|
|
|
|
<button class="top-menu-button" (click)="openAboutDialog()" mat-menu-item>
|
|
|
|
|
<mat-icon>info</mat-icon>
|
|
|
|
|
<span i18n="About menu label">About</span>
|
|
|
|
|
</button>
|
|
|
|
|
</mat-menu>
|
|
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
|
</mat-toolbar>
|
|
|
|
|
|