- Replace the static moon with a 64-frame lunar phase spritesheet, generated by boot/plymouth/render-phases.py and advanced about every 0.3 s (~5 s per cycle) - Add a glow sprite behind the moon whose opacity follows the illuminated fraction - render.sh renders the glow SVG and the phase sheet (needs python3 with numpy and Pillow) - install-plymouth.py removes theme files that are no longer in the source theme, and checks for the new PNGs - Drop moon.svg and moon.png in favour of glow.svg, glow.png and moon-phases.png
This commit is contained in:
1 parent
4fd2641c80
commit
7501fc3ad9
11 files changed
+212
-34
No files matched your search
@@ -24,7 +24,9 @@ marker = "# chandra boot splash"
|
||||
# ignore-serial-consoles: console=ttyMSM0 would otherwise make Plymouth fall back to text.
|
||||
cmdline = "quiet splash loglevel=3 plymouth.ignore-serial-consoles vt.global_cursor_default=0"
|
||||
needed = ["usr/bin/plymouthd", "usr/lib/plymouth/script.so", "usr/lib/plymouth/renderers/drm.so",
|
||||
"usr/share/plymouth/themes/chandra/chandra.script", "usr/share/plymouth/themes/chandra/moon.png",
|
||||
"usr/share/plymouth/themes/chandra/chandra.script",
|
||||
"usr/share/plymouth/themes/chandra/glow.png",
|
||||
"usr/share/plymouth/themes/chandra/moon-phases.png",
|
||||
"hooks/plymouth", "hooks/rootfsdetect", "hooks/rootfsresize", "etc/kupfer/deviceinfo",
|
||||
"a630_sqe.fw", "a630_gmu.bin", "a630_zap.mbn"]
|
||||
|
||||
@@ -104,6 +106,14 @@ def install_package(package):
|
||||
|
||||
def configure():
|
||||
shutil.copytree(theme_src, theme_dst, dirs_exist_ok=True)
|
||||
expected = set(os.listdir(theme_src))
|
||||
for name in os.listdir(theme_dst):
|
||||
if name not in expected:
|
||||
path = os.path.join(theme_dst, name)
|
||||
if os.path.isdir(path) and not os.path.islink(path):
|
||||
shutil.rmtree(path)
|
||||
else:
|
||||
os.remove(path)
|
||||
for f in glob.glob(theme_dst + "/*"):
|
||||
os.chmod(f, 0o644)
|
||||
write(daemon_conf, "[Daemon]\nTheme=chandra\nShowDelay=0\nDeviceTimeout=8\n")
|
||||
|
||||
Reference in new issue
Block a user