• Reorganized the scripts into different categories

• Refactored the graphical boot screens to have separate boot and shutdown images
• Changed the reboot and shutdown code to force the display of the splash images.
• Added 'Team Onefinity.ngc' to the installer files
This commit is contained in:
David Carley
2022-07-23 20:04:17 -07:00
parent 15a98972b3
commit 41e2334484
36 changed files with 743 additions and 324 deletions

BIN
installer/splash/boot.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 122 KiB

View File

@@ -0,0 +1,8 @@
[Plymouth Theme]
Name=onefinity
Description=Onefinity
ModuleName=script
[script]
ImageDir=/usr/share/plymouth/themes/onefinity
ScriptFile=/usr/share/plymouth/themes/onefinity/onefinity.script

View File

@@ -0,0 +1,37 @@
screenW = Window.GetWidth();
screenH = Window.GetHeight();
image = Image("boot.png");
if (Plymouth.GetMode() == "shutdown") {
image = Image("shutdown.png");
}
imageW = image.GetWidth();
imageH = image.GetHeight();
scaleX = imageW / screenW;
scaleY = imageH / screenH;
flag = 1;
if (scaleX > 1 || scaleY > 1) {
if (scaleX > scaleY) {
resized = image.Scale(screenW, imageH / scaleX);
imageX = 0;
imageY = (screenH - ((imageH * screenW) / imageW)) / 2;
} else {
resized = image.Scale(imageW / scaleY, screenH);
imageX = (screenW - ((imageW * screenH) / imageH)) / 2;
imageY = 0;
}
} else {
resized = image.Scale(imageW, imageH);
imageX = (screenW - imageW) / 2;
imageY = (screenH - imageH) / 2;
}
sprite = Sprite(resized);
sprite.SetPosition(imageX, imageY, -100);

Binary file not shown.

After

Width:  |  Height:  |  Size: 66 KiB