Update Plymouth logo for installer

This commit is contained in:
Michael Smith 2024-09-12 20:26:00 +02:00
parent 105b6086e4
commit 6ddb8e01a5
5 changed files with 34 additions and 2 deletions

View File

@ -43,8 +43,8 @@ in {
loader.timeout = lib.mkForce 0;
plymouth = {
enable = true;
theme = "desk-os";
themePackages = [(pkgs.callPackage ../../packages/desk-os-plymouth {})];
theme = "desk-os-installer";
themePackages = [(pkgs.callPackage ../../packages/desk-os-installer-plymouth {})];
};
# NOTE(m): Enable kernel modules that improve wifi support on
# Macbooks during installation.

View File

@ -0,0 +1,16 @@
{stdenv}:
stdenv.mkDerivation {
pname = "desk-os-installer-plymouth";
version = "0.0.1";
src = ./src;
installPhase = ''
runHook preInstall
sed -i 's:\(^ImageDir=\)/usr:\1'"$out"':' desk-os-installer.plymouth
sed -i 's:\(^ScriptFile=\)/usr:\1'"$out"':' desk-os-installer.plymouth
mkdir -p $out/share/plymouth/themes/desk-os-installer
cp * $out/share/plymouth/themes/desk-os-installer
runHook postInstall
'';
}

View File

@ -0,0 +1,8 @@
[Plymouth Theme]
Name=deskOS Installer
Description=A theme that displays the deskOS installer logo
ModuleName=script
[script]
ImageDir=/usr/share/plymouth/themes/desk-os-installer
ScriptFile=/usr/share/plymouth/themes/desk-os-installer/desk-os-installer.script

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.8 KiB

View File

@ -0,0 +1,8 @@
image = Image("desk-os-installer.png");
pos_x = Window.GetWidth()/2 - image.GetWidth()/2;
pos_y = Window.GetHeight()/2 - image.GetHeight()/2;
sprite = Sprite(image);
sprite.SetX(pos_x);
sprite.SetY(pos_y);