diff options
author | Charlie Brej <cbrej@cs.man.ac.uk> | 2009-07-02 15:57:00 +0100 |
---|---|---|
committer | Ray Strode <rstrode@redhat.com> | 2009-07-24 09:30:20 -0400 |
commit | 25fa78880196b5f784478937ee18a1ad5743e241 (patch) | |
tree | c64a737311b8035bf019a2759bf94772decfba20 /themes | |
parent | 3ffc473b96994c9888a1d149f864e80f22bd44fd (diff) |
[script] Add support for setting the window background color
Two functions set the color of either the bottom or the top of the screen. If
the two colors are equal a solid colour draw is used. The color is supplied by
three floats specitying red green and blue elements.
Diffstat (limited to 'themes')
-rw-r--r-- | themes/script/script.script | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/themes/script/script.script b/themes/script/script.script index e0dd6e9a..6f0900c4 100644 --- a/themes/script/script.script +++ b/themes/script/script.script @@ -2,6 +2,11 @@ splash_type = "spinfinity"; # "fade_in" or "spinfinity" +SpriteWindowSetBackgroundTopColor(0.2, 0.1, 0.5); +SpriteWindowSetBackgroundBottomColor(0.2, 0.1, 0.5); + + + if (splash_type == "spinfinity"){ logo.image = ImageNew("special://logo"); logo.sprite = SpriteNew(); @@ -40,7 +45,6 @@ if (splash_type == "spinfinity"){ } } - refresh (); # do one at the start PlymouthSetRefreshFunction (refresh); } else if (splash_type == "fade_in"){ @@ -66,7 +70,6 @@ else if (splash_type == "fade_in"){ } } - refresh (); # do one at the start PlymouthSetRefreshFunction (refresh); } else { |