separate gradient color creation to its own module.

index page gradient uses same colors as weather page.
move `updateTime()` function from view to model.