Yes there was indeed a simpler way to do it . I made a custom style and reimplemented drawControl