File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 2424 "$f"
2525 done
2626
27+ # Scale spinner images up by 30%
28+ for f in $out/share/plymouth/themes/${ mytheme } /progress-*.png; do
29+ magick "$f" -resize 130% "$f"
30+ done
31+
2732 # Add background wallpaper
2833 cp ${ wallpaper } $out/share/plymouth/themes/${ mytheme } /background.png
2934
@@ -37,6 +42,10 @@ bg_sprite = Sprite(bg_image);\
3742bg_sprite.SetPosition(Window.GetX(), Window.GetY(), -100);' \
3843 $out/share/plymouth/themes/${ mytheme } /${ mytheme } .script
3944
45+ # Hide spinner during password prompt
46+ sed -i 's/flyingman_sprite.SetImage(flyingman_image\[Math.Int(progress \/ 2) % 60\]);/if (state.status == "play") { flyingman_sprite.SetOpacity(1); flyingman_sprite.SetImage(flyingman_image[Math.Int(progress \/ 2) % 60]); } else { flyingman_sprite.SetOpacity(0); }/' \
47+ $out/share/plymouth/themes/${ mytheme } /${ mytheme } .script
48+
4049 # Update .plymouth to point to the new paths
4150 sed -i "s|ImageDir=.*|ImageDir=$out/share/plymouth/themes/${ mytheme } |" \
4251 $out/share/plymouth/themes/${ mytheme } /${ mytheme } .plymouth
You can’t perform that action at this time.
0 commit comments