Strip trailing whitespace.
Use 100% accurate colors for title bar gradients on Lion and above.
Draw accurate title bar noise overlay.