Set text color based on tab state and if window is key