Commit 6564b8fe authored by Anton V. Boyarshinov's avatar Anton V. Boyarshinov

6.0.0-alt5

- bootsplash changed from centaurus to simply
parent b125624f
......@@ -7,7 +7,7 @@
Name: branding-simply-linux
Version: 6.0.0
Release: alt4
Release: alt5
BuildArch: noarch
BuildRequires: cpio gfxboot >= 4 fonts-ttf-dejavu fonts-ttf-droid
......@@ -379,6 +379,9 @@ subst "s/Theme=.*/Theme=%theme/" /etc/plymouth/plymouthd.conf
%_desktopdir/indexhtml.desktop
%changelog
* Tue May 17 2011 Anton V. Boyarshinov <boyarsh@altlinux.ru> 6.0.0-alt5
- bootsplash changed from centaurus to simply
* Mon May 16 2011 Anton V. Boyarshinov <boyarsh@altlinux.ru> 6.0.0-alt4
- fix automatic boot from usb disk
......
......@@ -32,7 +32,7 @@ boot:
#bootsplash
mkdir -p $(datadir)/plymouth/themes/$(THEME)
cp -al boot-800x600.jpg $(datadir)/plymouth/themes/$(THEME)/grub.jpg
cp -al images/background*x*.png $(datadir)/plymouth/themes/$(THEME)/
cp -al images/boot.png $(datadir)/plymouth/themes/$(THEME)/wallpaper.png
cp -a components/bootsplash/* $(datadir)/plymouth/themes/$(THEME)
mv $(datadir)/plymouth/themes/$(THEME)/theme.plymouth $(datadir)/plymouth/themes/$(THEME)/$(THEME).plymouth
#bootloader
......
components/bootsplash/progress_bar.png

173 Bytes | W: | H:

components/bootsplash/progress_bar.png

5.48 KB | W: | H:

components/bootsplash/progress_bar.png
components/bootsplash/progress_bar.png
components/bootsplash/progress_bar.png
components/bootsplash/progress_bar.png
  • 2-up
  • Swipe
  • Onion skin
components/bootsplash/progress_box.png

7.37 KB | W: | H:

components/bootsplash/progress_box.png

12.3 KB | W: | H:

components/bootsplash/progress_box.png
components/bootsplash/progress_box.png
components/bootsplash/progress_box.png
components/bootsplash/progress_box.png
  • 2-up
  • Swipe
  • Onion skin
......@@ -11,14 +11,7 @@ fun imgscale2( image, scaleX, scaleY )
}
# background
if( Window.GetWidth()/Window.GetHeight() > 1.5 )
{
logo.raw = Image("background16x9.png");
}
else
{
logo.raw = Image("background4x3.png");
}
logo.raw = Image("wallpaper.png");
logo.image = imgscale2( logo.raw,
Window.GetWidth()/logo.raw.GetWidth(),
......@@ -123,48 +116,34 @@ progress_box.x = Window.GetX() + Window.GetWidth() / 2 - progress_box.image.GetW
progress_box.y = Window.GetY() + Window.GetHeight() / 2 - progress_box.image.GetHeight() / 2;
progress_box.sprite.SetPosition(progress_box.x, progress_box.y, 0);
progress_bar.status.raw = Image("segment_status.png");
progress_bar.runner = Sprite();
progress_bar.runner.SetImage ( imgscale(progress_bar.status.raw, scale_factor));
progress_bar.original_image = imgscale(Image("progress_bar.png"), scale_factor);
progress_bar.sprite = Sprite();
progress_bar.x = progress_box.x ;
progress_bar.y = Window.GetY() + Window.GetHeight() / 2 - progress_box.image.GetHeight() / 2 + (progress_box.image.GetHeight() - progress_bar.original_image.GetHeight()) / 2;
progress_bar.x = Window.GetX() + Window.GetWidth() / 2 - progress_box.image.GetWidth() / 2;
progress_bar.y = Window.GetY() + Window.GetHeight() / 2 - progress_box.image.GetHeight() / 2 +
(progress_box.image.GetHeight() - progress_box.image.GetHeight()) / 2;
#Total steps
steps=33;
#left corner
progress_bar.l = imgscale( Image("segment_cornerL.png") , scale_factor );
progress_bar.spriteL = Sprite();
progress_bar.spriteL.SetImage (progress_bar.l);
progress_bar.spriteL.SetPosition(progress_bar.x,progress_bar.y, 2) ;
progress_bar.x += progress_bar.l.GetWidth()-1;
progress_bar.x += progress_bar.l.GetWidth();
progress_bar.sprite.SetPosition(progress_bar.x, progress_bar.y, 1);
#middle
progress_bar.image = imgscale(Image("segment_middle.png"), scale_factor);
step = progress_bar.image.GetWidth()-1;
for( i=0; i<steps; i++ )
{
progress_bar.sprites[i] = Sprite();
progress_bar.sprites[i].SetImage (progress_bar.image);
progress_bar.sprites[i].SetPosition(progress_bar.x+i*step,progress_bar.y, -1000) ;
}
#right corner
progress_bar.r = imgscale( Image("segment_cornerR.png") , scale_factor );
progress_bar.sprites[steps+1] = Sprite();
progress_bar.sprites[steps+1].SetImage (progress_bar.r);
progress_bar.sprites[steps+1].SetPosition(progress_bar.x+step*steps,progress_bar.y, -1000) ;
#progress_bar.r = imgscale( Image("segment_cornerR.png") , scale_factor );
#progress_bar.sprites[steps+1] = Sprite();
#progress_bar.sprites[steps+1].SetImage (progress_bar.r);
#progress_bar.sprites[steps+1].SetPosition(progress_bar.x+step*steps,progress_bar.y, -1000) ;
fun progress_callback (duration, progress)
{
for( i=0; i< progress*steps; i++ )
progress_bar.sprites[i].SetZ(2);
if( progress > 0.99 )
progress_bar.sprites[i+1].SetZ(2);
if( progress < 0.96 )
progress_bar.runner.SetPosition(progress_bar.x+progress*step*steps, progress_bar.y, 1);
if (progress_bar.image.GetWidth () != Math.Int (progress_bar.original_image.GetWidth () * progress))
{
progress_bar.image = progress_bar.original_image.Scale(progress_bar.original_image.GetWidth(progress_bar.original_image) * progress, progress_bar.original_image.GetHeight());
progress_bar.sprite.SetImage (progress_bar.image);
}
}
Plymouth.SetBootProgressFunction(progress_callback);
......
images/boot.jpg

14.5 KB | W: | H:

images/boot.jpg

61.4 KB | W: | H:

images/boot.jpg
images/boot.jpg
images/boot.jpg
images/boot.jpg
  • 2-up
  • Swipe
  • Onion skin
images/boot.png

275 KB | W: | H:

images/boot.png

80.5 KB | W: | H:

images/boot.png
images/boot.png
images/boot.png
images/boot.png
  • 2-up
  • Swipe
  • Onion skin
images/wallpaper.png

74.4 KB | W: | H:

images/wallpaper.png

80.5 KB | W: | H:

images/wallpaper.png
images/wallpaper.png
images/wallpaper.png
images/wallpaper.png
  • 2-up
  • Swipe
  • Onion skin
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment