If this works already, why did the author of this article write new code for it?
Because it does something different? The new one changes colors depending on the background color, for a different window decoration, outline instead if borders (rounded corners etc.)...