Tidied theme.c
Added [ui] preferences to themes