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

git pushed a commit to branch main
in repository elaro.

View the commit online.

commit bd57bae726b4b7a025de65e9f63ed8df9ac31778
Author: Alastair Poole <[email protected]>
AuthorDate: Tue Nov 24 05:37:06 2026 +0000

    csd: add icon to open connection popup
---
 data/meson.build         | 2 +-
 data/themes/add.svg      | 3 +++
 data/themes/widgets.edc  | 9 +++++++++
 src/fe-efl/ui/elaro_ui.c | 6 +++++-
 4 files changed, 18 insertions(+), 2 deletions(-)

diff --git a/data/meson.build b/data/meson.build
index 542a982..00b8f22 100644
--- a/data/meson.build
+++ b/data/meson.build
@@ -21,7 +21,7 @@ foreach name : ['midnight', 'porcelain', 'verdigris', 'ember']
   elaro_assets += custom_target(name + '.edj',
     input : 'themes' / name / (name + '.edc'),
     output : name + '.edj',
-    depend_files : theme_icons + files('themes/widgets.edc', 'themes/progress.edc', 'themes/window-shadow.png'),
+    depend_files : theme_icons + files('themes/widgets.edc', 'themes/progress.edc', 'themes/window-shadow.png', 'themes/add.svg'),
     command : [edje_cc, '-id', meson.current_source_dir() / 'themes' / name,
                '-id', meson.current_source_dir() / 'themes', '@INPUT@', '@OUTPUT@'],
     build_by_default : true,
diff --git a/data/themes/add.svg b/data/themes/add.svg
new file mode 100644
index 0000000..464ea13
--- /dev/null
+++ b/data/themes/add.svg
@@ -0,0 +1,3 @@
+<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24">
+  <path d="M6 12h12M12 6v12" fill="none" stroke="#fff" stroke-width="1.8" stroke-linecap="round" stroke-linejoin="round"/>
+</svg>
diff --git a/data/themes/widgets.edc b/data/themes/widgets.edc
index 7cb60b1..f0fba11 100644
--- a/data/themes/widgets.edc
+++ b/data/themes/widgets.edc
@@ -60,6 +60,15 @@ group { name: "elm/bg/base/default";
   part { name: "elm.swallow.content"; type: SWALLOW; scale: 1; description { offset_scale: 1; state: "default" 0.0; } }
  }
 }
+group { name: "elaro/icons/add"; min: 15 15;
+ images.image: "add.svg" COMP;
+ parts {
+  part { name: "icon"; type: IMAGE; mouse_events: 0;
+   description { state: "default" 0.0; color: ACCENT;
+    aspect: 1 1; aspect_preference: BOTH; image.normal: "add.svg"; }
+  }
+ }
+}
 /* Quiet title-bar controls shared by windows and popup close buttons. */
 group { name: "elm/button/base/elaro/window-control";
  min: 30 30;
diff --git a/src/fe-efl/ui/elaro_ui.c b/src/fe-efl/ui/elaro_ui.c
index e882d64..bfdecab 100644
--- a/src/fe-efl/ui/elaro_ui.c
+++ b/src/fe-efl/ui/elaro_ui.c
@@ -290,6 +290,11 @@ elaro_ui_run(int argc, char **argv)
    evas_object_size_hint_align_set(connection, EVAS_HINT_FILL, EVAS_HINT_FILL);
    elm_box_pack_end(bar, connection);
 
+   Evas_Object *settings = elaro_ui_icon_button_add(ui.win, "add", _("Settings"),
+                                                   elaro_ui_connection_show, &ui);
+   elaro_ui_window_control_style_set(settings, EINA_FALSE);
+   elm_box_pack_end(bar, settings);
+
    /* A dedicated title region leaves the channel heading clickable. */
    icon = elm_label_add(bar);
    elm_object_style_set(icon, "elaro/title");
@@ -390,7 +395,6 @@ elaro_ui_run(int argc, char **argv)
    evas_object_smart_callback_add(split, "unpress", _layout_changed_cb, &ui);
    evas_object_smart_callback_add(right, "unpress", _layout_changed_cb, &ui);
    evas_object_show(ui.win);
-   elaro_ui_connection_show(&ui, NULL, NULL);
 
    if (argc == 2 && !strcmp(argv[1], "--smoke-test")) ecore_timer_add(2.0, _smoke_done_cb, NULL);
    if (events) elm_run();

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

Reply via email to