They absolutely are. You don’t get to artificially limit scope just because it suits you. If you get robbed both at the ATM and on the way home you’re still coming back with less cash!
To look at it from another point of view... If _all_ the money you made came from long term capital gains, the taxes you pay on it would be based on totally different tax rules. Capital gains taxes are certainly impacting how much you "spend" on taxes, but they don't impact how much of your "salary" goes to taxes.... because you don't have a salary.