Skip to content

Commit

Permalink
Merge pull request #18 from axelrindle/master
Browse files Browse the repository at this point in the history
Added info on how to display the distro logo
  • Loading branch information
adi1090x authored Aug 22, 2023
2 parents bf2f570 + 0aa18c5 commit 4c01913
Show file tree
Hide file tree
Showing 2 changed files with 20 additions and 0 deletions.
20 changes: 20 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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:.
Expand Down
Binary file added ubuntu-logo-preview.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

0 comments on commit 4c01913

Please sign in to comment.