Plymouth-Anpassung
This commit is contained in:
1 parent
ca41dbbb35
commit
9d34c0f0e4
2 files changed
+23
-2
No files matched your search
+17
-1
@@ -15,11 +15,27 @@ dnf5 install -y \
|
|||||||
--allowerasing \
|
--allowerasing \
|
||||||
plymouth \
|
plymouth \
|
||||||
plymouth-system-theme \
|
plymouth-system-theme \
|
||||||
plymouth-plugin-script
|
plymouth-plugin-script \
|
||||||
|
fedora-logos
|
||||||
|
|
||||||
mkdir -p /usr/share/plymouth/themes/fluffy
|
mkdir -p /usr/share/plymouth/themes/fluffy
|
||||||
cp /tmp/plymouth-theme/fluffy.plymouth /tmp/plymouth-theme/fluffy.script \
|
cp /tmp/plymouth-theme/fluffy.plymouth /tmp/plymouth-theme/fluffy.script \
|
||||||
/usr/share/plymouth/themes/fluffy/
|
/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
|
plymouth-set-default-theme fluffy
|
||||||
|
|
||||||
for kdir in /usr/lib/modules/*; do
|
for kdir in /usr/lib/modules/*; do
|
||||||
|
|||||||
@@ -8,6 +8,7 @@
|
|||||||
Window.SetBackgroundTopColor (0.101, 0.105, 0.149);
|
Window.SetBackgroundTopColor (0.101, 0.105, 0.149);
|
||||||
Window.SetBackgroundBottomColor (0.101, 0.105, 0.149);
|
Window.SetBackgroundBottomColor (0.101, 0.105, 0.149);
|
||||||
|
|
||||||
|
logo.sprite = Sprite ();
|
||||||
title.sprite = Sprite ();
|
title.sprite = Sprite ();
|
||||||
status.sprite = Sprite ();
|
status.sprite = Sprite ();
|
||||||
|
|
||||||
@@ -18,10 +19,14 @@ fun layout () {
|
|||||||
global.layout_width = Window.GetWidth ();
|
global.layout_width = Window.GetWidth ();
|
||||||
global.layout_height = Window.GetHeight ();
|
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.image = Image.Text ("fluffy-pancake", 1, 1, 1);
|
||||||
title.sprite.SetImage (title.image);
|
title.sprite.SetImage (title.image);
|
||||||
title.sprite.SetPosition (global.layout_width / 2 - title.image.GetWidth () / 2,
|
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);
|
status.sprite.SetPosition (10, global.layout_height - 40, 10000);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in new issue
Block a user