withDarkMode
Creates a KalugaColor.DarkLightColor that uses darkModeColor when isInDarkMode and this color otherwise. If this color has a dark mode already it will be overwritten. If darkModeColor has a dark mode, it will be used.
Return
a KalugaColor.DarkLightColor that supports a custom color in dark mode.
Parameters
the KalugaColor.RGBColor to use when isInDarkMode
Creates a KalugaColor.DarkLightColor that uses darkModeColor when isInDarkMode and this color otherwise. If this color has a dark mode already it will be overwritten. If darkModeColor has a dark mode, it will be used.
Return
a KalugaColor.DarkLightColor that supports a custom color in dark mode.
Parameters
the KalugaColor.RGBColor to use when isInDarkMode
Creates a KalugaColor.DarkLightColor that uses darkModeColor when isInDarkMode and this color otherwise. If this color has a dark mode already it will be overwritten. If darkModeColor has a dark mode, it will be used.
Return
a KalugaColor.DarkLightColor that supports a custom color in dark mode.
Parameters
the KalugaColor.RGBColor to use when isInDarkMode