diff --git a/branding/logo-doc-dark.png b/branding/logo-doc-dark.png new file mode 100644 index 0000000..b88c86b Binary files /dev/null and b/branding/logo-doc-dark.png differ diff --git a/branding/logo-doc-dark.svg b/branding/logo-doc-dark.svg new file mode 100644 index 0000000..436abd2 --- /dev/null +++ b/branding/logo-doc-dark.svg @@ -0,0 +1,42 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + slohmaier + + diff --git a/branding/logo-doc-light.png b/branding/logo-doc-light.png new file mode 100644 index 0000000..bce3462 Binary files /dev/null and b/branding/logo-doc-light.png differ diff --git a/branding/logo-doc-light.svg b/branding/logo-doc-light.svg new file mode 100644 index 0000000..7626608 --- /dev/null +++ b/branding/logo-doc-light.svg @@ -0,0 +1,42 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + slohmaier + + diff --git a/templates-word/MISRA-Deviation-Permit-template.docx b/templates-word/MISRA-Deviation-Permit-template.docx index ad4262c..33071ee 100644 Binary files a/templates-word/MISRA-Deviation-Permit-template.docx and b/templates-word/MISRA-Deviation-Permit-template.docx differ diff --git a/templates-word/MISRA-Deviation-Record-template.docx b/templates-word/MISRA-Deviation-Record-template.docx index 5eca5b0..639a252 100644 Binary files a/templates-word/MISRA-Deviation-Record-template.docx and b/templates-word/MISRA-Deviation-Record-template.docx differ diff --git a/templates-word/Non-Conformity-template.docx b/templates-word/Non-Conformity-template.docx index 65fb1fe..231f599 100644 Binary files a/templates-word/Non-Conformity-template.docx and b/templates-word/Non-Conformity-template.docx differ diff --git a/templates-word/PID-template.docx b/templates-word/PID-template.docx index a643603..007356b 100644 Binary files a/templates-word/PID-template.docx and b/templates-word/PID-template.docx differ diff --git a/templates-word/PM-Plan-template.docx b/templates-word/PM-Plan-template.docx index b8cfe6e..4de91ee 100644 Binary files a/templates-word/PM-Plan-template.docx and b/templates-word/PM-Plan-template.docx differ diff --git a/templates-word/QA-Plan-template.docx b/templates-word/QA-Plan-template.docx index 890efd5..ecb07e8 100644 Binary files a/templates-word/QA-Plan-template.docx and b/templates-word/QA-Plan-template.docx differ diff --git a/templates-word/Review-Minutes-template.docx b/templates-word/Review-Minutes-template.docx index 5ddbe6c..07e3230 100644 Binary files a/templates-word/Review-Minutes-template.docx and b/templates-word/Review-Minutes-template.docx differ diff --git a/templates-word/SWE-Plan-template.docx b/templates-word/SWE-Plan-template.docx index 942ca86..2b3e378 100644 Binary files a/templates-word/SWE-Plan-template.docx and b/templates-word/SWE-Plan-template.docx differ diff --git a/templates-word/Test-Plan-template.docx b/templates-word/Test-Plan-template.docx index 641b5a6..bb91896 100644 Binary files a/templates-word/Test-Plan-template.docx and b/templates-word/Test-Plan-template.docx differ diff --git a/templates-word/quote-template.docx b/templates-word/quote-template.docx index 5642ed9..5f1d1fa 100644 Binary files a/templates-word/quote-template.docx and b/templates-word/quote-template.docx differ diff --git a/templates-word/slohmaier-doc-template.docx b/templates-word/slohmaier-doc-template.docx index de45bff..7006553 100644 Binary files a/templates-word/slohmaier-doc-template.docx and b/templates-word/slohmaier-doc-template.docx differ diff --git a/tools/build_word_template.py b/tools/build_word_template.py index 1839adb..69567ee 100644 --- a/tools/build_word_template.py +++ b/tools/build_word_template.py @@ -246,6 +246,11 @@ def build_header_footer(doc, doc_id_placeholder="", classification="CONF r3 = header_para.add_run(doc_id_placeholder) r3.font.size = Pt(9) r3.font.color.rgb = RGBColor(0x59, 0x59, 0x59) + if LOGO_PATH.exists(): + logo_para = header.add_paragraph() + logo_para.alignment = WD_ALIGN_PARAGRAPH.RIGHT + logo_run = logo_para.add_run() + logo_run.add_picture(str(LOGO_PATH), width=Cm(2.8)) # --- Default footer (skipped on cover page) --- footer = section.footer @@ -283,13 +288,21 @@ def build_header_footer(doc, doc_id_placeholder="", classification="CONF # Content # --------------------------------------------------------------------------- +REPO_ROOT = Path(__file__).resolve().parent.parent +LOGO_PATH = REPO_ROOT / "branding" / "logo-doc-light.png" + + def add_cover_page(doc): - # Top logo placeholder + # Top logo (right-aligned, ~7 cm wide) p = doc.add_paragraph() p.alignment = WD_ALIGN_PARAGRAPH.RIGHT - r = p.add_run("[LOGO]") - r.font.size = Pt(10) - r.font.color.rgb = RGBColor(0x80, 0x80, 0x80) + if LOGO_PATH.exists(): + run = p.add_run() + run.add_picture(str(LOGO_PATH), width=Cm(7)) + else: + r = p.add_run("[LOGO]") + r.font.size = Pt(10) + r.font.color.rgb = RGBColor(0x80, 0x80, 0x80) # Vertical space for _ in range(8):