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 9d1f5f5d74928195fe3b1b3f21c6dc8989c9c681
Author: Alastair Poole <[email protected]>
AuthorDate: Tue Nov 24 07:13:10 2026 +0000

    themes: reorder menu icons.
---
 data/themes/common/body.edc                        |  8 ++--
 data/themes/common/menu-parts.edc                  | 14 +++----
 data/themes/common/menu-programs.edc               | 10 ++++-
 data/themes/default/images/button_expand.svg       |  4 ++
 data/themes/default/images/button_expand_over.svg  |  4 ++
 data/themes/default/images/button_menu.svg         |  2 +-
 data/themes/default/images/button_menu_on.svg      |  2 +-
 .../themes/default/images/button_minimize_over.svg |  4 ++
 data/themes/default/images/images.edc              |  3 ++
 data/themes/default/images/meson.build             |  3 ++
 data/themes/default/programs/body.edc              | 14 -------
 data/themes/folio/images/button_expand.svg         |  4 ++
 data/themes/folio/images/button_expand_over.svg    |  4 ++
 data/themes/folio/images/button_menu.svg           |  2 +-
 data/themes/folio/images/button_menu_on.svg        |  2 +-
 data/themes/folio/images/button_minimize_over.svg  |  4 ++
 data/themes/folio/images/images.edc                |  3 ++
 data/themes/folio/images/meson.build               |  3 ++
 data/themes/folio/parts/body.edc                   | 10 +++--
 data/themes/frequency/images/button_expand.svg     |  4 ++
 .../themes/frequency/images/button_expand_over.svg |  4 ++
 data/themes/frequency/images/button_menu.svg       |  2 +-
 data/themes/frequency/images/button_menu_on.svg    |  2 +-
 .../frequency/images/button_minimize_over.svg      |  4 ++
 data/themes/frequency/images/images.edc            |  3 ++
 data/themes/frequency/images/meson.build           |  3 ++
 data/themes/frequency/parts/body.edc               | 16 ++++----
 data/themes/gant/images/button_expand.svg          |  4 ++
 data/themes/gant/images/button_expand_over.svg     |  4 ++
 data/themes/gant/images/button_menu.svg            |  2 +-
 data/themes/gant/images/button_menu_on.svg         |  2 +-
 data/themes/gant/images/button_minimize_over.svg   |  4 ++
 data/themes/gant/images/images.edc                 |  3 ++
 data/themes/gant/images/meson.build                |  3 ++
 data/themes/gant/programs/body.edc                 | 14 -------
 data/themes/midnight/images/button_expand.svg      |  4 ++
 data/themes/midnight/images/button_expand_over.svg |  4 ++
 data/themes/midnight/images/button_menu.svg        |  2 +-
 data/themes/midnight/images/button_menu_on.svg     |  2 +-
 .../midnight/images/button_minimize_over.svg       |  4 ++
 data/themes/midnight/meson.build                   |  3 ++
 data/themes/nocturne/images/button_expand.svg      |  4 ++
 data/themes/nocturne/images/button_expand_over.svg |  4 ++
 data/themes/nocturne/images/button_menu.svg        |  2 +-
 data/themes/nocturne/images/button_menu_on.svg     |  2 +-
 .../nocturne/images/button_minimize_over.svg       |  4 ++
 data/themes/nocturne/images/images.edc             |  3 ++
 data/themes/nocturne/images/meson.build            |  3 ++
 data/themes/nocturne/parts/body.edc                | 14 ++++---
 data/themes/undertow/images/button_expand.svg      |  4 ++
 data/themes/undertow/images/button_expand_over.svg |  4 ++
 data/themes/undertow/images/button_menu.svg        |  2 +-
 data/themes/undertow/images/button_menu_on.svg     |  2 +-
 .../undertow/images/button_minimize_over.svg       |  4 ++
 data/themes/undertow/images/images.edc             |  3 ++
 data/themes/undertow/images/meson.build            |  3 ++
 data/themes/undertow/parts/body.edc                |  8 ++--
 data/themes/voltage/images/button_expand.svg       |  4 ++
 data/themes/voltage/images/button_expand_over.svg  |  4 ++
 data/themes/voltage/images/button_menu.svg         |  2 +-
 data/themes/voltage/images/button_menu_on.svg      |  2 +-
 .../themes/voltage/images/button_minimize_over.svg |  4 ++
 data/themes/voltage/images/images.edc              |  3 ++
 data/themes/voltage/images/meson.build             |  3 ++
 data/themes/voltage/parts/body.edc                 |  8 ++--
 src/bin/theme-dialogs.py                           |  7 ++--
 src/bin/theme-vectors.py                           | 14 ++++++-
 src/lib/eclair_window.c                            |  8 ++++
 src/tests/menu-player.c                            |  2 +
 src/tests/vector-controls.c                        | 44 ++++++++++++++++++++--
 70 files changed, 274 insertions(+), 90 deletions(-)

diff --git a/data/themes/common/body.edc b/data/themes/common/body.edc
index a428bec..ddeb34f 100644
--- a/data/themes/common/body.edc
+++ b/data/themes/common/body.edc
@@ -25,7 +25,7 @@ part {
       rel2 { relative: 0 0; offset: 293 19; to: "body"; }
    }
 }
