From ca7c31878ec7ca5fa551eee0b546c20ea7a81256 Mon Sep 17 00:00:00 2001
From: shamoon <4887959+shamoon@users.noreply.github.com>
Date: Tue, 25 Aug 2026 21:24:54 -0700
Subject: [PATCH] DRY
---
.../app-frame/app-frame.component.html | 8 ++------
.../components/app-frame/app-frame.component.ts | 2 ++
.../logo/brand-mark/brand-mark.component.html | 1 +
.../logo/brand-mark/brand-mark.component.ts | 16 ++++++++++++++++
.../welcome-widget/welcome-widget.component.html | 8 ++------
.../welcome-widget/welcome-widget.component.ts | 3 ++-
6 files changed, 25 insertions(+), 13 deletions(-)
create mode 100644 src-ui/src/app/components/common/logo/brand-mark/brand-mark.component.html
create mode 100644 src-ui/src/app/components/common/logo/brand-mark/brand-mark.component.ts
diff --git a/src-ui/src/app/components/app-frame/app-frame.component.html b/src-ui/src/app/components/app-frame/app-frame.component.html
index ffc3381ad..8cda454e8 100644
--- a/src-ui/src/app/components/app-frame/app-frame.component.html
+++ b/src-ui/src/app/components/app-frame/app-frame.component.html
@@ -10,16 +10,12 @@
tourAnchor="tour.intro">
@if (!hasCustomBranding) {
-
+
} @else {
@if (customAppLogo) {
} @else {
-
+
}
{{ appTitle }}
diff --git a/src-ui/src/app/components/app-frame/app-frame.component.ts b/src-ui/src/app/components/app-frame/app-frame.component.ts
index c5fc93e61..2548c217b 100644
--- a/src-ui/src/app/components/app-frame/app-frame.component.ts
+++ b/src-ui/src/app/components/app-frame/app-frame.component.ts
@@ -45,6 +45,7 @@ import { TasksService } from 'src/app/services/tasks.service'
import { ToastService } from 'src/app/services/toast.service'
import { environment } from 'src/environments/environment'
import { ChatComponent } from '../chat/chat/chat.component'
+import { BrandMarkComponent } from '../common/logo/brand-mark/brand-mark.component'
import { LogoComponent } from '../common/logo/logo.component'
import { ProfileEditDialogComponent } from '../common/profile-edit-dialog/profile-edit-dialog.component'
import { DocumentDetailComponent } from '../document-detail/document-detail.component'
@@ -61,6 +62,7 @@ const SCROLL_THRESHOLD = 16
imports: [
GlobalSearchComponent,
LogoComponent,
+ BrandMarkComponent,
DocumentTitlePipe,
IfPermissionsDirective,
ToastsDropdownComponent,
diff --git a/src-ui/src/app/components/common/logo/brand-mark/brand-mark.component.html b/src-ui/src/app/components/common/logo/brand-mark/brand-mark.component.html
new file mode 100644
index 000000000..35540bef2
--- /dev/null
+++ b/src-ui/src/app/components/common/logo/brand-mark/brand-mark.component.html
@@ -0,0 +1 @@
+
diff --git a/src-ui/src/app/components/common/logo/brand-mark/brand-mark.component.ts b/src-ui/src/app/components/common/logo/brand-mark/brand-mark.component.ts
new file mode 100644
index 000000000..347582b61
--- /dev/null
+++ b/src-ui/src/app/components/common/logo/brand-mark/brand-mark.component.ts
@@ -0,0 +1,16 @@
+import { Component } from '@angular/core'
+
+/**
+ * The paperless-ngx leaf mark, applied as an attribute on an