hey all,
i've got a question about changing the default appearance of links in
green_shoes...
in red shoes, this works:
Shoes.app do
txt = link("this is a link...", stroke: red, underline: "none"){para
"linked!"}
para txt
end
... is there any way to achieve the same effect in green_shoes?
thanks,
- j
Hi J,
Good question. Your quesitons are always helpful, thanks! :)
In Red Shoes, you can use the 'stroke' style for almost any kind of
elements. Great! But in Green Shoes, not commonly so far.
It may be not so difficult to write the code to each of elements, but it's
not so smart...
I'd like to implement 'The Styles Master List' perfectly someday in the
future. But for now, you have to add the 'span' style. ;-)
require 'green_shoes'
Shoes.app do
txt = link(span(fg("this is a link...", red),
underline: "none")){append{para "linked!"}}
para txt
end
If you are familiar with Pango's markup, you can also write like this:
require 'green_shoes'
Shoes.app do
txt = link(span("this is a link...", foreground: 'red',
underline: "none")){append{para "linked!"}}
para txt
end
Cheers,
ashbb
hi ashbb, thanks again for helping out - both examples work perfectly.... Shoes On! - j On Wed, Dec 28, 2011 at 1:23 PM, ashbb <ashbbb@gmail.com> wrote: > Hi J, > > Good question. Your quesitons are always helpful, thanks! :) > > In Red Shoes, you can use the 'stroke' style for almost any kind of > elements. Great! But in Green Shoes, not commonly so far. > > It may be not so difficult to write the code to each of elements, but it's > not so smart... > > I'd like to implement 'The Styles Master List' perfectly someday in the > future. But for now, you have to add the 'span' style. ;-) > > require 'green_shoes' > Shoes.app do > txt = link(span(fg("this is a link...", red), > underline: "none")){append{para "linked!"}} > para txt > end > > If you are familiar with Pango's markup, you can also write like this: > > require 'green_shoes' > Shoes.app do > txt = link(span("this is a link...", foreground: 'red', > underline: "none")){append{para "linked!"}} > para txt > end > > Cheers, > ashbb >