Remove kt-pref.h, not using it.
Use a Priv variable explicitly.
Use double to represent colours instead of uint8.
Add an entry to the priv structure to prevent warning.