What does “if” mean here? “... if at times depressing”
Solution 1:
If is used in that case more like a version of "although" or "even though":
if conj
2. Although possibly; even though: It is a handsome if useless trinket.
TFD Online
Pay special attention to the robust usage note there.