master v0.1
Dmitry@nopomuk 2 years ago
parent 94e297c862
commit 8562afafef
  1. 1
      README.md
  2. 20
      mos/mos.script

@ -0,0 +1 @@
MOS Plymouth theme

@ -5,7 +5,7 @@ fun imglogo( image, scaleX, scaleY )
} }
#----------------------------------------- Ptogress Bar __________________________ #----------------------------------------- Ptogress Bar __________________________
#Boot
if (Plymouth.GetMode () == "boot") if (Plymouth.GetMode () == "boot")
{ {
@ -54,6 +54,24 @@ if (Plymouth.GetMode () == "boot")
if (Plymouth.GetMode () == "shutdown") if (Plymouth.GetMode () == "shutdown")
{ {
# background
if( Window.GetWidth()/Window.GetHeight() > 1.5 )
{
logo.raw = Image("shutdown16x9.png");
}
else
{
logo.raw = Image("shutdown4x3.png");
}
logo.image = imglogo( logo.raw, Window.GetWidth()/logo.raw.GetWidth(), Window.GetHeight()/logo.raw.GetHeight());
logo.sprite = Sprite(logo.image);
logo.sprite.SetPosition(0, 0, 0);
}
if (Plymouth.GetMode () == "reboot")
{
# background # background
if( Window.GetWidth()/Window.GetHeight() > 1.5 ) if( Window.GetWidth()/Window.GetHeight() > 1.5 )
{ {

Loading…
Cancel
Save