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

git pushed a commit to branch master
in repository evisum.

View the commit online.

commit 5c1d5099b0d48083c592db90616c99306e7ba1ef
Author: Alastair Poole <[email protected]>
AuthorDate: Fri Nov 27 14:28:20 2026 +0000

    unify themes
---
 NEWS                                         |  6 +++
 VERSION                                      |  2 +-
 data/themes/atelier.edc                      | 41 ++++++++++++++++++
 data/themes/atelier/about.svg                |  5 +++
 data/themes/atelier/button.svg               | 11 +++++
 data/themes/atelier/hover.svg                | 11 +++++
 data/themes/atelier/pressed.svg              | 11 +++++
 data/themes/atelier/selected-outline.svg     |  3 ++
 data/themes/crazy_lab.edc                    | 41 ++++++++++++++++++
 data/themes/crazy_lab/about.svg              |  5 +++
 data/themes/crazy_lab/button.svg             | 11 +++++
 data/themes/crazy_lab/hover.svg              | 11 +++++
 data/themes/crazy_lab/pressed.svg            | 11 +++++
 data/themes/crazy_lab/selected-outline.svg   |  3 ++
 data/themes/meson.build                      |  2 +-
 data/themes/observatory.edc                  | 41 ++++++++++++++++++
 data/themes/observatory/about.svg            |  5 +++
 data/themes/observatory/button.svg           | 11 +++++
 data/themes/observatory/hover.svg            | 11 +++++
 data/themes/observatory/pressed.svg          | 11 +++++
 data/themes/observatory/selected-outline.svg |  3 ++
 meson.build                                  |  2 +-
 src/bin/ui/evisum_ui_theme.c                 | 63 +++++++++++++++++++++++-----
 23 files changed, 307 insertions(+), 14 deletions(-)

diff --git a/NEWS b/NEWS
index fc70451..f173a2e 100644
--- a/NEWS
+++ b/NEWS
@@ -1,3 +1,9 @@
+=============
+Evisum 2.0.18
+=============
+
+  * Unified themes.
+
 =============
 Evisum 2.0.17
 =============
