From 4d607d0a9e6ef94a250bbf3d6d8f680dff049397 Mon Sep 17 00:00:00 2001 From: max Date: Sun, 27 Sep 2026 18:01:25 +0200 Subject: [PATCH] Add vector color swatches and update asset generator --- LOGAR-LICENSING | 2 +- assets/swatches/swatch_0072ff.svg | 1 + assets/swatches/swatch_00e5ff.svg | 1 + assets/swatches/swatch_00ffa3.svg | 1 + assets/swatches/swatch_070c18.svg | 1 + assets/swatches/swatch_0e1a2e.svg | 1 + assets/swatches/swatch_94a3b8.svg | 1 + assets/swatches/swatch_ef4444.svg | 1 + assets/swatches/swatch_f59e0b.svg | 1 + assets/swatches/swatch_ffffff.svg | 1 + compilation/assets/swatches/swatch_0072ff.svg | 1 + compilation/assets/swatches/swatch_00e5ff.svg | 1 + compilation/assets/swatches/swatch_00ffa3.svg | 1 + compilation/assets/swatches/swatch_070c18.svg | 1 + compilation/assets/swatches/swatch_0e1a2e.svg | 1 + compilation/assets/swatches/swatch_94a3b8.svg | 1 + compilation/assets/swatches/swatch_ef4444.svg | 1 + compilation/assets/swatches/swatch_f59e0b.svg | 1 + compilation/assets/swatches/swatch_ffffff.svg | 1 + compilation/generate_branding_assets.py | 27 ++++++++++++++++++- 20 files changed, 45 insertions(+), 2 deletions(-) create mode 100644 assets/swatches/swatch_0072ff.svg create mode 100644 assets/swatches/swatch_00e5ff.svg create mode 100644 assets/swatches/swatch_00ffa3.svg create mode 100644 assets/swatches/swatch_070c18.svg create mode 100644 assets/swatches/swatch_0e1a2e.svg create mode 100644 assets/swatches/swatch_94a3b8.svg create mode 100644 assets/swatches/swatch_ef4444.svg create mode 100644 assets/swatches/swatch_f59e0b.svg create mode 100644 assets/swatches/swatch_ffffff.svg create mode 100644 compilation/assets/swatches/swatch_0072ff.svg create mode 100644 compilation/assets/swatches/swatch_00e5ff.svg create mode 100644 compilation/assets/swatches/swatch_00ffa3.svg create mode 100644 compilation/assets/swatches/swatch_070c18.svg create mode 100644 compilation/assets/swatches/swatch_0e1a2e.svg create mode 100644 compilation/assets/swatches/swatch_94a3b8.svg create mode 100644 compilation/assets/swatches/swatch_ef4444.svg create mode 100644 compilation/assets/swatches/swatch_f59e0b.svg create mode 100644 compilation/assets/swatches/swatch_ffffff.svg diff --git a/LOGAR-LICENSING b/LOGAR-LICENSING index 126e511..1519f6c 160000 --- a/LOGAR-LICENSING +++ b/LOGAR-LICENSING @@ -1 +1 @@ -Subproject commit 126e511e1dd9e7a89dfea9902bb7e59e867b839a +Subproject commit 1519f6c17f05bae7851b98cccd12c5a89da92204 diff --git a/assets/swatches/swatch_0072ff.svg b/assets/swatches/swatch_0072ff.svg new file mode 100644 index 0000000..e38a1c1 --- /dev/null +++ b/assets/swatches/swatch_0072ff.svg @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/assets/swatches/swatch_00e5ff.svg b/assets/swatches/swatch_00e5ff.svg new file mode 100644 index 0000000..002958c --- /dev/null +++ b/assets/swatches/swatch_00e5ff.svg @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/assets/swatches/swatch_00ffa3.svg b/assets/swatches/swatch_00ffa3.svg new file mode 100644 index 0000000..8a3fc31 --- /dev/null +++ b/assets/swatches/swatch_00ffa3.svg @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/assets/swatches/swatch_070c18.svg b/assets/swatches/swatch_070c18.svg new file mode 100644 index 0000000..e0d0103 --- /dev/null +++ b/assets/swatches/swatch_070c18.svg @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/assets/swatches/swatch_0e1a2e.svg b/assets/swatches/swatch_0e1a2e.svg new file mode 100644 index 0000000..5170520 --- /dev/null +++ b/assets/swatches/swatch_0e1a2e.svg @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/assets/swatches/swatch_94a3b8.svg b/assets/swatches/swatch_94a3b8.svg new file mode 100644 index 0000000..e2ef4df --- /dev/null +++ b/assets/swatches/swatch_94a3b8.svg @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/assets/swatches/swatch_ef4444.svg b/assets/swatches/swatch_ef4444.svg new file mode 100644 index 0000000..314c288 --- /dev/null +++ b/assets/swatches/swatch_ef4444.svg @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/assets/swatches/swatch_f59e0b.svg b/assets/swatches/swatch_f59e0b.svg new file mode 100644 index 0000000..7ce2568 --- /dev/null +++ b/assets/swatches/swatch_f59e0b.svg @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/assets/swatches/swatch_ffffff.svg b/assets/swatches/swatch_ffffff.svg new file mode 100644 index 0000000..fd51f3e --- /dev/null +++ b/assets/swatches/swatch_ffffff.svg @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/compilation/assets/swatches/swatch_0072ff.svg b/compilation/assets/swatches/swatch_0072ff.svg new file mode 100644 index 0000000..e38a1c1 --- /dev/null +++ b/compilation/assets/swatches/swatch_0072ff.svg @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/compilation/assets/swatches/swatch_00e5ff.svg b/compilation/assets/swatches/swatch_00e5ff.svg new file mode 100644 index 0000000..002958c --- /dev/null +++ b/compilation/assets/swatches/swatch_00e5ff.svg @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/compilation/assets/swatches/swatch_00ffa3.svg b/compilation/assets/swatches/swatch_00ffa3.svg new file mode 100644 index 0000000..8a3fc31 --- /dev/null +++ b/compilation/assets/swatches/swatch_00ffa3.svg @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/compilation/assets/swatches/swatch_070c18.svg b/compilation/assets/swatches/swatch_070c18.svg new file mode 100644 index 0000000..e0d0103 --- /dev/null +++ b/compilation/assets/swatches/swatch_070c18.svg @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/compilation/assets/swatches/swatch_0e1a2e.svg b/compilation/assets/swatches/swatch_0e1a2e.svg new file mode 100644 index 0000000..5170520 --- /dev/null +++ b/compilation/assets/swatches/swatch_0e1a2e.svg @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/compilation/assets/swatches/swatch_94a3b8.svg b/compilation/assets/swatches/swatch_94a3b8.svg new file mode 100644 index 0000000..e2ef4df --- /dev/null +++ b/compilation/assets/swatches/swatch_94a3b8.svg @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/compilation/assets/swatches/swatch_ef4444.svg b/compilation/assets/swatches/swatch_ef4444.svg new file mode 100644 index 0000000..314c288 --- /dev/null +++ b/compilation/assets/swatches/swatch_ef4444.svg @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/compilation/assets/swatches/swatch_f59e0b.svg b/compilation/assets/swatches/swatch_f59e0b.svg new file mode 100644 index 0000000..7ce2568 --- /dev/null +++ b/compilation/assets/swatches/swatch_f59e0b.svg @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/compilation/assets/swatches/swatch_ffffff.svg b/compilation/assets/swatches/swatch_ffffff.svg new file mode 100644 index 0000000..fd51f3e --- /dev/null +++ b/compilation/assets/swatches/swatch_ffffff.svg @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/compilation/generate_branding_assets.py b/compilation/generate_branding_assets.py index dfa0441..14555d3 100644 --- a/compilation/generate_branding_assets.py +++ b/compilation/generate_branding_assets.py @@ -400,8 +400,33 @@ def main(): small_bmp_data = create_bmp_24bit(55, 55, draw_wizard_small_bgr) sidebar_bmp_data = create_bmp_24bit(164, 314, draw_wizard_sidebar_bgr) - # 5. Write to target directories + # 5. Generate Palette Swatch SVGs + swatches = { + "00e5ff": "#00E5FF", + "00ffa3": "#00FFA3", + "0072ff": "#0072FF", + "0e1a2e": "#0E1A2E", + "070c18": "#070C18", + "ef4444": "#EF4444", + "f59e0b": "#F59E0B", + "94a3b8": "#94A3B8", + "ffffff": "#FFFFFF", + } + swatch_svgs = {} + for name, hex_code in swatches.items(): + border = "#334155" if hex_code.upper() != "#070C18" else "#1e293b" + swatch_svgs[name] = f'' + + # 6. Write to target directories for target_dir in (ROOT_ASSETS_DIR, COMPILATION_ASSETS_DIR, LICENSING_ASSETS_DIR): + swatch_dir = os.path.join(target_dir, "swatches") + os.makedirs(swatch_dir, exist_ok=True) + + # Swatches + for name, svg_content in swatch_svgs.items(): + with open(os.path.join(swatch_dir, f"swatch_{name}.svg"), "w", encoding="utf-8") as f: + f.write(svg_content) + # SVGs with open(os.path.join(target_dir, "logo.svg"), "w", encoding="utf-8") as f: f.write(svg_logo_dark)