今天我決定從 Ubuntu 20.10 更新到 Ubuntu 21.04,關機時我注意到的第一件事是我的啟動畫面移至右下角,如下圖所示。我已經看過/usr/share/plymouth/themes/ubuntu-logo/ubuntu-logo.script
文件了,看起來沒問題。它計算圖片位置的部分對我來說也看起來不錯。
logo.image = Image (logo_filename);
logo.sprite = Sprite ();
logo.sprite.SetImage (logo.image);
logo.width = logo.image.GetWidth ();
logo.height = logo.image.GetHeight ();
logo.x = Window.GetX () + Window.GetWidth () / 2 - logo.width / 2;
logo.y = Window.GetY () + Window.GetHeight () / 2 - logo.height;
logo.z = 1000;
logo.sprite.SetX (logo.x);
logo.sprite.SetY (logo.y);
logo.sprite.SetZ (logo.z);
logo.sprite.SetOpacity (1);
我對啟動畫面(黑色背景和白/黑點)的修改也沒有任何問題。
Window.SetBackgroundTopColor (0.0, 0.0, 0.0); # Nice colour on top of the screen fading to
Window.SetBackgroundBottomColor (0.01, 0.01, 0.01); # an equally nice colour on the bottom
(我將/usr/share/plymouth/themes/ubuntu-logo/progress-dot-on.png
文件更改為完全透明。)
請幫幫我,謝謝。