Permalink
Commits on Nov 24, 2012
  1. A solution for angled gradients. Refer to [issue 156](shoes#156). Try…

    ashbb committed Nov 24, 2012
    … out this snippet:
    
    Shoes.app height: 300 do
      background salmon..chartreuse, angle: -45
      oval 10, 10, 200, fill: green..yellow, angle: 90
      rect 300, 10, 200, fill: red..blue, curve: 10, angle: 45
    end
Commits on Nov 22, 2012
Commits on Nov 21, 2012
  1. Add gradient fill for Rect

    wasnotrice committed Nov 21, 2012
Commits on Nov 20, 2012
  1. Add more flexibility for Gradient, Color

    wasnotrice committed Nov 20, 2012
    Now element methods call #pattern to generate stroke/fill, rather than
    color. This means they get Gradients if appropriate.
    
    Starting (with oval) to extract style handling for greater flexibility.
Commits on Nov 19, 2012
  1. Add apply_as_stroke

    wasnotrice committed Nov 19, 2012
  2. Allow backend classes to have factories with #create

    wasnotrice committed Nov 19, 2012
    Instead of just calling #new on backend classes to generate gui objects,
    call #create if it exists. This allows backend classes to define a
    factory method, #create, that has more control over object creation.
    They can, for example, return NullObjects when appropriate.
  3. Clean up Painter

    wasnotrice committed Nov 19, 2012
  4. Add comments

    wasnotrice committed Nov 19, 2012
  5. Add a little patch for Windows.

    ashbb committed Nov 19, 2012
  6. Add dsl component of Gradient

    wasnotrice committed Nov 19, 2012
    This is an opaque class at the DSL level. You can #to_s one to see its
    color stops but that's it. This behavior is consistent with Shoes 3
    (although in Shoes 3, #to_s only gives you '(Shoes::Pattern)').
  7. Remove Shoes::Color.to_native

    wasnotrice committed Nov 19, 2012
    Instead, add a factory: Shoes::Swt::Color.create(color) that
    creates as Shoes::Swt::Color from a Shoes::Color.
    
    Benefit: Gracefully handles the case where we have a nil for the
    DSL object's fill or stroke. In this case, the factory creates a
    NullColor (a null object). This way, we don't have to check for nil
    before we do painting--the NullColor's paint operations are no-ops.
    
    This commit also removes the Shoes::Swt::Color component methods
    (#red, #green, #blue). There's really no reason to ask the backend
    for these values.
  8. Add Rake task to run all working samples

    wasnotrice committed Nov 18, 2012
    Usage: rake samples
    
    This task reads the list of working samples from samples/README,
    shuffles the list, and executes each sample. When you quit the current
    sample, the next one spins up. You wouldn't want to run this all the
    time (it takes 7 or 8 minutes on my machine at the moment), but it's
    a nice sanity check.
Commits on Nov 16, 2012
  1. Merge pull request #153 from wasnotrice/dir

    ashbb committed Nov 16, 2012
    Make Shoes::DIR the parent of 'static' and 'lib'.
  2. Add dsl #color method

    wasnotrice committed Nov 16, 2012
    This method allows us to use colors or hex strings in the DSL,
    as in Shoes 3. It simply delegates to Shoes::Color.create. Start
    using this method in #stroke and #fill.
Commits on Nov 15, 2012
  1. Make Shoes::DIR the parent of 'static' and 'lib'.

    wasnotrice committed Nov 15, 2012
    Fixes #152.
    
    Currently, Shoes::DIR is 'lib'. To get at assets packaged with Shoes,
    we have to use "#{Shoes::DIR}/../static/shoes-icon.png". This commit
    lets us use "#{Shoes::DIR}/static/shoes-icon.png". This makes
    Shoes::DIR consistent with DIR in Shoes 3.