For me, the bookish Mary's thoughts on the distinction between pride and vanity show one of her few insights.
I agree, Darcy has a right to be proud of his name and family.
Yet I do not see the townspeople as envious of his wealth or background. They welcomed Mr Bingley, whom they knew as a man of respectable family and good fortune; And Bingley and his elegantly dressed sisters retained the good opionion of the townspeople through the ball.
Mr Darcy drew attention for his 'fine, tall person, handsome features, noble mien; and the report which waqs in general circulation of his having ten thousand pounds a year.'
Both ladies and gentlemen considered Darcy a fine figure of a man. Rather than show envy, they welcomed Darcy but he refused any introductions and instead of socialising at all by e.g dancing, cards or talking with the men he remained aloof, walking about by himself.
Darcy insults Lizzy by remarking to Bingley how she was 'tolerable enough but not handsome enough to tempt me;' He knew she was within hearing distance as he'd swung round and caught her eye.
He did not bother to lower his voice and I doubted he cared whether she'd heard him.
Darcy at least owed it to Bingley, his househost not to be rude to Bingley's new Meryton neighbors.
The phrase 'and he was looked at in great admiration for about half the evening till his manners gave a great disgust which turned the tide of his popularity'; gives me the impression Darcy went a long way himself to earning the annoyance of the Meryton townspeople. :)
As Charlotte says, Darcy has the right to be proud. Yet he had no right to so ill mannered to harm other people's self-esteem.
Elizabeth did nothing to deserve Darcy's public insult, little wonder she was indignent or 'mortified'.