From e38d03b30480cae387a74295a9f4751ee434a2e2 Mon Sep 17 00:00:00 2001 From: Jens Langhammer Date: Tue, 5 Apr 2022 23:47:15 +0200 Subject: [PATCH] web/user: make more themable Signed-off-by: Jens Langhammer --- web/src/common/config.ts | 4 ++-- web/src/interfaces/UserInterface.ts | 14 +++++++++----- web/src/user/LibraryPage.ts | 13 ++++++++----- 3 files changed, 19 insertions(+), 12 deletions(-) diff --git a/web/src/common/config.ts b/web/src/common/config.ts index 23da2fbaa..36521aad0 100644 --- a/web/src/common/config.ts +++ b/web/src/common/config.ts @@ -30,7 +30,7 @@ export interface UIConfig { navbar: { userDisplay: UserDisplay; }; - color: { + theme: { background: string; cardBackground: string; }; @@ -57,7 +57,7 @@ export class DefaultUIConfig implements UIConfig { navbar = { userDisplay: UserDisplay.username, }; - color = { + theme = { background: "", cardBackground: "", }; diff --git a/web/src/interfaces/UserInterface.ts b/web/src/interfaces/UserInterface.ts index 61e924684..8e2ac0eb0 100644 --- a/web/src/interfaces/UserInterface.ts +++ b/web/src/interfaces/UserInterface.ts @@ -75,7 +75,7 @@ export class UserInterface extends LitElement { background-color: transparent !important; } .pf-c-page { - background-color: var(--pf-c-page--BackgroundColor) !important; + background-color: transparent !important; } .display-none { display: none; @@ -87,6 +87,12 @@ export class UserInterface extends LitElement { .has-notifications { color: #2b9af3; } + .background-wrapper { + height: 100vh; + width: 100vw; + position: absolute; + z-index: -1; + } `, ]; } @@ -128,10 +134,8 @@ export class UserInterface extends LitElement { render(): TemplateResult { return html`${until( uiConfig().then((config) => { - return html`