This is an automated email from the git hooks/post-receive script.

git pushed a commit to branch main
in repository equation.

View the commit online.

commit 31e352af2cd6f1bd293ed1fe42d0591b3b184ef3
Author: Alastair Poole <[email protected]>
AuthorDate: Mon Nov 23 01:48:43 2026 +0000

    themes: add midnight theme.
---
 README.md                                          |   5 +++
 data/images/previews/equation_midnight.png         | Bin 0 -> 38792 bytes
 data/meson.build                                   |   1 +
 data/themes/atelier/equation_atelier.edc           |   1 +
 .../themes/common/groups/equation_motion_parts.edc |  39 +++++++++++++++----
 .../common/groups/equation_motion_programs.edc     |  16 ++++++++
 data/themes/crazy_lab/equation_crazy_lab.edc       |   1 +
 .../equation_midnight.edc}                         |  28 +++++++-------
 data/themes/midnight/images/equation_body.svg      |   5 +++
 data/themes/midnight/images/equation_check.svg     |   6 +++
 data/themes/midnight/images/equation_copy.svg      |   7 ++++
 data/themes/midnight/images/equation_display.svg   |   7 ++++
 data/themes/midnight/images/equation_equals.svg    |  12 ++++++
 data/themes/midnight/images/equation_field.svg     |   5 +++
 data/themes/midnight/images/equation_images.edc    |  19 ++++++++++
 data/themes/midnight/images/equation_key.svg       |  12 ++++++
 data/themes/midnight/images/equation_key_hover.svg |  12 ++++++
 .../midnight/images/equation_key_pressed.svg       |  12 ++++++
 data/themes/midnight/images/equation_motion.svg    |  10 +++++
 data/themes/midnight/images/equation_radio.svg     |  11 ++++++
 .../midnight/images/equation_radio_hover.svg       |   5 +++
 data/themes/midnight/images/equation_radio_on.svg  |  13 +++++++
 data/themes/midnight/images/equation_rule.svg      |   4 ++
 data/themes/midnight/images/equation_toggle.svg    |   6 +++
 data/themes/midnight/images/equation_toggle_on.svg |   6 +++
 data/themes/midnight/meson.build                   |  42 +++++++++++++++++++++
 data/themes/observatory/equation_observatory.edc   |   1 +
 docs/equation_guide.md                             |   9 +++--
 docs/equation_themes.md                            |   4 +-
 po/equation.pot                                    |   8 ++++
 po/fr.po                                           |   8 ++++
 src/fe-efl/equation_theme.c                        |   5 ++-
 src/fe-efl/equation_theme.h                        |   2 +-
 tests/equation_ui_test.c                           |   4 +-
 34 files changed, 295 insertions(+), 31 deletions(-)

diff --git a/README.md b/README.md
index 9dddf8a..171af98 100644
--- a/README.md
+++ b/README.md
@@ -31,6 +31,11 @@ right-associative power (`2^3^2 = 512`); in Programmer mode, `^` is bitwise XOR.
   <img src="" alt="Crazy Lab: green laboratory instruments and glowing orange Nixie tubes" width="520">
 </p>
 
+<p align="center">
+  <strong>Midnight</strong><br>
+  <img src="" alt="Midnight: Elaro slate blues, a rocking waveform, and amber indicator lights" width="520">
+</p>
+
 ## Build and install
 
 Requires a C compiler, Meson, Ninja, pkg-config, EFL/Elementary 1.26 or newer
diff --git a/data/images/previews/equation_midnight.png b/data/images/previews/equation_midnight.png
new file mode 100644
index 0000000..a2de39b
Binary files /dev/null and b/data/images/previews/equation_midnight.png differ
diff --git a/data/meson.build b/data/meson.build
index 0dda3f9..a507c8d 100644
--- a/data/meson.build
+++ b/data/meson.build
@@ -4,3 +4,4 @@ equation_themes = []
 subdir('themes/observatory')
 subdir('themes/atelier')
 subdir('themes/crazy_lab')
+subdir('themes/midnight')
diff --git a/data/themes/atelier/equation_atelier.edc b/data/themes/atelier/equation_atelier.edc
index d919445..c9e0f52 100644
--- a/data/themes/atelier/equation_atelier.edc
+++ b/data/themes/atelier/equation_atelier.edc
@@ -13,6 +13,7 @@
 #define THEME_LABEL "Atelier"
 #define ATELIER 1
 #define LAB 0
+#define MIDNIGHT 0
 #include "images/equation_images.edc"
 efl_version: 1 26;
 data { item: "equation.theme.name" THEME_LABEL; item: "equation.theme.version" "1"; }
