Manage priority order depending on theme.