From e8fb93649bbceb314c691493dbc1cda2e7a0ffa6 Mon Sep 17 00:00:00 2001 From: Nippy Date: Sat, 18 Jul 2026 09:31:11 +0200 Subject: new btrfs --- plymouth-assets/dot-dim.png | Bin 0 -> 178 bytes plymouth-assets/dot-lit.png | Bin 0 -> 178 bytes plymouth-assets/generate_text_assets.py | 114 +++++++++++++ plymouth-assets/preview.html | 278 ++++++++++++++++++++++++++++++++ plymouth-assets/raveos-installed.script | 70 ++++++++ plymouth-assets/raveos-owl.png | Bin 0 -> 302684 bytes plymouth-assets/raveos.plymouth | 8 + plymouth-assets/raveos.script | 127 +++++++++++++++ plymouth-assets/status-01.png | Bin 0 -> 1809 bytes plymouth-assets/status-02.png | Bin 0 -> 3811 bytes plymouth-assets/status-03.png | Bin 0 -> 3481 bytes plymouth-assets/status-04.png | Bin 0 -> 3465 bytes plymouth-assets/status-05.png | Bin 0 -> 3639 bytes plymouth-assets/status-06.png | Bin 0 -> 2462 bytes plymouth-assets/status-installed.png | Bin 0 -> 3684 bytes plymouth-assets/tagline.png | Bin 0 -> 8392 bytes plymouth-assets/wordmark.png | Bin 0 -> 8800 bytes 17 files changed, 597 insertions(+) create mode 100644 plymouth-assets/dot-dim.png create mode 100644 plymouth-assets/dot-lit.png create mode 100644 plymouth-assets/generate_text_assets.py create mode 100644 plymouth-assets/preview.html create mode 100644 plymouth-assets/raveos-installed.script create mode 100644 plymouth-assets/raveos-owl.png create mode 100644 plymouth-assets/raveos.plymouth create mode 100644 plymouth-assets/raveos.script create mode 100644 plymouth-assets/status-01.png create mode 100644 plymouth-assets/status-02.png create mode 100644 plymouth-assets/status-03.png create mode 100644 plymouth-assets/status-04.png create mode 100644 plymouth-assets/status-05.png create mode 100644 plymouth-assets/status-06.png create mode 100644 plymouth-assets/status-installed.png create mode 100644 plymouth-assets/tagline.png create mode 100644 plymouth-assets/wordmark.png (limited to 'plymouth-assets') diff --git a/plymouth-assets/dot-dim.png b/plymouth-assets/dot-dim.png new file mode 100644 index 0000000..f95ae69 Binary files /dev/null and b/plymouth-assets/dot-dim.png differ diff --git a/plymouth-assets/dot-lit.png b/plymouth-assets/dot-lit.png new file mode 100644 index 0000000..a429367 Binary files /dev/null and b/plymouth-assets/dot-lit.png differ diff --git a/plymouth-assets/generate_text_assets.py b/plymouth-assets/generate_text_assets.py new file mode 100644 index 0000000..1b6ee4a --- /dev/null +++ b/plymouth-assets/generate_text_assets.py @@ -0,0 +1,114 @@ +#!/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 + +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 + + +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) + w = draw.textlength(ch, font=font) + x += w + tracking + + +def measure_tracked(draw, text, font, tracking): + total = 0 + for ch in text: + total += draw.textlength(ch, font=font) + tracking + return total - tracking if text else 0 + + +def make_wordmark(): + font_size = 46 * SCALE + tracking = 4 * SCALE + font = ImageFont.truetype(WORDMARK_FONT, font_size) + + tmp = Image.new("RGBA", (10, 10)) + 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 + total_w = int(w_rave + gap + w_os) + 20 + ascent, descent = font.getmetrics() + total_h = ascent + descent + 10 + + img = Image.new("RGBA", (total_w, total_h), (0, 0, 0, 0)) + d = ImageDraw.Draw(img) + draw_tracked_text(d, (10, 5), "RAVE", font, RAVE_COLOR, tracking) + draw_tracked_text(d, (10 + w_rave + gap, 5), "OS", font, OS_COLOR, tracking) + + bbox = img.getbbox() + img = img.crop(bbox) + img.save("wordmark.png") + print("wordmark.png", img.size) + + +def make_tagline(): + font_size = 13 * SCALE + tracking = 1 * SCALE + font = ImageFont.truetype(MONO_FONT_REGULAR, font_size) + text = "RAVEOS FINOMHANGOLÁS, KULCSRA KÉSZ ÁLLAPOT!" + + tmp = Image.new("RGBA", (10, 10)) + d = ImageDraw.Draw(tmp) + w = measure_tracked(d, text, font, tracking) + ascent, descent = font.getmetrics() + h = ascent + descent + 6 + + img = Image.new("RGBA", (int(w) + 10, h), (0, 0, 0, 0)) + d = ImageDraw.Draw(img) + draw_tracked_text(d, (5, 3), text, font, MUTED_COLOR, tracking) + bbox = img.getbbox() + img = img.crop(bbox) if bbox else img + img.save("tagline.png") + print("tagline.png", img.size) + + +def make_status_stage(name, text): + font_size = 11 * SCALE + tracking = 1 * SCALE + font = ImageFont.truetype(MONO_FONT_REGULAR, font_size) + + tmp = Image.new("RGBA", (10, 10)) + d = ImageDraw.Draw(tmp) + w = measure_tracked(d, text, font, tracking) + ascent, descent = font.getmetrics() + h = ascent + descent + 6 + + img = Image.new("RGBA", (int(w) + 10, h), (0, 0, 0, 0)) + d = ImageDraw.Draw(img) + draw_tracked_text(d, (5, 3), text, font, MUTED_COLOR, tracking) + bbox = img.getbbox() + img = img.crop(bbox) if bbox else img + img.save(f"status-{name}.png") + print(f"status-{name}.png", img.size) + + +STAGES = [ + ("01", "starting..."), + ("02", "loading kernel modules..."), + ("03", "mounting filesystems..."), + ("04", "starting network..."), + ("05", "preparing live environment..."), + ("06", "almost there..."), +] + +if __name__ == "__main__": + make_wordmark() + make_tagline() + for name, text in STAGES: + make_status_stage(name, text) diff --git a/plymouth-assets/preview.html b/plymouth-assets/preview.html new file mode 100644 index 0000000..6fa4faf --- /dev/null +++ b/plymouth-assets/preview.html @@ -0,0 +1,278 @@ +RaveOS Boot Splash — Preview + + +
+

