Is that something the programmer decides or are they just implementing what the designer decided?
In past it was "given" by desktop env, now it's all rebuilt in material or other design but without any advanced behavior, it only "looks good on static screen".