Compare commits

..

5 Commits

Author SHA1 Message Date
1493640322 Release 2.90.1 2013-08-27 20:07:16 +02:00
aefcbe5cda Update openmamball.png image, got lost in previous release 2013-08-27 20:05:10 +02:00
1033c0e69c A couple of small fixes 2013-08-26 14:35:24 +02:00
4a27cb357c openmamba 3 theme improvements:
- make new logo rotate
- add a light green background
2013-08-26 14:30:38 +02:00
4bfa628672 New theme: simple (temporary?) openmamba milestone3 theme 2013-06-21 20:38:11 +02:00
11 changed files with 14 additions and 55 deletions

View File

@ -1 +1 @@
VERSION = 0.1
VERSION = 2.90.1

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,6 +1,6 @@
[Plymouth Theme]
Name=openmamba
Description=openmamba 2 default theme
Description=openmamba 3 splash theme
ModuleName=script
[script]

View File

@ -1,70 +1,28 @@
# 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_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;
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.opacity_angle = 0;
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 ()
{
if (status == "normal")
{
logo1.opacity_angle += ((2 * 3.14) / 50) * 0.3; # 0.5 HZ
logo2.opacity_angle += ((2 * 3.14) / 50) * 0.4; # 0.25 HZ
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 *= 1 - min_opacity;
opacity1 += min_opacity;
logo1.sprite.SetX ((980 * screen_width) / 1280 - logo1.image.GetWidth() / 2);
logo1.sprite.SetY ((105 * screen_height) / 1024 - logo1.image.GetHeight() / 2);
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);
logo1.opacity_angle += (3.14 / 50);
logo1.sprite.SetImage(logo1.image.Rotate(logo1.opacity_angle));
logo1.sprite.SetX ((640 * screen_width) / 1280 - logo1.image.GetWidth() / 2);
logo1.sprite.SetY ((512 * screen_height) / 1024 - logo1.image.GetHeight() / 2);
}
else
{
logo1.sprite.SetX ((980 * screen_width) / 1280 - logo1.image.GetWidth() / 2);
logo1.sprite.SetY ((105 * screen_height) / 1024 - logo1.image.GetHeight() / 2);
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);
logo1.sprite.SetImage(logo1.image.Rotate(0));
logo1.sprite.SetX ((640 * screen_width) / 1280 - logo1.image.GetWidth() / 2);
logo1.sprite.SetY ((512 * screen_height) / 1024 - logo1.image.GetHeight() / 2);
}
}
@ -186,8 +144,6 @@ Plymouth.SetDisplayPasswordFunction(display_password_callback);
fun quit_callback ()
{
logo1.sprite.SetOpacity (1);
logo2.sprite.SetOpacity (1);
logo3.sprite.SetOpacity (1);
}
Plymouth.SetQuitFunction(quit_callback);
@ -204,3 +160,6 @@ fun message_callback (text)
}
Plymouth.SetMessageFunction(message_callback);
Window.SetBackgroundTopColor(0.781,0.891,0.777);
Window.SetBackgroundBottomColor(0.797,0.914,0.793);

Binary file not shown.

Before

Width:  |  Height:  |  Size: 33 KiB

After

Width:  |  Height:  |  Size: 10 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 173 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 196 B