diff --git a/data/themes/common/groups/equation_motion_parts.edc b/data/themes/common/groups/equation_motion_parts.edc
index 9c64698..3028d0d 100644
--- a/data/themes/common/groups/equation_motion_parts.edc
+++ b/data/themes/common/groups/equation_motion_parts.edc
@@ -1,3 +1,8 @@
+#if MIDNIGHT
+#define RGB_LED 226 190 120
+#else
+#define RGB_LED RGB_ACCENT
+#endif
 /* Decorative instruments stay behind the real result and never alter digits. */
 part { name: "instrument_clip"; type: RECT; mouse_events: 0;
  description { state: "default" 0.0; rel1.offset: 3 3; rel2.offset: -4 -4; }
@@ -9,10 +14,21 @@ part { name: "motion_orbit"; type: IMAGE; scale: 1; mouse_events: 0; clip_to: "i
 #else
   rel1 { relative: 0 .5; offset: -18 -92; } rel2 { relative: 0 .5; offset: 166 92; }
 #endif
+#if MIDNIGHT
+  image.normal: "equation_motion.svg"; color: 255 255 255 83;
+  map { on: 1; rotation.z: -24; }
+#else
   image.normal: "equation_motion.svg"; color: 255 255 255 45;
   map { on: 1; rotation.z: 0; }
+#endif
+ }
+ description { state: "spin" 0.0; inherit: "default" 0.0;
+#if MIDNIGHT
+  map.rotation.z: 24;
+#else
+  map.rotation.z: 360;
+#endif
  }
- description { state: "spin" 0.0; inherit: "default" 0.0; map.rotation.z: 360; }
 }
 part { name: "result_clip"; type: RECT; mouse_events: 0;
  description { state: "default" 0.0; color: 255 255 255 255; }
@@ -21,22 +37,29 @@ part { name: "result_clip"; type: RECT; mouse_events: 0;
 part { name: "scan"; type: RECT; scale: 1; mouse_events: 0; clip_to: "instrument_clip";
  description { state: "default" 0.0; offset_scale: 1; color: RGB_ACCENT 0;
   rel1.relative: 0 0; rel2 { relative: 0 1; offset: 12 -1; } }
- description { state: "start" 0.0; inherit: "default" 0.0; color: RGB_ACCENT 30; }
+ description { state: "start" 0.0; inherit: "default" 0.0;
+#if MIDNIGHT
+  color: RGB_ACCENT 55; rel2.offset: 32 -1;
+#else
+  color: RGB_ACCENT 30;
+#endif
+ }
  description { state: "finish" 0.0; inherit: "default" 0.0; color: RGB_ACCENT 0;
   rel1.relative: 1 0; rel2.relative: 1 1; }
 }
 part { name: "motion_led_0"; type: RECT; scale: 1; mouse_events: 0; clip_to: "instrument_clip";
- description { state: "default" 0.0; offset_scale: 1; color: RGB_ACCENT 65;
+ description { state: "default" 0.0; offset_scale: 1; color: RGB_LED 65;
   rel1 { relative: 1 1; offset: -56 -18; } rel2 { relative: 1 1; offset: -48 -16; } }
- description { state: "lit" 0.0; inherit: "default" 0.0; color: RGB_ACCENT 220; }
+ description { state: "lit" 0.0; inherit: "default" 0.0; color: RGB_LED 220; }
 }
 part { name: "motion_led_1"; type: RECT; scale: 1; mouse_events: 0; clip_to: "instrument_clip";
- description { state: "default" 0.0; offset_scale: 1; color: RGB_ACCENT 65;
+ description { state: "default" 0.0; offset_scale: 1; color: RGB_LED 65;
   rel1 { relative: 1 1; offset: -42 -18; } rel2 { relative: 1 1; offset: -34 -16; } }
- description { state: "lit" 0.0; inherit: "default" 0.0; color: RGB_ACCENT 220; }
+ description { state: "lit" 0.0; inherit: "default" 0.0; color: RGB_LED 220; }
 }
 part { name: "motion_led_2"; type: RECT; scale: 1; mouse_events: 0; clip_to: "instrument_clip";
- description { state: "default" 0.0; offset_scale: 1; color: RGB_ACCENT 65;
+ description { state: "default" 0.0; offset_scale: 1; color: RGB_LED 65;
   rel1 { relative: 1 1; offset: -28 -18; } rel2 { relative: 1 1; offset: -20 -16; } }
- description { state: "lit" 0.0; inherit: "default" 0.0; color: RGB_ACCENT 220; }
+ description { state: "lit" 0.0; inherit: "default" 0.0; color: RGB_LED 220; }
 }
+#undef RGB_LED
diff --git a/data/themes/common/groups/equation_motion_programs.edc b/data/themes/common/groups/equation_motion_programs.edc
index 1e965e9..86c349e 100644
--- a/data/themes/common/groups/equation_motion_programs.edc
+++ b/data/themes/common/groups/equation_motion_programs.edc
@@ -1,5 +1,8 @@
 program { name: "motion_start"; signal: "equation,motion,on"; source: "equation";
  action: ACTION_STOP; target: "orbit_spin"; target: "orbit_reset";
+#if MIDNIGHT
+ target: "orbit_rock_back";
+#endif
  target: "led_0_rise"; target: "led_0_fall";
  target: "led_1_rise"; target: "led_1_fall";
  target: "led_2_rise"; target: "led_2_fall";
@@ -9,13 +12,23 @@ program { name: "orbit_reset"; action: STATE_SET "default" 0.0; target: "motion_
 program { name: "orbit_spin"; action: STATE_SET "spin" 0.0; target: "motion_orbit";
 #if LAB
  transition: LINEAR 12;
+#elif MIDNIGHT
+ transition: SINUSOIDAL 2.8;
 #elif ATELIER
  transition: LINEAR 60;
 #else
  transition: LINEAR 36;
 #endif
+#if MIDNIGHT
+ after: "orbit_rock_back";
+#else
  after: "orbit_reset";
+#endif
 }
+#if MIDNIGHT
+program { name: "orbit_rock_back"; action: STATE_SET "default" 0.0; target: "motion_orbit";
+ transition: SINUSOIDAL 2.8; after: "orbit_spin"; }
+#endif
 program { name: "led_0_rise"; in: 0.00 0;
  action: STATE_SET "lit" 0.0; target: "motion_led_0";
  transition: SINUSOIDAL 1.20; after: "led_0_fall"; }
@@ -33,6 +46,9 @@ program { name: "led_2_fall"; action: STATE_SET "default" 0.0; target: "motion_l
  transition: SINUSOIDAL 1.66; after: "led_2_rise"; }
 program { signal: "equation,motion,off"; source: "equation";
  action: ACTION_STOP; target: "orbit_spin"; target: "orbit_reset";
+#if MIDNIGHT
+ target: "orbit_rock_back";
+#endif
  target: "result_fade"; target: "result_scan";
  target: "led_0_rise"; target: "led_0_fall";
  target: "led_1_rise"; target: "led_1_fall";
diff --git a/data/themes/crazy_lab/equation_crazy_lab.edc b/data/themes/crazy_lab/equation_crazy_lab.edc
index 4ffaff9..173218b 100644
--- a/data/themes/crazy_lab/equation_crazy_lab.edc
+++ b/data/themes/crazy_lab/equation_crazy_lab.edc
@@ -13,6 +13,7 @@
 #define THEME_LABEL "Crazy Lab"
 #define ATELIER 0
 #define LAB 1
+#define MIDNIGHT 0
 #include "images/equation_images.edc"
 efl_version: 1 26;
 data { item: "equation.theme.name" THEME_LABEL; item: "equation.theme.version" "1"; }
diff --git a/data/themes/observatory/equation_observatory.edc b/data/themes/midnight/equation_midnight.edc
similarity index 50%
copy from data/themes/observatory/equation_observatory.edc
copy to data/themes/midnight/equation_midnight.edc
index ec80877..e6cec9e 100644
--- a/data/themes/observatory/equation_observatory.edc
+++ b/data/themes/midnight/equation_midnight.edc
@@ -1,18 +1,20 @@
-#define BG 16 25 39 255
-#define PANEL 25 40 60 255
-#define EDGE 50 70 94 255
-#define INK 225 236 245 255
-#define ACCENT 114 219 208 255
-#define RGB_ACCENT 114 219 208
-#define MUTE 135 156 179 255
-#define DISPLAY 11 19 31 255
-#define ENTRY_STYLE "font=Sans font_size=11 color=#e1ecf5ff wrap=none"
-#define GUIDE_STYLE "font=Sans font_size=11 color=#879cb3ff wrap=none"
-#define LABEL_STYLE "font=Sans font_size=10 color=#879cb3ff wrap=none"
-#define THEME_SUBTITLE "PRECISION / AFTER DARK"
-#define THEME_LABEL "Observatory"
+/* Core colours follow Elaro's Midnight palette. */
+#define BG 19 26 42 255
+#define PANEL 28 38 58 255
+#define EDGE 48 65 91 255
+#define INK 224 233 248 255
+#define ACCENT 123 177 255 255
+#define RGB_ACCENT 123 177 255
+#define MUTE 142 150 165 255
+#define DISPLAY 16 22 36 255
+#define ENTRY_STYLE "font=Sans font_size=11 color=#e0e9f8ff wrap=none"
+#define GUIDE_STYLE "font=Sans font_size=11 color=#8e96a5ff wrap=none"
+#define LABEL_STYLE "font=Sans font_size=10 color=#8e96a5ff wrap=none"
+#define THEME_SUBTITLE "MIDNIGHT"
+#define THEME_LABEL "Midnight"
 #define ATELIER 0
 #define LAB 0
+#define MIDNIGHT 1
 #include "images/equation_images.edc"
 efl_version: 1 26;
 data { item: "equation.theme.name" THEME_LABEL; item: "equation.theme.version" "1"; }
diff --git a/data/themes/midnight/images/equation_body.svg b/data/themes/midnight/images/equation_body.svg
new file mode 100644
index 0000000..f51b37f
--- /dev/null
+++ b/data/themes/midnight/images/equation_body.svg
@@ -0,0 +1,5 @@
+<?xml version="1.0"?>
+<svg xmlns="http://www.w3.org/2000/svg" width="520" height="900" viewBox="0 0 520 900">
+  <rect x="1" y="1" width="518" height="898" rx="17" fill="#131a2a" stroke="#30415b" stroke-width="2"/>
+  <path d="M18 5h70" stroke="#7bb1ff" stroke-width="3"/>
+</svg>
diff --git a/data/themes/midnight/images/equation_check.svg b/data/themes/midnight/images/equation_check.svg
new file mode 100644
index 0000000..59d4d4a
--- /dev/null
+++ b/data/themes/midnight/images/equation_check.svg
@@ -0,0 +1,6 @@
+<?xml version="1.0"?>
+<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24">
+  <g fill="none" stroke="#7bb1ff" stroke-width="1.7" stroke-linecap="round" stroke-linejoin="round">
+    <path d="M4 12l5 5L21 5"/>
+  </g>
+</svg>
diff --git a/data/themes/midnight/images/equation_copy.svg b/data/themes/midnight/images/equation_copy.svg
new file mode 100644
index 0000000..5d2c788
--- /dev/null
+++ b/data/themes/midnight/images/equation_copy.svg
@@ -0,0 +1,7 @@
+<?xml version="1.0"?>
+<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24">
+  <g fill="none" stroke="#7bb1ff" stroke-width="1.7" stroke-linecap="round" stroke-linejoin="round">
+    <rect x="8" y="8" width="12" height="13" rx="2"/>
+    <path d="M15 5V4H4v13h1"/>
+  </g>
+</svg>
diff --git a/data/themes/midnight/images/equation_display.svg b/data/themes/midnight/images/equation_display.svg
new file mode 100644
index 0000000..8714090
--- /dev/null
+++ b/data/themes/midnight/images/equation_display.svg
@@ -0,0 +1,7 @@
+<?xml version="1.0"?>
+<svg xmlns="http://www.w3.org/2000/svg" width="512" height="160" viewBox="0 0 512 160">
+  <rect x="1" y="1" width="510" height="158" rx="13" fill="#101624" stroke="#30415b" stroke-width="2"/>
+  <path d="M14 35V14h21M477 14h21v21M14 125v21h21M477 146h21v-21"
+        fill="none" stroke="#7bb1ff" stroke-opacity=".45"/>
+  <path d="M16 54h480M16 80h480M16 106h480" stroke="#7bb1ff" stroke-opacity=".07"/>
+</svg>
diff --git a/data/themes/midnight/images/equation_equals.svg b/data/themes/midnight/images/equation_equals.svg
new file mode 100644
index 0000000..73cd51b
--- /dev/null
+++ b/data/themes/midnight/images/equation_equals.svg
@@ -0,0 +1,12 @@
+<?xml version="1.0"?>
+<svg xmlns="http://www.w3.org/2000/svg" width="96" height="48" viewBox="0 0 96 48">
+  <defs>
+    <linearGradient id="material" x2="0" y2="100%">
+      <stop stop-color="#7bb1ff"/>
+      <stop offset="1" stop-color="#7bb1ff"/>
+    </linearGradient>
+  </defs>
+  <rect x=".75" y=".75" width="94.5" height="46.5" rx="6" fill="url(#material)" stroke="#7bb1ff" stroke-opacity=".55" 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/equation_field.svg b/data/themes/midnight/images/equation_field.svg
new file mode 100644
index 0000000..16a3f56
--- /dev/null
+++ b/data/themes/midnight/images/equation_field.svg
@@ -0,0 +1,5 @@
+<?xml version="1.0"?>
+<svg xmlns="http://www.w3.org/2000/svg" width="96" height="40" viewBox="0 0 96 40">
+  <rect x=".5" y=".5" width="95" height="39" rx="7" fill="#1c263a" stroke="#30415b" stroke-opacity=".45"/>
+  <path d="M10 1h76" stroke="#e0e9f8" stroke-opacity=".08"/>
+</svg>
diff --git a/data/themes/midnight/images/equation_images.edc b/data/themes/midnight/images/equation_images.edc
new file mode 100644
index 0000000..6c0b1c2
--- /dev/null
+++ b/data/themes/midnight/images/equation_images.edc
@@ -0,0 +1,19 @@
+images {
+ image: "equation_radio_hover.svg" COMP;
+ image: "equation_radio_on.svg" COMP;
+ image: "equation_toggle.svg" COMP;
+ image: "equation_toggle_on.svg" COMP;
+ image: "equation_equals.svg" COMP;
+ image: "equation_copy.svg" COMP;
+ image: "equation_check.svg" COMP;
+ image: "equation_field.svg" COMP;
+ image: "equation_motion.svg" COMP;
+ image: "equation_window_shadow.png" COMP;
+ image: "equation_radio.svg" COMP;
+ image: "equation_rule.svg" COMP;
+ image: "equation_body.svg" COMP;
+ image: "equation_key.svg" COMP;
+ image: "equation_key_hover.svg" COMP;
+ image: "equation_key_pressed.svg" COMP;
+ image: "equation_display.svg" COMP;
+}
diff --git a/data/themes/midnight/images/equation_key.svg b/data/themes/midnight/images/equation_key.svg
new file mode 100644
index 0000000..01b97c7
--- /dev/null
+++ b/data/themes/midnight/images/equation_key.svg
@@ -0,0 +1,12 @@
+<?xml version="1.0"?>
+<svg xmlns="http://www.w3.org/2000/svg" width="96" height="48" viewBox="0 0 96 48">
+  <defs>
+    <linearGradient id="material" x2="0" y2="100%">
+      <stop stop-color="#1c263a"/>
+      <stop offset="1" stop-color="#1c263a"/>
+    </linearGradient>
+  </defs>
+  <rect x=".75" y=".75" width="94.5" height="46.5" rx="6" fill="url(#material)" stroke="#30415b" stroke-opacity=".55" 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/equation_key_hover.svg b/data/themes/midnight/images/equation_key_hover.svg
new file mode 100644
index 0000000..592d434
--- /dev/null
+++ b/data/themes/midnight/images/equation_key_hover.svg
@@ -0,0 +1,12 @@
+<?xml version="1.0"?>
+<svg xmlns="http://www.w3.org/2000/svg" width="96" height="48" viewBox="0 0 96 48">
+  <defs>
+    <linearGradient id="material" x2="0" y2="100%">
+      <stop stop-color="#1c263a"/>
+      <stop offset="1" stop-color="#1c263a"/>
+    </linearGradient>
+  </defs>
+  <rect x=".75" y=".75" width="94.5" height="46.5" rx="6" fill="url(#material)" stroke="#7bb1ff" stroke-opacity=".8" 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/equation_key_pressed.svg b/data/themes/midnight/images/equation_key_pressed.svg
new file mode 100644
index 0000000..028524c
--- /dev/null
+++ b/data/themes/midnight/images/equation_key_pressed.svg
@@ -0,0 +1,12 @@
+<?xml version="1.0"?>
+<svg xmlns="http://www.w3.org/2000/svg" width="96" height="48" viewBox="0 0 96 48">
+  <defs>
+    <linearGradient id="material" x2="0" y2="100%">
+      <stop stop-color="#131a2a"/>
+      <stop offset="1" stop-color="#1c263a"/>
+    </linearGradient>
+  </defs>
+  <rect x=".75" y=".75" width="94.5" height="46.5" rx="6" fill="url(#material)" stroke="#7bb1ff" stroke-opacity=".55" 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/equation_motion.svg b/data/themes/midnight/images/equation_motion.svg
new file mode 100644
index 0000000..1a85d07
--- /dev/null
+++ b/data/themes/midnight/images/equation_motion.svg
@@ -0,0 +1,10 @@
+<?xml version="1.0"?>
+<svg xmlns="http://www.w3.org/2000/svg" width="200" height="200" viewBox="0 0 200 200">
+  <g fill="none" stroke="#7bb1ff">
+    <circle cx="100" cy="100" r="84" stroke-opacity=".65" stroke-dasharray="2 5"/>
+    <circle cx="100" cy="100" r="64" stroke-opacity=".35"/>
+    <path d="M29 100h27l12-24 16 50 17-69 17 86 16-64 12 21h25" stroke-width="3" stroke-linejoin="round"/>
+  </g>
+  <circle cx="100" cy="16" r="4" fill="#e2be78"/>
+  <circle cx="100" cy="184" r="3" fill="#7bb1ff"/>
+</svg>
diff --git a/data/themes/midnight/images/equation_radio.svg b/data/themes/midnight/images/equation_radio.svg
new file mode 100644
index 0000000..bec0d38
--- /dev/null
+++ b/data/themes/midnight/images/equation_radio.svg
@@ -0,0 +1,11 @@
+<?xml version="1.0"?>
+<svg xmlns="http://www.w3.org/2000/svg" width="28" height="28" viewBox="0 0 28 28">
+  <defs>
+    <linearGradient id="well" x2="0" y2="100%">
+      <stop stop-color="#131a2a"/>
+      <stop offset="1" stop-color="#1c263a"/>
+    </linearGradient>
+  </defs>
+  <circle cx="14" cy="14" r="10.5" fill="url(#well)" stroke="#30415b" stroke-width="1"/>
+  <path d="M7 6.5a11 11 0 0 1 14 0" fill="none" stroke="#000" stroke-opacity=".18"/>
+</svg>
diff --git a/data/themes/midnight/images/equation_radio_hover.svg b/data/themes/midnight/images/equation_radio_hover.svg
new file mode 100644
index 0000000..4f60fe1
--- /dev/null
+++ b/data/themes/midnight/images/equation_radio_hover.svg
@@ -0,0 +1,5 @@
+<?xml version="1.0"?>
+<svg xmlns="http://www.w3.org/2000/svg" width="36" height="36">
+  <circle cx="18" cy="18" r="15" fill="none" stroke="#7bb1ff" stroke-width="1" stroke-opacity=".5"/>
+  <circle cx="18" cy="18" r="13" fill="none" stroke="#7bb1ff" stroke-width="3" stroke-opacity=".1"/>
+</svg>
diff --git a/data/themes/midnight/images/equation_radio_on.svg b/data/themes/midnight/images/equation_radio_on.svg
new file mode 100644
index 0000000..17e6fb2
--- /dev/null
+++ b/data/themes/midnight/images/equation_radio_on.svg
@@ -0,0 +1,13 @@
+<?xml version="1.0"?>
+<svg xmlns="http://www.w3.org/2000/svg" width="28" height="28" viewBox="0 0 28 28">
+  <defs>
+    <linearGradient id="well" x2="0" y2="100%">
+      <stop stop-color="#131a2a"/>
+      <stop offset="1" stop-color="#1c263a"/>
+    </linearGradient>
+  </defs>
+  <circle cx="14" cy="14" r="10.5" fill="url(#well)" stroke="#7bb1ff" stroke-width="1"/>
+  <path d="M7 6.5a11 11 0 0 1 14 0" fill="none" stroke="#000" stroke-opacity=".18"/>
+  <circle cx="14" cy="14" r="5" fill="#7bb1ff"/>
+  <path d="M11 11.5h6" stroke="#fff" stroke-opacity=".2"/>
+</svg>
diff --git a/data/themes/midnight/images/equation_rule.svg b/data/themes/midnight/images/equation_rule.svg
new file mode 100644
index 0000000..a611f57
--- /dev/null
+++ b/data/themes/midnight/images/equation_rule.svg
@@ -0,0 +1,4 @@
+<?xml version="1.0"?>
+<svg xmlns="http://www.w3.org/2000/svg" width="32" height="4">
+  <rect width="32" height="4" fill="#30415b"/>
+</svg>
diff --git a/data/themes/midnight/images/equation_toggle.svg b/data/themes/midnight/images/equation_toggle.svg
new file mode 100644
index 0000000..c681408
--- /dev/null
+++ b/data/themes/midnight/images/equation_toggle.svg
@@ -0,0 +1,6 @@
+<?xml version="1.0"?>
+<svg xmlns="http://www.w3.org/2000/svg" width="44" height="28" viewBox="0 0 44 28">
+  <rect x="2" y="4" width="40" height="20" rx="10" fill="#131a2a" stroke="#30415b" stroke-width=".8"/>
+  <rect x="4" y="6" width="18" height="16" rx="8" fill="#1c263a"/>
+  <path d="M10 10v8m3-8v8" stroke="#131a2a" stroke-opacity=".3"/>
+</svg>
diff --git a/data/themes/midnight/images/equation_toggle_on.svg b/data/themes/midnight/images/equation_toggle_on.svg
new file mode 100644
index 0000000..51db21f
--- /dev/null
+++ b/data/themes/midnight/images/equation_toggle_on.svg
@@ -0,0 +1,6 @@
+<?xml version="1.0"?>
+<svg xmlns="http://www.w3.org/2000/svg" width="44" height="28" viewBox="0 0 44 28">
+  <rect x="2" y="4" width="40" height="20" rx="10" fill="#131a2a" stroke="#7bb1ff" stroke-width=".8"/>
+  <rect x="21" y="6" width="18" height="16" rx="8" fill="#7bb1ff"/>
+  <path d="M27 10v8m3-8v8" stroke="#131a2a" stroke-opacity=".3"/>
+</svg>
diff --git a/data/themes/midnight/meson.build b/data/themes/midnight/meson.build
new file mode 100644
index 0000000..327c847
--- /dev/null
+++ b/data/themes/midnight/meson.build
@@ -0,0 +1,42 @@
+equation_themes += custom_target(
+  'equation_midnight',
+  input : 'equation_midnight.edc',
+  output : 'equation_midnight.edj',
+  depfile : '@[email protected]',
+  depend_files : files(
+    'images/equation_radio_hover.svg',
+    'images/equation_radio_on.svg',
+    'images/equation_toggle.svg',
+    'images/equation_toggle_on.svg',
+    'images/equation_equals.svg',
+    'images/equation_copy.svg',
+    'images/equation_check.svg',
+    'images/equation_field.svg',
+    'images/equation_motion.svg',
+    '../common/images/equation_window_shadow.png',
+    'images/equation_images.edc',
+    'images/equation_radio.svg',
+    'images/equation_rule.svg',
+    'images/equation_body.svg',
+    'images/equation_key.svg',
+    'images/equation_key_hover.svg',
+    'images/equation_key_pressed.svg',
+    'images/equation_display.svg',
+  ),
+  command : [
+    equation_edje_cc,
+    '-deps',
+    '@DEPFILE@',
+    '-id',
+    meson.current_source_dir() / 'images',
+    '-id',
+    meson.current_source_dir() / '../common/images',
+    '@INPUT@',
+    '@OUTPUT@',
+  ],
+  env : ['EINA_LOG_LEVEL=0', 'ECORE_NO_SYSTEM_MODULES=1'],
+  build_by_default : true,
+  install : true,
+  install_mode : 'rw-r--r--',
+  install_dir : equation_theme_install_dir,
+)
diff --git a/data/themes/observatory/equation_observatory.edc b/data/themes/observatory/equation_observatory.edc
index ec80877..d41fb3c 100644
--- a/data/themes/observatory/equation_observatory.edc
+++ b/data/themes/observatory/equation_observatory.edc
@@ -13,6 +13,7 @@
 #define THEME_LABEL "Observatory"
 #define ATELIER 0
 #define LAB 0
+#define MIDNIGHT 0
 #include "images/equation_images.edc"
 efl_version: 1 26;
 data { item: "equation.theme.name" THEME_LABEL; item: "equation.theme.version" "1"; }
diff --git a/docs/equation_guide.md b/docs/equation_guide.md
index e577b93..1e9d480 100644
--- a/docs/equation_guide.md
+++ b/docs/equation_guide.md
@@ -30,7 +30,7 @@ meson install -C build
 
 The configured prefix must be writable. For an installation in your home directory,
 configure with `--prefix="$HOME/.local"`. Installation includes the executable,
-application launcher, scalable icon, and all three theme archives. Packaging can use
+application launcher, scalable icon, and all four theme archives. Packaging can use
 `meson install -C build --destdir /tmp/equation-package`.
 
 ## Use
@@ -58,8 +58,8 @@ keeps its decimal and function syntax.
 
 The burger button to the left of the window title opens Appearance and About Equation. Use × in the upper-right corner to dismiss the menu. Choose
 Observatory (midnight blue and cyan), Atelier (warm paper and drafting marks),
-or Crazy Lab (oxidized metal, bakelite keys, warning stripes, and glowing Nixie
-tubes). A marker identifies the selected theme. Theme changes update open windows
+Crazy Lab (oxidized metal, bakelite keys, warning stripes, and glowing Nixie
+tubes), or Midnight (Elaro slate blue). A marker identifies the selected theme. Theme changes update open windows
 immediately.
 
 The window opens at the current theme and calculator mode’s minimum layout size.
@@ -92,7 +92,8 @@ own palette, and title-bar icons remain borderless.
 
 
 Observatory has a rotating orbital instrument, Atelier a slow drafting compass,
-and Crazy Lab a spinning reactor, breathing indicators, and a warm Nixie readout.
+Crazy Lab a spinning reactor and warm Nixie readout, and Midnight a rocking
+waveform with pulsing amber indicators.
 Evaluations trigger a brief ignition and light sweep. Disable Ambient animations
 in the menu for a still display; ambient motion also pauses while hidden or minimized.
 
diff --git a/docs/equation_themes.md b/docs/equation_themes.md
index d76ce47..a6637ee 100644
--- a/docs/equation_themes.md
+++ b/docs/equation_themes.md
@@ -18,6 +18,7 @@ and disabled feedback. Window controls retain transparent, borderless idle state
 | Observatory | Midnight instrument panel, cyan starlight, subtle constellation | Dark graph-paper instrument readout |
 | Atelier | Warm paper, ivory keys, rust accents, drafting marks | Quiet technical worksheet |
 | Crazy Lab | Oxidized green metal, brass screws, bakelite keys, warning stripes | Fourteen glass Nixie tubes, ghost cathodes, warm orange glow |
+| Midnight | Elaro slate blues, powder-blue accents and amber indicators | Rocking waveform and a blue evaluation sweep |
 
 ## Source layout
 
@@ -30,6 +31,7 @@ data/themes/
     meson.build
   atelier/...
   crazy_lab/...
+  midnight/...
   common/groups/
     equation_frame.edc
     equation_buttons.edc
@@ -51,7 +53,7 @@ penumbra without clipping. Six native Edje bands below the header follow
 Elaro's fade pattern.
 
 Each subdirectory's Meson target uses `edje_cc -deps` so edits to included groups
-rebuild every affected archive. All three archives install as
+rebuild every affected archive. All four archives install as
 `share/equation/themes/equation_<name>.edj`. No loose images are needed at runtime.
 
 The default is Observatory. The menu switches themes immediately and stores the
diff --git a/po/equation.pot b/po/equation.pot
index 58915d6..978f326 100644
--- a/po/equation.pot
+++ b/po/equation.pot
@@ -252,3 +252,11 @@ msgstr ""
 #: data/equation_calculator.desktop:9
 msgid "calculator;scientific;programmer;hexadecimal;binary;"
 msgstr ""
+
+#: src/fe-efl/equation_theme.c:16
+msgid "Midnight"
+msgstr ""
+
+#: src/fe-efl/equation_theme.c:16
+msgid "Elaro blues / rocking waveform"
+msgstr ""
diff --git a/po/fr.po b/po/fr.po
index 685ae95..0d79227 100644
--- a/po/fr.po
+++ b/po/fr.po
@@ -261,3 +261,11 @@ msgstr "Calculatrice scientifique et de programmation"
 #: data/equation_calculator.desktop:9
 msgid "calculator;scientific;programmer;hexadecimal;binary;"
 msgstr "calculatrice;scientifique;programmation;hexadécimal;binaire;"
+
+#: src/fe-efl/equation_theme.c:16
+msgid "Midnight"
+msgstr "Midnight"
+
+#: src/fe-efl/equation_theme.c:16
+msgid "Elaro blues / rocking waveform"
+msgstr "Bleus Elaro / onde oscillante"
diff --git a/src/fe-efl/equation_theme.c b/src/fe-efl/equation_theme.c
index 967af57..1db2f53 100644
--- a/src/fe-efl/equation_theme.c
+++ b/src/fe-efl/equation_theme.c
@@ -9,10 +9,11 @@
 #include <string.h>
 #include <unistd.h>
 
-const Equation_Theme_Info equation_theme_catalog[3]
+const Equation_Theme_Info equation_theme_catalog[4]
   = { { "observatory", N_("Observatory"), N_("Midnight instruments / cyan starlight") },
        { "atelier", N_("Atelier"), N_("Warm paper / a study in numbers") },
-       { "crazy_lab", N_("Crazy Lab"), N_("Glass cathodes / high voltage arithmetic") } };
+       { "crazy_lab", N_("Crazy Lab"), N_("Glass cathodes / high voltage arithmetic") },
+       { "midnight", N_("Midnight"), N_("Elaro blues / rocking waveform") } };
 
 static bool
 equation_theme_valid(const char *path)
diff --git a/src/fe-efl/equation_theme.h b/src/fe-efl/equation_theme.h
index 4c8811e..2c1b44a 100644
--- a/src/fe-efl/equation_theme.h
+++ b/src/fe-efl/equation_theme.h
@@ -12,7 +12,7 @@ typedef struct
 {
    const char *name, *label, *description;
 } Equation_Theme_Info;
-extern const Equation_Theme_Info equation_theme_catalog[3];
+extern const Equation_Theme_Info equation_theme_catalog[4];
 bool equation_theme_resolve(const char *name, char *path, size_t capacity);
 void equation_theme_display_set(Evas_Object *display, const char *value);
 #endif
diff --git a/tests/equation_ui_test.c b/tests/equation_ui_test.c
index 4172cdf..1a7f35c 100644
--- a/tests/equation_ui_test.c
+++ b/tests/equation_ui_test.c
@@ -194,13 +194,13 @@ main(int argc, char **argv)
    evas_object_geometry_get(window, NULL, NULL, &width, &height);
    evas_object_size_hint_min_get(window, &min_width, &min_height);
    EQUATION_CHECK(min_width > 0 && min_height > 0 && width == min_width && height == min_height);
-   for (unsigned i = 0; i < 3; ++i)
+   const char *themes[] = { "observatory", "atelier", "crazy_lab", "midnight" };
+   for (size_t i = 0; i < EINA_C_ARRAY_LENGTH(themes); ++i)
      {
         Evas_Object *menu_button = evas_object_name_find(canvas, "equation_menu");
         EQUATION_CHECK(menu_button);
         equation_click(menu_button);
         EQUATION_CHECK(ui->menu);
-        const char *themes[] = { "observatory", "atelier", "crazy_lab" };
         Evas_Object *choice = evas_object_name_find(canvas, themes[i]);
         EQUATION_CHECK(choice);
         equation_click(choice);

-- 
To stop receiving notification emails like this one, please contact
the administrator of this repository.

Reply via email to