Commit 97f0a38e authored by Emiliano Balbuena's avatar Emiliano Balbuena

(feat): Set Pro Domain theme override to whole app

1 merge request!528WIP: (feat): Minds Pro
Pipeline #81205004 failed with stages
in 4 minutes and 46 seconds
import { ChangeDetectorRef, Component, NgZone } from '@angular/core';
import {
ChangeDetectorRef,
Component,
HostBinding,
NgZone,
} from '@angular/core';
import { NotificationService } from './modules/notifications/notification.service';
import { AnalyticsService } from './services/analytics';
......@@ -124,6 +129,14 @@ export class Minds {
this.paramsSubscription.unsubscribe();
}
@HostBinding('class') get cssColorSchemeOverride() {
if (!this.site.isProDomain || !this.site.pro.scheme) {
return '';
}
return `m-theme--wrapper m-theme--wrapper__${this.site.pro.scheme}`;
}
get isProDomain() {
return this.site.isProDomain;
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment