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

git pushed a commit to branch main
in repository exposure.

View the commit online.

commit 262cecfd63cb88b6f7359ca08a2c92b924f20c20
Author: Alastair Poole <[email protected]>
AuthorDate: Thu Dec 3 07:38:26 2026 +0000

    Release 0.2.0 with Elaro-style themes
    
    Align the title bar and its controls with Elaro and move Settings into the main title bar. Match the radio buttons, Mirror camera switch, and both scrollbar orientations to the custom theme palettes.
---
 NEWS                                           |   6 ++
 VERSION                                        |   2 +-
 data/themes/AUTHORS.artwork                    |   4 +
 data/themes/common/exposure_controls.edc       |  52 +++++++++++++
 data/themes/common/exposure_groups.edc         |   3 +
 data/themes/common/exposure_radio.edc          |  60 +++++++++++++++
 data/themes/common/exposure_scroller.edc       | 102 +++++++++++++++++++++++++
 data/themes/common/exposure_toggle.edc         |  75 ++++++++++++++++++
 data/themes/common/exposure_window.edc         |  18 ++++-
 data/themes/images/exposure_close.svg          |   4 +-
 data/themes/images/exposure_maximize.svg       |   4 +-
 data/themes/images/exposure_menu.svg           |   4 +-
 data/themes/images/exposure_minimize.svg       |   4 +-
 data/themes/images/exposure_radio_circle.svg   |   3 +
 data/themes/images/exposure_window_control.svg |   3 +
 data/themes/meson.build                        |   5 ++
 data/themes/midnight/exposure_key.svg          |   6 +-
 data/themes/midnight/exposure_key_hover.svg    |   6 +-
 data/themes/midnight/exposure_key_pressed.svg  |   6 +-
 data/themes/midnight/exposure_midnight.edc     |   9 ++-
 data/themes/stock/exposure_stock.edc           |   3 +
 src/bin/exposure.c                             |   6 +-
 src/bin/exposure.h                             |   9 ++-
 src/bin/exposure_ui.c                          |  84 +++++++++++++++++---
 src/bin/exposure_window.c                      |  19 +++--
 25 files changed, 454 insertions(+), 43 deletions(-)

diff --git a/NEWS b/NEWS
index e1ad383..88e969f 100644
--- a/NEWS
+++ b/NEWS
@@ -1,3 +1,9 @@
+==============
+Exposure 0.2.0
+==============
+
+  * Updated custom themes with Elaro-style window controls, switches, and scrollbars.
+
 ==============
 Exposure 0.1.2
 ==============
diff --git a/VERSION b/VERSION
index d917d3e..0ea3a94 100644
--- a/VERSION
+++ b/VERSION
@@ -1 +1 @@
-0.1.2
+0.2.0
diff --git a/data/themes/AUTHORS.artwork b/data/themes/AUTHORS.artwork
index 5591df3..6baedc5 100644
--- a/data/themes/AUTHORS.artwork
+++ b/data/themes/AUTHORS.artwork
@@ -2,3 +2,7 @@ The window and control artwork copied from Scribble's Observatory, Atelier,
 Crazy Lab, and Midnight themes originated in Equation by the Enlightenment
 Development Team and Alastair Poole. It is licensed under GPL-2.0-only.
 See COPYING.equation.
+
+The Midnight button and rounded window control artwork is from Elaro
+and is licensed under GPL-2.0-only. See COPYING.equation.
+The radio circle and window control icons are also from Elaro.
diff --git a/data/themes/common/exposure_controls.edc b/data/themes/common/exposure_controls.edc
index feeac7e..13c2ce3 100644
--- a/data/themes/common/exposure_controls.edc
+++ b/data/themes/common/exposure_controls.edc
@@ -87,6 +87,58 @@ group { name: "elm/button/base/exposure";
    }
 }
 
