Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
B
branding-etersoft-ximper
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Ximper Linux
branding-etersoft-ximper
Commits
bfeca908
Commit
bfeca908
authored
Mar 26, 2013
by
Mikhail Efremov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
plymouth: Replace progress bar with appearing logo.
parent
f45c99c8
Show whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
7 additions
and
37 deletions
+7
-37
progress_bar.png
components/bootsplash/progress_bar.png
+0
-0
progress_box.png
components/bootsplash/progress_box.png
+0
-0
segment_cornerL.png
components/bootsplash/segment_cornerL.png
+0
-0
segment_cornerR.png
components/bootsplash/segment_cornerR.png
+0
-0
slinux.png
components/bootsplash/slinux.png
+0
-0
theme.script
components/bootsplash/theme.script
+7
-37
No files found.
components/bootsplash/progress_bar.png
deleted
100644 → 0
View file @
f45c99c8
5.48 KB
components/bootsplash/progress_box.png
deleted
100644 → 0
View file @
f45c99c8
12.3 KB
components/bootsplash/segment_cornerL.png
deleted
100644 → 0
View file @
f45c99c8
3.35 KB
components/bootsplash/segment_cornerR.png
deleted
100644 → 0
View file @
f45c99c8
3.74 KB
components/bootsplash/slinux.png
0 → 100644
View file @
bfeca908
6.25 KB
components/bootsplash/theme.script
View file @
bfeca908
...
...
@@ -103,47 +103,17 @@ fun display_password_callback (prompt, bullets)
Plymouth.SetDisplayNormalFunction(display_normal_callback);
Plymouth.SetDisplayPasswordFunction(display_password_callback);
#----------------------------------------- Progress Bar --------------------------------
#----------------------------------------- Logo --------------------------------
slinux_logo.image = Image ("slinux.png");
slinux_logo.sprite = Sprite (slinux_logo.image);
progress_box.raw = Image("progress_box.png");
scale_factor = Window.GetWidth() / progress_box.raw.GetWidth() * 0.8;
progress_box.image = imgscale( progress_box.raw, scale_factor );
progress_box.sprite = Sprite(progress_box.image);
progress_box.x = Window.GetX() + Window.GetWidth() / 2 - progress_box.image.GetWidth() / 2;
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.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;
#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();
progress_bar.sprite.SetPosition(progress_bar.x, progress_bar.y, 1);
#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) ;
slinux_logo.x = Window.GetX() + Window.GetWidth() / 2 - slinux_logo.image.GetWidth() / 2;
slinux_logo.y = Window.GetY() + Window.GetHeight() / 2 - slinux_logo.image.GetHeight() / 2;
slinux_logo.sprite.SetPosition (slinux_logo.x, slinux_logo.y, 0);
fun progress_callback (duration, progress)
{
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);
}
slinux_logo.sprite.SetOpacity (progress);
}
Plymouth.SetBootProgressFunction(progress_callback);
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment