I saw a preview/trailer of an anime that had two main protagonists, both the leaders of armies/troops that fight each other in space.
The first protagonist has blonde hair, is a genius in war and is from noble family (maybe). The second protagonist has black hair, is also genius in war and wears a beret or painter's hat.
I saw this trailer recently (maybe from last year?).