From 374aa612e21e563fc99acb6a7a1be979c23c3659 Mon Sep 17 00:00:00 2001
From: Malin Freeborn <malinfreeborn@tutamail.com>
Date: Tue, 26 Jan 2021 00:07:34 +0100
Subject: [PATCH] clean up chapter header

---
 bind.sty | 17 +++++++++--------
 1 file changed, 9 insertions(+), 8 deletions(-)

diff --git a/bind.sty b/bind.sty
index 0c23cbc4..f77d274b 100644
--- a/bind.sty
+++ b/bind.sty
@@ -101,9 +101,6 @@
 	\BgMaterial
 	}%
 	\stepcounter{chapshift}%
-	\ifnum\value{pageDarkness}<90
-	\addtocounter{pageDarkness}{10}
-	\fi
 }
 
 % redefinition of \chaptermark to contain only the title
@@ -199,7 +196,7 @@ bookmarks=true]%
 
 
 \newcommand{\chapnumfont}{
-	\fontsize{40}{0}
+	\fontsize{50}{0}
 	\selectfont
 }
 
@@ -248,10 +245,14 @@ bookmarks=true]%
 
 \titleformat{\chapter}[display]
 {\bfseries}
-{\begin{tikzpicture}
-  \node[minimum width=\linewidth, text=\pageSideColor, fill=\pageSideColor, inner sep=1, outer sep=0, anchor=south] (rectinit) {\huge CHAPTER};
-  \node[minimum width=.8\textwidth, text=white, inner sep=3, outer sep=0, anchor=south west, text width=.8\textwidth, align=right] at (rectinit.south west) (chapname) {\FancyFont\headingtype~~};
-  \node[minimum width=.2\textwidth, inner sep=-5, outer sep=0, anchor=south west, text width=.2\textwidth, align=left] at (chapname.south east) {\chapnumfont\textcolor{chapnumcol}{\Roman{chapter}}};
+{%
+	\ifnum\value{pageDarkness}<90
+	\addtocounter{pageDarkness}{10}
+	\fi
+\begin{tikzpicture}
+  \node[minimum width=\linewidth+1em, text=white, fill=\pageSideColor, inner sep=1, outer sep=0, anchor=south] (rectinit) {\Huge \headingtype};
+ \node[minimum width=.75\textwidth, text=white, inner sep=3, outer sep=0, anchor=south west, text width=.75\textwidth, align=right] at (rectinit.south west) (chapname) {};
+  \node[minimum width=.25\textwidth, inner sep=-5, outer sep=0, anchor=south west, text width=.25\textwidth, align=left] at (chapname.south east) {\chapnumfont\textcolor{chapnumcol}{\Roman{chapter}}};
 \end{tikzpicture}}
 {0pt}
 {\Huge\FancyFont\ChapFrame}
-- 
GitLab