RaveOS boot splash — élő előnézet

+

Ez pontosan azt a réteg-elrendezést szimulálja, amit a raveos.script Plymouth-szkript csinál: a logó középen, alatta a boot-fázis szövege, ami a haladással változik.

+
+ +
+
+
+ RaveOS owl +
+
+ status +
+
+ +
+
+
+ +
+
+ + + 0% + +
+
+ +
+ Megjegyzés: csak a raveos-icon2.png (480×480, teljes kép, az "OS" felirattal együtt, változatlanul) látszik, semmi más szöveg/wordmark mellette. A 6 boot-fázis üzenet még placeholder — szólj mi legyen a végleges szöveg. +
+ + diff --git a/plymouth-assets/raveos-installed.script b/plymouth-assets/raveos-installed.script new file mode 100644 index 0000000..90ee177 --- /dev/null +++ b/plymouth-assets/raveos-installed.script @@ -0,0 +1,70 @@ +// RaveOS Plymouth boot splash script (installed system) + +Window.SetBackgroundTopColor(0.102, 0.106, 0.114); +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(); +owl_height = owl_image.GetHeight(); + +logo_scale = 0.36; +owl_width = owl_width * logo_scale; +owl_height = owl_height * logo_scale; +owl_image = owl_image.Scale(owl_width, owl_height); + +owl_sprite = Sprite(owl_image); + +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; +status_image = status_image.Scale(status_image.GetWidth() * status_scale, + status_image.GetHeight() * status_scale); +status_sprite = Sprite(status_image); +status_sprite.SetX(screen_width / 2 - status_image.GetWidth() / 2); +status_sprite.SetY(owl_y + owl_height + 40); +status_sprite.SetZ(10); + +Plymouth.SetBootProgressFunction(fun(duration, progress) +{ +}); + +// --- password prompt (LUKS unlock) --- + +fun display_password_callback(prompt, bullets) +{ + local.text = prompt; + if (local.text == "") + local.text = "Enter passphrase to unlock disk"; + + prompt_image = Image.Text(local.text, 0.9, 0.9, 0.9, 1, "Ubuntu Mono 11"); + bullets_image = Image.Text(bullets, 0.36, 0.66, 0.32, 1, "Ubuntu Mono 11"); + + prompt_sprite = Sprite(prompt_image); + bullets_sprite = Sprite(bullets_image); + + prompt_sprite.SetPosition(screen_width / 2 - prompt_image.GetWidth() / 2, + screen_height / 2 + 80, 20); + bullets_sprite.SetPosition(screen_width / 2 - bullets_image.GetWidth() / 2, + screen_height / 2 + 110, 20); +} +Plymouth.SetDisplayPasswordFunction(display_password_callback); + +fun display_normal_callback() +{ +} +Plymouth.SetDisplayNormalFunction(display_normal_callback); + +fun quit_callback() +{ +} +Plymouth.SetQuitFunction(quit_callback); diff --git a/plymouth-assets/raveos-owl.png b/plymouth-assets/raveos-owl.png new file mode 100644 index 0000000..9903765 Binary files /dev/null and b/plymouth-assets/raveos-owl.png differ diff --git a/plymouth-assets/raveos.plymouth b/plymouth-assets/raveos.plymouth new file mode 100644 index 0000000..478b7f0 --- /dev/null +++ b/plymouth-assets/raveos.plymouth @@ -0,0 +1,8 @@ +[Plymouth Theme] +Name=RaveOS +Description=RaveOS boot splash +ModuleName=script + +[script] +ImageDir=/usr/share/plymouth/themes/raveos +ScriptFile=/usr/share/plymouth/themes/raveos/raveos.script diff --git a/plymouth-assets/raveos.script b/plymouth-assets/raveos.script new file mode 100644 index 0000000..70ee581 --- /dev/null +++ b/plymouth-assets/raveos.script @@ -0,0 +1,127 @@ +// RaveOS Plymouth boot splash script (live install medium) + +Window.SetBackgroundTopColor(0.102, 0.106, 0.114); +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(); +owl_height = owl_image.GetHeight(); + +logo_scale = 0.36; +owl_width = owl_width * logo_scale; +owl_height = owl_height * logo_scale; +owl_image = owl_image.Scale(owl_width, owl_height); + +owl_sprite = Sprite(owl_image); + +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"); +status_images[1] = Image("status-02.png"); +status_images[2] = Image("status-03.png"); +status_images[3] = Image("status-04.png"); +status_images[4] = Image("status-05.png"); +status_images[5] = Image("status-06.png"); + +status_sprite = Sprite(); +status_sprite.SetZ(10); +status_scale = 0.5; +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"); +dot_scale = 0.35; +dot_size = dot_lit_image.GetWidth() * dot_scale; +dot_gap = 10; +dots_width = status_count * dot_size + (status_count - 1) * dot_gap; +dots_y = status_y + 34; + +for (i = 0; i < status_count; i++) +{ + dot_sprites[i] = Sprite(); + dot_sprites[i].SetZ(10); + dot_sprites[i].SetX(screen_width / 2 - dots_width / 2 + i * (dot_size + dot_gap)); + dot_sprites[i].SetY(dots_y); +} + +fun update_dots(index) +{ + for (i = 0; i < status_count; i++) + { + if (i <= index) + img = dot_lit_image.Scale(dot_size, dot_size); + else + img = dot_dim_image.Scale(dot_size, dot_size); + dot_sprites[i].SetImage(img); + } +} + +fun update_status(index) +{ + if (index >= status_count) + index = status_count - 1; + + img = status_images[index].Scale(status_images[index].GetWidth() * status_scale, + status_images[index].GetHeight() * status_scale); + status_sprite.SetImage(img); + status_sprite.SetX(screen_width / 2 - img.GetWidth() / 2); + status_sprite.SetY(status_y); + + update_dots(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) +{ + local.text = prompt; + if (local.text == "") + local.text = "Enter passphrase to unlock disk"; + + prompt_image = Image.Text(local.text, 0.9, 0.9, 0.9, 1, "Ubuntu Mono 11"); + bullets_image = Image.Text(bullets, 0.36, 0.66, 0.32, 1, "Ubuntu Mono 11"); + + prompt_sprite = Sprite(prompt_image); + bullets_sprite = Sprite(bullets_image); + + prompt_sprite.SetPosition(screen_width / 2 - prompt_image.GetWidth() / 2, + screen_height / 2 + 80, 20); + bullets_sprite.SetPosition(screen_width / 2 - bullets_image.GetWidth() / 2, + screen_height / 2 + 110, 20); +} +Plymouth.SetDisplayPasswordFunction(display_password_callback); + +fun display_normal_callback() +{ +} +Plymouth.SetDisplayNormalFunction(display_normal_callback); + +fun quit_callback() +{ +} +Plymouth.SetQuitFunction(quit_callback); diff --git a/plymouth-assets/status-01.png b/plymouth-assets/status-01.png new file mode 100644 index 0000000..734fd58 Binary files /dev/null and b/plymouth-assets/status-01.png differ diff --git a/plymouth-assets/status-02.png b/plymouth-assets/status-02.png new file mode 100644 index 0000000..338a3e1 Binary files /dev/null and b/plymouth-assets/status-02.png differ diff --git a/plymouth-assets/status-03.png b/plymouth-assets/status-03.png new file mode 100644 index 0000000..14ec3e6 Binary files /dev/null and b/plymouth-assets/status-03.png differ diff --git a/plymouth-assets/status-04.png b/plymouth-assets/status-04.png new file mode 100644 index 0000000..11b3d6a Binary files /dev/null and b/plymouth-assets/status-04.png differ diff --git a/plymouth-assets/status-05.png b/plymouth-assets/status-05.png new file mode 100644 index 0000000..b515bec Binary files /dev/null and b/plymouth-assets/status-05.png differ diff --git a/plymouth-assets/status-06.png b/plymouth-assets/status-06.png new file mode 100644 index 0000000..c801dc3 Binary files /dev/null and b/plymouth-assets/status-06.png differ diff --git a/plymouth-assets/status-installed.png b/plymouth-assets/status-installed.png new file mode 100644 index 0000000..216ff34 Binary files /dev/null and b/plymouth-assets/status-installed.png differ diff --git a/plymouth-assets/tagline.png b/plymouth-assets/tagline.png new file mode 100644 index 0000000..1901621 Binary files /dev/null and b/plymouth-assets/tagline.png differ diff --git a/plymouth-assets/wordmark.png b/plymouth-assets/wordmark.png new file mode 100644 index 0000000..c6f1964 Binary files /dev/null and b/plymouth-assets/wordmark.png differ -- cgit v1.3