Make Add Attachment dialog readable on the dark theme

For #386. Fixing the issues of #390.