projects
/
embrace.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
6e0caa5
)
Reworked how the alpha value of the MailboxIcon is set.
author
Tilman Sauerbeck
<tilman@code-monkey.de>
Sun, 24 Sep 2006 09:23:56 +0000
(11:23 +0200)
committer
Tilman Sauerbeck
<tilman@code-monkey.de>
Sun, 24 Sep 2006 09:23:56 +0000
(11:23 +0200)
bin/embrace
patch
|
blob
|
history
diff --git
a/bin/embrace
b/bin/embrace
index 6433d0475d371624a2b3a0024daebfdf62f6fd3d..eae0994566e2b54c2ca6a499816c95c77b4bcd0b 100755
(executable)
--- a/
bin/embrace
+++ b/
bin/embrace
@@
-121,6
+121,7
@@
module Embrace
@objects = [@img, @label]
@objects.each { |o| add_member(o) }
@objects = [@img, @label]
@objects.each { |o| add_member(o) }
+ set_color(255, 255, 255, 0)
@img.set_color(255, 255, 255, 0)
@label.set_color(255, 0, 0, 0)
@img.set_color(255, 255, 255, 0)
@label.set_color(255, 0, 0, 0)
@@
-137,7
+138,7
@@
module Embrace
def smart_show
@objects.each { |o| o.show }
def smart_show
@objects.each { |o| o.show }
- @alpha_anim ||= AlphaAnimator.new(2,
@img, @label
)
+ @alpha_anim ||= AlphaAnimator.new(2,
self
)
@alpha_anim.on_finished { @alpha_anim = nil }
end
@alpha_anim.on_finished { @alpha_anim = nil }
end
@@
-166,6
+167,10
@@
module Embrace
def smart_resize(w, h)
@img.resize(w, h)
end
def smart_resize(w, h)
@img.resize(w, h)
end
+
+ def smart_color_set(r, g, b, a)
+ @objects.each { |o| o.alpha = a }
+ end
end
class Container < Evas::Smart
end
class Container < Evas::Smart