Fix image clipping in Plymouth theme 🐛
This commit is contained in:
parent
a435af7907
commit
e634069a2b
2 changed files with 4 additions and 2 deletions
|
|
@ -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
|
||||
|
||||
|
|
|
|||
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue