summaryrefslogtreecommitdiffstats
path: root/common
diff options
context:
space:
mode:
authorRémi Verschelde <remi@verschelde.fr>2015-01-10 10:51:27 +0100
committerRémi Verschelde <remi@verschelde.fr>2015-01-10 10:51:27 +0100
commit06e2d5a2aa63e6807749d44c86bbce814ab053da (patch)
tree44236d3e059f12170f0c1a9a9630c195fbf052b9 /common
parente86e88206b267bee213e37d91f4d7973a25d3641 (diff)
downloadtheme-06e2d5a2aa63e6807749d44c86bbce814ab053da.tar
theme-06e2d5a2aa63e6807749d44c86bbce814ab053da.tar.gz
theme-06e2d5a2aa63e6807749d44c86bbce814ab053da.tar.bz2
theme-06e2d5a2aa63e6807749d44c86bbce814ab053da.tar.xz
theme-06e2d5a2aa63e6807749d44c86bbce814ab053da.zip
Version 1.5.0.39
Centered logo on plymouth theme to workaround mga#14864 Made the bubble of the "i" in Mageia dynamic too
Diffstat (limited to 'common')
-rw-r--r--common/plymouth/mga.script46
1 files changed, 32 insertions, 14 deletions
diff --git a/common/plymouth/mga.script b/common/plymouth/mga.script
index 875d907..49ef946 100644
--- a/common/plymouth/mga.script
+++ b/common/plymouth/mga.script
@@ -58,41 +58,48 @@ offset = Window.GetWidth() / 2 - logo.sprite.GetImage().GetWidth() / 2 ;
logo.sprite.SetX (offset );
logo.opacity_angle = 0;
-progressbar1.original_image = ImageNew("bubble1.png");
+progressbar1.original_image = ImageNew("bubble0.png");
progressbar1.image = progressbar1.original_image.Scale(progressbar1.original_image.GetWidth() * scaleheight, progressbar1.original_image.GetHeight() * scaleheight);
progressbar1.sprite = SpriteNew();
progressbar1.sprite.SetImage(progressbar1.image);
progressbar1.sprite.SetX(offset );
progressbar1.opacity_angle = 0;
-progressbar2.original_image = ImageNew("bubble2.png");
+progressbar2.original_image = ImageNew("bubble1.png");
progressbar2.image = progressbar2.original_image.Scale(progressbar2.original_image.GetWidth() * scaleheight, progressbar2.original_image.GetHeight() * scaleheight);
progressbar2.sprite = SpriteNew();
progressbar2.sprite.SetImage(progressbar2.image);
progressbar2.sprite.SetX(offset );
progressbar2.opacity_angle = 0;
-progressbar3.original_image = ImageNew("bubble3.png");
+progressbar3.original_image = ImageNew("bubble2.png");
progressbar3.image = progressbar3.original_image.Scale(progressbar3.original_image.GetWidth() * scaleheight, progressbar3.original_image.GetHeight() * scaleheight);
progressbar3.sprite = SpriteNew();
progressbar3.sprite.SetImage(progressbar3.image);
progressbar3.sprite.SetX(offset );
progressbar3.opacity_angle = 0;
-progressbar4.original_image = ImageNew("bubble4.png");
+progressbar4.original_image = ImageNew("bubble3.png");
progressbar4.image = progressbar4.original_image.Scale(progressbar4.original_image.GetWidth() * scaleheight, progressbar4.original_image.GetHeight() * scaleheight);
progressbar4.sprite = SpriteNew();
progressbar4.sprite.SetImage(progressbar4.image);
progressbar4.sprite.SetX(offset );
progressbar4.opacity_angle = 0;
-progressbar5.original_image = ImageNew("bubble5.png");
+progressbar5.original_image = ImageNew("bubble4.png");
progressbar5.image = progressbar5.original_image.Scale(progressbar5.original_image.GetWidth() * scaleheight, progressbar5.original_image.GetHeight() * scaleheight);
progressbar5.sprite = SpriteNew();
progressbar5.sprite.SetImage(progressbar5.image);
progressbar5.sprite.SetX(offset );
progressbar5.opacity_angle = 0;
+progressbar6.original_image = ImageNew("bubble5.png");
+progressbar6.image = progressbar6.original_image.Scale(progressbar6.original_image.GetWidth() * scaleheight, progressbar6.original_image.GetHeight() * scaleheight);
+progressbar6.sprite = SpriteNew();
+progressbar6.sprite.SetImage(progressbar6.image);
+progressbar6.sprite.SetX(offset );
+progressbar6.opacity_angle = 0;
+
if (Plymouth.GetMode() == "shutdown") {
progressbar9.sprite.SetOpacity(1);
} else {
@@ -101,6 +108,7 @@ if (Plymouth.GetMode() == "shutdown") {
progressbar3.sprite.SetOpacity(0);
progressbar4.sprite.SetOpacity(0);
progressbar5.sprite.SetOpacity(0);
+ progressbar6.sprite.SetOpacity(0);
}
background.image = background.original_image.Scale(Window.GetMaxWidth() , Window.GetMaxHeight());
@@ -277,49 +285,59 @@ if (Plymouth.GetMode() == "suspend" || Plymouth.GetMode() == "resume") {
if (Plymouth.GetMode() == "shutdown") {
#motif.opacity = progress;
if ( progress > 0.1 ) {
+ progressbar6.sprite.SetOpacity(1);
+ }
+ if ( progress > 0.25 ) {
progressbar5.sprite.SetOpacity(1);
+ progressbar6.sprite.SetOpacity(0);
}
- if ( progress > 0.3 ) {
+ if ( progress > 0.4 ) {
progressbar4.sprite.SetOpacity(1);
progressbar5.sprite.SetOpacity(0);
+ progressbar6.sprite.SetOpacity(0);
}
- if ( progress > 0.5 ) {
+ if ( progress > 0.55 ) {
progressbar3.sprite.SetOpacity(1);
progressbar4.sprite.SetOpacity(0);
progressbar5.sprite.SetOpacity(0);
+ progressbar6.sprite.SetOpacity(0);
}
if ( progress > 0.7 ) {
progressbar2.sprite.SetOpacity(1);
progressbar3.sprite.SetOpacity(0);
progressbar4.sprite.SetOpacity(0);
progressbar5.sprite.SetOpacity(0);
+ progressbar6.sprite.SetOpacity(0);
}
- if ( progress > 0.9 ) {
+ if ( progress > 0.85 ) {
progressbar1.sprite.SetOpacity(1);
progressbar2.sprite.SetOpacity(0);
progressbar3.sprite.SetOpacity(0);
progressbar4.sprite.SetOpacity(0);
progressbar5.sprite.SetOpacity(0);
+ progressbar6.sprite.SetOpacity(0);
}
-
}
else {
#motif.opacity = 1 - progress;
if ( progress > 0.1 ) {
progressbar1.sprite.SetOpacity(1);
}
- if ( progress > 0.3 ) {
+ if ( progress > 0.25 ) {
progressbar2.sprite.SetOpacity(1);
}
- if ( progress > 0.5 ) {
+ if ( progress > 0.4 ) {
progressbar3.sprite.SetOpacity(1);
}
- if ( progress > 0.7 ) {
+ if ( progress > 0.55 ) {
progressbar4.sprite.SetOpacity(1);
}
- if ( progress > 0.9 ) {
+ if ( progress > 0.7 ) {
progressbar5.sprite.SetOpacity(1);
- }
+ }
+ if ( progress > 0.85 ) {
+ progressbar6.sprite.SetOpacity(1);
+ }
}
}