Fix image clipping in Plymouth theme 🐛

This commit is contained in:
Daniel Thwaites 2022-11-17 19:04:28 +00:00
parent a435af7907
commit e634069a2b
No known key found for this signature in database
GPG key ID: D8AFC4BF05670F9D
2 changed files with 4 additions and 2 deletions

View file

@ -9,8 +9,11 @@ let
mkdir -p $themeDir
# Convert in case the input image is not PNG
# A transparent border of 42% ensures that the image is not clipped when rotated
${pkgs.imagemagick}/bin/convert \
-background transparent \
-bordercolor transparent \
-border 42% \
${config.stylix.targets.plymouth.logo} \
$themeDir/logo.png

View file

@ -1,5 +1,6 @@
center_x = Window.GetWidth() / 2;
center_y = Window.GetHeight() / 2;
baseline_y = Window.GetHeight() * 0.9;
### BACKGROUND ###
@ -18,8 +19,6 @@ logo.sprite.SetPosition(
1
);
baseline_y = center_y + logo.image.GetHeight();
logo.spinner_active = 1;
logo.spinner_third = 0;
logo.spinner_index = 0;