I'm trying to create asymmetric parentheses so they will look nice in the equation that the following code produces. For this I defined a new command according to an answer I found here, and it looks indeed perfect, as you can see in the output.
The problem is, it does not work in bold math font for some reason. Can someone please help me produce the same second equation in the color and bold font shown in the first equation?
The commented code is what does not work.
\documentclass[a4paper,12pt]{article}
\usepackage[spanish]{babel}
\usepackage[utf8]{inputenc}
\usepackage{mathtools}
\usepackage{bm}
\usepackage[dvipsnames]{xcolor}
\newcommand{\lowerparen}[2]{%
\raisebox{-#1}{\(\displaystyle\left(\raisebox{#1}{\(\displaystyle#2\)}\right)\)}}
\begin{document}
\[\textcolor{pink!20!purple}{\bm{\omega_f(x)\coloneqq\inf_{\delta>0}\bigg(\sup_{d(x,t),\hspace*{0.5mm}d(x,u)\leq\delta}|f(t)-f(u)|\bigg)}}\]
%\[\textcolor{pink!20!purple}{\bm{\omega_f(x)\coloneqq\inf_{\delta>0}\lowerparen{3pt}{\sup_{d(x,t),\hspace*{0.5mm}d(x,u)\leq\delta}|f(t)-f(u)|}}}\]
\[\omega_f(x_0)=D\hspace*{2mm}\overset{\big.\text{def}\big.}{\Leftrightarrow}\hspace*{2mm}\inf_{\delta>0}\lowerparen{3pt}{\sup_{d(x,t),d(x,u)\leq\delta}|f(t)-f(u)|}=D\]
\end{document}