IDEA-113130 Project View on Mac: text is invisible under selection

(cherry picked from commit 7bd0a96f72c7a13247dc782fc14c81f810fde34d)