Cross platform linear gradient fixes.