diff --git a/VERSION b/VERSION
index a6e7bcb..c945ef1 100644
--- a/VERSION
+++ b/VERSION
@@ -1 +1 @@
-2.0.17
+2.0.18
diff --git a/data/themes/atelier.edc b/data/themes/atelier.edc
new file mode 100644
index 0000000..2b126bb
--- /dev/null
+++ b/data/themes/atelier.edc
@@ -0,0 +1,41 @@
+/* Scribble's Atelier palette on Evisum's shared layout. */
+#define BG 238 232 219 255
+#define PANEL 247 242 231 255
+#define EXEL_BAR 226 226 207 255
+#define INK 43 57 57 255
+#define MUTED 103 117 111 255
+#define ACCENT 179 81 54 255
+#define SECONDARY 179 81 54 255
+#define EDGE 199 190 173 255
+#define STRIPE 238 235 216 255
+#define QUIET_RULE 247 242 231 255
+#define ROW_LINE 199 190 173 255
+#define HOVER 238 235 216 255
+#define SELECTED 219 210 187 255
+#define BG_DATA "238 232 219 255"
+#define PANEL_DATA "247 242 231 255"
+#define EDGE_DATA "199 190 173 255"
+#define INK_DATA "43 57 57 255"
+#define MUTED_DATA "103 117 111 255"
+#define ACCENT_DATA "179 81 54 255"
+#define SELECTED_DATA "219 210 187 255"
+#define INK_HEX "#2b3939"
+#define GRAPH_BACKGROUND "#eee8db"
+#define GRAPH_GRID_VERTICAL "#c7bead"
+#define GRAPH_GRID_HORIZONTAL "#f7f2e7"
+#define TITLE_FONT "Sans:style=Bold"
+#define BUTTON_HEIGHT 35
+#define ROW_HEIGHT 24
+#define LABEL_STYLE "font=Sans font_size=11 text_class=label color=#2b3939ff align=center wrap=none"
+
+data {
+   item: "evisum/graph_palette/000" "#b35136";
+   item: "evisum/graph_palette/001" "#2b6260";
+   item: "evisum/graph_palette/002" "#7755a0";
+   item: "evisum/graph_palette/003" "#805826";
+   item: "evisum/graph_palette/004" "#8c4871";
+   item: "evisum/graph_palette/005" "#336f29";
+   item: "evisum/graph_palette/006" "#336c9a";
+}
+
+#include "shared/theme.edc"
diff --git a/data/themes/atelier/about.svg b/data/themes/atelier/about.svg
new file mode 100644
index 0000000..8ac55d0
--- /dev/null
+++ b/data/themes/atelier/about.svg
@@ -0,0 +1,5 @@
+<svg xmlns="http://www.w3.org/2000/svg" width="640" height="150" viewBox="0 0 640 150">
+  <rect x=".5" y=".5" width="639" height="149" fill="#f7f2e7" stroke="#c7bead"/>
+  <path d="M1 1.5h638" stroke="#b35136"/>
+  <path d="M368 130 487 10h135v120z" fill="#eee8db"/><path d="M413 137 530 19m-76 118L572 19m-66 118L621 21" stroke="#b35136" opacity=".34"/><path d="M582 19h31" stroke="#e2be78" opacity=".58"/>
+</svg>
diff --git a/data/themes/atelier/button.svg b/data/themes/atelier/button.svg
new file mode 100644
index 0000000..a72c521
--- /dev/null
+++ b/data/themes/atelier/button.svg
@@ -0,0 +1,11 @@
+<svg xmlns="http://www.w3.org/2000/svg" width="64" height="40" viewBox="0 0 64 40">
+  <defs>
+    <linearGradient id="shade" x1="0" y1="0" x2="0" y2="1">
+      <stop stop-color="#000" stop-opacity="0"/>
+      <stop offset="1" stop-color="#000" stop-opacity=".16"/>
+    </linearGradient>
+  </defs>
+  <path d="M7 .5h50q6.5 0 6.5 6.5v26q0 6.5-6.5 6.5H7Q.5 39.5.5 33V7Q.5.5 7 .5Z" fill="#f7f2e7"/>
+  <path d="M7 .5h50q6.5 0 6.5 6.5v26q0 6.5-6.5 6.5H7Q.5 39.5.5 33V7Q.5.5 7 .5Z" fill="url(#shade)" stroke="#c7bead"/>
+  <path d="M4 10V8q0-4 4-4h7m34 32h7q4 0 4-4v-2" fill="none" stroke="#c7bead" opacity=".65"/>
+</svg>
diff --git a/data/themes/atelier/hover.svg b/data/themes/atelier/hover.svg
new file mode 100644
index 0000000..b9e5061
--- /dev/null
+++ b/data/themes/atelier/hover.svg
@@ -0,0 +1,11 @@
+<svg xmlns="http://www.w3.org/2000/svg" width="64" height="40" viewBox="0 0 64 40">
+  <defs>
+    <linearGradient id="shade" x1="0" y1="0" x2="0" y2="1">
+      <stop stop-color="#000" stop-opacity="0"/>
+      <stop offset="1" stop-color="#000" stop-opacity=".09"/>
+    </linearGradient>
+  </defs>
+  <path d="M7 .5h50q6.5 0 6.5 6.5v26q0 6.5-6.5 6.5H7Q.5 39.5.5 33V7Q.5.5 7 .5Z" fill="#dbd2bb"/>
+  <path d="M7 .5h50q6.5 0 6.5 6.5v26q0 6.5-6.5 6.5H7Q.5 39.5.5 33V7Q.5.5 7 .5Z" fill="url(#shade)" stroke="#b35136"/>
+  <path d="M4 10V8q0-4 4-4h7m34 32h7q4 0 4-4v-2" fill="none" stroke="#c7bead" opacity=".9"/>
+</svg>
diff --git a/data/themes/atelier/pressed.svg b/data/themes/atelier/pressed.svg
new file mode 100644
index 0000000..3f384d2
--- /dev/null
+++ b/data/themes/atelier/pressed.svg
@@ -0,0 +1,11 @@
+<svg xmlns="http://www.w3.org/2000/svg" width="64" height="40" viewBox="0 0 64 40">
+  <defs>
+    <linearGradient id="shade" x1="0" y1="0" x2="0" y2="1">
+      <stop stop-color="#000" stop-opacity=".29"/>
+      <stop offset="1" stop-color="#000" stop-opacity="0"/>
+    </linearGradient>
+  </defs>
+  <path d="M7 .5h50q6.5 0 6.5 6.5v26q0 6.5-6.5 6.5H7Q.5 39.5.5 33V7Q.5.5 7 .5Z" fill="#dbd2bb"/>
+  <path d="M7 .5h50q6.5 0 6.5 6.5v26q0 6.5-6.5 6.5H7Q.5 39.5.5 33V7Q.5.5 7 .5Z" fill="url(#shade)" stroke="#b35136"/>
+  <path d="M4 10V8q0-4 4-4h7m34 32h7q4 0 4-4v-2" fill="none" stroke="#c7bead" opacity=".35"/>
+</svg>
diff --git a/data/themes/atelier/selected-outline.svg b/data/themes/atelier/selected-outline.svg
new file mode 100644
index 0000000..f203e5a
--- /dev/null
+++ b/data/themes/atelier/selected-outline.svg
@@ -0,0 +1,3 @@
+<svg xmlns="http://www.w3.org/2000/svg" width="64" height="40" viewBox="0 0 64 40">
+  <path d="M7 .5h50q6.5 0 6.5 6.5v26q0 6.5-6.5 6.5H7Q.5 39.5.5 33V7Q.5.5 7 .5Z" fill="none" stroke="#fff" stroke-width="3"/>
+</svg>
diff --git a/data/themes/crazy_lab.edc b/data/themes/crazy_lab.edc
new file mode 100644
index 0000000..43738de
--- /dev/null
+++ b/data/themes/crazy_lab.edc
@@ -0,0 +1,41 @@
+/* Scribble's Crazy Lab palette on Evisum's shared layout. */
+#define BG 21 37 38 255
+#define PANEL 32 51 52 255
+#define EXEL_BAR 16 23 19 255
+#define INK 232 216 174 255
+#define MUTED 167 180 156 255
+#define ACCENT 255 162 82 255
+#define SECONDARY 255 162 82 255
+#define EDGE 92 98 81 255
+#define STRIPE 28 41 32 255
+#define QUIET_RULE 32 51 52 255
+#define ROW_LINE 92 98 81 255
+#define HOVER 28 41 32 255
+#define SELECTED 66 77 58 255
+#define BG_DATA "21 37 38 255"
+#define PANEL_DATA "32 51 52 255"
+#define EDGE_DATA "92 98 81 255"
+#define INK_DATA "232 216 174 255"
+#define MUTED_DATA "167 180 156 255"
+#define ACCENT_DATA "255 162 82 255"
+#define SELECTED_DATA "66 77 58 255"
+#define INK_HEX "#e8d8ae"
+#define GRAPH_BACKGROUND "#152526"
+#define GRAPH_GRID_VERTICAL "#5c6251"
+#define GRAPH_GRID_HORIZONTAL "#203334"
+#define TITLE_FONT "Sans:style=Bold"
+#define BUTTON_HEIGHT 35
+#define ROW_HEIGHT 24
+#define LABEL_STYLE "font=Sans font_size=11 text_class=label color=#e8d8aeff align=center wrap=none"
+
+data {
+   item: "evisum/graph_palette/000" "#ffa252";
+   item: "evisum/graph_palette/001" "#abc6a3";
+   item: "evisum/graph_palette/002" "#ecca84";
+   item: "evisum/graph_palette/003" "#cfb1e4";
+   item: "evisum/graph_palette/004" "#efa195";
+   item: "evisum/graph_palette/005" "#94c8dd";
+   item: "evisum/graph_palette/006" "#cbd991";
+}
+
+#include "shared/theme.edc"
diff --git a/data/themes/crazy_lab/about.svg b/data/themes/crazy_lab/about.svg
new file mode 100644
index 0000000..0894f0b
--- /dev/null
+++ b/data/themes/crazy_lab/about.svg
@@ -0,0 +1,5 @@
+<svg xmlns="http://www.w3.org/2000/svg" width="640" height="150" viewBox="0 0 640 150">
+  <rect x=".5" y=".5" width="639" height="149" fill="#203334" stroke="#5c6251"/>
+  <path d="M1 1.5h638" stroke="#ffa252"/>
+  <path d="M368 130 487 10h135v120z" fill="#152526"/><path d="M413 137 530 19m-76 118L572 19m-66 118L621 21" stroke="#ffa252" opacity=".34"/><path d="M582 19h31" stroke="#e2be78" opacity=".58"/>
+</svg>
diff --git a/data/themes/crazy_lab/button.svg b/data/themes/crazy_lab/button.svg
new file mode 100644
index 0000000..4a7d19c
--- /dev/null
+++ b/data/themes/crazy_lab/button.svg
@@ -0,0 +1,11 @@
+<svg xmlns="http://www.w3.org/2000/svg" width="64" height="40" viewBox="0 0 64 40">
+  <defs>
+    <linearGradient id="shade" x1="0" y1="0" x2="0" y2="1">
+      <stop stop-color="#000" stop-opacity="0"/>
+      <stop offset="1" stop-color="#000" stop-opacity=".16"/>
+    </linearGradient>
+  </defs>
+  <path d="M7 .5h50q6.5 0 6.5 6.5v26q0 6.5-6.5 6.5H7Q.5 39.5.5 33V7Q.5.5 7 .5Z" fill="#203334"/>
+  <path d="M7 .5h50q6.5 0 6.5 6.5v26q0 6.5-6.5 6.5H7Q.5 39.5.5 33V7Q.5.5 7 .5Z" fill="url(#shade)" stroke="#5c6251"/>
+  <path d="M4 10V8q0-4 4-4h7m34 32h7q4 0 4-4v-2" fill="none" stroke="#5c6251" opacity=".65"/>
+</svg>
diff --git a/data/themes/crazy_lab/hover.svg b/data/themes/crazy_lab/hover.svg
new file mode 100644
index 0000000..8b29876
--- /dev/null
+++ b/data/themes/crazy_lab/hover.svg
@@ -0,0 +1,11 @@
+<svg xmlns="http://www.w3.org/2000/svg" width="64" height="40" viewBox="0 0 64 40">
+  <defs>
+    <linearGradient id="shade" x1="0" y1="0" x2="0" y2="1">
+      <stop stop-color="#000" stop-opacity="0"/>
+      <stop offset="1" stop-color="#000" stop-opacity=".09"/>
+    </linearGradient>
+  </defs>
+  <path d="M7 .5h50q6.5 0 6.5 6.5v26q0 6.5-6.5 6.5H7Q.5 39.5.5 33V7Q.5.5 7 .5Z" fill="#424d3a"/>
+  <path d="M7 .5h50q6.5 0 6.5 6.5v26q0 6.5-6.5 6.5H7Q.5 39.5.5 33V7Q.5.5 7 .5Z" fill="url(#shade)" stroke="#ffa252"/>
+  <path d="M4 10V8q0-4 4-4h7m34 32h7q4 0 4-4v-2" fill="none" stroke="#5c6251" opacity=".9"/>
+</svg>
diff --git a/data/themes/crazy_lab/pressed.svg b/data/themes/crazy_lab/pressed.svg
new file mode 100644
index 0000000..9d27753
--- /dev/null
+++ b/data/themes/crazy_lab/pressed.svg
@@ -0,0 +1,11 @@
+<svg xmlns="http://www.w3.org/2000/svg" width="64" height="40" viewBox="0 0 64 40">
+  <defs>
+    <linearGradient id="shade" x1="0" y1="0" x2="0" y2="1">
+      <stop stop-color="#000" stop-opacity=".29"/>
+      <stop offset="1" stop-color="#000" stop-opacity="0"/>
+    </linearGradient>
+  </defs>
+  <path d="M7 .5h50q6.5 0 6.5 6.5v26q0 6.5-6.5 6.5H7Q.5 39.5.5 33V7Q.5.5 7 .5Z" fill="#424d3a"/>
+  <path d="M7 .5h50q6.5 0 6.5 6.5v26q0 6.5-6.5 6.5H7Q.5 39.5.5 33V7Q.5.5 7 .5Z" fill="url(#shade)" stroke="#ffa252"/>
+  <path d="M4 10V8q0-4 4-4h7m34 32h7q4 0 4-4v-2" fill="none" stroke="#5c6251" opacity=".35"/>
+</svg>
diff --git a/data/themes/crazy_lab/selected-outline.svg b/data/themes/crazy_lab/selected-outline.svg
new file mode 100644
index 0000000..f203e5a
--- /dev/null
+++ b/data/themes/crazy_lab/selected-outline.svg
@@ -0,0 +1,3 @@
+<svg xmlns="http://www.w3.org/2000/svg" width="64" height="40" viewBox="0 0 64 40">
+  <path d="M7 .5h50q6.5 0 6.5 6.5v26q0 6.5-6.5 6.5H7Q.5 39.5.5 33V7Q.5.5 7 .5Z" fill="none" stroke="#fff" stroke-width="3"/>
+</svg>
diff --git a/data/themes/meson.build b/data/themes/meson.build
index 08f5ed7..919131c 100644
--- a/data/themes/meson.build
+++ b/data/themes/meson.build
@@ -26,7 +26,7 @@ foreach icon : ['proc', 'cpu', 'memory', 'storage', 'sensor', 'network', 'effect
 endforeach
 theme_sources += files('shared/process-stop.svg', 'shared/process-start.svg',
                        'shared/process-kill.svg')
-foreach theme : ['gant', 'nocturne', 'folio', 'frequency', 'voltage', 'undertow', 'midnight']
+foreach theme : ['gant', 'nocturne', 'folio', 'frequency', 'voltage', 'undertow', 'midnight', 'atelier', 'observatory', 'crazy_lab']
   artwork = files(theme / 'about.svg', theme / 'button.svg',
                   theme / 'hover.svg', theme / 'pressed.svg',
                   theme / 'selected-outline.svg')
diff --git a/data/themes/observatory.edc b/data/themes/observatory.edc
new file mode 100644
index 0000000..43b0f15
--- /dev/null
+++ b/data/themes/observatory.edc
@@ -0,0 +1,41 @@
+/* Scribble's Observatory palette on Evisum's shared layout. */
+#define BG 16 25 39 255
+#define PANEL 25 40 60 255
+#define EXEL_BAR 11 19 31 255
+#define INK 225 236 245 255
+#define MUTED 135 156 179 255
+#define ACCENT 114 219 208 255
+#define SECONDARY 114 219 208 255
+#define EDGE 50 70 94 255
+#define STRIPE 22 35 51 255
+#define QUIET_RULE 25 40 60 255
+#define ROW_LINE 50 70 94 255
+#define HOVER 22 35 51 255
+#define SELECTED 34 58 75 255
+#define BG_DATA "16 25 39 255"
+#define PANEL_DATA "25 40 60 255"
+#define EDGE_DATA "50 70 94 255"
+#define INK_DATA "225 236 245 255"
+#define MUTED_DATA "135 156 179 255"
+#define ACCENT_DATA "114 219 208 255"
+#define SELECTED_DATA "34 58 75 255"
+#define INK_HEX "#e1ecf5"
+#define GRAPH_BACKGROUND "#101927"
+#define GRAPH_GRID_VERTICAL "#32465e"
+#define GRAPH_GRID_HORIZONTAL "#19283c"
+#define TITLE_FONT "Sans:style=Bold"
+#define BUTTON_HEIGHT 35
+#define ROW_HEIGHT 24
+#define LABEL_STYLE "font=Sans font_size=11 text_class=label color=#e1ecf5ff align=center wrap=none"
+
+data {
+   item: "evisum/graph_palette/000" "#72dbd0";
+   item: "evisum/graph_palette/001" "#89b8ff";
+   item: "evisum/graph_palette/002" "#eab777";
+   item: "evisum/graph_palette/003" "#b29de8";
+   item: "evisum/graph_palette/004" "#ef9daf";
+   item: "evisum/graph_palette/005" "#b8e495";
+   item: "evisum/graph_palette/006" "#ffc39e";
+}
+
+#include "shared/theme.edc"
diff --git a/data/themes/observatory/about.svg b/data/themes/observatory/about.svg
new file mode 100644
index 0000000..7578da1
--- /dev/null
+++ b/data/themes/observatory/about.svg
@@ -0,0 +1,5 @@
+<svg xmlns="http://www.w3.org/2000/svg" width="640" height="150" viewBox="0 0 640 150">
+  <rect x=".5" y=".5" width="639" height="149" fill="#19283c" stroke="#32465e"/>
+  <path d="M1 1.5h638" stroke="#72dbd0"/>
+  <path d="M368 130 487 10h135v120z" fill="#101927"/><path d="M413 137 530 19m-76 118L572 19m-66 118L621 21" stroke="#72dbd0" opacity=".34"/><path d="M582 19h31" stroke="#e2be78" opacity=".58"/>
+</svg>
diff --git a/data/themes/observatory/button.svg b/data/themes/observatory/button.svg
new file mode 100644
index 0000000..e2ae220
--- /dev/null
+++ b/data/themes/observatory/button.svg
@@ -0,0 +1,11 @@
+<svg xmlns="http://www.w3.org/2000/svg" width="64" height="40" viewBox="0 0 64 40">
+  <defs>
+    <linearGradient id="shade" x1="0" y1="0" x2="0" y2="1">
+      <stop stop-color="#000" stop-opacity="0"/>
+      <stop offset="1" stop-color="#000" stop-opacity=".16"/>
+    </linearGradient>
+  </defs>
+  <path d="M7 .5h50q6.5 0 6.5 6.5v26q0 6.5-6.5 6.5H7Q.5 39.5.5 33V7Q.5.5 7 .5Z" fill="#19283c"/>
+  <path d="M7 .5h50q6.5 0 6.5 6.5v26q0 6.5-6.5 6.5H7Q.5 39.5.5 33V7Q.5.5 7 .5Z" fill="url(#shade)" stroke="#32465e"/>
+  <path d="M4 10V8q0-4 4-4h7m34 32h7q4 0 4-4v-2" fill="none" stroke="#32465e" opacity=".65"/>
+</svg>
diff --git a/data/themes/observatory/hover.svg b/data/themes/observatory/hover.svg
new file mode 100644
index 0000000..b2009be
--- /dev/null
+++ b/data/themes/observatory/hover.svg
@@ -0,0 +1,11 @@
+<svg xmlns="http://www.w3.org/2000/svg" width="64" height="40" viewBox="0 0 64 40">
+  <defs>
+    <linearGradient id="shade" x1="0" y1="0" x2="0" y2="1">
+      <stop stop-color="#000" stop-opacity="0"/>
+      <stop offset="1" stop-color="#000" stop-opacity=".09"/>
+    </linearGradient>
+  </defs>
+  <path d="M7 .5h50q6.5 0 6.5 6.5v26q0 6.5-6.5 6.5H7Q.5 39.5.5 33V7Q.5.5 7 .5Z" fill="#223a4b"/>
+  <path d="M7 .5h50q6.5 0 6.5 6.5v26q0 6.5-6.5 6.5H7Q.5 39.5.5 33V7Q.5.5 7 .5Z" fill="url(#shade)" stroke="#72dbd0"/>
+  <path d="M4 10V8q0-4 4-4h7m34 32h7q4 0 4-4v-2" fill="none" stroke="#32465e" opacity=".9"/>
+</svg>
diff --git a/data/themes/observatory/pressed.svg b/data/themes/observatory/pressed.svg
new file mode 100644
index 0000000..dc66149
--- /dev/null
+++ b/data/themes/observatory/pressed.svg
@@ -0,0 +1,11 @@
+<svg xmlns="http://www.w3.org/2000/svg" width="64" height="40" viewBox="0 0 64 40">
+  <defs>
+    <linearGradient id="shade" x1="0" y1="0" x2="0" y2="1">
+      <stop stop-color="#000" stop-opacity=".29"/>
+      <stop offset="1" stop-color="#000" stop-opacity="0"/>
+    </linearGradient>
+  </defs>
+  <path d="M7 .5h50q6.5 0 6.5 6.5v26q0 6.5-6.5 6.5H7Q.5 39.5.5 33V7Q.5.5 7 .5Z" fill="#223a4b"/>
+  <path d="M7 .5h50q6.5 0 6.5 6.5v26q0 6.5-6.5 6.5H7Q.5 39.5.5 33V7Q.5.5 7 .5Z" fill="url(#shade)" stroke="#72dbd0"/>
+  <path d="M4 10V8q0-4 4-4h7m34 32h7q4 0 4-4v-2" fill="none" stroke="#32465e" opacity=".35"/>
+</svg>
diff --git a/data/themes/observatory/selected-outline.svg b/data/themes/observatory/selected-outline.svg
new file mode 100644
index 0000000..f203e5a
--- /dev/null
+++ b/data/themes/observatory/selected-outline.svg
@@ -0,0 +1,3 @@
+<svg xmlns="http://www.w3.org/2000/svg" width="64" height="40" viewBox="0 0 64 40">
+  <path d="M7 .5h50q6.5 0 6.5 6.5v26q0 6.5-6.5 6.5H7Q.5 39.5.5 33V7Q.5.5 7 .5Z" fill="none" stroke="#fff" stroke-width="3"/>
+</svg>
diff --git a/meson.build b/meson.build
index 0e3d350..1397a34 100644
--- a/meson.build
+++ b/meson.build
@@ -1,6 +1,6 @@
 ##### Project
 project('evisum', 'c',
-        version       : '2.0.17',
+        version       : '2.0.18',
         meson_version : '>= 0.56.0')
 
 efl_version = '>= 1.27.0'
diff --git a/src/bin/ui/evisum_ui_theme.c b/src/bin/ui/evisum_ui_theme.c
index 8a29ede..cf2f819 100644
--- a/src/bin/ui/evisum_ui_theme.c
+++ b/src/bin/ui/evisum_ui_theme.c
@@ -19,6 +19,9 @@ static const Theme themes[] = {
    { "Voltage", "voltage.edj" },
    { "Undertow", "undertow.edj" },
    { "Midnight", "midnight.edj" },
+   { N_("Atelier"), "atelier.edj" },
+   { N_("Observatory"), "observatory.edj" },
+   { N_("Crazy Lab"), "crazy_lab.edj" },
 };
 
 static const char *_theme_path;
@@ -129,17 +132,60 @@ evisum_ui_theme_shutdown(void)
 }
 
 static void
