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 eb4bd6afc3e5bbb75b19c86f79bb66f63544047c
Author: Alastair Poole <[email protected]>
AuthorDate: Sun Nov 29 18:05:26 2026 +0000
theme: fix border accents
---
data/themes/atelier/exposure.svg | 1 -
data/themes/common/exposure_preview.edc | 7 +++++
data/themes/common/exposure_print.edc | 4 ++-
data/themes/crazy_lab/exposure.svg | 7 -----
data/themes/images/exposure_preview_rim.svg | 3 +++
data/themes/images/exposure_print_outline.svg | 3 +--
data/themes/meson.build | 1 +
data/themes/midnight/exposure.svg | 7 -----
data/themes/observatory/exposure.svg | 1 -
src/bin/exposure_gallery.c | 38 ++++++++++++++++-----------
10 files changed, 38 insertions(+), 34 deletions(-)
diff --git a/data/themes/atelier/exposure.svg b/data/themes/atelier/exposure.svg
index a6d9b91..1d33047 100644
--- a/data/themes/atelier/exposure.svg
+++ b/data/themes/atelier/exposure.svg
@@ -1,7 +1,6 @@
<svg xmlns="http://www.w3.org/2000/svg" width="160" height="160" viewBox="0 0 160 160">
<rect x="2" y="2" width="156" height="156" rx="12" fill="#687883" opacity=".74"/>
<rect x="4" y="4" width="152" height="151" rx="10" fill="#c9d3d9" stroke="#edf3f5" stroke-opacity=".55"/>
- <rect x="8" y="8" width="144" height="144" rx="7" fill="#95a9b2" stroke="#687883" stroke-width="1.5"/>
<rect x="11" y="11" width="138" height="138" rx="5" fill="#15191c" stroke="#687883" stroke-width="2"/>
<path d="M14 145h132" stroke="#edf3f5" opacity=".22"/>
</svg>
diff --git a/data/themes/common/exposure_preview.edc b/data/themes/common/exposure_preview.edc
index 8b7ec46..3ca1a7b 100644
--- a/data/themes/common/exposure_preview.edc
+++ b/data/themes/common/exposure_preview.edc
@@ -1,11 +1,18 @@
group { name: "elm/exposure/preview/default";
images.image: "exposure.svg" COMP;
+ images.image: "images/exposure_preview_rim.svg" COMP;
parts {
part { name: "body"; type: IMAGE; mouse_events: 0;
description { state: "default" 0.0;
image { normal: "exposure.svg"; border: 18 18 18 18; }
}
}
+ part { name: "rim"; type: IMAGE; mouse_events: 0;
+ description { state: "default" 0.0;
+ image { normal: "images/exposure_preview_rim.svg"; border: 18 18 18 18; }
+ color_class: "exposure/accent";
+ }
+ }
part { name: "preview"; type: SWALLOW; mouse_events: 0; scale: 1;
description { state: "default" 0.0; offset_scale: 1;
rel1.offset: 12 12; rel2.offset: -13 -13;
diff --git a/data/themes/common/exposure_print.edc b/data/themes/common/exposure_print.edc
index a597d87..935c66a 100644
--- a/data/themes/common/exposure_print.edc
+++ b/data/themes/common/exposure_print.edc
@@ -55,7 +55,9 @@ group { name: "exposure/print";
}
part { name: "outline.clip"; type: RECT; mouse_events: 0;
description { state: "default" 0.0; color: 255 255 255 0; }
- description { state: "selected" 0.0; color: 255 255 255 255; }
+ description { state: "selected" 0.0;
+ color_class: "exposure/accent";
+ }
}
part { name: "outline"; type: VECTOR; mouse_events: 0; clip_to: "outline.clip";
description { state: "default" 0.0;
diff --git a/data/themes/crazy_lab/exposure.svg b/data/themes/crazy_lab/exposure.svg
index a2b7590..bd1db5d 100644
--- a/data/themes/crazy_lab/exposure.svg
+++ b/data/themes/crazy_lab/exposure.svg
@@ -5,16 +5,9 @@
<stop offset=".43" stop-color="#253850"/>
<stop offset="1" stop-color="#14243a"/>
</linearGradient>
- <linearGradient id="rim" x2="0" y2="1">
- <stop stop-color="#80d4cb"/>
- <stop offset=".18" stop-color="#609d9f"/>
- <stop offset=".6" stop-color="#38586e"/>
- <stop offset="1" stop-color="#6b9aa4"/>
- </linearGradient>
</defs>
<rect x="2" y="2" width="156" height="156" rx="12" fill="#070e1d"/>
<rect x="4" y="4" width="152" height="151" rx="10" fill="url(#bevel)" stroke="#647e9e" stroke-opacity=".5"/>
- <rect x="8" y="8" width="144" height="144" rx="7" fill="#0b1422" stroke="url(#rim)" stroke-width="1.5"/>
<rect x="11" y="11" width="138" height="138" rx="5" fill="#070f1c" stroke="#14253c" stroke-width="2"/>
<path d="M14 145h132" stroke="#718fae" opacity=".27"/>
</svg>
diff --git a/data/themes/images/exposure_preview_rim.svg b/data/themes/images/exposure_preview_rim.svg
new file mode 100644
index 0000000..ac5ede0
--- /dev/null
+++ b/data/themes/images/exposure_preview_rim.svg
@@ -0,0 +1,3 @@
+<svg xmlns="http://www.w3.org/2000/svg" width="160" height="160" viewBox="0 0 160 160">
+ <rect x="9.5" y="9.5" width="141" height="141" rx="6" fill="none" stroke="#fff" stroke-width="2"/>
+</svg>
diff --git a/data/themes/images/exposure_print_outline.svg b/data/themes/images/exposure_print_outline.svg
index 8975c4f..ad26d57 100644
--- a/data/themes/images/exposure_print_outline.svg
+++ b/data/themes/images/exposure_print_outline.svg
@@ -1,4 +1,3 @@
<svg xmlns="http://www.w3.org/2000/svg" width="148" height="100" viewBox="0 0 148 100">
- <rect x="1.7" y="1.7" width="142.6" height="93.6" rx="2.3" fill="none" stroke="#365775" stroke-width="2.6"/>
- <rect x="1.7" y="1.7" width="142.6" height="93.6" rx="2.3" fill="none" stroke="#91c5ed" stroke-width="1.2"/>
+ <rect x="1.7" y="1.7" width="142.6" height="93.6" rx="2.3" fill="none" stroke="#fff" stroke-width="2"/>
</svg>
diff --git a/data/themes/meson.build b/data/themes/meson.build
index 49f9f53..2e7fb08 100644
--- a/data/themes/meson.build
+++ b/data/themes/meson.build
@@ -23,6 +23,7 @@ shared_artwork = files(
'images/exposure_apply.svg',
'images/exposure_paper.svg',
'images/exposure_print_outline.svg',
+ 'images/exposure_preview_rim.svg',
'images/exposure_shadow.png',
'images/exposure_focus.svg',
)
diff --git a/data/themes/midnight/exposure.svg b/data/themes/midnight/exposure.svg
index a2b7590..bd1db5d 100644
--- a/data/themes/midnight/exposure.svg
+++ b/data/themes/midnight/exposure.svg
@@ -5,16 +5,9 @@
<stop offset=".43" stop-color="#253850"/>
<stop offset="1" stop-color="#14243a"/>
</linearGradient>
- <linearGradient id="rim" x2="0" y2="1">
- <stop stop-color="#80d4cb"/>
- <stop offset=".18" stop-color="#609d9f"/>
- <stop offset=".6" stop-color="#38586e"/>
- <stop offset="1" stop-color="#6b9aa4"/>
- </linearGradient>
</defs>
<rect x="2" y="2" width="156" height="156" rx="12" fill="#070e1d"/>
<rect x="4" y="4" width="152" height="151" rx="10" fill="url(#bevel)" stroke="#647e9e" stroke-opacity=".5"/>
- <rect x="8" y="8" width="144" height="144" rx="7" fill="#0b1422" stroke="url(#rim)" stroke-width="1.5"/>
<rect x="11" y="11" width="138" height="138" rx="5" fill="#070f1c" stroke="#14253c" stroke-width="2"/>
<path d="M14 145h132" stroke="#718fae" opacity=".27"/>
</svg>
diff --git a/data/themes/observatory/exposure.svg b/data/themes/observatory/exposure.svg
index 9a86b75..0478d2e 100644
--- a/data/themes/observatory/exposure.svg
+++ b/data/themes/observatory/exposure.svg
@@ -1,7 +1,6 @@
<svg xmlns="http://www.w3.org/2000/svg" width="160" height="160" viewBox="0 0 160 160">
<rect x="2" y="2" width="156" height="156" rx="12" fill="#172128" opacity=".74"/>
<rect x="4" y="4" width="152" height="151" rx="10" fill="#333f47" stroke="#6f808a" stroke-opacity=".55"/>
- <rect x="8" y="8" width="144" height="144" rx="7" fill="#caa077" stroke="#172128" stroke-width="1.5"/>
<rect x="11" y="11" width="138" height="138" rx="5" fill="#15191c" stroke="#172128" stroke-width="2"/>
<path d="M14 145h132" stroke="#6f808a" opacity=".22"/>
</svg>
diff --git a/src/bin/exposure_gallery.c b/src/bin/exposure_gallery.c
index b08d640..2b1b582 100644
--- a/src/bin/exposure_gallery.c
+++ b/src/bin/exposure_gallery.c
@@ -17,6 +17,15 @@ _exposure_carousel_controls_update(Exposure *exposure)
elm_object_disabled_set(exposure->next, disabled);
}
+static void
+_exposure_stringshare_free(void *data, Evas *canvas, Evas_Object *object, void *event_info)
+{
+ (void)canvas;
+ (void)object;
+ (void)event_info;
+ eina_stringshare_del(data);
+}
+
static Evas_Object *
_exposure_photo_thumbnail(Exposure *exposure, Evas_Object *button, const char *path,
Eina_Bool print, Eina_Bool outlined)
@@ -34,7 +43,13 @@ _exposure_photo_thumbnail(Exposure *exposure, Evas_Object *button, const char *p
if (image)
{
evas_object_data_set(image, "exposure_print", image);
- if (outlined) evas_object_data_set(image, "exposure_print_outline", image);
+ if (outlined)
+ {
+ theme = eina_stringshare_add(theme);
+ evas_object_data_set(image, "exposure_print_outline", (void *)theme);
+ evas_object_event_callback_add(image, EVAS_CALLBACK_DEL,
+ _exposure_stringshare_free, (void *)theme);
+ }
return image;
}
}
@@ -53,8 +68,8 @@ _exposure_photo_style(void *data, Evas_Object *object, void *event_info)
{
Exposure *exposure;
Evas_Object *previous, *image;
- const char *path;
- Eina_Bool print, was_print, outlined, was_outlined;
+ const char *path, *theme, *outline_theme;
+ Eina_Bool print, was_print, outlined;
int width, height;
(void)event_info;
@@ -71,10 +86,12 @@ _exposure_photo_style(void *data, Evas_Object *object, void *event_info)
(!exposure->selected && elm_object_focus_get(object)));
previous = elm_object_part_content_get(object, "icon");
was_print = previous && evas_object_data_get(previous, "exposure_print") != NULL;
- was_outlined = was_print && evas_object_data_get(previous, "exposure_print_outline") != NULL;
+ outline_theme = was_print ? evas_object_data_get(previous, "exposure_print_outline") : NULL;
+ edje_object_file_get(elm_layout_edje_get(object), &theme, NULL);
if (was_print)
evas_object_image_size_get(previous, &width, &height);
- if (!previous || print != was_print || outlined != was_outlined ||
+ if (!previous || print != was_print || outlined != (outline_theme != NULL) ||
+ (outlined && outline_theme && strcmp(theme, outline_theme)) ||
(was_print && (width != ELM_SCALE_SIZE(EXPOSURE_PRINT_WIDTH) ||
height != ELM_SCALE_SIZE(EXPOSURE_PRINT_HEIGHT))))
{
@@ -254,15 +271,6 @@ exposure_gallery_next_click(void *data, Evas_Object *object, void *event_info)
exposure_gallery_navigate(data, EINA_TRUE);
}
-static void
-_exposure_photo_free(void *data, Evas *canvas, Evas_Object *object, void *event_info)
-{
- (void)canvas;
- (void)object;
- (void)event_info;
- eina_stringshare_del(data);
-}
-
static void
_exposure_photo_add(Exposure *exposure, const char *path, Eina_Bool newest)
{
@@ -274,7 +282,7 @@ _exposure_photo_add(Exposure *exposure, const char *path, Eina_Bool newest)
name = eina_stringshare_add(path);
evas_object_data_set(button, "exposure_path", (void *)name);
evas_object_event_callback_add(button, EVAS_CALLBACK_DEL,
- _exposure_photo_free, (void *)name);
+ _exposure_stringshare_free, (void *)name);
_exposure_photo_style(exposure, button, NULL);
if (!elm_object_part_content_get(button, "icon"))
{
--
To stop receiving notification emails like this one, please contact
the administrator of this repository.