+/* Elaro title-bar controls with the active Exposure palette. */
+group { name: "elm/button/base/exposure-window";
+   min: 30 30;
+   images.image: "images/exposure_window_control.svg" COMP;
+   parts {
+      part { name: "surface"; type: IMAGE; mouse_events: 0;
+         scale: 1;
+         description { state: "default" 0.0; offset_scale: 1; visible: 0;
+            rel1.offset: 2 2; rel2.offset: -3 -3;
+            image { normal: "images/exposure_window_control.svg"; border: 6 6 6 6; border_scale: 1; }
+         }
+         description { state: "over" 0.0; inherit: "default" 0.0; color_class: "exposure/panel"; visible: 1; }
+         description { state: "pressed" 0.0; inherit: "default" 0.0; color_class: "exposure/key"; visible: 1; }
+      }
+      part { name: "content_clip"; type: RECT; mouse_events: 0;
+         description { state: "default" 0.0; }
+         description { state: "disabled" 0.0; inherit: "default" 0.0; color: 255 255 255 110; }
+      }
+      part { name: "elm.swallow.content"; type: SWALLOW; clip_to: "content_clip";
+         scale: 1;
+         description { state: "default" 0.0; offset_scale: 1;
+            rel1.offset: 5 5; rel2.offset: -5 -5; }
+      }
+      part { name: "event"; type: RECT; ignore_flags: ON_HOLD;
+         description { state: "default" 0.0; color: 0 0 0 0; }
+         description { state: "disabled" 0.0; inherit: "default" 0.0; visible: 0; }
+      }
+   }
+   programs {
+      program { signal: "mouse,in"; source: "event"; action: STATE_SET "over" 0.0; target: "surface"; }
+      program { signal: "mouse,out"; source: "event"; action: STATE_SET "default" 0.0; target: "surface"; }
+      program { signal: "mouse,down,1"; source: "event"; action: SIGNAL_EMIT "elm,action,press" "elm"; after: "press"; }
+      program { name: "press"; action: STATE_SET "pressed" 0.0; target: "surface"; }
+      program { signal: "mouse,up,1"; source: "event"; action: SIGNAL_EMIT "elm,action,unpress" "elm"; after: "release"; }
+      program { name: "release"; action: STATE_SET "over" 0.0; target: "surface"; }
+      program { signal: "mouse,clicked,1"; source: "event"; action: SIGNAL_EMIT "elm,action,click" "elm"; }
+      program { signal: "elm,state,disabled"; source: "elm"; action: STATE_SET "disabled" 0.0; target: "event"; target: "content_clip"; }
+      program { signal: "elm,state,enabled"; source: "elm"; action: STATE_SET "default" 0.0; target: "event"; target: "content_clip"; }
+      program { signal: "elm,action,focus_highlight,show"; source: "elm"; action: STATE_SET "over" 0.0; target: "surface"; }
+      program { signal: "elm,action,focus_highlight,hide"; source: "elm"; action: STATE_SET "default" 0.0; target: "surface"; }
+   }
+}
+group { name: "elm/button/base/exposure-window-close";
+   inherit: "elm/button/base/exposure-window";
+   parts {
+      part { name: "surface";
+         description { state: "over" 0.0; color: 214 66 86 48; }
+         description { state: "pressed" 0.0; color: 214 66 86 88; }
+      }
+   }
+}
+
 group { name: "elm/button/base/exposure-text";
    inherit: "elm/button/base/exposure";
    parts {
diff --git a/data/themes/common/exposure_groups.edc b/data/themes/common/exposure_groups.edc
index 526f302..7493531 100644
--- a/data/themes/common/exposure_groups.edc
+++ b/data/themes/common/exposure_groups.edc
@@ -27,6 +27,9 @@ collections {
    #include "exposure_dropdown.edc"
    #include "exposure_print.edc"
    #include "exposure_window.edc"
+   #include "exposure_radio.edc"
+   #include "exposure_toggle.edc"
+   #include "exposure_scroller.edc"
 
    #include "exposure_icons.edc"
 }
diff --git a/data/themes/common/exposure_radio.edc b/data/themes/common/exposure_radio.edc
new file mode 100644
index 0000000..2169cdb
--- /dev/null
+++ b/data/themes/common/exposure_radio.edc
@@ -0,0 +1,60 @@
+group { name: "elm/radio/base/default";
+   images.image: "images/exposure_radio_circle.svg" COMP;
+   parts {
+      part { name: "clip"; type: RECT; mouse_events: 0;
+         description { state: "default" 0.0; }
+         description { state: "disabled" 0.0; color: 255 255 255 145; }
+      }
+      part { name: "ring"; type: IMAGE; scale: 1; mouse_events: 0; clip_to: "clip";
+         description { state: "default" 0.0; offset_scale: 1; color_class: "exposure/muted";
+            image.normal: "images/exposure_radio_circle.svg"; min: 15 15; max: 15 15; align: 0 0.5;
+            rel1.offset: 5 0; rel2 { relative: 0 1; offset: 5 -1; }
+         }
+         description { state: "selected" 0.0; inherit: "default" 0.0; color_class: "exposure/accent"; }
+      }
+      part { name: "well"; type: IMAGE; scale: 1; mouse_events: 0; clip_to: "clip";
+         description { state: "default" 0.0; offset_scale: 1; color_class: "exposure/body";
+            image.normal: "images/exposure_radio_circle.svg"; rel.to: "ring"; rel1.offset: 1 1; rel2.offset: -2 -2;
+         }
+      }
+      part { name: "dot"; type: IMAGE; scale: 1; mouse_events: 0; clip_to: "clip";
+         description { state: "default" 0.0; offset_scale: 1; color_class: "exposure/accent"; visible: 0;
+            image.normal: "images/exposure_radio_circle.svg"; rel.to: "ring"; rel1.offset: 4 4; rel2.offset: -5 -5;
+         }
+         description { state: "selected" 0.0; inherit: "default" 0.0; visible: 1; }
+      }
+      part { name: "elm.swallow.content"; type: SWALLOW; mouse_events: 0;
+         description { state: "default" 0.0; offset_scale: 1; align: 0 0.5;
+            rel1 { to_x: "ring"; relative: 1 0; offset: 6 0; }
+            rel2 { to_x: "ring"; relative: 1 1; offset: 15 -1; }
+         }
+      }
+      part { name: "elm.text"; type: TEXT; scale: 1; mouse_events: 0; clip_to: "clip";
+         description { state: "default" 0.0; offset_scale: 1; color_class: "exposure/ink";
+            rel1 { to_x: "elm.swallow.content"; relative: 1 0; offset: 6 6; } rel2.offset: -5 -7;
+            text { font: "Sans"; size: 11; text_class: "label"; min: 1 1; align: 0 0.5; }
+         }
+      }
+      part { name: "event"; type: RECT; ignore_flags: ON_HOLD;
+         description { state: "default" 0.0; color: 0 0 0 0; }
+         description { state: "disabled" 0.0; inherit: "default" 0.0; visible: 0; }
+      }
+   }
+   programs {
+      program { signal: "mouse,clicked,1"; source: "event";
+         action: SIGNAL_EMIT "elm,action,radio,toggle" "elm";
+      }
+      program { signal: "elm,state,radio,on"; source: "elm";
+         action: STATE_SET "selected" 0.0; target: "ring"; target: "dot";
+      }
+      program { signal: "elm,state,radio,off"; source: "elm";
+         action: STATE_SET "default" 0.0; target: "ring"; target: "dot";
+      }
+      program { signal: "elm,state,disabled"; source: "elm";
+         action: STATE_SET "disabled" 0.0; target: "clip"; target: "event";
+      }
+      program { signal: "elm,state,enabled"; source: "elm";
+         action: STATE_SET "default" 0.0; target: "clip"; target: "event";
+      }
+   }
+}
diff --git a/data/themes/common/exposure_scroller.edc b/data/themes/common/exposure_scroller.edc
new file mode 100644
index 0000000..ab74a56
--- /dev/null
+++ b/data/themes/common/exposure_scroller.edc
@@ -0,0 +1,102 @@
+#define EXPOSURE_SCROLLBAR_SURFACE \
+   image { normal: "images/exposure_window_control.svg"; border: 6 6 6 6; border_scale: 1; }
+
+#ifndef EXPOSURE_SCROLLBAR_NORMAL
+#define EXPOSURE_SCROLLBAR_NORMAL color: 255 255 255 217; color_class: "exposure/accent";
+#define EXPOSURE_SCROLLBAR_DISABLED color: 255 255 255 115; color_class: "exposure/accent";
+#endif
+
+/* The full drag handle stays wider than the visible thumb. */
+#define SCROLLBAR_PARTS(visibility, rail, lane, handle, thumb, before, after, \
+   first_x, first_y, last_x, last_y, x1, y1, x2, y2, \
+   dx, dy, end_x, end_y, side_x, side_y, cross_w, cross_h) \
+   part { name: visibility; type: RECT; mouse_events: 0; \
+      description { state: "default" 0.0; visible: 0; } \
+      description { state: "visible" 0.0; } \
+   } \
+   part { name: lane; type: SPACER; scale: 1; \
+      description { state: "default" 0.0; offset_scale: 1; \
+         rel1 { relative: first_x first_y; offset: x1 y1; } \
+         rel2 { relative: last_x last_y; offset: x2 y2; } \
+      } \
+   } \
+   part { name: rail; type: IMAGE; mouse_events: 0; scale: 1; clip_to: visibility; \
+      description { state: "default" 0.0; rel.to: lane; \
+         align: side_x side_y; max: cross_w cross_h; color_class: "exposure/panel"; EXPOSURE_SCROLLBAR_SURFACE \
+      } \
+   } \
+   part { name: before; type: RECT; clip_to: visibility; \
+      description { state: "default" 0.0; color: 0 0 0 0; \
+         rel1.to: lane; rel2 { to: handle; relative: end_x end_y; offset: -1 -1; } \
+      } \
+   } \
+   part { name: after; type: RECT; clip_to: visibility; \
+      description { state: "default" 0.0; color: 0 0 0 0; \
+         rel1 { to: handle; relative: dx dy; } rel2.to: lane; \
+      } \
+   } \
+   part { name: handle; type: RECT; scale: 1; clip_to: visibility; \
+      dragable { x: dx 1 0; y: dy 1 0; confine: lane; } \
+      description { state: "default" 0.0; color: 0 0 0 0; min: 12 12; fixed: 1 1; \
+         rel1 { to: lane; relative: 0.5 0.5; } \
+         rel2 { to: lane; relative: 0.5 0.5; } \
+      } \
+   } \
+   part { name: thumb; type: IMAGE; mouse_events: 0; scale: 1; clip_to: visibility; \
+      description { state: "default" 0.0; rel.to: handle; \
+         align: side_x side_y; max: cross_w cross_h; EXPOSURE_SCROLLBAR_NORMAL EXPOSURE_SCROLLBAR_SURFACE \
+      } \
+      description { state: "pressed" 0.0; inherit: "default" 0.0; color: 255 255 255 255; color_class: "exposure/accent"; } \
+      description { state: "disabled" 0.0; inherit: "default" 0.0; EXPOSURE_SCROLLBAR_DISABLED } \
+   }
+
+#define SCROLLBAR_PROGRAMS(show, hide, press, unpress, visibility, handle, thumb, before, after, dx, dy, neg_x, neg_y) \
+   program { signal: show; source: "elm"; action: STATE_SET "visible" 0.0; target: visibility; } \
+   program { signal: hide; source: "elm"; action: STATE_SET "default" 0.0; target: visibility; } \
+   program { signal: "mouse,down,1*"; source: before; action: DRAG_VAL_PAGE neg_x neg_y; target: handle; } \
+   program { signal: "mouse,down,1*"; source: after; action: DRAG_VAL_PAGE dx dy; target: handle; } \
+   program { signal: "mouse,down,1*"; source: handle; action: STATE_SET "pressed" 0.0; target: thumb; } \
+   program { signal: "mouse,up,1*"; source: handle; action: STATE_SET "default" 0.0; target: thumb; } \
+   program { signal: "mouse,down,*"; source: handle; action: SIGNAL_EMIT press "elm"; } \
+   program { signal: "mouse,up,*"; source: handle; action: SIGNAL_EMIT unpress "elm"; }
+
+group { name: "elm/scroller/base/default";
+   images.image: "images/exposure_window_control.svg" COMP;
+   parts {
+      part { name: "bg"; type: RECT; mouse_events: 0;
+         description { state: "default" 0.0; color_class: "exposure/body"; }
+      }
+      part { name: "clip"; type: RECT; mouse_events: 0;
+         description { state: "default" 0.0; }
+      }
+      part { name: "elm.swallow.background"; type: SWALLOW; mouse_events: 0; clip_to: "clip";
+         description { state: "default" 0.0; }
+      }
+      part { name: "elm.swallow.content"; type: SWALLOW; clip_to: "clip";
+         description { state: "default" 0.0; }
+      }
+      part { name: "elm.swallow.overlay"; type: SWALLOW; }
+      SCROLLBAR_PARTS("v-visible", "v-rail", "v-lane", "elm.dragable.vbar", "v-thumb", "v-before", "v-after",
+      1, 0, 1, 1, -15, 3, -4, -16, 0, 1, 1, 0, 1, 0.5, 5, 99999)
+      SCROLLBAR_PARTS("h-visible", "h-rail", "h-lane", "elm.dragable.hbar", "h-thumb", "h-before", "h-after",
+      0, 1, 1, 1, 3, -15, -16, -4, 1, 0, 0, 1, 0.5, 1, 99999, 5)
+   }
+   programs {
+      SCROLLBAR_PROGRAMS("elm,action,show,vbar", "elm,action,hide,vbar", "elm,vbar,press", "elm,vbar,unpress",
+      "v-visible", "elm.dragable.vbar", "v-thumb", "v-before", "v-after", 0, 1, 0, -1)
+      SCROLLBAR_PROGRAMS("elm,action,show,hbar", "elm,action,hide,hbar", "elm,hbar,press", "elm,hbar,unpress",
+      "h-visible", "elm.dragable.hbar", "h-thumb", "h-before", "h-after", 1, 0, -1, 0)
+      program { signal: "elm,state,disabled"; source: "elm";
+         action: STATE_SET "disabled" 0.0; target: "v-thumb"; target: "h-thumb";
+      }
+      program { signal: "elm,state,enabled"; source: "elm";
+         action: STATE_SET "default" 0.0; target: "v-thumb"; target: "h-thumb";
+      }
+   }
+}
+#undef SCROLLBAR_PARTS
+#undef SCROLLBAR_PROGRAMS
+
+#undef EXPOSURE_SCROLLBAR_SURFACE
+#undef EXPOSURE_SCROLLBAR_NORMAL
+#undef EXPOSURE_SCROLLBAR_DISABLED
diff --git a/data/themes/common/exposure_toggle.edc b/data/themes/common/exposure_toggle.edc
new file mode 100644
index 0000000..9b45350
--- /dev/null
+++ b/data/themes/common/exposure_toggle.edc
@@ -0,0 +1,75 @@
+group { name: "elm/check/base/toggle";
+   images {
+      image: "images/exposure_window_control.svg" COMP;
+      image: "images/exposure_radio_circle.svg" COMP;
+   }
+   parts {
+      part { name: "clip"; type: RECT; mouse_events: 0;
+         description { state: "default" 0.0; }
+         description { state: "disabled" 0.0; color: 255 255 255 145; }
+      }
+      part { name: "track"; type: IMAGE; scale: 1; mouse_events: 0; clip_to: "clip";
+         description { state: "default" 0.0; offset_scale: 1;
+            min: 38 20; max: 38 20; align: 0 0.5;
+            rel1.offset: 5 0; rel2 { relative: 0 1; offset: 5 -1; }
+            color_class: "exposure/muted";
+            image { normal: "images/exposure_window_control.svg"; border: 7 7 7 7; border_scale: 1; }
+         }
+         description { state: "on" 0.0; inherit: "default" 0.0;
+            color_class: "exposure/accent";
+         }
+      }
+      part { name: "well"; type: IMAGE; scale: 1; mouse_events: 0; clip_to: "clip";
+         description { state: "default" 0.0; offset_scale: 1;
+            rel.to: "track"; rel1.offset: 1 1; rel2.offset: -2 -2;
+            color_class: "exposure/well";
+            image { normal: "images/exposure_window_control.svg"; border: 7 7 7 7; border_scale: 1; }
+         }
+         description { state: "on" 0.0; inherit: "default" 0.0;
+            color_class: "exposure/accent";
+         }
+      }
+      part { name: "thumb"; type: IMAGE; scale: 1; mouse_events: 0; clip_to: "clip";
+         description { state: "default" 0.0; offset_scale: 1;
+            rel.to: "track"; rel1.offset: 3 3;
+            rel2 { relative: 0 1; offset: 16 -4; }
+            color_class: "exposure/ink";
+            image.normal: "images/exposure_radio_circle.svg";
+         }
+         description { state: "on" 0.0; inherit: "default" 0.0;
+            rel1 { relative: 1 0; offset: -17 3; }
+            rel2 { relative: 1 1; offset: -4 -4; }
+            color_class: "exposure/body";
+         }
+      }
+      part { name: "elm.text"; type: TEXT; scale: 1; mouse_events: 0; clip_to: "clip";
+         description { state: "default" 0.0; offset_scale: 1;
+            rel1 { to_x: "track"; relative: 1 0; offset: 9 6; }
+            rel2.offset: -5 -7;
+            color_class: "exposure/ink";
+            text { font: "Sans"; size: 11; text_class: "label"; min: 1 1; align: 0 0.5; }
+         }
+      }
+      part { name: "event"; type: RECT; ignore_flags: ON_HOLD;
+         description { state: "default" 0.0; color: 0 0 0 0; }
+         description { state: "disabled" 0.0; visible: 0; }
+      }
+   }
+   programs {
+      program { signal: "mouse,clicked,1"; source: "event";
+         action: SIGNAL_EMIT "elm,action,check,toggle" "elm";
+      }
+      program { signal: "elm,state,check,on"; source: "elm";
+         action: STATE_SET "on" 0.0; target: "track"; target: "well"; target: "thumb";
+      }
+      program { signal: "elm,state,check,off"; source: "elm";
+         action: STATE_SET "default" 0.0; target: "track"; target: "well"; target: "thumb";
+      }
+      program { signal: "elm,state,disabled"; source: "elm";
+         action: STATE_SET "disabled" 0.0; target: "clip"; target: "event";
+      }
+      program { signal: "elm,state,enabled"; source: "elm";
+         action: STATE_SET "default" 0.0; target: "clip"; target: "event";
+      }
+   }
+}
diff --git a/data/themes/common/exposure_window.edc b/data/themes/common/exposure_window.edc
index ad9f7de..93f025c 100644
--- a/data/themes/common/exposure_window.edc
+++ b/data/themes/common/exposure_window.edc
@@ -44,6 +44,14 @@ group { name: "elm/exposure/chrome/default";
             rel1.offset: 6 6; rel2 { relative: 1 0; offset: -7 43; }
          }
       }
