Small gray text on a gray background, espcially when with window is not focused, makes the text on tabs almost invisible.
Add more contast between tab text and background, possibly make fonts larger and add more padding.
Ideally, when a window looses focus it should not make the tabs less readable.
For reference, this is how tabs on a non-focused window currently look:
