From f32db152f823cd4a734f8666c1aec90951f30ddf Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?V=C3=ADt=20Star=C3=BD=20Novotn=C3=BD?= <witiko@mail.muni.cz>
Date: Wed, 6 Mar 2024 12:11:22 +0100
Subject: [PATCH] Only apply `colorbold` package option when `color` is also
 enabled.

Closes #37.
---
 style/mu/base.dtx | 8 ++++++--
 1 file changed, 6 insertions(+), 2 deletions(-)

diff --git a/style/mu/base.dtx b/style/mu/base.dtx
index 32a93f1..d5dcbee 100644
--- a/style/mu/base.dtx
+++ b/style/mu/base.dtx
@@ -9,7 +9,7 @@
 % after \texttt{style/fithesis-base.sty}, regardless of the value
 % of the |\thesis@style| macro.
 %    \begin{macrocode}
-\ProvidesPackage{fithesis/style/mu/fithesis-mu-base}[2022/08/15]
+\ProvidesPackage{fithesis/style/mu/fithesis-mu-base}[2024/03/06]
 \NeedsTeXFormat{LaTeX2e}
 %    \end{macrocode}
 % The file recognizes the following options: \begin{itemize}
@@ -639,11 +639,15 @@
 % \changes{v1.1.0}{2022/08/15}{^^A
 %   Added the \texttt{colorbold} and \texttt{nocolorbold} package 
 %   options for the Masaryk University in Brno. [TV]}
+% \changes{v1.1.1}{2024/03/06}{^^A
+%   Only apply the \texttt{colorbold} package option if the \texttt{color}
+%   package option is also enabled. [VN]}
 % \begin{macrocode}
 \let\thesis@bfseries@old\bfseries
 \def\bfseries{%
   \ifthesis@sansbold@\sffamily\fi
-  \ifthesis@colorbold@\color{thesis@color@secondary}\fi\thesis@bfseries@old}
+  \ifthesis@color@\ifthesis@colorbold@\color{thesis@color@secondary}\fi\fi
+  \thesis@bfseries@old}
 %    \end{macrocode}
 % The file defines several blocks to be used in the redefinitions
 % of the |\thesis@blocks@preamble| and |\thesis@blocks@postamble|
-- 
GitLab