-_theme_selected(void *data, Evas_Object *obj EINA_UNUSED, void *event_info)
+_theme_selected(void *data, Evas_Object *radio, void *event_info EINA_UNUSED)
 {
-   Elm_Object_Item *item = event_info;
-   unsigned int theme = (uintptr_t) elm_object_item_data_get(item);
+   unsigned int theme = elm_radio_value_get(radio);
 
    if (theme == config()->global.theme) return;
-   if (theme && !_theme_file_find(theme)) return;
+   if (theme >= EINA_C_ARRAY_LENGTH(themes) || (theme && !_theme_file_find(theme)))
+     {
+        elm_radio_value_set(radio, config()->global.theme);
+        return;
+     }
    config()->global.theme = theme;
    evisum_ui_restart(data);
 }
 
+static void
+_theme_picker_close(void *data, Evas_Object *object EINA_UNUSED, void *event_info EINA_UNUSED)
+{
+   evas_object_del(data);
+}
+
+static void
+_theme_picker_open(void *data, Evas_Object *selector, void *event_info EINA_UNUSED)
+{
+   Evas_Object *popup = elm_popup_add(elm_object_top_widget_get(selector));
+   Evas_Object *table = elm_table_add(popup);
+   Evas_Object *group = NULL;
+   unsigned int position = 0;
+
+   elm_object_part_text_set(popup, "title,text", _("Theme"));
+   elm_popup_scrollable_set(popup, EINA_TRUE);
+   evas_object_smart_callback_add(popup, "block,clicked", _theme_picker_close, popup);
+   elm_table_homogeneous_set(table, EINA_TRUE);
+   elm_table_padding_set(table, ELM_SCALE_SIZE(10), ELM_SCALE_SIZE(3));
+   for (unsigned int i = 0; i < EINA_C_ARRAY_LENGTH(themes); i++)
+     {
+        if (i && !_theme_file_find(i)) continue;
+        Evas_Object *radio = elm_radio_add(table);
+        elm_object_text_set(radio, _(themes[i].name));
+        elm_radio_state_value_set(radio, i);
+        if (group) elm_radio_group_add(radio, group);
+        else group = radio;
+        evas_object_size_hint_align_set(radio, 0, 0.5);
+        evas_object_size_hint_weight_set(radio, EVAS_HINT_EXPAND, 0);
+        elm_table_pack(table, radio, position % 2, position / 2, 1, 1);
+        position++;
+        evas_object_smart_callback_add(radio, "changed", _theme_selected, data);
+        evas_object_show(radio);
+     }
+   elm_radio_value_set(group, config()->global.theme);
+   elm_object_content_set(popup, table);
+   evas_object_show(table);
+   evas_object_show(popup);
+}
+
 void
 evisum_ui_swatch_button_style_set(Evas_Object *button)
 {
@@ -181,15 +227,10 @@ evisum_ui_segment_tabs_add(Evas_Object *parent)
 Evas_Object *
 evisum_ui_theme_selector_add(Evas_Object *parent, Evisum_Ui *ui)
 {
-   Evas_Object *selector = elm_hoversel_add(parent);
-   elm_hoversel_hover_parent_set(selector, elm_object_top_widget_get(parent));
+   Evas_Object *selector = elm_button_add(parent);
    elm_object_text_set(selector, eina_slstr_printf(_("Theme: %s"),
                        _(themes[config()->global.theme].name)));
-   for (unsigned int i = 0; i < EINA_C_ARRAY_LENGTH(themes); i++)
-     if (!i || _theme_file_find(i))
-       elm_hoversel_item_add(selector, _(themes[i].name), NULL, ELM_ICON_NONE,
-                             NULL, (void *)(uintptr_t) i);
-   evas_object_smart_callback_add(selector, "selected", _theme_selected, ui);
+   evas_object_smart_callback_add(selector, "clicked", _theme_picker_open, ui);
    evas_object_size_hint_weight_set(selector, EVAS_HINT_EXPAND, 0);
    evas_object_size_hint_align_set(selector, EVAS_HINT_FILL, EVAS_HINT_FILL);
    evas_object_show(selector);

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

Reply via email to