This is an automated email from the git hooks/post-receive script.
git pushed a commit to branch main
in repository eclair.
View the commit online.
commit 91aa58ba098c631745ed7d4221d574240117d947
Author: Alastair Poole <[email protected]>
AuthorDate: Thu Dec 3 16:46:20 2026 +0000
theme: match midnight better.
---
data/images/previews/midnight.png | Bin 40536 -> 43807 bytes
data/themes/common/playlist-parts.edc | 4 ++++
data/themes/midnight/images/body.svg | 10 +++++++++-
data/themes/midnight/images/play_surface.svg | 2 +-
data/themes/midnight/images/player_surface.svg | 4 ++++
data/themes/midnight/images/playlist_box.svg | 7 ++++---
data/themes/midnight/images/repeat_off.svg | 2 +-
data/themes/midnight/images/repeat_on.svg | 2 +-
data/themes/midnight/images/shadow_body.png | Bin 0 -> 13594 bytes
data/themes/midnight/images/shuffle_off.svg | 2 +-
data/themes/midnight/images/shuffle_on.svg | 2 +-
data/themes/midnight/images/transport.svg | 2 +-
data/themes/midnight/images/ui_button.svg | 2 +-
data/themes/midnight/images/ui_check_off.svg | 2 +-
data/themes/midnight/images/ui_check_on.svg | 2 +-
data/themes/midnight/images/ui_hover.svg | 13 ++++++++++++-
data/themes/midnight/images/ui_pressed.svg | 13 ++++++++++++-
data/themes/midnight/images/ui_search.svg | 2 +-
data/themes/midnight/meson.build | 3 +++
data/themes/midnight/midnight.edc | 3 ++-
data/themes/nocturne/images/images.edc | 3 +++
src/bin/theme-shadows.py | 15 +++++++++++----
22 files changed, 74 insertions(+), 21 deletions(-)
diff --git a/data/images/previews/midnight.png b/data/images/previews/midnight.png
index 385e329..244ee69 100644
Binary files a/data/images/previews/midnight.png and b/data/images/previews/midnight.png differ
diff --git a/data/themes/common/playlist-parts.edc b/data/themes/common/playlist-parts.edc
index 273ccf4..d8a5817 100644
--- a/data/themes/common/playlist-parts.edc
+++ b/data/themes/common/playlist-parts.edc
@@ -5,7 +5,11 @@ part {
state: "default" 0.0; offset_scale: 1;
rel1 { to: "body"; }
rel2 { to_x: "body"; relative: 1 1; offset: -1 -29; }
+#ifdef PLAYER_SURFACE_IMAGE
+ image.normal: PLAYER_SURFACE_IMAGE;
+#else
image.normal: "body.svg";
+#endif
}
}
/* Artwork has its own permanent pane before the queue. */
diff --git a/data/themes/midnight/images/body.svg b/data/themes/midnight/images/body.svg
index 5718d31..5ce9ca9 100644
--- a/data/themes/midnight/images/body.svg
+++ b/data/themes/midnight/images/body.svg
@@ -1,3 +1,11 @@
<svg xmlns="http://www.w3.org/2000/svg" width="306" height="160" viewBox="0 0 306 160" preserveAspectRatio="none">
-<defs><linearGradient id="deck" x2=".8" y2="1"><stop stop-color="#1c263a"/><stop offset="1" stop-color="#131a2a"/></linearGradient></defs><rect x=".5" y=".5" width="305" height="159" fill="url(#deck)" stroke="#30415b"/><path d="M20 128H286" stroke="#30415b"/><path d="M20 1h110" stroke="#7bb1ff" stroke-width="2"/>
+ <defs>
+ <linearGradient id="deck" x2="0" y2="100%">
+ <stop stop-color="#21304a"/>
+ <stop offset="1" stop-color="#131a2a"/>
+ </linearGradient>
+ </defs>
+ <path d="M2 159V18A16 16 0 0 1 18 2H288A16 16 0 0 1 304 18V159Z" fill="url(#deck)"/>
+ <path d="M31 5h70" stroke="#7bb1ff" stroke-width="3" stroke-linecap="round"/>
+ <path d="M17 153H289" stroke="#30415b"/>
</svg>
diff --git a/data/themes/midnight/images/play_surface.svg b/data/themes/midnight/images/play_surface.svg
index 5dcf4ef..544585f 100644
--- a/data/themes/midnight/images/play_surface.svg
+++ b/data/themes/midnight/images/play_surface.svg
@@ -1,3 +1,3 @@
<svg xmlns="http://www.w3.org/2000/svg" width="48" height="48" viewBox="0 0 48 48" preserveAspectRatio="none">
-<defs><linearGradient id="play" x2="1" y2="1"><stop stop-color="#a8ccff"/><stop offset="1" stop-color="#7bb1ff"/></linearGradient></defs><rect x="1" y="1" width="46" height="46" fill="url(#play)" stroke="#a8ccff"/>
+<defs><linearGradient id="play" x2="1" y2="1"><stop stop-color="#a8ccff"/><stop offset="1" stop-color="#7bb1ff"/></linearGradient></defs><rect rx="11" x="1" y="1" width="46" height="46" fill="url(#play)" stroke="#a8ccff"/>
</svg>
diff --git a/data/themes/midnight/images/player_surface.svg b/data/themes/midnight/images/player_surface.svg
new file mode 100644
index 0000000..022d90f
--- /dev/null
+++ b/data/themes/midnight/images/player_surface.svg
@@ -0,0 +1,4 @@
+<svg xmlns="http://www.w3.org/2000/svg" width="306" height="568" viewBox="0 0 306 568" preserveAspectRatio="none">
+ <rect x="1" y="1" width="304" height="566" rx="17" fill="#131a2a" stroke="#30415b" stroke-width="2"/>
+ <path d="M31 5h70" stroke="#7bb1ff" stroke-width="3" stroke-linecap="round"/>
+</svg>
diff --git a/data/themes/midnight/images/playlist_box.svg b/data/themes/midnight/images/playlist_box.svg
index c51a1c2..341bcaf 100644
--- a/data/themes/midnight/images/playlist_box.svg
+++ b/data/themes/midnight/images/playlist_box.svg
@@ -1,4 +1,5 @@
-<svg xmlns="http://www.w3.org/2000/svg" width="241" height="123" viewBox="0 0 241 123" preserveAspectRatio="none">
-<defs><linearGradient id="surface" x1="0" y1="0" x2="0" y2="1"><stop stop-color="#1c263a"/><stop offset="1" stop-color="#131a2a"/></linearGradient></defs>
-<rect x=".5" y=".5" width="240" height="122" fill="#131a2a" stroke="#30415b"/><path d="M5 1.5H236" fill="none" stroke="#435875"/>
+<svg xmlns="http://www.w3.org/2000/svg" width="282" height="196" viewBox="0 0 282 196" preserveAspectRatio="none">
+ <rect x="1" y="2" width="280" height="193" rx="10" fill="#070c16" opacity=".6"/>
+ <rect x="1" y="1" width="280" height="191" rx="10" fill="#101727" stroke="#30415b"/>
+ <path d="M12 2h258" stroke="#435875" opacity=".55"/>
</svg>
diff --git a/data/themes/midnight/images/repeat_off.svg b/data/themes/midnight/images/repeat_off.svg
index 3369b13..fd4c6a0 100644
--- a/data/themes/midnight/images/repeat_off.svg
+++ b/data/themes/midnight/images/repeat_off.svg
@@ -1,4 +1,4 @@
<svg xmlns="http://www.w3.org/2000/svg" width="24" height="20" viewBox="0 0 24 20" preserveAspectRatio="none">
<defs><linearGradient id="surface" x1="0" y1="0" x2="0" y2="1"><stop stop-color="#1c263a"/><stop offset="1" stop-color="#131a2a"/></linearGradient></defs>
-<rect x=".5" y=".5" width="23" height="19" fill="url(#surface)" stroke="#30415b"/><path d="M5 9V8a3 3 0 0 1 3-3h10m-3-2 3 2-3 2M19 11v1a3 3 0 0 1-3 3H6m3-2-3 2 3 2" fill="none" stroke="#e0e9f8" stroke-width="1.25" stroke-linecap="round" stroke-linejoin="round"/>
+<rect rx="5" x=".5" y=".5" width="23" height="19" fill="url(#surface)" stroke="#30415b"/><path d="M5 9V8a3 3 0 0 1 3-3h10m-3-2 3 2-3 2M19 11v1a3 3 0 0 1-3 3H6m3-2-3 2 3 2" fill="none" stroke="#e0e9f8" stroke-width="1.25" stroke-linecap="round" stroke-linejoin="round"/>
</svg>
diff --git a/data/themes/midnight/images/repeat_on.svg b/data/themes/midnight/images/repeat_on.svg
index 9844730..6fc6db3 100644
--- a/data/themes/midnight/images/repeat_on.svg
+++ b/data/themes/midnight/images/repeat_on.svg
@@ -1,4 +1,4 @@
<svg xmlns="http://www.w3.org/2000/svg" width="24" height="20" viewBox="0 0 24 20" preserveAspectRatio="none">
<defs><linearGradient id="surface" x1="0" y1="0" x2="0" y2="1"><stop stop-color="#a8ccff"/><stop offset="1" stop-color="#7bb1ff"/></linearGradient></defs>
-<rect x=".5" y=".5" width="23" height="19" fill="url(#surface)" stroke="#7bb1ff"/><path d="M5 9V8a3 3 0 0 1 3-3h10m-3-2 3 2-3 2M19 11v1a3 3 0 0 1-3 3H6m3-2-3 2 3 2" fill="none" stroke="#131a2a" stroke-width="1.25" stroke-linecap="round" stroke-linejoin="round"/>
+<rect rx="5" x=".5" y=".5" width="23" height="19" fill="url(#surface)" stroke="#7bb1ff"/><path d="M5 9V8a3 3 0 0 1 3-3h10m-3-2 3 2-3 2M19 11v1a3 3 0 0 1-3 3H6m3-2-3 2 3 2" fill="none" stroke="#131a2a" stroke-width="1.25" stroke-linecap="round" stroke-linejoin="round"/>
</svg>
diff --git a/data/themes/midnight/images/shadow_body.png b/data/themes/midnight/images/shadow_body.png
new file mode 100644
index 0000000..0b0cfea
Binary files /dev/null and b/data/themes/midnight/images/shadow_body.png differ
diff --git a/data/themes/midnight/images/shuffle_off.svg b/data/themes/midnight/images/shuffle_off.svg
index 5feb8c0..0b1cccf 100644
--- a/data/themes/midnight/images/shuffle_off.svg
+++ b/data/themes/midnight/images/shuffle_off.svg
@@ -1,4 +1,4 @@
<svg xmlns="http://www.w3.org/2000/svg" width="24" height="20" viewBox="0 0 24 20" preserveAspectRatio="none">
<defs><linearGradient id="surface" x1="0" y1="0" x2="0" y2="1"><stop stop-color="#1c263a"/><stop offset="1" stop-color="#131a2a"/></linearGradient></defs>
-<rect x=".5" y=".5" width="23" height="19" fill="url(#surface)" stroke="#30415b"/><path d="M5 5h2c4 0 6 10 10 10h2m-3-3 3 3-3 3M5 15h2c1.5 0 2.8-1.6 4-4M13 7c1.2-1.4 2.5-2 4-2h2m-3-3 3 3-3 3" fill="none" stroke="#e0e9f8" stroke-width="1.25" stroke-linecap="round" stroke-linejoin="round"/>
+<rect rx="5" x=".5" y=".5" width="23" height="19" fill="url(#surface)" stroke="#30415b"/><path d="M5 5h2c4 0 6 10 10 10h2m-3-3 3 3-3 3M5 15h2c1.5 0 2.8-1.6 4-4M13 7c1.2-1.4 2.5-2 4-2h2m-3-3 3 3-3 3" fill="none" stroke="#e0e9f8" stroke-width="1.25" stroke-linecap="round" stroke-linejoin="round"/>
</svg>
diff --git a/data/themes/midnight/images/shuffle_on.svg b/data/themes/midnight/images/shuffle_on.svg
index dc1b91c..4aefa39 100644
--- a/data/themes/midnight/images/shuffle_on.svg
+++ b/data/themes/midnight/images/shuffle_on.svg
@@ -1,4 +1,4 @@
<svg xmlns="http://www.w3.org/2000/svg" width="24" height="20" viewBox="0 0 24 20" preserveAspectRatio="none">
<defs><linearGradient id="surface" x1="0" y1="0" x2="0" y2="1"><stop stop-color="#a8ccff"/><stop offset="1" stop-color="#7bb1ff"/></linearGradient></defs>
-<rect x=".5" y=".5" width="23" height="19" fill="url(#surface)" stroke="#7bb1ff"/><path d="M5 5h2c4 0 6 10 10 10h2m-3-3 3 3-3 3M5 15h2c1.5 0 2.8-1.6 4-4M13 7c1.2-1.4 2.5-2 4-2h2m-3-3 3 3-3 3" fill="none" stroke="#131a2a" stroke-width="1.25" stroke-linecap="round" stroke-linejoin="round"/>
+<rect rx="5" x=".5" y=".5" width="23" height="19" fill="url(#surface)" stroke="#7bb1ff"/><path d="M5 5h2c4 0 6 10 10 10h2m-3-3 3 3-3 3M5 15h2c1.5 0 2.8-1.6 4-4M13 7c1.2-1.4 2.5-2 4-2h2m-3-3 3 3-3 3" fill="none" stroke="#131a2a" stroke-width="1.25" stroke-linecap="round" stroke-linejoin="round"/>
</svg>
diff --git a/data/themes/midnight/images/transport.svg b/data/themes/midnight/images/transport.svg
index 039e4f8..b31ab81 100644
--- a/data/themes/midnight/images/transport.svg
+++ b/data/themes/midnight/images/transport.svg
@@ -1,3 +1,3 @@
<svg xmlns="http://www.w3.org/2000/svg" width="126" height="32" viewBox="0 0 126 32" preserveAspectRatio="none">
-<rect width="126" height="32" fill="#131a2a"/>
+<rect rx="8" width="126" height="32" fill="#131a2a"/>
</svg>
diff --git a/data/themes/midnight/images/ui_button.svg b/data/themes/midnight/images/ui_button.svg
index 0777a7a..fe65099 100644
--- a/data/themes/midnight/images/ui_button.svg
+++ b/data/themes/midnight/images/ui_button.svg
@@ -1 +1 @@
-<svg xmlns="http://www.w3.org/2000/svg" width="160" height="36" viewBox="0 0 160 36" preserveAspectRatio="none"><rect x=".5" y=".5" width="159" height="35" fill="#1c263a" stroke="#30415b"/></svg>
+<svg xmlns="http://www.w3.org/2000/svg" width="160" height="36" viewBox="0 0 160 36" preserveAspectRatio="none"><rect rx="6" x=".5" y=".5" width="159" height="35" fill="#1c263a" stroke="#30415b"/></svg>
diff --git a/data/themes/midnight/images/ui_check_off.svg b/data/themes/midnight/images/ui_check_off.svg
index 87cb7de..82d01bf 100644
--- a/data/themes/midnight/images/ui_check_off.svg
+++ b/data/themes/midnight/images/ui_check_off.svg
@@ -1 +1 @@
-<svg xmlns="http://www.w3.org/2000/svg" width="22" height="22" viewBox="0 0 22 22" preserveAspectRatio="none"><rect x="2.5" y="2.5" width="17" height="17" fill="#131a2a" stroke="#30415b"/></svg>
+<svg xmlns="http://www.w3.org/2000/svg" width="22" height="22" viewBox="0 0 22 22" preserveAspectRatio="none"><rect rx="4" x="2.5" y="2.5" width="17" height="17" fill="#131a2a" stroke="#30415b"/></svg>
diff --git a/data/themes/midnight/images/ui_check_on.svg b/data/themes/midnight/images/ui_check_on.svg
index b612336..ff47489 100644
--- a/data/themes/midnight/images/ui_check_on.svg
+++ b/data/themes/midnight/images/ui_check_on.svg
@@ -1 +1 @@
-<svg xmlns="http://www.w3.org/2000/svg" width="22" height="22" viewBox="0 0 22 22" preserveAspectRatio="none"><rect x="2.5" y="2.5" width="17" height="17" fill="#131a2a" stroke="#7bb1ff"/><path d="m6 11 3 3 7-7" fill="none" stroke="#7bb1ff" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"/></svg>
+<svg xmlns="http://www.w3.org/2000/svg" width="22" height="22" viewBox="0 0 22 22" preserveAspectRatio="none"><rect rx="4" x="2.5" y="2.5" width="17" height="17" fill="#131a2a" stroke="#7bb1ff"/><path d="m6 11 3 3 7-7" fill="none" stroke="#7bb1ff" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"/></svg>
diff --git a/data/themes/midnight/images/ui_hover.svg b/data/themes/midnight/images/ui_hover.svg
index c6fefaa..5aacf7c 100644
--- a/data/themes/midnight/images/ui_hover.svg
+++ b/data/themes/midnight/images/ui_hover.svg
@@ -1 +1,12 @@
-<svg xmlns="http://www.w3.org/2000/svg" width="160" height="36" viewBox="0 0 160 36" preserveAspectRatio="none"><rect x=".5" y=".5" width="159" height="35" fill="#131a2a" stroke="#7bb1ff"/></svg>
+<?xml version="1.0"?>
+<svg xmlns="http://www.w3.org/2000/svg" width="96" height="48" viewBox="0 0 96 48" preserveAspectRatio="none">
+ <defs>
+ <linearGradient id="material" x2="0" y2="100%">
+ <stop stop-color="#2e405f"/>
+ <stop offset="1" stop-color="#273752"/>
+ </linearGradient>
+ </defs>
+ <rect x=".75" y=".75" width="94.5" height="46.5" rx="6" fill="url(#material)" stroke="#7bb1ff" stroke-opacity=".78" stroke-width=".8"/>
+ <path d="M8 2H88" stroke="#fff" stroke-opacity=".09"/>
+ <path d="M8 46H88" stroke="#000" stroke-opacity=".12"/>
+</svg>
diff --git a/data/themes/midnight/images/ui_pressed.svg b/data/themes/midnight/images/ui_pressed.svg
index c6fefaa..794ac69 100644
--- a/data/themes/midnight/images/ui_pressed.svg
+++ b/data/themes/midnight/images/ui_pressed.svg
@@ -1 +1,12 @@
-<svg xmlns="http://www.w3.org/2000/svg" width="160" height="36" viewBox="0 0 160 36" preserveAspectRatio="none"><rect x=".5" y=".5" width="159" height="35" fill="#131a2a" stroke="#7bb1ff"/></svg>
+<?xml version="1.0"?>
+<svg xmlns="http://www.w3.org/2000/svg" width="96" height="48" viewBox="0 0 96 48" preserveAspectRatio="none">
+ <defs>
+ <linearGradient id="material" x2="0" y2="100%">
+ <stop stop-color="#374d71"/>
+ <stop offset="1" stop-color="#3c557d"/>
+ </linearGradient>
+ </defs>
+ <rect x=".75" y=".75" width="94.5" height="46.5" rx="6" fill="url(#material)" stroke="#7bb1ff" stroke-opacity=".95" stroke-width=".8"/>
+ <path d="M8 2H88" stroke="#fff" stroke-opacity=".09"/>
+ <path d="M8 46H88" stroke="#000" stroke-opacity=".12"/>
+</svg>
diff --git a/data/themes/midnight/images/ui_search.svg b/data/themes/midnight/images/ui_search.svg
index 3c3ab95..ea5ba05 100644
--- a/data/themes/midnight/images/ui_search.svg
+++ b/data/themes/midnight/images/ui_search.svg
@@ -1 +1 @@
-<svg xmlns="http://www.w3.org/2000/svg" width="600" height="40" viewBox="0 0 600 40" preserveAspectRatio="none"><rect x=".5" y=".5" width="599" height="39" fill="#131a2a" stroke="#30415b"/></svg>
+<svg xmlns="http://www.w3.org/2000/svg" width="600" height="40" viewBox="0 0 600 40" preserveAspectRatio="none"><rect rx="7" x=".5" y=".5" width="599" height="39" fill="#131a2a" stroke="#30415b"/></svg>
diff --git a/data/themes/midnight/meson.build b/data/themes/midnight/meson.build
index f01a34f..8087de5 100644
--- a/data/themes/midnight/meson.build
+++ b/data/themes/midnight/meson.build
@@ -86,6 +86,9 @@ foreach theme : ['midnight', 'atelier', 'observatory', 'crazy_lab']
foreach path : palette_vector_paths
vectors += files(theme_path / path)
endforeach
+ if theme == 'midnight'
+ vectors += files('images/player_surface.svg', 'images/shadow_body.png')
+ endif
themes += custom_target('themes_' + theme,
input: theme_path / (theme + '.edc'), output: theme + '.edj',
depend_files: vectors + nocturne_vectors,
diff --git a/data/themes/midnight/midnight.edc b/data/themes/midnight/midnight.edc
index fd87088..66a1a8b 100644
--- a/data/themes/midnight/midnight.edc
+++ b/data/themes/midnight/midnight.edc
@@ -1,4 +1,5 @@
-/* Elaro Midnight palette applied to the Nocturne player layout. */
+/* Elaro Midnight styling on the Nocturne player layout. */
+#define PLAYER_SURFACE_IMAGE "player_surface.svg"
#define THEME_INK 224 233 248 255
#define REPEAT_INK THEME_INK
#define REPEAT_ACTIVE_INK 19 26 42 255
diff --git a/data/themes/nocturne/images/images.edc b/data/themes/nocturne/images/images.edc
index d4c8cc0..fdba13e 100644
--- a/data/themes/nocturne/images/images.edc
+++ b/data/themes/nocturne/images/images.edc
@@ -5,6 +5,9 @@ images {
image: "shadow_body.png" COMP;
image: "shadow_drawer.png" COMP;
vector: "body.svg";
+#ifdef PLAYER_SURFACE_IMAGE
+ vector: PLAYER_SURFACE_IMAGE;
+#endif
vector: "button_close.svg";
vector: "button_close_over.svg";
vector: "button_expand.svg";
diff --git a/src/bin/theme-shadows.py b/src/bin/theme-shadows.py
index e9c0b9e..88a00a5 100644
--- a/src/bin/theme-shadows.py
+++ b/src/bin/theme-shadows.py
@@ -3,6 +3,7 @@
The generated PNGs are checked in so building Eclair needs neither tool.
"""
+from argparse import ArgumentParser
from io import BytesIO
from pathlib import Path
import re
@@ -17,6 +18,7 @@ PROFILES = {
'default': (6, 7, 128),
'gant': (4, 5, 134),
'nocturne': (6, 6, 155),
+ 'midnight': (7, 7, 158),
'folio': (7, 5, 112),
'frequency': (5, 6, 144),
'voltage': (2, 2, 142),
@@ -35,12 +37,14 @@ def build(theme, blur, offset, opacity):
width, body_height = map(int, re.search(
r'width="(\d+)" height="(\d+)"', (directory / 'body.svg').read_text()
).groups())
+ layout = 'nocturne' if theme == 'midnight' else theme
+ surface_name = 'player_surface' if theme == 'midnight' else 'body'
window_width, window_height = map(int, re.search(
- r'min: (\d+) (\d+);', (directory.parent / f'{theme}.edc').read_text()
+ r'min: (\d+) (\d+);', (ROOT / layout / f'{layout}.edc').read_text()
).groups())
# The full surface starts 14 px down and ends 28 px above the window bottom.
- surface = alpha(directory, 'body', width, window_height - 14 - 28)
+ surface = alpha(directory, surface_name, width, window_height - 14 - 28)
mask = Image.new('L', (window_width * 2, window_height * 2))
origin = (window_width - width, 14 * 2)
mask.paste(surface, origin)
@@ -66,5 +70,8 @@ def build(theme, blur, offset, opacity):
if __name__ == '__main__':
- for theme, profile in PROFILES.items():
- build(theme, *profile)
+ parser = ArgumentParser(description=__doc__)
+ parser.add_argument("theme", nargs="?", choices=PROFILES)
+ args = parser.parse_args()
+ for theme in (args.theme,) if args.theme else PROFILES:
+ build(theme, *PROFILES[theme])
--
To stop receiving notification emails like this one, please contact
the administrator of this repository.