Implement early version of horizontal subpalettes

[#77436188]

WIP, definitely needs cleanup.