shoes/shoes4 — pull request #156 by wasnotrice (2012-11-19 16:01:22+00:00)
Title: Refactor painter to permit color or gradient

Here are some steps toward adding that great Shoes feature where you can use colors or gradients (aka Shoes::Pattern objects) interchangeably.

So far:

- refactored Shoes::Swt::Painter so that the fill and stroke objects are responsible for painting themselves (now we don't care whether they are fills or gradients or whatever)
- promoted `Shoes::Swt::Color` to a first-class backend object
- added a NullColor object so we don't have to worry about checking `if @dsl.fill`
- added a DSL method for creating `Shoes::Gradient` objects
- removed `Shoes::Color#to_native` backend monkeypatch

Yet to do:

- add Swt backend for Gradient