From 9d34c0f0e4c7ba1f911dfeba7633047ac43b4860 Mon Sep 17 00:00:00 2001 From: humocs-man <251756307+humocs-man@users.noreply.github.com> Date: Sat, 3 Oct 2026 13:44:38 +0200 Subject: [PATCH] Plymouth-Anpassung --- build/23-plymouth.sh | 18 +++++++++++++++++- build/plymouth-theme/fluffy.script | 7 ++++++- 2 files changed, 23 insertions(+), 2 deletions(-) diff --git a/build/23-plymouth.sh b/build/23-plymouth.sh index b66e796..100105d 100644 --- a/build/23-plymouth.sh +++ b/build/23-plymouth.sh @@ -15,11 +15,27 @@ dnf5 install -y \ --allowerasing \ plymouth \ plymouth-system-theme \ - plymouth-plugin-script + plymouth-plugin-script \ + fedora-logos mkdir -p /usr/share/plymouth/themes/fluffy cp /tmp/plymouth-theme/fluffy.plymouth /tmp/plymouth-theme/fluffy.script \ /usr/share/plymouth/themes/fluffy/ +# Logo aus dem signierten Paket (kein Download, kein Artwork im Repo). +# Fail-fast: ohne Logo kein Splash mit Bild. +LOGO="" +for candidate in /usr/share/pixmaps/fedora-logo.png; do + if [[ -f "${candidate}" ]]; then + LOGO="${candidate}" + break + fi +done +if [[ -z "${LOGO}" ]]; then + echo "FEHLER: kein Fedora-Logo in fedora-logos gefunden" + exit 1 +fi +cp "${LOGO}" /usr/share/plymouth/themes/fluffy/logo.png +echo "Splash-Logo: ${LOGO}" plymouth-set-default-theme fluffy for kdir in /usr/lib/modules/*; do diff --git a/build/plymouth-theme/fluffy.script b/build/plymouth-theme/fluffy.script index 0fcb490..8643adc 100644 --- a/build/plymouth-theme/fluffy.script +++ b/build/plymouth-theme/fluffy.script @@ -8,6 +8,7 @@ Window.SetBackgroundTopColor (0.101, 0.105, 0.149); Window.SetBackgroundBottomColor (0.101, 0.105, 0.149); +logo.sprite = Sprite (); title.sprite = Sprite (); status.sprite = Sprite (); @@ -18,10 +19,14 @@ fun layout () { global.layout_width = Window.GetWidth (); global.layout_height = Window.GetHeight (); + logo.image = Image ("logo.png"); + logo.sprite.SetImage (logo.image); + logo.sprite.SetPosition (global.layout_width / 2 - logo.image.GetWidth () / 2, + global.layout_height / 2 - logo.image.GetHeight () / 2 - 60, 10); title.image = Image.Text ("fluffy-pancake", 1, 1, 1); title.sprite.SetImage (title.image); title.sprite.SetPosition (global.layout_width / 2 - title.image.GetWidth () / 2, - global.layout_height / 2 - title.image.GetHeight () / 2, 10); + global.layout_height / 2 - title.image.GetHeight () / 2 + 60, 10); status.sprite.SetPosition (10, global.layout_height - 40, 10000); }