Remove redundant condition.
Add missing return type.
Fix typo in horhints
conf.cpp and conf.h weren't actually used, so they are gone.
Deduplicate setPixel body.
Create AbstractButton class with the common behaviours of Button and CheckBox, and make them its children classes.