+      part { name: "menu"; type: SWALLOW; scale: 1;
+         description { state: "default" 0.0; offset_scale: 1;
+            rel.to: "body";
+            rel1 { relative: 0 0; offset: 10 8; }
+            rel2 { relative: 0 0; offset: 39 37; }
+            align: 0 0.5;
+         }
+      }
       part { name: "title"; type: TEXT; mouse_events: 0; scale: 1;
          description { state: "default" 0.0; offset_scale: 1;
             rel1 { to_x: "body"; to_y: "buttons"; relative: 0 0; offset: 14 0; }
@@ -51,12 +59,15 @@ group { name: "elm/exposure/chrome/default";
             color_class: "exposure/title";
             text { font: "Sans:style=Medium"; size: 10; align: 0.0 0.5; ellipsis: 1; }
          }
+         description { state: "with-menu" 0.0; inherit: "default" 0.0;
+            rel1 { to_x: "menu"; relative: 1 0; offset: 7 0; }
+         }
       }
       part { name: "buttons"; type: SWALLOW; scale: 1;
          description { state: "default" 0.0; offset_scale: 1;
             rel.to: "body";
-            rel1 { relative: 1 0; offset: -110 8; }
-            rel2 { relative: 1 0; offset: -17 39; }
+            rel1 { relative: 1 0; offset: -112 8; }
+            rel2 { relative: 1 0; offset: -17 37; }
             align: 1.0 0.5;
          }
       }
@@ -76,6 +87,9 @@ group { name: "elm/exposure/chrome/default";
       EXPOSURE_RESIZE_GRIP("resize.br", 1, 1, 1, 1, -9, -9, -1, -1)
    }
    programs {
+      program { signal: "exposure,menu,show"; source: "exposure";
+         action: STATE_SET "with-menu" 0.0; target: "title";
+      }
       program { signal: "exposure,resize,hide"; source: "exposure";
          action: STATE_SET "full" 0.0; target: "body";
       }
diff --git a/data/themes/images/exposure_close.svg b/data/themes/images/exposure_close.svg
index 2609a8e..10fa9ae 100644
--- a/data/themes/images/exposure_close.svg
+++ b/data/themes/images/exposure_close.svg
@@ -1,3 +1,5 @@
 <svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24">
-  <path d="m6 6 12 12M18 6 6 18" fill="none" stroke="#fff" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"/>
+  <g fill="none" stroke="#fff" stroke-width="1.65" stroke-linecap="round" stroke-linejoin="round">
+    <path d="m7 7 10 10M17 7 7 17"/>
+  </g>
 </svg>
diff --git a/data/themes/images/exposure_maximize.svg b/data/themes/images/exposure_maximize.svg
index 1847cbe..9635411 100644
--- a/data/themes/images/exposure_maximize.svg
+++ b/data/themes/images/exposure_maximize.svg
@@ -1,3 +1,5 @@
 <svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24">
-  <path d="M5 5h14v14H5Z" fill="none" stroke="#fff" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"/>
+  <g fill="none" stroke="#fff" stroke-width="1.65" stroke-linecap="round" stroke-linejoin="round">
+    <rect x="6" y="6" width="12" height="12" rx="1"/>
+  </g>
 </svg>
diff --git a/data/themes/images/exposure_menu.svg b/data/themes/images/exposure_menu.svg
index 4c00f3b..a9c13d8 100644
--- a/data/themes/images/exposure_menu.svg
+++ b/data/themes/images/exposure_menu.svg
@@ -1,3 +1,5 @@
 <svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24">
-  <path d="M5 7h14M5 12h14M5 17h14" fill="none" stroke="#fff" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"/>
+  <g fill="none" stroke="#fff" stroke-width="1.65" stroke-linecap="round" stroke-linejoin="round">
+    <path d="M5 6.5h14M5 12h14M5 17.5h14"/>
+  </g>
 </svg>
diff --git a/data/themes/images/exposure_minimize.svg b/data/themes/images/exposure_minimize.svg
index 69bac8d..7491d19 100644
--- a/data/themes/images/exposure_minimize.svg
+++ b/data/themes/images/exposure_minimize.svg
@@ -1,3 +1,5 @@
 <svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24">
-  <path d="M5 16h14" fill="none" stroke="#fff" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"/>
+  <g fill="none" stroke="#fff" stroke-width="1.65" stroke-linecap="round" stroke-linejoin="round">
+    <path d="M6 16.5h12"/>
+  </g>
 </svg>
diff --git a/data/themes/images/exposure_radio_circle.svg b/data/themes/images/exposure_radio_circle.svg
new file mode 100644
index 0000000..0d89ae5
--- /dev/null
+++ b/data/themes/images/exposure_radio_circle.svg
@@ -0,0 +1,3 @@
+<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" viewBox="0 0 16 16">
+  <circle cx="8" cy="8" r="8" fill="#fff"/>
+</svg>
diff --git a/data/themes/images/exposure_window_control.svg b/data/themes/images/exposure_window_control.svg
new file mode 100644
index 0000000..94bc21e
--- /dev/null
+++ b/data/themes/images/exposure_window_control.svg
@@ -0,0 +1,3 @@
+<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" viewBox="0 0 16 16">
+  <rect width="16" height="16" rx="5" fill="#fff"/>
+</svg>
diff --git a/data/themes/meson.build b/data/themes/meson.build
index 6967b11..bcde388 100644
--- a/data/themes/meson.build
+++ b/data/themes/meson.build
@@ -9,6 +9,11 @@ shared_artwork = files(
   'common/exposure_preview.edc',
   'common/exposure_print.edc',
   'common/exposure_window.edc',
+  'common/exposure_radio.edc',
+  'common/exposure_toggle.edc',
+  'common/exposure_scroller.edc',
+  'images/exposure_radio_circle.svg',
+  'images/exposure_window_control.svg',
   'images/exposure_menu.svg',
   'images/exposure_appearance.svg',
   'images/exposure_about.svg',
diff --git a/data/themes/midnight/exposure_key.svg b/data/themes/midnight/exposure_key.svg
index 01b97c7..91ca16d 100644
--- a/data/themes/midnight/exposure_key.svg
+++ b/data/themes/midnight/exposure_key.svg
@@ -2,11 +2,11 @@
 <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"/>
+      <stop stop-color="#252f43"/>
+      <stop offset="1" stop-color="#1b2538"/>
     </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"/>
+  <rect x=".75" y=".75" width="94.5" height="46.5" rx="6" fill="url(#material)" stroke="#30415b" stroke-opacity=".95" stroke-width=".8"/>
   <path d="M8 2H88" stroke="#fff" stroke-opacity=".09"/>
   <path d="M8 46H88" stroke="#000" stroke-opacity=".12"/>
 </svg>
diff --git a/data/themes/midnight/exposure_key_hover.svg b/data/themes/midnight/exposure_key_hover.svg
index 592d434..198f198 100644
--- a/data/themes/midnight/exposure_key_hover.svg
+++ b/data/themes/midnight/exposure_key_hover.svg
@@ -2,11 +2,11 @@
 <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"/>
+      <stop stop-color="#2e405f"/>
+      <stop offset="1" stop-color="#273752"/>
     </linearGradient>
   </defs>
-  <rect x=".75" y=".75" width="94.5" height="46.5" rx="6" fill="url(#material)" stroke="#7bb1ff" stroke-opacity=".8" stroke-width=".8"/>
+  <rect x=".75" y=".75" width="94.5" height="46.5" rx="6" fill="url(#material)" stroke="#7bb1ff" stroke-opacity=".78" stroke-width=".8"/>
   <path d="M8 2H88" stroke="#fff" stroke-opacity=".09"/>
   <path d="M8 46H88" stroke="#000" stroke-opacity=".12"/>
 </svg>
diff --git a/data/themes/midnight/exposure_key_pressed.svg b/data/themes/midnight/exposure_key_pressed.svg
index 028524c..2b5801d 100644
--- a/data/themes/midnight/exposure_key_pressed.svg
+++ b/data/themes/midnight/exposure_key_pressed.svg
@@ -2,11 +2,11 @@
 <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"/>
+      <stop stop-color="#374d71"/>
+      <stop offset="1" stop-color="#3c557d"/>
     </linearGradient>
   </defs>
-  <rect x=".75" y=".75" width="94.5" height="46.5" rx="6" fill="url(#material)" stroke="#7bb1ff" stroke-opacity=".55" stroke-width=".8"/>
+  <rect x=".75" y=".75" width="94.5" height="46.5" rx="6" fill="url(#material)" stroke="#7bb1ff" stroke-opacity=".95" stroke-width=".8"/>
   <path d="M8 2H88" stroke="#fff" stroke-opacity=".09"/>
   <path d="M8 46H88" stroke="#000" stroke-opacity=".12"/>
 </svg>
diff --git a/data/themes/midnight/exposure_midnight.edc b/data/themes/midnight/exposure_midnight.edc
index 5e8f4f7..98c24d7 100644
--- a/data/themes/midnight/exposure_midnight.edc
+++ b/data/themes/midnight/exposure_midnight.edc
@@ -1,12 +1,15 @@
 #define EXPOSURE_NAME "Midnight"
 #define EXPOSURE_BODY "131a2a"
-#define EXPOSURE_WELL "101624"
+#define EXPOSURE_WELL "0c121f"
 #define EXPOSURE_PANEL "1c263a"
-#define EXPOSURE_KEY "2b3e5c"
+#define EXPOSURE_KEY "30415b"
 #define EXPOSURE_HIGHLIGHT "7bb1ff"
 #define EXPOSURE_INK "e0e9f8"
-#define EXPOSURE_MUTED "8e96a5"
+#define EXPOSURE_MUTED "98a1b0"
 
 #define EXPOSURE_TITLE "e0e9f8"
 
+#define EXPOSURE_SCROLLBAR_NORMAL color: 104 150 217 255;
+#define EXPOSURE_SCROLLBAR_DISABLED color: 61 86 127 255;
+
 #include "../common/exposure_groups.edc"
diff --git a/data/themes/stock/exposure_stock.edc b/data/themes/stock/exposure_stock.edc
index 82eca0c..738067a 100644
--- a/data/themes/stock/exposure_stock.edc
+++ b/data/themes/stock/exposure_stock.edc
@@ -24,6 +24,9 @@ collections {
          part { name: "title"; type: TEXT; mouse_events: 0;
             description { state: "default" 0.0; visible: 0; }
          }
+         part { name: "menu"; type: SWALLOW; mouse_events: 0;
+            description { state: "default" 0.0; visible: 0; }
+         }
          part { name: "buttons"; type: SWALLOW; mouse_events: 0;
             description { state: "default" 0.0; visible: 0; }
          }
diff --git a/src/bin/exposure.c b/src/bin/exposure.c
index a555f80..eee399a 100644
--- a/src/bin/exposure.c
+++ b/src/bin/exposure.c
@@ -567,7 +567,7 @@ elm_main(int argc, char **argv)
 {
    Exposure exposure;
    Exposure_Mode mode;
-   Evas_Object *window, *box, *controls, *header, *spacer;
+   Evas_Object *window, *box, *chrome, *controls, *header, *spacer;
    const char *device;
 
    exposure_intl_init();
@@ -596,12 +596,12 @@ elm_main(int argc, char **argv)
    evas_object_event_callback_add(window, EVAS_CALLBACK_DEL, _exposure_main_deleted, &exposure);
 
    box = elm_box_add(window);
-   exposure_window_content_set(window, box, EINA_TRUE);
+   chrome = exposure_window_content_set(window, box, EINA_TRUE);
    elm_box_padding_set(box, 0, 6);
    header = elm_box_add(box);
    elm_box_horizontal_set(header, EINA_TRUE);
    elm_box_align_set(header, 0.0, 0.5);
-   exposure_settings_add(&exposure, header);
+   exposure_settings_add(&exposure, header, chrome);
    exposure_button_add(header, "about", _("About Exposure"), exposure_about_open, &exposure);
    spacer = evas_object_rectangle_add(evas_object_evas_get(window));
    evas_object_color_set(spacer, 0, 0, 0, 0);
diff --git a/src/bin/exposure.h b/src/bin/exposure.h
index d1c252b..5650c59 100644
--- a/src/bin/exposure.h
+++ b/src/bin/exposure.h
@@ -39,14 +39,15 @@ void exposure_preview_transition(Exposure *exposure);
 void exposure_preview_transition_reset(Exposure *exposure);
 void exposure_popup_close(Exposure *exposure);
 void exposure_pack(Evas_Object *box, Evas_Object *widget, Eina_Bool expand);
-Evas_Object *exposure_button_new(void *data, Evas_Object *parent, const char *icon,
-                                 const char *tooltip, int size, Evas_Smart_Cb callback);
+Evas_Object *exposure_window_button_new(void *data, Evas_Object *parent, const char *icon,
+                                        const char *tooltip, const char *style,
+                                        Evas_Smart_Cb callback);
 Evas_Object *exposure_button_add(Evas_Object *box, const char *icon, const char *tooltip,
                                  Evas_Smart_Cb callback, Exposure *exposure);
-void exposure_window_content_set(Evas_Object *window, Evas_Object *content, Eina_Bool standard_controls);
+Evas_Object *exposure_window_content_set(Evas_Object *window, Evas_Object *content, Eina_Bool standard_controls);
 void exposure_about_open(void *data, Evas_Object *object, void *event_info);
 Eina_Bool exposure_appearance_set(Exposure *exposure, Exposure_Appearance appearance);
-void exposure_settings_add(Exposure *exposure, Evas_Object *box);
+void exposure_settings_add(Exposure *exposure, Evas_Object *header, Evas_Object *chrome);
 void exposure_camera_settings_add(Exposure *exposure, Evas_Object *box);
 Eina_Bool exposure_camera_settings_apply(Exposure *exposure);
 Evas_Object *exposure_surface_add(Evas_Object *parent,
diff --git a/src/bin/exposure_ui.c b/src/bin/exposure_ui.c
index e72c24d..aec6a3b 100644
--- a/src/bin/exposure_ui.c
+++ b/src/bin/exposure_ui.c
@@ -38,7 +38,7 @@ static const Exposure_Color_Role _exposure_color_roles[] = {
                     ":selected-medium", ":selected-heavy", ":selected2", ":fg-high" } },
    { "ink", { "exposure/ink", ":fg", ":fg-light", ":fg-higher", ":fg-prehigh", "/fg/normal/frame/title", "/fg/normal/text", "/fg/normal/tooltip/text" } },
    { "title", { "exposure/title" } },
-   { "muted", { ":fg-dim", "/fg/disabled", "/fg/disabled/button",
+   { "muted", { "exposure/muted", ":fg-dim", "/fg/disabled", "/fg/disabled/button",
                 "/fg/disabled/check/text", "/fg/disabled/hoversel/button" } },
 };
 
@@ -119,18 +119,19 @@ _exposure_icon_add(Evas_Object *parent, const char *name, int size)
    return icon;
 }
 
-Evas_Object *
-exposure_button_new(void *data, Evas_Object *parent, const char *icon,
-                    const char *tooltip, int size, Evas_Smart_Cb callback)
+static Evas_Object *
+_exposure_button_new(void *data, Evas_Object *parent, const char *icon,
+                    const char *tooltip, int size, int icon_size, const char *style,
+                    Evas_Smart_Cb callback)
 {
    Evas_Object *button, *image;
 
    button = elm_button_add(parent);
-   elm_object_style_set(button, "exposure");
+   elm_object_style_set(button, style);
    _exposure_control_size((void *)(uintptr_t)size, button, NULL);
    evas_object_smart_callback_add(button, "theme,changed", _exposure_control_size,
                                   (void *)(uintptr_t)size);
-   image = _exposure_icon_add(button, icon, size - 10);
+   image = _exposure_icon_add(button, icon, icon_size);
    if (image) elm_object_part_content_set(button, "icon", image);
    elm_object_tooltip_text_set(button, tooltip);
    elm_object_access_info_set(button, tooltip);
@@ -138,13 +139,36 @@ exposure_button_new(void *data, Evas_Object *parent, const char *icon,
    return button;
 }
 
+static void
+_exposure_window_button_size(void *data EINA_UNUSED, Evas_Object *button,
+                             void *event_info EINA_UNUSED)
+{
+   Evas_Object *icon = elm_object_part_content_get(button, "icon");
+   int size = ELM_SCALE_SIZE(30);
+   int icon_size = ELM_SCALE_SIZE(19);
+
+   evas_object_size_hint_max_set(button, size, size);
+   if (icon) evas_object_size_hint_max_set(icon, icon_size, icon_size);
+}
+
+Evas_Object *
+exposure_window_button_new(void *data, Evas_Object *parent, const char *icon,
+                            const char *tooltip, const char *style, Evas_Smart_Cb callback)
+{
+   Evas_Object *button = _exposure_button_new(data, parent, icon, tooltip, 30, 19,
+                                             style, callback);
+   evas_object_smart_callback_add(button, "theme,changed", _exposure_window_button_size, NULL);
+   _exposure_window_button_size(NULL, button, NULL);
+   return button;
+}
+
 Evas_Object *
 exposure_button_add(Evas_Object *box, const char *icon, const char *tooltip,
                     Evas_Smart_Cb callback, Exposure *exposure)
 {
    Evas_Object *button;
 
-   button = exposure_button_new(exposure, box, icon, tooltip, 34, callback);
+   button = _exposure_button_new(exposure, box, icon, tooltip, 34, 24, "exposure", callback);
    elm_box_pack_end(box, button);
    evas_object_show(button);
    return button;
@@ -338,10 +362,50 @@ _exposure_settings_open(void *data, Evas_Object *launcher EINA_UNUSED, void *eve
    evas_object_show(window);
 }
 
-void
-exposure_settings_add(Exposure *exposure, Evas_Object *box)
+static void
+_exposure_settings_menu_theme_changed(void *data, Evas_Object *chrome,
+                                      void *event_info EINA_UNUSED)
 {
-   exposure_button_add(box, "menu", _("Settings"), _exposure_settings_open, exposure);
+   Evas_Object *fallback = data;
+   Evas_Object *header = elm_object_parent_widget_get(fallback);
+
+   if (edje_object_part_exists(elm_layout_edje_get(chrome), "title.drag"))
+     {
+        elm_layout_signal_emit(chrome, "exposure,menu,show", "exposure");
+        if (evas_object_visible_get(fallback))
+          {
+             elm_box_unpack(header, fallback);
+             evas_object_hide(fallback);
+          }
+     }
+   else if (!evas_object_visible_get(fallback))
+     {
+        elm_box_pack_start(header, fallback);
+        evas_object_show(fallback);
+     }
+}
+
+void
+exposure_settings_add(Exposure *exposure, Evas_Object *header, Evas_Object *chrome)
+{
+   Evas_Object *menu, *fallback;
+
+   if (!chrome)
+     {
+        exposure_button_add(header, "menu", _("Settings"), _exposure_settings_open, exposure);
+        return;
+     }
+
+   menu = exposure_window_button_new(exposure, chrome, "menu", _("Settings"),
+                                     "exposure-window", _exposure_settings_open);
+   elm_object_part_content_set(chrome, "menu", menu);
+   evas_object_show(menu);
+
+   fallback = _exposure_button_new(exposure, header, "menu", _("Settings"),
+                                   34, 24, "exposure", _exposure_settings_open);
+   evas_object_smart_callback_add(chrome, "theme,changed",
+                                  _exposure_settings_menu_theme_changed, fallback);
+   _exposure_settings_menu_theme_changed(fallback, chrome, NULL);
 }
 
 static void
diff --git a/src/bin/exposure_window.c b/src/bin/exposure_window.c
index 1db90b3..89aa6aa 100644
--- a/src/bin/exposure_window.c
+++ b/src/bin/exposure_window.c
@@ -154,16 +154,17 @@ _exposure_window_close(void *data, Evas_Object *object, void *event_info)
 
 static void
 _exposure_window_button_add(Evas_Object *box, Evas_Object *window, const char *icon,
-                            const char *tooltip, Evas_Smart_Cb callback)
+                            const char *tooltip, const char *style,
+                            Evas_Smart_Cb callback)
 {
    Evas_Object *button;
 
-   button = exposure_button_new(window, box, icon, tooltip, 23, callback);
+   button = exposure_window_button_new(window, box, icon, tooltip, style, callback);
    elm_box_pack_end(box, button);
    evas_object_show(button);
 }
 
-void
+Evas_Object *
 exposure_window_content_set(Evas_Object *window, Evas_Object *content, Eina_Bool standard_controls)
 {
    Evas_Object *chrome, *buttons, *background;
@@ -172,7 +173,7 @@ exposure_window_content_set(Evas_Object *window, Evas_Object *content, Eina_Bool
    evas_object_size_hint_weight_set(chrome, EVAS_HINT_EXPAND, EVAS_HINT_EXPAND);
    elm_win_resize_object_add(window, chrome);
    evas_object_show(chrome);
-   if (chrome == content) return;
+   if (chrome == content) return NULL;
 
    background = ""
    elm_object_part_content_set(chrome, "background", background);
@@ -185,10 +186,13 @@ exposure_window_content_set(Evas_Object *window, Evas_Object *content, Eina_Bool
    elm_box_padding_set(buttons, ELM_SCALE_SIZE(3), 0);
    if (standard_controls)
      {
-        _exposure_window_button_add(buttons, window, "minimize", _("Minimize"), _exposure_window_minimize);
-        _exposure_window_button_add(buttons, window, "maximize", _("Maximize or restore"), _exposure_window_maximize);
+        _exposure_window_button_add(buttons, window, "minimize", _("Minimize"),
+                                       "exposure-window", _exposure_window_minimize);
+        _exposure_window_button_add(buttons, window, "maximize", _("Maximize or restore"),
+                                       "exposure-window", _exposure_window_maximize);
      }
-   _exposure_window_button_add(buttons, window, "close", _("Close window"), _exposure_window_close);
+   _exposure_window_button_add(buttons, window, "close", _("Close window"),
+                                    "exposure-window-close", _exposure_window_close);
    elm_object_part_content_set(chrome, "buttons", buttons);
    evas_object_show(buttons);
 
@@ -201,4 +205,5 @@ exposure_window_content_set(Evas_Object *window, Evas_Object *content, Eina_Bool
    evas_object_smart_callback_add(window, "fullscreen", _exposure_window_state, chrome);
    evas_object_smart_callback_add(window, "unfullscreen", _exposure_window_state, chrome);
    _exposure_window_theme_changed(window, chrome, NULL);
+   return chrome;
 }

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

Reply via email to