Improve dark mode support on all platforms