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
Boris Yumankulov
branding-etersoft-ximper
Commits
8fd12bed
Commit
8fd12bed
authored
May 30, 2019
by
Andrey Cherepanov
Committed by
Alexey Shabalin
Jun 13, 2019
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix Plymouth theme
parent
6d1ed870
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
10 additions
and
5 deletions
+10
-5
theme.script
bootsplash/theme.script
+10
-5
No files found.
bootsplash/theme.script
View file @
8fd12bed
...
...
@@ -115,7 +115,7 @@ Plymouth.SetDisplayPasswordFunction(display_password_callback);
# Define bar size and position
bar_height = 36;
bar_x = Window.GetWidth() * 0.10; # 10% from left edge
bar_y = Window.GetHeight()
* 0.85; # from bar bottom to bottom screen edge: 10%
bar_y = Window.GetHeight()
/ 2; # top progressbar edge should be at middle of screen
bar_width = Window.GetWidth() * 0.80; # 80% of screen width
# Progress background spite
...
...
@@ -127,17 +127,22 @@ progress_bg.sprite.SetZ (5);
# Progress bar sprite
progress_bar.raw = Image ("progress_bar.png");
progress_bar.image =
imgscale (progress_bar.raw, 1)
;
progress_bar.image =
progress_bar.raw
;
# Maximum number of sprites
steps = Math.Int (bar_width/18);
# Show first step
progress_bar.sprites[0] = Sprite ();
progress_bar.sprites[0].SetImage (progress_bar.image);
progress_bar.sprites[0].SetPosition (bar_x, bar_y);
progress_bar.sprites[0].SetZ (10);
fun progress_callback (duration, progress)
{
# Redraw progress_bar with appropriate width with step 20% with 5% ahead
step = Math.Int ((progress+0.05) / steps) + 1;
step = Math.Int ((progress+0.05) * steps) + 1;
if ( step > steps ) step = steps;
for( i=0; i<step; i++ )
for( i=0; i<step; i++ )
{
progress_bar.sprites[i] = Sprite ();
progress_bar.sprites[i].SetImage (progress_bar.image);
progress_bar.sprites[i].SetPosition (bar_x+i*18, bar_y);
...
...
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