Proof (sup-norm bound on complex integral)
Let $$ \begin{align*} θ := \arg\left(\int_{a}^{b} f(t) \d t\right). \end{align*} $$
Then $$ \begin{align*} \int_{a}^{b} e^{-iθ} f(t) \d t = e^{-iθ} \int_{a}^{b} f(t) \d t = \left|\int_{a}^{b} f(t) \d t\right|\in \R \end{align*} $$ so $$ \begin{align*} \left|\int_{a}^{b} f(t) \d t\right| ={}& \Re \left(\int_{a}^{b} e^{-iθ} f(t) \d t\right) \\ ={}& \int_{a}^{b} \Re(e^{-iθ} f(t)) \d t &&\text{definition of complex integrals}\\ \leq{}& \int_{a}^{b} |e^{-iθ} f(t)| \d t \tag{1}\\ ={}& \int_{a}^{b} |f(t)| \d t \\ \leq {}& (b-a)\cdot \sup_{[a,b]} |f| &&\text{property of real integrals}. \tag{2} \end{align*} $$
For equality, both (1) and (2) are equalities. Since $f$ is continuous, (1) being an equality implies $\arg(f(t)) = θ$ for all $t$, and (2) being an equality implies $|f(t)|$ is constant. Thus equality holds iff $f$ is constant.