I must have missed the election where we voted for Von der Leyen.
You would have needed to be a an elected member of the EU parliament to do so.
So, if you voted one for the UK, they then voted for or against her. If you voted Farage maybe not though, because he only went to work 40 per cent of the time. He scrounged his full wage though and then full pension, so Brexit did not affected him much at all.
Still, a more democratic process than in the UK. Sunak, like all previous UK PMs, was selected and voted in only by his party, rather than by all elected representatives of the people.
On 2 July 2019, von der Leyen was proposed by the
European Council as their candidate for the office of
President of the European Commission.
[4][5] On 16 July, her nomination was approved by the European Parliament with 383 to 327 votes.
Regarding the selection by the European council
The European Council consists of the heads of state or government of the member states, alongside its own
President and the
Commission President (both non-voting).
So, the European council members are elected as well, but of course only by the relative nations. In France, for instance, by all people, in the UK only by their party. If you voted Tory though, the UK head of state at the time was your representative.
All info above is from Wikipedia.
https://en.m.wikipedia.org