This commit adds support for theming on macOS and also unifies the system theme handling across platforms.