Merge pull request #18 from axelrindle/master

Added info on how to display the distro logo
This commit is contained in:
Aditya Shakya 2023-08-22 17:03:07 +05:30 committed by GitHub
commit 4c01913df7
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 20 additions and 0 deletions

View file

@ -209,6 +209,26 @@ Red Loader|Splash
</details>
### Display distro logo
Copy the logo file to the theme folder (e.g. `/usr/share/plymouth/themes/colorful_loop`) and then add the following content to the theme's `.script` file (e.g. `/usr/share/plymouth/themes/colorful_loop/colorful_loop.script`):
```
# display ubuntu logo
ubuntu_image = Image("ubuntu-logo.png"); # change filename accordingly
ubuntu_sprite = Sprite();
ubuntu_sprite.SetImage(ubuntu_image);
ubuntu_sprite.SetX(Window.GetX() + (Window.GetWidth() / 2 - ubuntu_image.GetWidth() / 2)); # center the image horizontally
ubuntu_sprite.SetY(Window.GetHeight() - ubuntu_image.GetHeight() - 50); # display just above the bottom of the screen
```
You can display whatever image you want and even add more.
The given example looks like the following when applied (`rog_2` theme used):
![ubuntu-logo-preview](ubuntu-logo-preview.png)
### FYI
+ Created and tested on machine with 1366x768 resolution.
+ Yeah, that's how *quarantine* going on :grin:.

BIN
ubuntu-logo-preview.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 119 KiB