There's a problem with D_EDIT_* in gui_theme.cc, the height is wrong when you use non-default sizes for your theme.
This is because it's loaded too early in the code, before arrows heights are finally defined, it should be moved to the bottom after the heights are calculated.
I don't know where it's better to send it to, here I just moved to the very bottom, right before return. I think it's the safest place. There are 2 typos fixed too.