remove hard to maintain duplicate code from text.c, add text shadow to dialogs