From a46e8040b2952ce54e5ba3e98dc1839d3c72c0ff Mon Sep 17 00:00:00 2001 From: Peter Bastiani Date: Mon, 24 Mar 2025 09:13:47 +0100 Subject: [PATCH] AW-6756 Settingsknop Explorer dezelfde kleur als het logo van de explorer. --- .../common/src/fm/actions/app-common.actions.ts | 11 ++++++++++- .../src/fm/components/app/app.component.html | 2 +- .../common/src/fm/components/app/app.component.ts | 1 + .../setting-menu/setting-menu.component.html | 2 +- .../setting-menu/setting-menu.component.ts | 1 + .../common/src/fm/reducers/app-common.reducer.ts | 14 ++++++++++---- 6 files changed, 24 insertions(+), 7 deletions(-) diff --git a/projects/common/src/fm/actions/app-common.actions.ts b/projects/common/src/fm/actions/app-common.actions.ts index 71e17e7..7175cc4 100644 --- a/projects/common/src/fm/actions/app-common.actions.ts +++ b/projects/common/src/fm/actions/app-common.actions.ts @@ -85,6 +85,9 @@ export const SETUNREADNOTIFICATIONS = '[AppCommon] SetUnreadNotifications'; export const SWITCHLANGUAGE = '[AppCommon] SwitchLanguage'; +export const SETSETTINGMENUBACKGROUNDCOLOR = '[AppCommon] SetSettingMenuBackgroundColor'; + + export class InitUser implements Action { readonly type = INITUSER; @@ -379,6 +382,11 @@ export class SwitchLanguage implements Action { constructor(public locale:string) { } } +export class SetSettingMenuBackgroundColor implements Action { + readonly type = SETSETTINGMENUBACKGROUNDCOLOR; + + constructor(public color:string) { } +} export type Actions = OpenModal | InitRoot @@ -427,6 +435,7 @@ export type Actions = OpenModal | ToggleSettingMenu | NotificationEvent | SetUnreadNotifications - | SwitchLanguage; + | SwitchLanguage + | SetSettingMenuBackgroundColor; diff --git a/projects/common/src/fm/components/app/app.component.html b/projects/common/src/fm/components/app/app.component.html index 1f33cf6..b025e09 100644 --- a/projects/common/src/fm/components/app/app.component.html +++ b/projects/common/src/fm/components/app/app.component.html @@ -33,7 +33,7 @@
- + diff --git a/projects/common/src/fm/components/app/app.component.ts b/projects/common/src/fm/components/app/app.component.ts index 4808d08..04193ec 100644 --- a/projects/common/src/fm/components/app/app.component.ts +++ b/projects/common/src/fm/components/app/app.component.ts @@ -50,6 +50,7 @@ export class AppComponent implements OnInit, OnDestroy { public unreadNotifications: Observable = this.store$.select(appReducers.SelectgetUnreadNotifications); public user: Observable = this.store$.select(appReducers.SelectGetUser); public isPageMode: Observable = this.store$.select(appReducers.SelectGetIsPageMode); + public settingMenuBackgroundColor: Observable = this.store$.select(appReducers.SelectGetSettingMenuBackgroundColor); @Input() showUploadProgress = true; constructor( diff --git a/projects/common/src/fm/components/setting-menu/setting-menu.component.html b/projects/common/src/fm/components/setting-menu/setting-menu.component.html index fa19285..886fadb 100644 --- a/projects/common/src/fm/components/setting-menu/setting-menu.component.html +++ b/projects/common/src/fm/components/setting-menu/setting-menu.component.html @@ -1,5 +1,5 @@
-