widget icon glow
Moderators: FourthWorld, heatherlaine, Klaus, kevinmiller
widget icon glow
Hi - Is there a way to make a SVG icon glow on mouseEnter without creating custom icons? The outerglow property doesn't seem to apply here
-
- Livecode Opensource Backer
- Posts: 9357
- Joined: Fri Feb 19, 2010 10:17 am
- Location: Bulgaria
Re: widget icon glow
This is because an SVG widget doesn't have these properties:
drop shadow
inner shadow
outer glow
inner glow
color overlay
which imported images do.
Personally I would go for changing the hilite of the widget:
drop shadow
inner shadow
outer glow
inner glow
color overlay
which imported images do.
Personally I would go for changing the hilite of the widget:
Code: Select all
on mouseEnter
set the hilite of me to true
set the hiliteColor of me to red
end mouseEnter
on mouseLeave
set the hilite of me to false
end mouseLeave
Re: widget icon glow
Another (admittedly kludgey) way you could do it would be to set the svg shape on a matching graphic shape, which does have those properties. Then you could make "creative" use of the graphic's properties and blendlevel to simulate glowing or whatever.
Re: widget icon glow
Group the single SVG and apply the desired effects to that group!
Noone will tell the difference!
Noone will tell the difference!
-
- Livecode Opensource Backer
- Posts: 9357
- Joined: Fri Feb 19, 2010 10:17 am
- Location: Bulgaria
Re: widget icon glow
That's a clever ideaGroup the single SVG
Remember, if you want to rotate the widget,
you must be careful to ungroup it, then rotate it, then regroup it.
Re: widget icon glow
On second thought, what Klaus said! (or what I said, which doesn't require ungrouping )