-#define WINDOW_BUTTON(NAME, X) \
+#define WINDOW_BUTTON(NAME, X, HOVER_IMAGE) \
 part { \
    name: NAME; type: VECTOR; scale: 1; \
    description { \
@@ -34,7 +34,9 @@ part { \
       rel2 { relative: 0 0; offset: (X + 19) 20; to: "body"; } \
       image.normal: NAME".svg"; \
    } \
+   description { state: "over" 0.0; inherit: "default" 0.0; image.normal: HOVER_IMAGE; } \
    description { state: "down" 0.0; inherit: "default" 0.0; color: 180 180 180 255; } \
 }
-WINDOW_BUTTON("button_minimize", 246)
-WINDOW_BUTTON("button_close", 270)
+WINDOW_BUTTON("button_minimize", 222, "button_minimize_over.svg")
+WINDOW_BUTTON("button_expand", 246, "button_expand_over.svg")
+WINDOW_BUTTON("button_close", 270, "button_close.svg")
diff --git a/data/themes/common/menu-parts.edc b/data/themes/common/menu-parts.edc
index f13ca06..b53cdca 100644
--- a/data/themes/common/menu-parts.edc
+++ b/data/themes/common/menu-parts.edc
@@ -1,16 +1,12 @@
-/* The same title-bar position works for every body width. */
+/* Anchor the menu to the top left of the player body. */
 part {
    name: "button_menu"; type: VECTOR; scale: 1;
    description {
       state: "default" 0.0; offset_scale: 1;
-      rel1 { to: "button_minimize"; relative: 0 0; offset: -24 0; }
-      rel2 { to: "button_minimize"; relative: 0 1; offset: -5 -1; }
+      rel1 { to: "body"; relative: 0 0; offset: 6 1; }
+      rel2 { to: "body"; relative: 0 0; offset: 25 20; }
       image.normal: "button_menu.svg";
    }
-   description { state: "open" 0.0; inherit: "default" 0.0; image.normal: "button_menu_on.svg"; }
-}
-part {
-   name: "button_menu_hover"; type: RECT; mouse_events: 0;
-   description { state: "default" 0.0; rel1.to: "button_menu"; rel2.to: "button_menu"; color: 255 255 255 0; }
-   description { state: "over" 0.0; inherit: "default" 0.0; color: 255 255 255 32; }
+   description { state: "over" 0.0; inherit: "default" 0.0; image.normal: "button_menu_on.svg"; }
+   description { state: "open" 0.0; inherit: "over" 0.0; }
 }
diff --git a/data/themes/common/menu-programs.edc b/data/themes/common/menu-programs.edc
index eceeab0..7b628af 100644
--- a/data/themes/common/menu-programs.edc
+++ b/data/themes/common/menu-programs.edc
@@ -1,5 +1,11 @@
 program { signal: "mouse,clicked,1"; source: "button_menu"; action: SIGNAL_EMIT "eclair_menu_toggle" ""; }
-program { signal: "mouse,in"; source: "button_menu"; action: STATE_SET "over" 0.0; target: "button_menu_hover"; }
-program { signal: "mouse,out"; source: "button_menu"; action: STATE_SET "default" 0.0; target: "button_menu_hover"; }
+program { signal: "mouse,in"; source: "button_menu"; filter: "button_menu" "default"; action: STATE_SET "over" 0.0; target: "button_menu"; }
+program { signal: "mouse,out"; source: "button_menu"; filter: "button_menu" "over"; action: STATE_SET "default" 0.0; target: "button_menu"; }
 program { signal: "signal_menu_open"; source: "*"; action: STATE_SET "open" 0.0; target: "button_menu"; }
 program { signal: "signal_menu_closed"; source: "*"; action: STATE_SET "default" 0.0; target: "button_menu"; }
+
+program { signal: "mouse,in"; source: "button_minimize"; action: STATE_SET "over" 0.0; target: "button_minimize"; }
+program { signal: "mouse,out"; source: "button_minimize"; action: STATE_SET "default" 0.0; target: "button_minimize"; }
+program { signal: "mouse,in"; source: "button_expand"; action: STATE_SET "over" 0.0; target: "button_expand"; }
+program { signal: "mouse,out"; source: "button_expand"; action: STATE_SET "default" 0.0; target: "button_expand"; }
+program { signal: "mouse,clicked,1"; source: "button_expand"; action: SIGNAL_EMIT "eclair_main_expand" ""; }
diff --git a/data/themes/default/images/button_expand.svg b/data/themes/default/images/button_expand.svg
new file mode 100644
index 0000000..3c52376
--- /dev/null
+++ b/data/themes/default/images/button_expand.svg
@@ -0,0 +1,4 @@
+<svg xmlns="http://www.w3.org/2000/svg" width="20" height="20" viewBox="0 0 20 20" preserveAspectRatio="none">
+<defs></defs>
+<path d="M6 9V6h3m2 0h3v3m0 2v3h-3m-2 0H6v-3" fill="none" stroke="#67665f" stroke-width="1.4" stroke-linecap="round"/>
+</svg>
diff --git a/data/themes/default/images/button_expand_over.svg b/data/themes/default/images/button_expand_over.svg
new file mode 100644
index 0000000..cc1ad15
--- /dev/null
+++ b/data/themes/default/images/button_expand_over.svg
@@ -0,0 +1,4 @@
+<svg xmlns="http://www.w3.org/2000/svg" width="20" height="20" viewBox="0 0 20 20" preserveAspectRatio="none">
+<defs></defs>
+<path d="M6 9V6h3m2 0h3v3m0 2v3h-3m-2 0H6v-3" fill="none" stroke="#b68b38" stroke-width="1.4" stroke-linecap="round"/>
+</svg>
diff --git a/data/themes/default/images/button_menu.svg b/data/themes/default/images/button_menu.svg
index eeec523..c09be6a 100644
--- a/data/themes/default/images/button_menu.svg
+++ b/data/themes/default/images/button_menu.svg
@@ -1 +1 @@
-<svg xmlns="http://www.w3.org/2000/svg" width="20" height="20" viewBox="0 0 20 20" preserveAspectRatio="none"><rect x="1.5" y="1.5" width="17" height="17" rx="4" fill="#f0eee8" stroke="#aaa69c"/><path d="M6 6.5h8M6 10h8M6 13.5h8" fill="none" stroke="#67665f" stroke-width="1.2" stroke-linecap="round"/></svg>
+<svg xmlns="http://www.w3.org/2000/svg" width="20" height="20" viewBox="0 0 20 20" preserveAspectRatio="none"><path d="M6 6.5h8M6 10h8M6 13.5h8" fill="none" stroke="#67665f" stroke-width="1.2" stroke-linecap="round"/></svg>
diff --git a/data/themes/default/images/button_menu_on.svg b/data/themes/default/images/button_menu_on.svg
index db01614..69cb2b0 100644
--- a/data/themes/default/images/button_menu_on.svg
+++ b/data/themes/default/images/button_menu_on.svg
@@ -1 +1 @@
-<svg xmlns="http://www.w3.org/2000/svg" width="20" height="20" viewBox="0 0 20 20" preserveAspectRatio="none"><rect x="1.5" y="1.5" width="17" height="17" rx="4" fill="#f6e1ab" stroke="#b68b38"/><path d="M6 6.5h8M6 10h8M6 13.5h8" fill="none" stroke="#514a3d" stroke-width="1.2" stroke-linecap="round"/></svg>
+<svg xmlns="http://www.w3.org/2000/svg" width="20" height="20" viewBox="0 0 20 20" preserveAspectRatio="none"><path d="M6 6.5h8M6 10h8M6 13.5h8" fill="none" stroke="#b68b38" stroke-width="1.2" stroke-linecap="round"/></svg>
diff --git a/data/themes/default/images/button_minimize_over.svg b/data/themes/default/images/button_minimize_over.svg
new file mode 100644
index 0000000..cf357d2
--- /dev/null
+++ b/data/themes/default/images/button_minimize_over.svg
@@ -0,0 +1,4 @@
+<svg xmlns="http://www.w3.org/2000/svg" width="20" height="20" viewBox="0 0 20 20" preserveAspectRatio="none">
+<defs></defs>
+<path d="M6 12h8" fill="none" stroke="#b68b38" stroke-width="1.4" stroke-linecap="round"/>
+</svg>
diff --git a/data/themes/default/images/images.edc b/data/themes/default/images/images.edc
index f1e0bbb..5dd05f7 100644
--- a/data/themes/default/images/images.edc
+++ b/data/themes/default/images/images.edc
@@ -6,9 +6,12 @@ images {
    image: "shadow_drawer.png" COMP;
    vector: "body.svg";
    vector: "button_close.svg";
+   vector: "button_expand.svg";
+   vector: "button_expand_over.svg";
    vector: "button_menu.svg";
    vector: "button_menu_on.svg";
    vector: "button_minimize.svg";
+   vector: "button_minimize_over.svg";
    vector: "cover.svg";
    vector: "cover_border.svg";
    vector: "display.svg";
diff --git a/data/themes/default/images/meson.build b/data/themes/default/images/meson.build
index c05b2df..3337c90 100644
--- a/data/themes/default/images/meson.build
+++ b/data/themes/default/images/meson.build
@@ -2,9 +2,12 @@
 theme_vectors = files(
   'body.svg',
   'button_close.svg',
+  'button_expand.svg',
+  'button_expand_over.svg',
   'button_menu.svg',
   'button_menu_on.svg',
   'button_minimize.svg',
+  'button_minimize_over.svg',
   'cover.svg',
   'cover_border.svg',
   'display.svg',
diff --git a/data/themes/default/programs/body.edc b/data/themes/default/programs/body.edc
index 52719b5..f6ec0d2 100644
--- a/data/themes/default/programs/body.edc
+++ b/data/themes/default/programs/body.edc
@@ -1,17 +1,3 @@
-program {
-   name: "button_minimize_down";
-   signal: "mouse,down,1";
-   source: "button_minimize";
-   action: STATE_SET "down" 0.0;
-   target: "button_minimize";
-}
-program {
-   name: "button_minimize_up";
-   signal: "mouse,up,1";
-   source: "button_minimize";
-   action: STATE_SET "default" 0.0;
-   target: "button_minimize";
-}
 program {
    name: "button_minimize_clicked";
    signal: "mouse,clicked,1";
diff --git a/data/themes/folio/images/button_expand.svg b/data/themes/folio/images/button_expand.svg
new file mode 100644
index 0000000..4162311
--- /dev/null
+++ b/data/themes/folio/images/button_expand.svg
@@ -0,0 +1,4 @@
+<svg xmlns="http://www.w3.org/2000/svg" width="20" height="20" viewBox="0 0 20 20" preserveAspectRatio="none">
+<defs></defs>
+<path d="M6 9V6h3m2 0h3v3m0 2v3h-3m-2 0H6v-3" fill="none" stroke="#4f4337" stroke-width="1.4" stroke-linecap="round"/>
+</svg>
diff --git a/data/themes/folio/images/button_expand_over.svg b/data/themes/folio/images/button_expand_over.svg
new file mode 100644
index 0000000..efe9be4
--- /dev/null
+++ b/data/themes/folio/images/button_expand_over.svg
@@ -0,0 +1,4 @@
+<svg xmlns="http://www.w3.org/2000/svg" width="20" height="20" viewBox="0 0 20 20" preserveAspectRatio="none">
+<defs></defs>
+<path d="M6 9V6h3m2 0h3v3m0 2v3h-3m-2 0H6v-3" fill="none" stroke="#b56549" stroke-width="1.4" stroke-linecap="round"/>
+</svg>
diff --git a/data/themes/folio/images/button_menu.svg b/data/themes/folio/images/button_menu.svg
index 1f0fc86..30d6ddf 100644
--- a/data/themes/folio/images/button_menu.svg
+++ b/data/themes/folio/images/button_menu.svg
@@ -1 +1 @@
-<svg xmlns="http://www.w3.org/2000/svg" width="20" height="20" viewBox="0 0 20 20" preserveAspectRatio="none"><rect x="1.5" y="1.5" width="17" height="17" rx="4" fill="#faf4e8" stroke="#c9b99c"/><path d="M6 6.5h8M6 10h8M6 13.5h8" fill="none" stroke="#4f4337" stroke-width="1.2" stroke-linecap="round"/></svg>
+<svg xmlns="http://www.w3.org/2000/svg" width="20" height="20" viewBox="0 0 20 20" preserveAspectRatio="none"><path d="M6 6.5h8M6 10h8M6 13.5h8" fill="none" stroke="#4f4337" stroke-width="1.2" stroke-linecap="round"/></svg>
diff --git a/data/themes/folio/images/button_menu_on.svg b/data/themes/folio/images/button_menu_on.svg
index 39ca8f6..885b01f 100644
--- a/data/themes/folio/images/button_menu_on.svg
+++ b/data/themes/folio/images/button_menu_on.svg
@@ -1 +1 @@
-<svg xmlns="http://www.w3.org/2000/svg" width="20" height="20" viewBox="0 0 20 20" preserveAspectRatio="none"><rect x="1.5" y="1.5" width="17" height="17" rx="4" fill="#d99876" stroke="#b56549"/><path d="M6 6.5h8M6 10h8M6 13.5h8" fill="none" stroke="#fff7e8" stroke-width="1.2" stroke-linecap="round"/></svg>
+<svg xmlns="http://www.w3.org/2000/svg" width="20" height="20" viewBox="0 0 20 20" preserveAspectRatio="none"><path d="M6 6.5h8M6 10h8M6 13.5h8" fill="none" stroke="#b56549" stroke-width="1.2" stroke-linecap="round"/></svg>
diff --git a/data/themes/folio/images/button_minimize_over.svg b/data/themes/folio/images/button_minimize_over.svg
new file mode 100644
index 0000000..a782050
--- /dev/null
+++ b/data/themes/folio/images/button_minimize_over.svg
@@ -0,0 +1,4 @@
+<svg xmlns="http://www.w3.org/2000/svg" width="20" height="20" viewBox="0 0 20 20" preserveAspectRatio="none">
+<defs></defs>
+<path d="M6 12h8" fill="none" stroke="#b56549" stroke-width="1.4" stroke-linecap="round"/>
+</svg>
diff --git a/data/themes/folio/images/images.edc b/data/themes/folio/images/images.edc
index 877e626..47e1141 100644
--- a/data/themes/folio/images/images.edc
+++ b/data/themes/folio/images/images.edc
@@ -6,9 +6,12 @@ images {
    image: "shadow_drawer.png" COMP;
    vector: "body.svg";
    vector: "button_close.svg";
+   vector: "button_expand.svg";
+   vector: "button_expand_over.svg";
    vector: "button_menu.svg";
    vector: "button_menu_on.svg";
    vector: "button_minimize.svg";
+   vector: "button_minimize_over.svg";
    vector: "cover.svg";
    vector: "cover_border.svg";
    vector: "display.svg";
diff --git a/data/themes/folio/images/meson.build b/data/themes/folio/images/meson.build
index fe11310..a3381b8 100644
--- a/data/themes/folio/images/meson.build
+++ b/data/themes/folio/images/meson.build
@@ -2,9 +2,12 @@
 theme_vectors = files(
   'body.svg',
   'button_close.svg',
+  'button_expand.svg',
+  'button_expand_over.svg',
   'button_menu.svg',
   'button_menu_on.svg',
   'button_minimize.svg',
+  'button_minimize_over.svg',
   'cover.svg',
   'cover_border.svg',
   'display.svg',
diff --git a/data/themes/folio/parts/body.edc b/data/themes/folio/parts/body.edc
index 115a367..46c139b 100644
--- a/data/themes/folio/parts/body.edc
+++ b/data/themes/folio/parts/body.edc
@@ -25,7 +25,7 @@ part {
       rel2 { relative: 0 0; offset: 293 19; to: "body"; }
    }
 }
-#define WINDOW_BUTTON(NAME, X) \
+#define WINDOW_BUTTON(NAME, X, HOVER_IMAGE) \
 part { \
    name: NAME; type: VECTOR; scale: 1; \
    description { \
@@ -34,16 +34,18 @@ part { \
       rel2 { relative: 0 0; offset: (X + 19) 20; to: "body"; } \
       image.normal: NAME".svg"; \
    } \
+   description { state: "over" 0.0; inherit: "default" 0.0; image.normal: HOVER_IMAGE; } \
    description { state: "down" 0.0; inherit: "default" 0.0; color: 180 180 180 255; } \
 }
-WINDOW_BUTTON("button_minimize", 246)
-WINDOW_BUTTON("button_close", 270)
+WINDOW_BUTTON("button_minimize", 222, "button_minimize_over.svg")
+WINDOW_BUTTON("button_expand", 246, "button_expand_over.svg")
+WINDOW_BUTTON("button_close", 270, "button_close.svg")
 
 part {
    name: "brand"; type: TEXT; scale: 1; mouse_events: 0;
    description {
       state: "default" 0.0; offset_scale: 1;
-      rel1 { relative: 0 0; offset: 23 7; to: "body"; }
+      rel1 { relative: 0 0; offset: 33 7; to: "body"; }
       rel2 { relative: 0 0; offset: 170 24; to: "body"; }
       color: 143 94 66 255;
       text { text: "F O L I O   /   0 4"; font: "Sans"; size: 9; align: 0 0.5; }
diff --git a/data/themes/frequency/images/button_expand.svg b/data/themes/frequency/images/button_expand.svg
new file mode 100644
index 0000000..a153146
--- /dev/null
+++ b/data/themes/frequency/images/button_expand.svg
@@ -0,0 +1,4 @@
+<svg xmlns="http://www.w3.org/2000/svg" width="20" height="20" viewBox="0 0 20 20" preserveAspectRatio="none">
+<defs></defs>
+<path d="M6 9V6h3m2 0h3v3m0 2v3h-3m-2 0H6v-3" fill="none" stroke="#ebcc9b" stroke-width="1.4" stroke-linecap="round"/>
+</svg>
diff --git a/data/themes/frequency/images/button_expand_over.svg b/data/themes/frequency/images/button_expand_over.svg
new file mode 100644
index 0000000..8416961
--- /dev/null
+++ b/data/themes/frequency/images/button_expand_over.svg
@@ -0,0 +1,4 @@
+<svg xmlns="http://www.w3.org/2000/svg" width="20" height="20" viewBox="0 0 20 20" preserveAspectRatio="none">
+<defs></defs>
+<path d="M6 9V6h3m2 0h3v3m0 2v3h-3m-2 0H6v-3" fill="none" stroke="#dba352" stroke-width="1.4" stroke-linecap="round"/>
+</svg>
diff --git a/data/themes/frequency/images/button_menu.svg b/data/themes/frequency/images/button_menu.svg
index 1280fca..8ce864d 100644
--- a/data/themes/frequency/images/button_menu.svg
+++ b/data/themes/frequency/images/button_menu.svg
@@ -1 +1 @@
-<svg xmlns="http://www.w3.org/2000/svg" width="20" height="20" viewBox="0 0 20 20" preserveAspectRatio="none"><rect x="1.5" y="1.5" width="17" height="17" rx="4" fill="#101919" stroke="#635b48"/><path d="M6 6.5h8M6 10h8M6 13.5h8" fill="none" stroke="#ebcc9b" stroke-width="1.2" stroke-linecap="round"/></svg>
+<svg xmlns="http://www.w3.org/2000/svg" width="20" height="20" viewBox="0 0 20 20" preserveAspectRatio="none"><path d="M6 6.5h8M6 10h8M6 13.5h8" fill="none" stroke="#ebcc9b" stroke-width="1.2" stroke-linecap="round"/></svg>
diff --git a/data/themes/frequency/images/button_menu_on.svg b/data/themes/frequency/images/button_menu_on.svg
index d11ef71..cdb5acc 100644
--- a/data/themes/frequency/images/button_menu_on.svg
+++ b/data/themes/frequency/images/button_menu_on.svg
@@ -1 +1 @@
-<svg xmlns="http://www.w3.org/2000/svg" width="20" height="20" viewBox="0 0 20 20" preserveAspectRatio="none"><rect x="1.5" y="1.5" width="17" height="17" rx="4" fill="#ffe0a2" stroke="#dba352"/><path d="M6 6.5h8M6 10h8M6 13.5h8" fill="none" stroke="#291d12" stroke-width="1.2" stroke-linecap="round"/></svg>
+<svg xmlns="http://www.w3.org/2000/svg" width="20" height="20" viewBox="0 0 20 20" preserveAspectRatio="none"><path d="M6 6.5h8M6 10h8M6 13.5h8" fill="none" stroke="#dba352" stroke-width="1.2" stroke-linecap="round"/></svg>
diff --git a/data/themes/frequency/images/button_minimize_over.svg b/data/themes/frequency/images/button_minimize_over.svg
new file mode 100644
index 0000000..3094424
--- /dev/null
+++ b/data/themes/frequency/images/button_minimize_over.svg
@@ -0,0 +1,4 @@
+<svg xmlns="http://www.w3.org/2000/svg" width="20" height="20" viewBox="0 0 20 20" preserveAspectRatio="none">
+<defs></defs>
+<path d="M6 12h8" fill="none" stroke="#dba352" stroke-width="1.4" stroke-linecap="round"/>
+</svg>
diff --git a/data/themes/frequency/images/images.edc b/data/themes/frequency/images/images.edc
index 2976f08..ac809b2 100644
--- a/data/themes/frequency/images/images.edc
+++ b/data/themes/frequency/images/images.edc
@@ -6,9 +6,12 @@ images {
    image: "shadow_drawer.png" COMP;
    vector: "body.svg";
    vector: "button_close.svg";
+   vector: "button_expand.svg";
+   vector: "button_expand_over.svg";
    vector: "button_menu.svg";
    vector: "button_menu_on.svg";
    vector: "button_minimize.svg";
+   vector: "button_minimize_over.svg";
    vector: "cover.svg";
    vector: "cover_border.svg";
    vector: "display.svg";
diff --git a/data/themes/frequency/images/meson.build b/data/themes/frequency/images/meson.build
index 9f7ae94..663c69c 100644
--- a/data/themes/frequency/images/meson.build
+++ b/data/themes/frequency/images/meson.build
@@ -2,9 +2,12 @@
 theme_vectors = files(
   'body.svg',
   'button_close.svg',
+  'button_expand.svg',
+  'button_expand_over.svg',
   'button_menu.svg',
   'button_menu_on.svg',
   'button_minimize.svg',
+  'button_minimize_over.svg',
   'cover.svg',
   'cover_border.svg',
   'display.svg',
diff --git a/data/themes/frequency/parts/body.edc b/data/themes/frequency/parts/body.edc
index c5e5221..875cddc 100644
--- a/data/themes/frequency/parts/body.edc
+++ b/data/themes/frequency/parts/body.edc
@@ -25,7 +25,7 @@ part {
       rel2 { relative: 0 0; offset: 373 19; to: "body"; }
    }
 }
-#define WINDOW_BUTTON(NAME, X) \
+#define WINDOW_BUTTON(NAME, X, HOVER_IMAGE) \
 part { \
    name: NAME; type: VECTOR; scale: 1; \
    description { \
@@ -34,17 +34,19 @@ part { \
       rel2 { relative: 0 0; offset: (X + 19) 20; to: "body"; } \
       image.normal: NAME".svg"; \
    } \
+   description { state: "over" 0.0; inherit: "default" 0.0; image.normal: HOVER_IMAGE; } \
    description { state: "down" 0.0; inherit: "default" 0.0; color: 180 180 180 255; } \
 }
-WINDOW_BUTTON("button_minimize", 326)
-WINDOW_BUTTON("button_close", 350)
+WINDOW_BUTTON("button_minimize", 302, "button_minimize_over.svg")
+WINDOW_BUTTON("button_expand", 326, "button_expand_over.svg")
+WINDOW_BUTTON("button_close", 350, "button_close.svg")
 
 part {
    name: "status_light"; type: VECTOR; scale: 1; mouse_events: 0;
    description {
       state: "default" 0.0; offset_scale: 1;
-      rel1 { relative: 0 0; offset: 20 13; to: "body"; }
-      rel2 { relative: 0 0; offset: 25 18; to: "body"; }
+      rel1 { relative: 0 0; offset: 30 13; to: "body"; }
+      rel2 { relative: 0 0; offset: 35 18; to: "body"; }
       image.normal: "status.svg"; color: 255 255 255 80;
    }
    description { state: "bright" 0.0; inherit: "default" 0.0; color: 255 255 255 255; }
@@ -53,7 +55,7 @@ part {
    name: "brand"; type: TEXT; scale: 1; mouse_events: 0;
    description {
       state: "default" 0.0; offset_scale: 1;
-      rel1 { relative: 0 0; offset: 33 8; to: "body"; }
+      rel1 { relative: 0 0; offset: 43 8; to: "body"; }
       rel2 { relative: 0 0; offset: 233 23; to: "body"; }
       color: 190 151 99 255;
       text { text: "F R E Q U E N C Y"; font: "Edje Vera"; size: 9; align: 0 0.5; }
@@ -88,7 +90,7 @@ DIAL_MARK("100", 342)
 part { name: "dial_caption"; type: TEXT; scale: 1; mouse_events: 0;
    description { state: "default" 0.0; offset_scale: 1;
       rel1 { relative: 0 0; offset: 248 8; to: "body"; }
-      rel2 { relative: 0 0; offset: 318 24; to: "body"; }
+      rel2 { relative: 0 0; offset: 294 24; to: "body"; }
       color: 154 154 123 255;
       text { text: "TIME / %"; font: "Edje Vera"; size: 8; }
    }
diff --git a/data/themes/gant/images/button_expand.svg b/data/themes/gant/images/button_expand.svg
new file mode 100644
index 0000000..eaafe12
--- /dev/null
+++ b/data/themes/gant/images/button_expand.svg
@@ -0,0 +1,4 @@
+<svg xmlns="http://www.w3.org/2000/svg" width="20" height="20" viewBox="0 0 20 20" preserveAspectRatio="none">
+<defs></defs>
+<path d="M6 9V6h3m2 0h3v3m0 2v3h-3m-2 0H6v-3" fill="none" stroke="#d4e5ef" stroke-width="1.4" stroke-linecap="round"/>
+</svg>
diff --git a/data/themes/gant/images/button_expand_over.svg b/data/themes/gant/images/button_expand_over.svg
new file mode 100644
index 0000000..5975bfb
--- /dev/null
+++ b/data/themes/gant/images/button_expand_over.svg
@@ -0,0 +1,4 @@
+<svg xmlns="http://www.w3.org/2000/svg" width="20" height="20" viewBox="0 0 20 20" preserveAspectRatio="none">
+<defs></defs>
+<path d="M6 9V6h3m2 0h3v3m0 2v3h-3m-2 0H6v-3" fill="none" stroke="#b8dcef" stroke-width="1.4" stroke-linecap="round"/>
+</svg>
diff --git a/data/themes/gant/images/button_menu.svg b/data/themes/gant/images/button_menu.svg
index 54146f4..8b5c44d 100644
--- a/data/themes/gant/images/button_menu.svg
+++ b/data/themes/gant/images/button_menu.svg
@@ -1 +1 @@
-<svg xmlns="http://www.w3.org/2000/svg" width="20" height="20" viewBox="0 0 20 20" preserveAspectRatio="none"><rect x="1.5" y="1.5" width="17" height="17" rx="4" fill="#345970" stroke="#294b64"/><path d="M6 6.5h8M6 10h8M6 13.5h8" fill="none" stroke="#d4e5ef" stroke-width="1.2" stroke-linecap="round"/></svg>
+<svg xmlns="http://www.w3.org/2000/svg" width="20" height="20" viewBox="0 0 20 20" preserveAspectRatio="none"><path d="M6 6.5h8M6 10h8M6 13.5h8" fill="none" stroke="#d4e5ef" stroke-width="1.2" stroke-linecap="round"/></svg>
diff --git a/data/themes/gant/images/button_menu_on.svg b/data/themes/gant/images/button_menu_on.svg
index 3caf80b..85fd6d3 100644
--- a/data/themes/gant/images/button_menu_on.svg
+++ b/data/themes/gant/images/button_menu_on.svg
@@ -1 +1 @@
-<svg xmlns="http://www.w3.org/2000/svg" width="20" height="20" viewBox="0 0 20 20" preserveAspectRatio="none"><rect x="1.5" y="1.5" width="17" height="17" rx="4" fill="#e4f4ff" stroke="#b8dcef"/><path d="M6 6.5h8M6 10h8M6 13.5h8" fill="none" stroke="#203e53" stroke-width="1.2" stroke-linecap="round"/></svg>
+<svg xmlns="http://www.w3.org/2000/svg" width="20" height="20" viewBox="0 0 20 20" preserveAspectRatio="none"><path d="M6 6.5h8M6 10h8M6 13.5h8" fill="none" stroke="#b8dcef" stroke-width="1.2" stroke-linecap="round"/></svg>
diff --git a/data/themes/gant/images/button_minimize_over.svg b/data/themes/gant/images/button_minimize_over.svg
new file mode 100644
index 0000000..e34a9f8
--- /dev/null
+++ b/data/themes/gant/images/button_minimize_over.svg
@@ -0,0 +1,4 @@
+<svg xmlns="http://www.w3.org/2000/svg" width="20" height="20" viewBox="0 0 20 20" preserveAspectRatio="none">
+<defs></defs>
+<path d="M6 12h8" fill="none" stroke="#b8dcef" stroke-width="1.4" stroke-linecap="round"/>
+</svg>
diff --git a/data/themes/gant/images/images.edc b/data/themes/gant/images/images.edc
index f1e0bbb..5dd05f7 100644
--- a/data/themes/gant/images/images.edc
+++ b/data/themes/gant/images/images.edc
@@ -6,9 +6,12 @@ images {
    image: "shadow_drawer.png" COMP;
    vector: "body.svg";
    vector: "button_close.svg";
+   vector: "button_expand.svg";
+   vector: "button_expand_over.svg";
    vector: "button_menu.svg";
    vector: "button_menu_on.svg";
    vector: "button_minimize.svg";
+   vector: "button_minimize_over.svg";
    vector: "cover.svg";
    vector: "cover_border.svg";
    vector: "display.svg";
diff --git a/data/themes/gant/images/meson.build b/data/themes/gant/images/meson.build
index c05b2df..3337c90 100644
--- a/data/themes/gant/images/meson.build
+++ b/data/themes/gant/images/meson.build
@@ -2,9 +2,12 @@
 theme_vectors = files(
   'body.svg',
   'button_close.svg',
+  'button_expand.svg',
+  'button_expand_over.svg',
   'button_menu.svg',
   'button_menu_on.svg',
   'button_minimize.svg',
+  'button_minimize_over.svg',
   'cover.svg',
   'cover_border.svg',
   'display.svg',
diff --git a/data/themes/gant/programs/body.edc b/data/themes/gant/programs/body.edc
index 52719b5..f6ec0d2 100644
--- a/data/themes/gant/programs/body.edc
+++ b/data/themes/gant/programs/body.edc
@@ -1,17 +1,3 @@
-program {
-   name: "button_minimize_down";
-   signal: "mouse,down,1";
-   source: "button_minimize";
-   action: STATE_SET "down" 0.0;
-   target: "button_minimize";
-}
-program {
-   name: "button_minimize_up";
-   signal: "mouse,up,1";
-   source: "button_minimize";
-   action: STATE_SET "default" 0.0;
-   target: "button_minimize";
-}
 program {
    name: "button_minimize_clicked";
    signal: "mouse,clicked,1";
diff --git a/data/themes/midnight/images/button_expand.svg b/data/themes/midnight/images/button_expand.svg
new file mode 100644
index 0000000..db1a2bd
--- /dev/null
+++ b/data/themes/midnight/images/button_expand.svg
@@ -0,0 +1,4 @@
+<svg xmlns="http://www.w3.org/2000/svg" width="20" height="20" viewBox="0 0 20 20" preserveAspectRatio="none">
+<defs></defs>
+<path d="M6 9V6h3m2 0h3v3m0 2v3h-3m-2 0H6v-3" fill="none" stroke="#e0e9f8" stroke-width="1.4" stroke-linecap="round"/>
+</svg>
diff --git a/data/themes/midnight/images/button_expand_over.svg b/data/themes/midnight/images/button_expand_over.svg
new file mode 100644
index 0000000..52fdc67
--- /dev/null
+++ b/data/themes/midnight/images/button_expand_over.svg
@@ -0,0 +1,4 @@
+<svg xmlns="http://www.w3.org/2000/svg" width="20" height="20" viewBox="0 0 20 20" preserveAspectRatio="none">
+<defs></defs>
+<path d="M6 9V6h3m2 0h3v3m0 2v3h-3m-2 0H6v-3" fill="none" stroke="#7bb1ff" stroke-width="1.4" stroke-linecap="round"/>
+</svg>
diff --git a/data/themes/midnight/images/button_menu.svg b/data/themes/midnight/images/button_menu.svg
index 4f6666d..e532b67 100644
--- a/data/themes/midnight/images/button_menu.svg
+++ b/data/themes/midnight/images/button_menu.svg
@@ -1 +1 @@
-<svg xmlns="http://www.w3.org/2000/svg" width="20" height="20" viewBox="0 0 20 20" preserveAspectRatio="none"><rect x="1.5" y="1.5" width="17" height="17" fill="#131a2a" stroke="#30415b"/><path d="M6 6.5h8M6 10h8M6 13.5h8" fill="none" stroke="#e0e9f8" stroke-width="1.2" stroke-linecap="round"/></svg>
+<svg xmlns="http://www.w3.org/2000/svg" width="20" height="20" viewBox="0 0 20 20" preserveAspectRatio="none"><path d="M6 6.5h8M6 10h8M6 13.5h8" fill="none" stroke="#e0e9f8" stroke-width="1.2" stroke-linecap="round"/></svg>
diff --git a/data/themes/midnight/images/button_menu_on.svg b/data/themes/midnight/images/button_menu_on.svg
index a2a52d7..30a11c1 100644
--- a/data/themes/midnight/images/button_menu_on.svg
+++ b/data/themes/midnight/images/button_menu_on.svg
@@ -1 +1 @@
-<svg xmlns="http://www.w3.org/2000/svg" width="20" height="20" viewBox="0 0 20 20" preserveAspectRatio="none"><rect x="1.5" y="1.5" width="17" height="17" fill="#a8ccff" stroke="#7bb1ff"/><path d="M6 6.5h8M6 10h8M6 13.5h8" fill="none" stroke="#131a2a" stroke-width="1.2" stroke-linecap="round"/></svg>
+<svg xmlns="http://www.w3.org/2000/svg" width="20" height="20" viewBox="0 0 20 20" preserveAspectRatio="none"><path d="M6 6.5h8M6 10h8M6 13.5h8" fill="none" stroke="#7bb1ff" stroke-width="1.2" stroke-linecap="round"/></svg>
diff --git a/data/themes/midnight/images/button_minimize_over.svg b/data/themes/midnight/images/button_minimize_over.svg
new file mode 100644
index 0000000..0f1d898
--- /dev/null
+++ b/data/themes/midnight/images/button_minimize_over.svg
@@ -0,0 +1,4 @@
+<svg xmlns="http://www.w3.org/2000/svg" width="20" height="20" viewBox="0 0 20 20" preserveAspectRatio="none">
+<defs></defs>
+<path d="M6 12h8" fill="none" stroke="#7bb1ff" stroke-width="1.4" stroke-linecap="round"/>
+</svg>
diff --git a/data/themes/midnight/meson.build b/data/themes/midnight/meson.build
index 9f1e9a9..05fd216 100644
--- a/data/themes/midnight/meson.build
+++ b/data/themes/midnight/meson.build
@@ -1,9 +1,12 @@
 midnight_vectors = files(
   'images/body.svg',
   'images/button_close.svg',
+  'images/button_expand.svg',
+  'images/button_expand_over.svg',
   'images/button_menu.svg',
   'images/button_menu_on.svg',
   'images/button_minimize.svg',
+  'images/button_minimize_over.svg',
   'images/cover.svg',
   'images/cover_border.svg',
   'images/display.svg',
diff --git a/data/themes/nocturne/images/button_expand.svg b/data/themes/nocturne/images/button_expand.svg
new file mode 100644
index 0000000..8162bd1
--- /dev/null
+++ b/data/themes/nocturne/images/button_expand.svg
@@ -0,0 +1,4 @@
+<svg xmlns="http://www.w3.org/2000/svg" width="20" height="20" viewBox="0 0 20 20" preserveAspectRatio="none">
+<defs></defs>
+<path d="M6 9V6h3m2 0h3v3m0 2v3h-3m-2 0H6v-3" fill="none" stroke="#d7ddef" stroke-width="1.4" stroke-linecap="round"/>
+</svg>
diff --git a/data/themes/nocturne/images/button_expand_over.svg b/data/themes/nocturne/images/button_expand_over.svg
new file mode 100644
index 0000000..a498b00
--- /dev/null
+++ b/data/themes/nocturne/images/button_expand_over.svg
@@ -0,0 +1,4 @@
+<svg xmlns="http://www.w3.org/2000/svg" width="20" height="20" viewBox="0 0 20 20" preserveAspectRatio="none">
+<defs></defs>
+<path d="M6 9V6h3m2 0h3v3m0 2v3h-3m-2 0H6v-3" fill="none" stroke="#85d9c4" stroke-width="1.4" stroke-linecap="round"/>
+</svg>
diff --git a/data/themes/nocturne/images/button_menu.svg b/data/themes/nocturne/images/button_menu.svg
index 0916d69..919d799 100644
--- a/data/themes/nocturne/images/button_menu.svg
+++ b/data/themes/nocturne/images/button_menu.svg
@@ -1 +1 @@
-<svg xmlns="http://www.w3.org/2000/svg" width="20" height="20" viewBox="0 0 20 20" preserveAspectRatio="none"><rect x="1.5" y="1.5" width="17" height="17" rx="4" fill="#141a29" stroke="#3a435c"/><path d="M6 6.5h8M6 10h8M6 13.5h8" fill="none" stroke="#d7ddef" stroke-width="1.2" stroke-linecap="round"/></svg>
+<svg xmlns="http://www.w3.org/2000/svg" width="20" height="20" viewBox="0 0 20 20" preserveAspectRatio="none"><path d="M6 6.5h8M6 10h8M6 13.5h8" fill="none" stroke="#d7ddef" stroke-width="1.2" stroke-linecap="round"/></svg>
diff --git a/data/themes/nocturne/images/button_menu_on.svg b/data/themes/nocturne/images/button_menu_on.svg
index cdfe84b..553487f 100644
--- a/data/themes/nocturne/images/button_menu_on.svg
+++ b/data/themes/nocturne/images/button_menu_on.svg
@@ -1 +1 @@
-<svg xmlns="http://www.w3.org/2000/svg" width="20" height="20" viewBox="0 0 20 20" preserveAspectRatio="none"><rect x="1.5" y="1.5" width="17" height="17" rx="4" fill="#b9eedf" stroke="#85d9c4"/><path d="M6 6.5h8M6 10h8M6 13.5h8" fill="none" stroke="#1a242a" stroke-width="1.2" stroke-linecap="round"/></svg>
+<svg xmlns="http://www.w3.org/2000/svg" width="20" height="20" viewBox="0 0 20 20" preserveAspectRatio="none"><path d="M6 6.5h8M6 10h8M6 13.5h8" fill="none" stroke="#85d9c4" stroke-width="1.2" stroke-linecap="round"/></svg>
diff --git a/data/themes/nocturne/images/button_minimize_over.svg b/data/themes/nocturne/images/button_minimize_over.svg
new file mode 100644
index 0000000..24d333a
--- /dev/null
+++ b/data/themes/nocturne/images/button_minimize_over.svg
@@ -0,0 +1,4 @@
+<svg xmlns="http://www.w3.org/2000/svg" width="20" height="20" viewBox="0 0 20 20" preserveAspectRatio="none">
+<defs></defs>
+<path d="M6 12h8" fill="none" stroke="#85d9c4" stroke-width="1.4" stroke-linecap="round"/>
+</svg>
diff --git a/data/themes/nocturne/images/images.edc b/data/themes/nocturne/images/images.edc
index 7b3231b..3ddce1e 100644
--- a/data/themes/nocturne/images/images.edc
+++ b/data/themes/nocturne/images/images.edc
@@ -6,9 +6,12 @@ images {
    image: "shadow_drawer.png" COMP;
    vector: "body.svg";
    vector: "button_close.svg";
+   vector: "button_expand.svg";
+   vector: "button_expand_over.svg";
    vector: "button_menu.svg";
    vector: "button_menu_on.svg";
    vector: "button_minimize.svg";
+   vector: "button_minimize_over.svg";
    vector: "cover.svg";
    vector: "cover_border.svg";
    vector: "display.svg";
diff --git a/data/themes/nocturne/images/meson.build b/data/themes/nocturne/images/meson.build
index d36c323..029d3f4 100644
--- a/data/themes/nocturne/images/meson.build
+++ b/data/themes/nocturne/images/meson.build
@@ -2,9 +2,12 @@
 theme_vectors = files(
   'body.svg',
   'button_close.svg',
+  'button_expand.svg',
+  'button_expand_over.svg',
   'button_menu.svg',
   'button_menu_on.svg',
   'button_minimize.svg',
+  'button_minimize_over.svg',
   'cover.svg',
   'cover_border.svg',
   'display.svg',
diff --git a/data/themes/nocturne/parts/body.edc b/data/themes/nocturne/parts/body.edc
index 313413c..ccef0e0 100644
--- a/data/themes/nocturne/parts/body.edc
+++ b/data/themes/nocturne/parts/body.edc
@@ -25,7 +25,7 @@ part {
       rel2 { relative: 0 0; offset: 293 19; to: "body"; }
    }
 }
-#define WINDOW_BUTTON(NAME, X) \
+#define WINDOW_BUTTON(NAME, X, HOVER_IMAGE) \
 part { \
    name: NAME; type: VECTOR; scale: 1; \
    description { \
@@ -34,17 +34,19 @@ part { \
       rel2 { relative: 0 0; offset: (X + 19) 20; to: "body"; } \
       image.normal: NAME".svg"; \
    } \
+   description { state: "over" 0.0; inherit: "default" 0.0; image.normal: HOVER_IMAGE; } \
    description { state: "down" 0.0; inherit: "default" 0.0; color: 180 180 180 255; } \
 }
-WINDOW_BUTTON("button_minimize", 246)
-WINDOW_BUTTON("button_close", 270)
+WINDOW_BUTTON("button_minimize", 222, "button_minimize_over.svg")
+WINDOW_BUTTON("button_expand", 246, "button_expand_over.svg")
+WINDOW_BUTTON("button_close", 270, "button_close.svg")
 
 part {
    name: "status_light"; type: VECTOR; scale: 1; mouse_events: 0;
    description {
       state: "default" 0.0; offset_scale: 1;
-      rel1 { relative: 0 0; offset: 20 13; to: "body"; }
-      rel2 { relative: 0 0; offset: 25 18; to: "body"; }
+      rel1 { relative: 0 0; offset: 30 13; to: "body"; }
+      rel2 { relative: 0 0; offset: 35 18; to: "body"; }
       image.normal: "status.svg"; color: 255 255 255 80;
    }
    description { state: "bright" 0.0; inherit: "default" 0.0; color: 255 255 255 255; }
@@ -53,7 +55,7 @@ part {
    name: "brand"; type: TEXT; scale: 1; mouse_events: 0;
    description {
       state: "default" 0.0; offset_scale: 1;
-      rel1 { relative: 0 0; offset: 33 8; to: "body"; }
+      rel1 { relative: 0 0; offset: 43 8; to: "body"; }
       rel2 { relative: 0 0; offset: 173 23; to: "body"; }
       color: BRAND_INK;
       text { text: THEME_BRAND; font: "Edje Vera"; size: 9; align: 0 0.5; }
diff --git a/data/themes/undertow/images/button_expand.svg b/data/themes/undertow/images/button_expand.svg
new file mode 100644
index 0000000..587d284
--- /dev/null
+++ b/data/themes/undertow/images/button_expand.svg
@@ -0,0 +1,4 @@
+<svg xmlns="http://www.w3.org/2000/svg" width="20" height="20" viewBox="0 0 20 20" preserveAspectRatio="none">
+<defs></defs>
+<path d="M6 9V6h3m2 0h3v3m0 2v3h-3m-2 0H6v-3" fill="none" stroke="#b6e2d8" stroke-width="1.4" stroke-linecap="round"/>
+</svg>
diff --git a/data/themes/undertow/images/button_expand_over.svg b/data/themes/undertow/images/button_expand_over.svg
new file mode 100644
index 0000000..5e97ae9
--- /dev/null
+++ b/data/themes/undertow/images/button_expand_over.svg
@@ -0,0 +1,4 @@
+<svg xmlns="http://www.w3.org/2000/svg" width="20" height="20" viewBox="0 0 20 20" preserveAspectRatio="none">
+<defs></defs>
+<path d="M6 9V6h3m2 0h3v3m0 2v3h-3m-2 0H6v-3" fill="none" stroke="#71d9b8" stroke-width="1.4" stroke-linecap="round"/>
+</svg>
diff --git a/data/themes/undertow/images/button_menu.svg b/data/themes/undertow/images/button_menu.svg
index 2f9420e..75c1a9c 100644
--- a/data/themes/undertow/images/button_menu.svg
+++ b/data/themes/undertow/images/button_menu.svg
@@ -1 +1 @@
-<svg xmlns="http://www.w3.org/2000/svg" width="20" height="20" viewBox="0 0 20 20" preserveAspectRatio="none"><rect x="1.5" y="1.5" width="17" height="17" rx="4" fill="#081c26" stroke="#38616a"/><path d="M6 6.5h8M6 10h8M6 13.5h8" fill="none" stroke="#b6e2d8" stroke-width="1.2" stroke-linecap="round"/></svg>
+<svg xmlns="http://www.w3.org/2000/svg" width="20" height="20" viewBox="0 0 20 20" preserveAspectRatio="none"><path d="M6 6.5h8M6 10h8M6 13.5h8" fill="none" stroke="#b6e2d8" stroke-width="1.2" stroke-linecap="round"/></svg>
diff --git a/data/themes/undertow/images/button_menu_on.svg b/data/themes/undertow/images/button_menu_on.svg
index 3fc235d..6d45ef1 100644
--- a/data/themes/undertow/images/button_menu_on.svg
+++ b/data/themes/undertow/images/button_menu_on.svg
@@ -1 +1 @@
-<svg xmlns="http://www.w3.org/2000/svg" width="20" height="20" viewBox="0 0 20 20" preserveAspectRatio="none"><rect x="1.5" y="1.5" width="17" height="17" rx="4" fill="#b4efd4" stroke="#71d9b8"/><path d="M6 6.5h8M6 10h8M6 13.5h8" fill="none" stroke="#0c2528" stroke-width="1.2" stroke-linecap="round"/></svg>
+<svg xmlns="http://www.w3.org/2000/svg" width="20" height="20" viewBox="0 0 20 20" preserveAspectRatio="none"><path d="M6 6.5h8M6 10h8M6 13.5h8" fill="none" stroke="#71d9b8" stroke-width="1.2" stroke-linecap="round"/></svg>
diff --git a/data/themes/undertow/images/button_minimize_over.svg b/data/themes/undertow/images/button_minimize_over.svg
new file mode 100644
index 0000000..a03a481
--- /dev/null
+++ b/data/themes/undertow/images/button_minimize_over.svg
@@ -0,0 +1,4 @@
+<svg xmlns="http://www.w3.org/2000/svg" width="20" height="20" viewBox="0 0 20 20" preserveAspectRatio="none">
+<defs></defs>
+<path d="M6 12h8" fill="none" stroke="#71d9b8" stroke-width="1.4" stroke-linecap="round"/>
+</svg>
diff --git a/data/themes/undertow/images/images.edc b/data/themes/undertow/images/images.edc
index a638c9b..183cfb3 100644
--- a/data/themes/undertow/images/images.edc
+++ b/data/themes/undertow/images/images.edc
@@ -6,9 +6,12 @@ images {
    image: "shadow_drawer.png" COMP;
    vector: "body.svg";
    vector: "button_close.svg";
+   vector: "button_expand.svg";
+   vector: "button_expand_over.svg";
    vector: "button_menu.svg";
    vector: "button_menu_on.svg";
    vector: "button_minimize.svg";
+   vector: "button_minimize_over.svg";
    vector: "cover.svg";
    vector: "cover_border.svg";
    vector: "display.svg";
diff --git a/data/themes/undertow/images/meson.build b/data/themes/undertow/images/meson.build
index 7b27df7..dc14496 100644
--- a/data/themes/undertow/images/meson.build
+++ b/data/themes/undertow/images/meson.build
@@ -2,9 +2,12 @@
 theme_vectors = files(
   'body.svg',
   'button_close.svg',
+  'button_expand.svg',
+  'button_expand_over.svg',
   'button_menu.svg',
   'button_menu_on.svg',
   'button_minimize.svg',
+  'button_minimize_over.svg',
   'cover.svg',
   'cover_border.svg',
   'display.svg',
diff --git a/data/themes/undertow/parts/body.edc b/data/themes/undertow/parts/body.edc
index 2d1e27e..d78acea 100644
--- a/data/themes/undertow/parts/body.edc
+++ b/data/themes/undertow/parts/body.edc
@@ -25,7 +25,7 @@ part {
       rel2 { relative: 0 0; offset: 333 19; to: "body"; }
    }
 }
-#define WINDOW_BUTTON(NAME, X) \
+#define WINDOW_BUTTON(NAME, X, HOVER_IMAGE) \
 part { \
    name: NAME; type: VECTOR; scale: 1; \
    description { \
@@ -34,10 +34,12 @@ part { \
       rel2 { relative: 0 0; offset: (X + 19) 20; to: "body"; } \
       image.normal: NAME".svg"; \
    } \
+   description { state: "over" 0.0; inherit: "default" 0.0; image.normal: HOVER_IMAGE; } \
    description { state: "down" 0.0; inherit: "default" 0.0; color: 180 180 180 255; } \
 }
-WINDOW_BUTTON("button_minimize", 286)
-WINDOW_BUTTON("button_close", 310)
+WINDOW_BUTTON("button_minimize", 262, "button_minimize_over.svg")
+WINDOW_BUTTON("button_expand", 286, "button_expand_over.svg")
+WINDOW_BUTTON("button_close", 310, "button_close.svg")
 
 /* A sonar echo expands through drawing geometry, without SVG object maps. */
 part {
diff --git a/data/themes/voltage/images/button_expand.svg b/data/themes/voltage/images/button_expand.svg
new file mode 100644
index 0000000..35dc8c0
--- /dev/null
+++ b/data/themes/voltage/images/button_expand.svg
@@ -0,0 +1,4 @@
+<svg xmlns="http://www.w3.org/2000/svg" width="20" height="20" viewBox="0 0 20 20" preserveAspectRatio="none">
+<defs></defs>
+<path d="M6 9V6h3m2 0h3v3m0 2v3h-3m-2 0H6v-3" fill="none" stroke="#d0f2ef" stroke-width="1.4" stroke-linecap="round"/>
+</svg>
diff --git a/data/themes/voltage/images/button_expand_over.svg b/data/themes/voltage/images/button_expand_over.svg
new file mode 100644
index 0000000..471ff5f
--- /dev/null
+++ b/data/themes/voltage/images/button_expand_over.svg
@@ -0,0 +1,4 @@
+<svg xmlns="http://www.w3.org/2000/svg" width="20" height="20" viewBox="0 0 20 20" preserveAspectRatio="none">
+<defs></defs>
+<path d="M6 9V6h3m2 0h3v3m0 2v3h-3m-2 0H6v-3" fill="none" stroke="#dcff53" stroke-width="1.4" stroke-linecap="round"/>
+</svg>
diff --git a/data/themes/voltage/images/button_menu.svg b/data/themes/voltage/images/button_menu.svg
index fe3495f..5d03a96 100644
--- a/data/themes/voltage/images/button_menu.svg
+++ b/data/themes/voltage/images/button_menu.svg
@@ -1 +1 @@
-<svg xmlns="http://www.w3.org/2000/svg" width="20" height="20" viewBox="0 0 20 20" preserveAspectRatio="none"><rect x="1.5" y="1.5" width="17" height="17" rx="4" fill="#0b1020" stroke="#386669"/><path d="M6 6.5h8M6 10h8M6 13.5h8" fill="none" stroke="#d0f2ef" stroke-width="1.2" stroke-linecap="round"/></svg>
+<svg xmlns="http://www.w3.org/2000/svg" width="20" height="20" viewBox="0 0 20 20" preserveAspectRatio="none"><path d="M6 6.5h8M6 10h8M6 13.5h8" fill="none" stroke="#d0f2ef" stroke-width="1.2" stroke-linecap="round"/></svg>
diff --git a/data/themes/voltage/images/button_menu_on.svg b/data/themes/voltage/images/button_menu_on.svg
index 6a44aa0..100e4db 100644
--- a/data/themes/voltage/images/button_menu_on.svg
+++ b/data/themes/voltage/images/button_menu_on.svg
@@ -1 +1 @@
-<svg xmlns="http://www.w3.org/2000/svg" width="20" height="20" viewBox="0 0 20 20" preserveAspectRatio="none"><rect x="1.5" y="1.5" width="17" height="17" rx="4" fill="#efffa9" stroke="#dcff53"/><path d="M6 6.5h8M6 10h8M6 13.5h8" fill="none" stroke="#141322" stroke-width="1.2" stroke-linecap="round"/></svg>
+<svg xmlns="http://www.w3.org/2000/svg" width="20" height="20" viewBox="0 0 20 20" preserveAspectRatio="none"><path d="M6 6.5h8M6 10h8M6 13.5h8" fill="none" stroke="#dcff53" stroke-width="1.2" stroke-linecap="round"/></svg>
diff --git a/data/themes/voltage/images/button_minimize_over.svg b/data/themes/voltage/images/button_minimize_over.svg
new file mode 100644
index 0000000..7fcf307
--- /dev/null
+++ b/data/themes/voltage/images/button_minimize_over.svg
@@ -0,0 +1,4 @@
+<svg xmlns="http://www.w3.org/2000/svg" width="20" height="20" viewBox="0 0 20 20" preserveAspectRatio="none">
+<defs></defs>
+<path d="M6 12h8" fill="none" stroke="#dcff53" stroke-width="1.4" stroke-linecap="round"/>
+</svg>
diff --git a/data/themes/voltage/images/images.edc b/data/themes/voltage/images/images.edc
index 4074d75..b46aaa7 100644
--- a/data/themes/voltage/images/images.edc
+++ b/data/themes/voltage/images/images.edc
@@ -8,9 +8,12 @@ images {
    image: "shadow_drawer.png" COMP;
    vector: "body.svg";
    vector: "button_close.svg";
+   vector: "button_expand.svg";
+   vector: "button_expand_over.svg";
    vector: "button_menu.svg";
    vector: "button_menu_on.svg";
    vector: "button_minimize.svg";
+   vector: "button_minimize_over.svg";
    vector: "cover.svg";
    vector: "cover_border.svg";
    vector: "display.svg";
diff --git a/data/themes/voltage/images/meson.build b/data/themes/voltage/images/meson.build
index d36c323..029d3f4 100644
--- a/data/themes/voltage/images/meson.build
+++ b/data/themes/voltage/images/meson.build
@@ -2,9 +2,12 @@
 theme_vectors = files(
   'body.svg',
   'button_close.svg',
+  'button_expand.svg',
+  'button_expand_over.svg',
   'button_menu.svg',
   'button_menu_on.svg',
   'button_minimize.svg',
+  'button_minimize_over.svg',
   'cover.svg',
   'cover_border.svg',
   'display.svg',
diff --git a/data/themes/voltage/parts/body.edc b/data/themes/voltage/parts/body.edc
index 02f633a..036a153 100644
--- a/data/themes/voltage/parts/body.edc
+++ b/data/themes/voltage/parts/body.edc
@@ -25,7 +25,7 @@ part {
       rel2 { relative: 0 0; offset: 333 19; to: "body"; }
    }
 }
-#define WINDOW_BUTTON(NAME, X) \
+#define WINDOW_BUTTON(NAME, X, HOVER_IMAGE) \
 part { \
    name: NAME; type: VECTOR; scale: 1; \
    description { \
@@ -34,10 +34,12 @@ part { \
       rel2 { relative: 0 0; offset: (X + 19) 20; to: "body"; } \
       image.normal: NAME".svg"; \
    } \
+   description { state: "over" 0.0; inherit: "default" 0.0; image.normal: HOVER_IMAGE; } \
    description { state: "down" 0.0; inherit: "default" 0.0; color: 180 180 180 255; } \
 }
-WINDOW_BUTTON("button_minimize", 286)
-WINDOW_BUTTON("button_close", 310)
+WINDOW_BUTTON("button_minimize", 262, "button_minimize_over.svg")
+WINDOW_BUTTON("button_expand", 286, "button_expand_over.svg")
+WINDOW_BUTTON("button_close", 310, "button_close.svg")
 
 part {
    name: "status_light"; type: VECTOR; scale: 1; mouse_events: 0;
diff --git a/src/bin/theme-dialogs.py b/src/bin/theme-dialogs.py
index 97a5deb..66ad519 100644
--- a/src/bin/theme-dialogs.py
+++ b/src/bin/theme-dialogs.py
@@ -15,10 +15,9 @@ def build(root, theme, p):
     panel('ui_pressed', p['bottom'], p['accent'])
     panel('ui_menu', p['bottom'], p['edge'], 240, 240)
     panel('ui_search', p['well'], p['edge'], 600, 40)
-    for active in (False, True):
-        svg('button_menu_on' if active else 'button_menu', 20, 20,
-            f'<rect x="1.5" y="1.5" width="17" height="17" rx="4" fill="{p["accent_light"] if active else p["well"]}" stroke="{p["accent"] if active else p["edge"]}"/>'
-            f'<path d="M6 6.5h8M6 10h8M6 13.5h8" fill="none" stroke="{p["shade"] if active else p["ink"]}" stroke-width="1.2" stroke-linecap="round"/>')
+    for suffix, ink in [('', p['ink']), ('_on', p['accent'])]:
+        svg('button_menu' + suffix, 20, 20,
+            f'<path d="M6 6.5h8M6 10h8M6 13.5h8" fill="none" stroke="{ink}" stroke-width="1.2" stroke-linecap="round"/>')
     # Broad, quiet framing with a different signature for each instrument.
     motifs = {
         'default': '<path d="M620 29h100m-100 5h72m-72 5h44"/>',
diff --git a/src/bin/theme-vectors.py b/src/bin/theme-vectors.py
index eab6048..7f937af 100644
--- a/src/bin/theme-vectors.py
+++ b/src/bin/theme-vectors.py
@@ -131,8 +131,18 @@ def build(theme, p):
         for state, ink in [('', p['ink']), ('_over', p['accent']), ('_down', p['shade'])]:
             svg('nav_' + name + state, 24, 24,
                 f'<path d="{path}" fill="{ink}" stroke-linejoin="round"/>')
-    for name, path in [('button_close', 'M6 6 14 14M14 6 6 14'), ('button_minimize', 'M6 12h8')]:
-        svg(name, 20, 20, f'<path d="{path}" fill="none" stroke="{p["ink"]}" stroke-width="1.4" stroke-linecap="round"/>')
+    window_icons = {
+        'button_close': 'M6 6 14 14M14 6 6 14',
+        'button_minimize': 'M6 12h8',
+        'button_expand': 'M6 9V6h3m2 0h3v3m0 2v3h-3m-2 0H6v-3',
+    }
+    for name, path in window_icons.items():
+        states = [('', p['ink'])]
+        if name != 'button_close':
+            states.append(('_over', p['accent']))
+        for suffix, ink in states:
+            svg(name + suffix, 20, 20,
+                f'<path d="{path}" fill="none" stroke="{ink}" stroke-width="1.4" stroke-linecap="round"/>')
     modes = {
         'repeat': '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',
         'shuffle': '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',
diff --git a/src/lib/eclair_window.c b/src/lib/eclair_window.c
index 723c7ed..9b1c0f0 100644
--- a/src/lib/eclair_window.c
+++ b/src/lib/eclair_window.c
@@ -74,6 +74,7 @@ static void _eclair_window_move_start_cb(void *data, Evas *evas, Evas_Object *ob
    elm_win_move_resize_start(window->window, ELM_WIN_MOVE_RESIZE_MOVE);
 }
 
+static void _eclair_window_expand_cb(void *data, Evas_Object *edje_object, const char *emission, const char *source);
 static void _eclair_window_resize_start_cb(void *data, Evas_Object *edje_object, const char *emission, const char *source);
 static void _eclair_window_resize_cb(void *data, Evas *evas, Evas_Object *obj, void *event);
 static void _eclair_window_close_request_cb(void *data, Evas_Object *obj, void *event);
@@ -278,6 +279,7 @@ void eclair_window_add_default_callbacks(Eclair_Window *window, Eclair *eclair)
    evas_object_event_callback_add(window->edje_object, EVAS_CALLBACK_KEY_DOWN, eclair_key_press_cb, eclair);
    evas_object_smart_callback_add(window->window, "delete,request", _eclair_window_close_request_cb, window);
    edje_object_signal_callback_add(window->edje_object, "eclair_open", "*", eclair_open_cb, &eclair->dialogs_manager);
+   edje_object_signal_callback_add(window->edje_object, "eclair_main_expand", "*", _eclair_window_expand_cb, window);
    edje_object_signal_callback_add(window->edje_object, "eclair_menu_toggle", "*", _eclair_window_menu_cb, window);
    edje_object_signal_callback_add(window->edje_object, "eclair_add_file", "*", eclair_open_cb, &eclair->dialogs_manager);
    edje_object_signal_callback_add(window->edje_object, "eclair_play", "*", eclair_play_cb, eclair);
@@ -417,6 +419,12 @@ void eclair_window_minimize_cb(void *data, Evas_Object *edje_object, const char
       elm_win_iconified_set(window->window, EINA_TRUE);
 }
 
+static void _eclair_window_expand_cb(void *data, Evas_Object *edje_object, const char *emission, const char *source)
+{
+   Eclair_Window *window = data;
+   elm_win_fullscreen_set(window->window, !elm_win_fullscreen_get(window->window));
+}
+
 //Called when the window object sends the "signal_resize_start" signal
 static void _eclair_window_resize_start_cb(void *data, Evas_Object *edje_object, const char *emission, const char *source)
 {
diff --git a/src/tests/menu-player.c b/src/tests/menu-player.c
index 1e7bfeb..789ace1 100644
--- a/src/tests/menu-player.c
+++ b/src/tests/menu-player.c
@@ -145,6 +145,8 @@ int main(int argc, char **argv)
       point(win, burger, EINA_TRUE);
       key(win, "Escape");
       assert(!evas_object_visible_get(menu->widget));
+      evas_event_feed_mouse_move(app.gui_window->evas, 0, 0, 0, NULL);
+      settle(win);
       assert(!strcmp(edje_object_part_state_get(layout, "button_menu", NULL), "default"));
       /* About is a direct action, uses the current skin, and is single-instance. */
       point(win, burger, EINA_TRUE);
diff --git a/src/tests/vector-controls.c b/src/tests/vector-controls.c
index ad7c292..5e79de1 100644
--- a/src/tests/vector-controls.c
+++ b/src/tests/vector-controls.c
@@ -41,8 +41,8 @@ static void click(Ecore_Evas *canvas, Evas_Object *layout, const char *part)
 int main(int argc, char **argv)
 {
    ecore_evas_init(); edje_init();
-   const char *parts[] = {"button_play", "button_stop", "button_prev", "button_next", "button_open", "button_repeat", "button_shuffle", "button_close", "button_minimize"};
-   const char *signals[] = {"eclair_play", "eclair_stop", "eclair_prev", "eclair_next", "eclair_open", "eclair_repeat_toggle", "eclair_shuffle_toggle", "eclair_main_close", "eclair_main_minimize"};
+   const char *parts[] = {"button_play", "button_stop", "button_prev", "button_next", "button_open", "button_repeat", "button_shuffle", "button_close", "button_minimize", "button_expand", "button_menu"};
+   const char *signals[] = {"eclair_play", "eclair_stop", "eclair_prev", "eclair_next", "eclair_open", "eclair_repeat_toggle", "eclair_shuffle_toggle", "eclair_main_close", "eclair_main_minimize", "eclair_main_expand", "eclair_menu_toggle"};
    for (int theme = 1; theme < argc; theme++) {
       Ecore_Evas *canvas = ecore_evas_buffer_new(1100, 1100);
       assert(canvas);
@@ -108,13 +108,51 @@ int main(int argc, char **argv)
          separate(repeat, bounds(layout, "volume_bar_track"));
          separate(bounds(layout, "info_bar"), bounds(layout, "transport"));
          separate(bounds(layout, "info_bar"), bounds(layout, "button_close"));
-         for (int i = 0; i < 9; i++) {
+         for (size_t i = 0; i < sizeof(parts) / sizeof(parts[0]); i++) {
             int count = 0;
             edje_object_signal_callback_add(layout, signals[i], "*", received, &count);
             click(canvas, layout, parts[i]);
             assert(count == 1);
             edje_object_signal_callback_del_full(layout, signals[i], "*", received, &count);
          }
+         Bounds body = bounds(layout, "body");
+         Bounds menu = bounds(layout, "button_menu");
+         Bounds minimize = bounds(layout, "button_minimize");
+         Bounds expand = bounds(layout, "button_expand");
+         Bounds close = bounds(layout, "button_close");
+         assert(fabs(menu.x - body.x - 6 * scale) <= 1);
+         assert(menu.x + menu.w <= minimize.x);
+         assert(minimize.x + minimize.w <= expand.x);
+         assert(expand.x + expand.w <= close.x);
+         const char *hover_parts[] = {"button_menu", "button_expand", "button_minimize"};
+         for (size_t i = 0; i < sizeof(hover_parts) / sizeof(hover_parts[0]); i++) {
+            const char *part = hover_parts[i];
+            Bounds button = bounds(layout, part);
+            separate(button, bounds(layout, "info_bar"));
+            evas_event_feed_mouse_move(ecore_evas_get(canvas), 0, 0, 0, NULL);
+            flush(layout);
+            Evas *evas = ecore_evas_get(canvas);
+            ecore_evas_manual_render(canvas);
+            const unsigned int *pixels = ecore_evas_buffer_pixels_get(canvas);
+            unsigned int resting[40][40];
+            assert(button.w <= 40 && button.h <= 40);
+            for (int y = 0; y < button.h; y++)
+               memcpy(resting[y], pixels + (button.y + y) * 1100 + button.x,
+                      button.w * sizeof(*pixels));
+            evas_event_feed_mouse_move(evas, button.x + button.w / 2, button.y + button.h / 2, 0, NULL);
+            flush(layout);
+            assert(!strcmp(edje_object_part_state_get(layout, part, NULL), "over"));
+            ecore_evas_manual_render(canvas);
+            pixels = ecore_evas_buffer_pixels_get(canvas);
+            Eina_Bool changed = EINA_FALSE;
+            for (int y = 0; y < button.h; y++)
+               changed |= memcmp(resting[y], pixels + (button.y + y) * 1100 + button.x,
+                                 button.w * sizeof(*pixels)) != 0;
+            assert(changed);
+            evas_event_feed_mouse_move(evas, 0, 0, 0, NULL);
+            flush(layout);
+            assert(!strcmp(edje_object_part_state_get(layout, part, NULL), "default"));
+         }
          /* Playing replaces the center glyph and routes its click to pause. */
          int pause = 0, play = 0;
          edje_object_signal_callback_add(layout, "eclair_pause", "*", received, &pause);

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

Reply via email to