summaryrefslogtreecommitdiff
path: root/plymouth-assets
diff options
context:
space:
mode:
Diffstat (limited to 'plymouth-assets')
-rw-r--r--plymouth-assets/generate_text_assets.py15
-rw-r--r--plymouth-assets/raveos-installed.script4
-rw-r--r--plymouth-assets/raveos.script8
3 files changed, 5 insertions, 22 deletions
diff --git a/plymouth-assets/generate_text_assets.py b/plymouth-assets/generate_text_assets.py
index 1b6ee4a..068e2e0 100644
--- a/plymouth-assets/generate_text_assets.py
+++ b/plymouth-assets/generate_text_assets.py
@@ -1,23 +1,18 @@
#!/usr/bin/env python3
-"""Wordmark + tagline + status PNG-k generalasa a Plymouth temahoz.
-Placeholder fontokkal (nincs Bebas Neue a rendszeren): Noto Sans Condensed
-ExtraBold a wordmarkhoz, Ubuntu Mono a tagline/status szoveghez.
-"""
from PIL import Image, ImageDraw, ImageFont
-SCALE = 3 # 3x render, majd a Plymouth script kicsinyiti - crisp marad
+SCALE = 3
WORDMARK_FONT = "/usr/share/fonts/noto/NotoSans-CondensedExtraBold.ttf"
MONO_FONT = "/usr/share/fonts/ubuntu/Ubuntu-B.ttf"
MONO_FONT_REGULAR = "/usr/share/fonts/ubuntu/Ubuntu-R.ttf"
-RAVE_COLOR = (232, 232, 230, 255) # #e8e8e6
-OS_COLOR = (98, 160, 82, 255) # #62a052
-MUTED_COLOR = (122, 125, 130, 255) # #7a7d82
+RAVE_COLOR = (232, 232, 230, 255)
+OS_COLOR = (98, 160, 82, 255)
+MUTED_COLOR = (122, 125, 130, 255)
def draw_tracked_text(draw, xy, text, font, fill, tracking):
- """Szoveg rajzolasa kezi betukoz-nyujtassal (PIL-nek nincs natix tracking)."""
x, y = xy
for ch in text:
draw.text((x, y), ch, font=font, fill=fill)
@@ -41,7 +36,7 @@ def make_wordmark():
d = ImageDraw.Draw(tmp)
w_rave = measure_tracked(d, "RAVE", font, tracking)
w_os = measure_tracked(d, "OS", font, tracking)
- gap = tracking # a ket szo kozott is annyi hely mint a betukoz
+ gap = tracking
total_w = int(w_rave + gap + w_os) + 20
ascent, descent = font.getmetrics()
total_h = ascent + descent + 10
diff --git a/plymouth-assets/raveos-installed.script b/plymouth-assets/raveos-installed.script
index 90ee177..0ba695a 100644
--- a/plymouth-assets/raveos-installed.script
+++ b/plymouth-assets/raveos-installed.script
@@ -1,4 +1,3 @@
-// RaveOS Plymouth boot splash script (installed system)
Window.SetBackgroundTopColor(0.102, 0.106, 0.114);
Window.SetBackgroundBottomColor(0.075, 0.078, 0.086);
@@ -6,7 +5,6 @@ Window.SetBackgroundBottomColor(0.075, 0.078, 0.086);
screen_width = Window.GetWidth();
screen_height = Window.GetHeight();
-// --- logo: owl icon, centered ---
owl_image = Image("raveos-owl.png");
owl_width = owl_image.GetWidth();
@@ -23,7 +21,6 @@ owl_x = screen_width / 2 - owl_width / 2;
owl_y = screen_height / 2 - owl_height / 2 - 20;
owl_sprite.SetPosition(owl_x, owl_y, 10);
-// --- status text: single static message ---
status_image = Image("status-installed.png");
status_scale = 0.5;
@@ -38,7 +35,6 @@ Plymouth.SetBootProgressFunction(fun(duration, progress)
{
});
-// --- password prompt (LUKS unlock) ---
fun display_password_callback(prompt, bullets)
{
diff --git a/plymouth-assets/raveos.script b/plymouth-assets/raveos.script
index 70ee581..e92e3c4 100644
--- a/plymouth-assets/raveos.script
+++ b/plymouth-assets/raveos.script
@@ -1,4 +1,3 @@
-// RaveOS Plymouth boot splash script (live install medium)
Window.SetBackgroundTopColor(0.102, 0.106, 0.114);
Window.SetBackgroundBottomColor(0.075, 0.078, 0.086);
@@ -6,7 +5,6 @@ Window.SetBackgroundBottomColor(0.075, 0.078, 0.086);
screen_width = Window.GetWidth();
screen_height = Window.GetHeight();
-// --- logo: owl icon, centered ---
owl_image = Image("raveos-owl.png");
owl_width = owl_image.GetWidth();
@@ -23,7 +21,6 @@ owl_x = screen_width / 2 - owl_width / 2;
owl_y = screen_height / 2 - owl_height / 2 - 20;
owl_sprite.SetPosition(owl_x, owl_y, 10);
-// --- status text: pre-rendered PNG cycling by boot progress ---
status_count = 6;
status_images[0] = Image("status-01.png");
@@ -40,7 +37,6 @@ status_y = owl_y + owl_height + 40;
seconds_per_stage = 1.2;
-// --- progress dots ---
dot_lit_image = Image("dot-lit.png");
dot_dim_image = Image("dot-dim.png");
@@ -86,16 +82,12 @@ fun update_status(index)
update_status(0);
-# "duration" a valos eltelt masodperc a boot ota - ez mindig pontos,
-# ellentetben a "progress" becslessel (ami elozo boot-idomeresre tamaszkodik,
-# es elso/friss elo boot-nal megbizhatatlan / gyakorlatilag 0-n ragad).
Plymouth.SetBootProgressFunction(fun(duration, progress)
{
index = Math.Int(duration / seconds_per_stage);
update_status(index);
});
-// --- password prompt (LUKS unlock) ---
fun display_password_callback(prompt, bullets)
{