Please make the Block Edit window also in dark mode.
Thanks for reporting. Listed as RH-72929 Block edit dark mode version
But see: Some Block Definitions panel feedback