New theme: simple (temporary?) openmamba milestone3 theme

This commit is contained in:
Silvan Calarco 2013-06-21 20:38:11 +02:00
parent f63cfd8545
commit 4bfa628672
10 changed files with 10 additions and 50 deletions

View File

@ -1 +1 @@
VERSION = 0.1 VERSION = 2.80

Binary file not shown.

Before

Width:  |  Height:  |  Size: 161 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 870 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 296 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 350 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 1.9 KiB

View File

@ -1,70 +1,32 @@
# This is an example plymouth plugin script # openmamba 3 plymouth script
#Window.SetBackgroundTopColor(0.234, 0.43, 0.705);
#Window.SetBackgroundBottomColor(0.16, 0.25, 0.44);
wallpaper_image = Image("background.png");
screen_width = Window.GetWidth(); screen_width = Window.GetWidth();
screen_height = Window.GetHeight(); screen_height = Window.GetHeight();
resized_wallpaper_image = wallpaper_image.Scale(screen_width,screen_height);
wallpaper_sprite = Sprite(resized_wallpaper_image);
wallpaper_sprite.SetZ(-100);
stretch_factor = screen_width / screen_height / 1.25; stretch_factor = screen_width / screen_height / 1.25;
logo1.image = Image("openmamball.png"); logo1.image = Image("openmamball.png");
logo1.image = logo1.image.Scale(72 * (screen_width / stretch_factor / 1280), 72 * (screen_height / 1024)); logo1.image = logo1.image.Scale(100 * (screen_width / stretch_factor / 1280), 100 * (screen_height / 1024));
logo1.sprite = Sprite(logo1.image); logo1.sprite = Sprite(logo1.image);
logo1.opacity_angle = 0; logo1.opacity_angle = 180;
logo2.image = Image("openmamball.png");
logo2.image = logo2.image.Scale(85 * (screen_width / stretch_factor / 1280), 85 * (screen_height / 1024));
logo2.sprite = Sprite(logo2.image);
logo2.opacity_angle = 0;
logo3.image = Image("openmamball.png");
logo3.image = logo3.image.Scale(118 * (screen_width / stretch_factor / 1280), 118 * (screen_height / 1024));
logo3.sprite = Sprite(logo3.image);
logo3.opacity_angle = 0;
fun refresh_callback () fun refresh_callback ()
{ {
if (status == "normal") if (status == "normal")
{ {
logo1.opacity_angle += ((2 * 3.14) / 50) * 0.3; # 0.5 HZ logo1.opacity_angle += ((2 * 3.14) / 50) * 0.1;
logo2.opacity_angle += ((2 * 3.14) / 50) * 0.4; # 0.25 HZ min_opacity = 0.2;
logo3.opacity_angle += ((2 * 3.14) / 50) * 0.5; # 0.125 HZ
min_opacity = 0.3;
opacity1 = (Math.Cos(logo1.opacity_angle) + 1) / 2; opacity1 = (Math.Cos(logo1.opacity_angle) + 1) / 2;
opacity1 *= 1 - min_opacity; opacity1 *= 1 - min_opacity;
opacity1 += min_opacity; opacity1 += min_opacity;
logo1.sprite.SetX ((980 * screen_width) / 1280 - logo1.image.GetWidth() / 2); logo1.sprite.SetX ((640 * screen_width) / 1280 - logo1.image.GetWidth() / 2);
logo1.sprite.SetY ((105 * screen_height) / 1024 - logo1.image.GetHeight() / 2); logo1.sprite.SetY ((512 * screen_height) / 1024 - logo1.image.GetHeight() / 2);
logo1.sprite.SetOpacity (opacity1); logo1.sprite.SetOpacity (opacity1);
opacity2 = (Math.Cos(logo2.opacity_angle) + 1) / 2;
opacity2 *= 1 - min_opacity;
opacity2 += min_opacity;
logo2.sprite.SetX ((980 * screen_width) / 1280 - logo2.image.GetWidth() / 2);
logo2.sprite.SetY ((242 * screen_height) / 1024 - logo2.image.GetHeight() / 2);
logo2.sprite.SetOpacity (opacity2);
opacity3 = (Math.Cos(logo3.opacity_angle) + 1) / 2;
opacity3 *= 1 - min_opacity;
opacity3 += min_opacity;
logo3.sprite.SetX ((980 * screen_width) / 1280 - logo3.image.GetWidth() / 2);
logo3.sprite.SetY ((415 * screen_height) / 1024 - logo3.image.GetHeight() / 2);
logo3.sprite.SetOpacity (opacity3);
} }
else else
{ {
logo1.sprite.SetX ((980 * screen_width) / 1280 - logo1.image.GetWidth() / 2); logo1.sprite.SetX ((640 * screen_width) / 1280 - logo1.image.GetWidth() / 2);
logo1.sprite.SetY ((105 * screen_height) / 1024 - logo1.image.GetHeight() / 2); logo1.sprite.SetY ((512 * screen_height) / 1024 - logo1.image.GetHeight() / 2);
logo1.sprite.SetOpacity (1); logo1.sprite.SetOpacity (1);
logo2.sprite.SetX ((980 * screen_width) / 1280 - logo2.image.GetWidth() / 2);
logo2.sprite.SetY ((250 * screen_height) / 1024 - logo2.image.GetHeight() / 2);
logo2.sprite.SetOpacity (1);
logo3.sprite.SetX ((980 * screen_width) / 1280 - logo3.image.GetWidth() / 2);
logo3.sprite.SetY ((415 * screen_height) / 1024 - logo3.image.GetHeight() / 2);
logo3.sprite.SetOpacity (1);
} }
} }
@ -186,8 +148,6 @@ Plymouth.SetDisplayPasswordFunction(display_password_callback);
fun quit_callback () fun quit_callback ()
{ {
logo1.sprite.SetOpacity (1); logo1.sprite.SetOpacity (1);
logo2.sprite.SetOpacity (1);
logo3.sprite.SetOpacity (1);
} }
Plymouth.SetQuitFunction(quit_callback); Plymouth.SetQuitFunction(quit_callback);

Binary file not shown.

Before

Width:  |  Height:  |  Size: 33 KiB

After

Width:  |  Height:  |  Size: 29 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 173 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 196 B