This is an automated email from the git hooks/post-receive script.
git pushed a commit to branch main
in repository explore.
View the commit online.
commit 43a1559ff7f3e56a12735990eb695960777cb299
Author: Alastair Poole <[email protected]>
AuthorDate: Thu Dec 3 12:48:28 2026 +0000
themes: more themes stuff
---
data/icons/explore_about_mark.svg | 5 +
data/icons/explore_about_surface.svg | 3 +
data/themes/atelier/meson.build | 2 +-
data/themes/explore_about.edc | 236 +++++++++++++++++++++++++++++++++++
data/themes/explore_theme.edc | 10 +-
data/themes/meson.build | 4 +-
data/themes/midnight/meson.build | 2 +-
meson.build | 6 +
src/bin/explore_main.c | 192 ++++++++++++++++++++++++----
9 files changed, 431 insertions(+), 29 deletions(-)
diff --git a/data/icons/explore_about_mark.svg b/data/icons/explore_about_mark.svg
new file mode 100644
index 0000000..f66efb7
--- /dev/null
+++ b/data/icons/explore_about_mark.svg
@@ -0,0 +1,5 @@
+<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" width="24" height="24">
+ <circle cx="12" cy="12" r="8.5" fill="none" stroke="#fff" stroke-width="1.65"/>
+ <circle cx="12" cy="8" r="1" fill="#fff"/>
+ <path d="M12 11.5V16m-1.4 0h2.8" fill="none" stroke="#fff" stroke-width="1.65" stroke-linecap="round"/>
+</svg>
diff --git a/data/icons/explore_about_surface.svg b/data/icons/explore_about_surface.svg
new file mode 100644
index 0000000..94bc21e
--- /dev/null
+++ b/data/icons/explore_about_surface.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/atelier/meson.build b/data/themes/atelier/meson.build
index 2643e54..2533d15 100644
--- a/data/themes/atelier/meson.build
+++ b/data/themes/atelier/meson.build
@@ -3,7 +3,7 @@ foreach action : explore_actions
action_artwork += files('icons/explore_action_' + action + '.svg')
endforeach
-atelier_artwork = action_artwork + explore_app_icon + files(
+atelier_artwork = action_artwork + explore_app_icon + explore_about_artwork + files(
'../explore_theme.edc', '../explore_menus.edc', 'icons/explore_menu.svg', '../explore_theme_preview.edc', '../explore_preview_places.edc', '../explore_button.edc', 'icons/explore_shadow.png', 'icons/explore_grip.svg',
'icons/explore_plus.svg', 'icons/explore_refresh.svg', 'icons/explore_back.svg', 'icons/explore_forward.svg',
'icons/explore_palette.svg',
diff --git a/data/themes/explore_about.edc b/data/themes/explore_about.edc
new file mode 100644
index 0000000..927c216
--- /dev/null
+++ b/data/themes/explore_about.edc
@@ -0,0 +1,236 @@
+#define EXPLORE_ABOUT_SURFACE \
+ image.normal: "explore_about_surface.svg"; image.border: 6 6 6 6; image.border_scale: 1;
+
+group { name: "explore/about/hero";
+ min: 240 131;
+ data.item: "ink" EXPLORE_STR(EXPLORE_INK);
+ images { image: "explore_about_surface.svg" COMP; image: "explore_about_mark.svg" COMP; }
+ parts {
+ part { name: "border"; type: IMAGE; scale: 1; mouse_events: 0;
+ description { state: "default" 0.0; color: EXPLORE_MENU_EDGE; EXPLORE_ABOUT_SURFACE }
+ }
+ part { name: "panel"; type: IMAGE; scale: 1; mouse_events: 0;
+ description { state: "default" 0.0; offset_scale: 1; EXPLORE_ABOUT_SURFACE
+ rel1.offset: 1 1; rel2.offset: -2 -2; color: EXPLORE_PANEL;
+ }
+ }
+ part { name: "artwork"; type: IMAGE; scale: 1; mouse_events: 0;
+ description { state: "default" 0.0; offset_scale: 1;
+ rel1 { relative: 0 0; offset: 20 19; }
+ rel2 { relative: 0 0; offset: 43 42; }
+ image.normal: "explore_about_mark.svg"; color: EXPLORE_ACCENT;
+ }
+ }
+ part { name: "name"; type: TEXT; scale: 1; mouse_events: 0;
+ description { offset_scale: 1; state: "default" 0.0; rel1.offset: 21 57; rel2 { relative: 1 0; offset: -22 85; }
+ color: EXPLORE_INK; text { text: "E X P L O R E"; font: "Sans:style=Bold"; size: 27; align: 0 0.5; min: 0 1; } }
+ }
+ part { name: "tagline"; type: TEXT; scale: 1; mouse_events: 0;
+ description { offset_scale: 1; state: "default" 0.0; rel1.offset: 22 90; rel2 { relative: 1 0; offset: -22 108; }
+ color: EXPLORE_INK; text { text: "A Simple File Manager"; font: "Sans"; size: 11; text_class: "label"; align: 0 0.5; min: 0 1; } }
+ }
+ }
+}
+
+group { name: "elm/segment_control/base/default";
+ parts {
+ part { name: "track"; type: SPACER; scale: 1;
+ description { state: "default" 0.0; min: 0 34; }
+ }
+ }
+}
+
+group { name: "elm/segment_control/item/default";
+ images.image: "explore_about_surface.svg" COMP;
+ parts {
+ part { name: "clip"; type: RECT; mouse_events: 0;
+ description { state: "default" 0.0; color: 255 255 255 255; }
+ description { state: "disabled" 0.0; color: 255 255 255 120; }
+ }
+ part { name: "tab-border"; type: IMAGE; scale: 1; mouse_events: 0; clip_to: "clip";
+ description { state: "default" 0.0; offset_scale: 1; color: EXPLORE_MENU_EDGE; EXPLORE_ABOUT_SURFACE
+ rel1.offset: 4 0; rel2.offset: -5 -1;
+ }
+ }
+ part { name: "surface"; type: IMAGE; scale: 1; mouse_events: 0; clip_to: "clip";
+ description { state: "default" 0.0; offset_scale: 1; color: EXPLORE_BODY; EXPLORE_ABOUT_SURFACE
+ rel.to: "tab-border"; rel1.offset: 1 1; rel2.offset: -2 -2;
+ }
+ description { state: "pressed" 0.0; inherit: "default" 0.0; color: EXPLORE_RAISED; }
+ description { state: "selected" 0.0; inherit: "default" 0.0; color: EXPLORE_PANEL; }
+ }
+ part { name: "hover-clip"; type: RECT; mouse_events: 0; clip_to: "clip";
+ description { state: "default" 0.0; color: 255 255 255 0; }
+ description { state: "over" 0.0; color: 255 255 255 34; }
+ }
+ part { name: "hover-wash"; type: IMAGE; scale: 1; mouse_events: 0; clip_to: "hover-clip";
+ description { state: "default" 0.0; rel.to: "tab-border"; color: EXPLORE_ACCENT; EXPLORE_ABOUT_SURFACE }
+ }
+ part { name: "event"; type: RECT;
+ description { state: "default" 0.0; color: 0 0 0 0; }
+ description { state: "disabled" 0.0; inherit: "default" 0.0; visible: 0; }
+ }
+ part { name: "indicator"; type: RECT; scale: 1; mouse_events: 0; clip_to: "clip";
+ description { state: "default" 0.0; offset_scale: 1; color: EXPLORE_ACCENT; visible: 0;
+ rel.to: "tab-border";
+ rel1 { relative: 0.5 1; offset: -13 -5; }
+ rel2 { relative: 0.5 1; offset: 12 -4; }
+ }
+ description { state: "selected" 0.0; inherit: "default" 0.0; visible: 1; }
+ }
+ part { name: "elm.swallow.icon"; type: SWALLOW; scale: 1; mouse_events: 0; clip_to: "clip";
+ description { state: "default" 0.0; offset_scale: 1; fixed: 1 0;
+ rel1.offset: 8 5; rel2 { relative: 0 1; offset: 8 -6; }
+ }
+ description { state: "visible" 0.0; inherit: "default" 0.0; min: 16 16; align: 0 0.5; }
+ }
+ part { name: "elm.text"; type: TEXT; scale: 1; mouse_events: 0; clip_to: "clip";
+ description { state: "default" 0.0; offset_scale: 1; color: EXPLORE_INK;
+ rel1.offset: 8 2; rel2.offset: -9 -4;
+ text { font: "Sans:style=Bold"; size: 11; text_class: "label"; align: 0.5 0.5; ellipsis: 1; }
+ }
+ description { state: "with_icon" 0.0; inherit: "default" 0.0;
+ rel1 { to_x: "elm.swallow.icon"; relative: 1 0; offset: 5 2; }
+ }
+ }
+ }
+ programs {
+ program { signal: "mouse,in"; source: "event";
+ action: STATE_SET "over" 0.0; target: "hover-clip"; transition: DECELERATE 0.14;
+ }
+ program { signal: "mouse,out"; source: "event";
+ action: STATE_SET "default" 0.0; target: "hover-clip"; transition: DECELERATE 0.20;
+ }
+ program { signal: "elm,state,segment,normal"; source: "elm";
+ action: STATE_SET "default" 0.0; target: "surface"; target: "indicator";
+ }
+ program { signal: "elm,state,segment,pressed"; source: "elm";
+ action: STATE_SET "pressed" 0.0; target: "surface";
+ }
+ program { signal: "elm,state,segment,selected"; source: "elm";
+ action: STATE_SET "selected" 0.0; target: "surface"; target: "indicator";
+ }
+ program { signal: "elm,state,disabled"; source: "elm";
+ action: STATE_SET "disabled" 0.0; target: "clip"; target: "event";
+ after: "clear_hover";
+ }
+ program { signal: "elm,state,enabled"; source: "elm";
+ action: STATE_SET "default" 0.0; target: "clip"; target: "event";
+ }
+ program { name: "clear_hover";
+ action: STATE_SET "default" 0.0; target: "hover-clip";
+ }
+ program { name: "text_with_icon";
+ action: STATE_SET "with_icon" 0.0; target: "elm.text";
+ }
+ program { name: "text_without_icon";
+ action: STATE_SET "default" 0.0; target: "elm.text";
+ }
+ program { signal: "elm,state,icon,visible"; source: "elm";
+ action: STATE_SET "visible" 0.0; target: "elm.swallow.icon"; after: "text_with_icon";
+ }
+ program { signal: "elm,state,icon,hidden"; source: "elm";
+ action: STATE_SET "default" 0.0; target: "elm.swallow.icon"; after: "text_without_icon";
+ }
+ }
+}
+
+group { name: "elm/scroller/entry/explore/about";
+ images.image: "explore_about_surface.svg" COMP;
+ parts {
+ part { name: "border"; type: IMAGE; scale: 1; mouse_events: 0;
+ description { state: "default" 0.0; color: EXPLORE_MENU_EDGE; EXPLORE_ABOUT_SURFACE }
+ }
+ part { name: "panel"; type: IMAGE; scale: 1; mouse_events: 0;
+ description { state: "default" 0.0; offset_scale: 1; color: EXPLORE_PANEL;
+ rel1.offset: 1 1; rel2.offset: -2 -2; EXPLORE_ABOUT_SURFACE
+ }
+ }
+ part { name: "clip"; type: RECT; scale: 1; mouse_events: 0;
+ description { state: "default" 0.0; offset_scale: 1;
+ rel1.offset: 9 7; rel2.offset: -15 -8;
+ }
+ }
+ part { name: "elm.swallow.content"; type: SWALLOW; clip_to: "clip";
+ description { state: "default" 0.0; rel.to: "clip"; }
+ }
+ part { name: "rail"; type: RECT; scale: 1; mouse_events: 0;
+ description { state: "default" 0.0; offset_scale: 1; visible: 0;
+ rel1 { relative: 1 0; offset: -12 4; }
+ rel2.offset: -4 -5; color: EXPLORE_PANEL;
+ }
+ description { state: "visible" 0.0; inherit: "default" 0.0; visible: 1; }
+ }
+ part { name: "elm.dragable.vbar"; type: RECT; scale: 1; clip_to: "rail";
+ dragable { y: 1 1 0; confine: "rail"; }
+ description { state: "default" 0.0; min: 8 16; fixed: 1 1;
+ rel1.to: "rail"; rel2.to: "rail"; color: 0 0 0 0;
+ }
+ }
+ part { name: "thumb"; type: IMAGE; scale: 1; mouse_events: 0; clip_to: "rail";
+ description { state: "default" 0.0; offset_scale: 1; rel.to: "elm.dragable.vbar";
+ rel1.offset: 2 0; rel2.offset: -2 -1;
+ color: EXPLORE_MUTED; EXPLORE_ABOUT_SURFACE
+ }
+ }
+ }
+ programs {
+ program { signal: "elm,action,show,vbar"; source: "elm";
+ action: STATE_SET "visible" 0.0; target: "rail";
+ }
+ program { signal: "elm,action,hide,vbar"; source: "elm";
+ action: STATE_SET "default" 0.0; target: "rail";
+ }
+ program { signal: "mouse,down,*"; source: "elm.dragable.vbar";
+ action: SIGNAL_EMIT "elm,vbar,press" "elm";
+ }
+ program { signal: "mouse,up,*"; source: "elm.dragable.vbar";
+ action: SIGNAL_EMIT "elm,vbar,unpress" "elm";
+ }
+ }
+}
+
+group { name: "elm/button/base/explore/about";
+ min: 60 27;
+ images.image: "explore_about_surface.svg" COMP;
+ parts {
+ part { name: "border"; type: IMAGE; scale: 1; mouse_events: 0;
+ description { state: "default" 0.0; color: EXPLORE_MENU_EDGE; EXPLORE_ABOUT_SURFACE }
+ }
+ part { name: "surface"; type: IMAGE; scale: 1; mouse_events: 0;
+ description { state: "default" 0.0; offset_scale: 1; color: EXPLORE_PANEL;
+ rel1.offset: 1 1; rel2.offset: -2 -2; EXPLORE_ABOUT_SURFACE
+ }
+ description { state: "over" 0.0; inherit: "default" 0.0; color: EXPLORE_RAISED; }
+ description { state: "pressed" 0.0; inherit: "default" 0.0; color: EXPLORE_SELECTED; }
+ description { state: "disabled" 0.0; inherit: "default" 0.0; color: EXPLORE_BODY; }
+ }
+ part { name: "elm.swallow.content"; type: SWALLOW;
+ scale: 1; description { offset_scale: 1; state: "default" 0.0; rel1.offset: 6 5; rel2.offset: -7 -5; }
+ }
+ part { name: "elm.text"; type: TEXT; scale: 1; mouse_events: 0;
+ description { offset_scale: 1; state: "default" 0.0; rel1.offset: 9 6; rel2.offset: -10 -7; color: EXPLORE_INK;
+ text { font: "Sans"; size: 11; text_class: "label"; min: 1 1; ellipsis: -1; } }
+ description { offset_scale: 1; state: "disabled" 0.0; inherit: "default" 0.0; color: EXPLORE_MUTED; }
+ }
+ part { name: "event"; type: RECT; ignore_flags: ON_HOLD;
+ scale: 1; description { offset_scale: 1; state: "default" 0.0; color: 0 0 0 0; }
+ description { offset_scale: 1; 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 "default" 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: "surface"; target: "event"; target: "elm.text"; }
+ program { signal: "elm,state,enabled"; source: "elm"; action: STATE_SET "default" 0.0; target: "surface"; target: "event"; target: "elm.text"; }
+ 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"; }
+ }
+}
+
+#undef EXPLORE_ABOUT_SURFACE
diff --git a/data/themes/explore_theme.edc b/data/themes/explore_theme.edc
index d268c4d..92f49b2 100644
--- a/data/themes/explore_theme.edc
+++ b/data/themes/explore_theme.edc
@@ -1130,6 +1130,14 @@ collections {
}
}
}
- group { name: "explore/about"; inherit: "explore/details";
+#ifdef EXPLORE_EFM_TOOLBAR
+ group { name: "explore/about";
+ parts {
+ part { name: "explore.workspace"; type: SWALLOW; }
+ }
}
+#else
+ #include "explore_about.edc"
+ group { name: "explore/about"; inherit: "explore/details"; }
+#endif
}
diff --git a/data/themes/meson.build b/data/themes/meson.build
index 33801e8..c0814b3 100644
--- a/data/themes/meson.build
+++ b/data/themes/meson.build
@@ -2,6 +2,8 @@ explore_edje_cc = find_program('edje_cc')
explore_edje_shell = find_program('sh')
explore_app_icon_dir = meson.current_source_dir() / '../icons'
explore_app_icon = files('../icons/explore.svg')
+explore_about_artwork = files('explore_about.edc', '../icons/explore_about_surface.svg',
+ '../icons/explore_about_mark.svg')
explore_edje_command = '"$1" -id "$2" -id "$3" "$4" "$5" && chmod a+r "$5"'
explore_archive_actions = ['compress', 'extract', 'archive']
@@ -14,7 +16,7 @@ foreach theme : ['default', 'midnight', 'atelier']
subdir(theme)
endforeach
-retro_artwork = explore_app_icon + files(
+retro_artwork = explore_app_icon + explore_about_artwork + files(
'explore_theme.edc',
'explore_menus.edc',
'explore_theme_preview.edc',
diff --git a/data/themes/midnight/meson.build b/data/themes/midnight/meson.build
index ca3caa3..12f43b9 100644
--- a/data/themes/midnight/meson.build
+++ b/data/themes/midnight/meson.build
@@ -8,7 +8,7 @@ custom_target('explore_midnight',
output: 'explore_midnight.edj',
command: [explore_edje_shell, '-c', explore_edje_command, 'explore-edje',
explore_edje_cc, meson.current_source_dir() / 'icons', explore_app_icon_dir, '@INPUT@', '@OUTPUT@'],
- depend_files: action_artwork + explore_app_icon + files(
+ depend_files: action_artwork + explore_app_icon + explore_about_artwork + files(
'../explore_theme.edc', '../explore_menus.edc', 'icons/explore_menu.svg', '../explore_theme_preview.edc', '../explore_preview_places.edc', '../explore_button.edc', 'icons/explore_shadow.png', 'icons/explore_grip.svg',
'icons/explore_plus.svg', 'icons/explore_refresh.svg', 'icons/explore_back.svg', 'icons/explore_forward.svg',
'icons/explore_palette.svg',
diff --git a/meson.build b/meson.build
index 14b170f..c1cc086 100644
--- a/meson.build
+++ b/meson.build
@@ -30,6 +30,12 @@ explore_config.set_quoted('EXPLORE_THEME_DIR',
explore_config.set_quoted('EXPLORE_BUILD_THEME_DIR', meson.project_build_root() / 'data/themes')
explore_config.set_quoted('EXPLORE_BIN_DIR', get_option('prefix') / get_option('bindir'))
explore_config.set_quoted('EXPLORE_BUILD_BIN_DIR', meson.project_build_root() / 'src/bin')
+explore_doc_dir = get_option('prefix') / get_option('datadir') / 'explore'
+explore_config.set_quoted('EXPLORE_DOC_DIR', explore_doc_dir)
+explore_config.set_quoted('EXPLORE_BUILD_DOC_DIR', meson.project_build_root())
+foreach document : ['AUTHORS', 'COPYING']
+ configure_file(input: document, output: document, copy: true, install_dir: explore_doc_dir)
+endforeach
configure_file(output: 'explore_config.h', configuration: explore_config)
explore_inc = include_directories('.')
diff --git a/src/bin/explore_main.c b/src/bin/explore_main.c
index f7eca6c..9398e8b 100644
--- a/src/bin/explore_main.c
+++ b/src/bin/explore_main.c
@@ -540,11 +540,101 @@ explore_about_close(void *data, Evas_Object *obj EINA_UNUSED, void *event EINA_U
evas_object_del(data);
}
+static void
+explore_about_key_down(void *data EINA_UNUSED, Evas *canvas EINA_UNUSED,
+ Evas_Object *window, void *event)
+{
+ Evas_Event_Key_Down *key = event;
+
+ if (eina_streq(key->keyname, "Escape")) evas_object_del(window);
+}
+
+enum { ABOUT_OVERVIEW, ABOUT_CREDITS, ABOUT_LICENSE };
+
+static void
+explore_about_tab_changed(void *data, Evas_Object *tabs EINA_UNUSED, void *event)
+{
+ Evas_Object *entry = data;
+ const char *document;
+ Eina_File *file;
+ const char *contents;
+ char *plain, *markup;
+
+ switch (elm_segment_control_item_index_get(event))
+ {
+ case ABOUT_CREDITS: document = "AUTHORS"; break;
+ case ABOUT_LICENSE: document = "COPYING"; break;
+ default:
+ elm_object_text_set(entry, _("Browse folders, search for files, and manage files in list or grid views. Use split view to work with two folders side by side."));
+ goto reset;
+ }
+
+ file = eina_file_open(eina_slstr_printf("%s/%s", EXPLORE_BUILD_DOC_DIR, document), EINA_FALSE);
+ if (!file)
+ file = eina_file_open(eina_slstr_printf("%s/%s", EXPLORE_DOC_DIR, document), EINA_FALSE);
+ markup = NULL;
+ if (file)
+ {
+ contents = eina_file_map_all(file, EINA_FILE_SEQUENTIAL);
+ if (contents)
+ {
+ plain = strndup(contents, eina_file_size_get(file));
+ if (plain) markup = elm_entry_utf8_to_markup(plain);
+ free(plain);
+ eina_file_map_free(file, (void *)contents);
+ }
+ eina_file_close(file);
+ }
+ elm_object_text_set(entry, markup ? markup : _("This document could not be loaded."));
+ free(markup);
+
+reset:
+ elm_entry_cursor_begin_set(entry);
+ elm_scroller_region_show(entry, 0, 0, 1, 1);
+}
+
+static void
+explore_about_theme(Explore_Window *owner, Evas_Object *body)
+{
+ Evas_Object *window = owner->about_window;
+ Evas_Object *hero = evas_object_data_get(window, "explore.about.hero");
+ Evas_Object *box = evas_object_data_get(window, "explore.about.box");
+ Evas_Object *identity = evas_object_data_get(window, "explore.about.identity");
+ Evas_Object *icon = evas_object_data_get(window, "explore.about.icon");
+ Evas_Object *tabs = evas_object_data_get(window, "explore.about.tabs");
+ Evas_Object *entry = evas_object_data_get(window, "explore.about.entry");
+ Evas_Object *close = evas_object_data_get(window, "explore.about.close");
+ Eina_Bool themed = owner->widget_theme != NULL;
+ int inset = ELM_SCALE_SIZE(9);
+ int side_inset = themed ? inset : 0;
+
+ evas_object_size_hint_padding_set(box, side_inset, side_inset, inset, inset);
+ evas_object_size_hint_padding_set(tabs, inset - side_inset, inset - side_inset, 0, 0);
+ explore_chrome_dialog_theme(window, owner->widget_theme, owner->theme,
+ "explore/about", body);
+ elm_image_file_set(icon, owner->theme, "explore/icon/application");
+
+ if (evas_object_visible_get(hero)) elm_box_unpack(box, hero);
+ if (themed && elm_layout_file_set(hero, owner->theme, "explore/about/hero"))
+ {
+ elm_object_part_text_set(hero, "tagline", _("A Simple File Manager"));
+ elm_box_pack_before(box, hero, identity);
+ evas_object_show(hero);
+ }
+ else evas_object_hide(hero);
+
+ elm_object_style_set(entry, themed ? "explore/about" : "default");
+ elm_object_style_set(close, themed ? "explore/about" : "default");
+ explore_chrome_entry_style(entry, hero, themed);
+}
+
static void
explore_about_show(void *data, Evas_Object *obj EINA_UNUSED, void *event EINA_UNUSED)
{
Explore_Window *owner = data;
- Evas_Object *window, *body, *logo, *label;
+ Evas_Object *window, *body, *box, *hero, *identity, *icon, *label;
+ Evas_Object *tabs, *viewport, *reserve, *entry, *close;
+ Elm_Object_Item *overview;
if (owner->about_window)
{
@@ -557,42 +647,95 @@ explore_about_show(void *data, Evas_Object *obj EINA_UNUSED, void *event EINA_UN
if (!window) return;
owner->about_window = window;
evas_object_event_callback_add(window, EVAS_CALLBACK_DEL, explore_about_deleted, owner);
+ evas_object_event_callback_add(window, EVAS_CALLBACK_KEY_DOWN, explore_about_key_down, NULL);
elm_win_title_set(window, _("About Explore"));
elm_win_autodel_set(window, EINA_TRUE);
elm_win_focus_highlight_enabled_set(window, EINA_TRUE);
body = elm_box_add(window);
- elm_box_padding_set(body, 0, ELM_SCALE_SIZE(10));
evas_object_size_hint_weight_set(body, EVAS_HINT_EXPAND, EVAS_HINT_EXPAND);
evas_object_size_hint_align_set(body, EVAS_HINT_FILL, EVAS_HINT_FILL);
- explore_chrome_dialog_theme(window, owner->widget_theme, owner->theme,
- "explore/about", body);
evas_object_show(body);
- logo = elm_image_add(body);
- elm_image_file_set(logo, owner->theme, "explore/icon/application");
- evas_object_size_hint_min_set(logo, ELM_SCALE_SIZE(80), ELM_SCALE_SIZE(80));
- evas_object_size_hint_max_set(logo, ELM_SCALE_SIZE(80), ELM_SCALE_SIZE(80));
- elm_box_pack_end(body, logo);
- evas_object_show(logo);
+ box = elm_box_add(body);
+ evas_object_data_set(window, "explore.about.box", box);
+ elm_box_padding_set(box, 0, ELM_SCALE_SIZE(11));
+ evas_object_size_hint_weight_set(box, EVAS_HINT_EXPAND, EVAS_HINT_EXPAND);
+ evas_object_size_hint_align_set(box, EVAS_HINT_FILL, EVAS_HINT_FILL);
+ elm_box_pack_end(body, box);
+ evas_object_show(box);
- label = elm_label_add(body);
- elm_object_text_set(label, eina_slstr_printf("<align=center><b>Explore</b><br/>%s<br/>%s</align>",
- _("A Simple File Manager"),
- eina_slstr_printf(_("Version %s"), EXPLORE_VERSION)));
- elm_box_pack_end(body, label);
+ hero = elm_layout_add(box);
+ evas_object_data_set(window, "explore.about.hero", hero);
+ evas_object_size_hint_min_set(hero, ELM_SCALE_SIZE(315), ELM_SCALE_SIZE(131));
+ evas_object_size_hint_weight_set(hero, EVAS_HINT_EXPAND, 0);
+ evas_object_size_hint_align_set(hero, EVAS_HINT_FILL, EVAS_HINT_FILL);
+
+ identity = elm_box_add(box);
+ evas_object_data_set(window, "explore.about.identity", identity);
+ elm_box_horizontal_set(identity, EINA_TRUE);
+ elm_box_padding_set(identity, ELM_SCALE_SIZE(9), 0);
+ elm_box_pack_end(box, identity);
+ evas_object_show(identity);
+
+ icon = elm_image_add(identity);
+ evas_object_data_set(window, "explore.about.icon", icon);
+ evas_object_size_hint_min_set(icon, ELM_SCALE_SIZE(32), ELM_SCALE_SIZE(32));
+ evas_object_size_hint_max_set(icon, ELM_SCALE_SIZE(32), ELM_SCALE_SIZE(32));
+ elm_box_pack_end(identity, icon);
+ evas_object_show(icon);
+
+ label = elm_label_add(identity);
+ elm_object_text_set(label, eina_slstr_printf(_("<b>Version %s</b> · © 2026 Alastair Poole"),
+ EXPLORE_VERSION));
+ elm_box_pack_end(identity, label);
evas_object_show(label);
- label = elm_label_add(body);
- elm_object_text_set(label, eina_slstr_printf("<align=center>%s<br/>[email protected]<br/>%s</align>",
- eina_slstr_printf(_("Copyright © %s"), "2026 Alastair Poole"), _("ISC License")));
- elm_box_pack_end(body, label);
- evas_object_show(label);
+ tabs = elm_segment_control_add(box);
+ evas_object_data_set(window, "explore.about.tabs", tabs);
+ evas_object_size_hint_weight_set(tabs, EVAS_HINT_EXPAND, 0);
+ evas_object_size_hint_align_set(tabs, EVAS_HINT_FILL, 0.5);
+ elm_box_pack_end(box, tabs);
+ evas_object_show(tabs);
- explore_button_add(body, _("Close"), explore_about_close, window);
- evas_object_size_hint_min_set(window, ELM_SCALE_SIZE(340), ELM_SCALE_SIZE(300));
- evas_object_resize(window, ELM_SCALE_SIZE(340), ELM_SCALE_SIZE(300));
+ viewport = elm_table_add(box);
+ evas_object_size_hint_weight_set(viewport, EVAS_HINT_EXPAND, EVAS_HINT_EXPAND);
+ evas_object_size_hint_align_set(viewport, EVAS_HINT_FILL, EVAS_HINT_FILL);
+ elm_box_pack_end(box, viewport);
+ evas_object_show(viewport);
+
+ reserve = evas_object_rectangle_add(evas_object_evas_get(viewport));
+ evas_object_pass_events_set(reserve, EINA_TRUE);
+ evas_object_size_hint_weight_set(reserve, EVAS_HINT_EXPAND, EVAS_HINT_EXPAND);
+ evas_object_size_hint_min_set(reserve, ELM_SCALE_SIZE(315), ELM_SCALE_SIZE(120));
+ elm_table_pack(viewport, reserve, 0, 0, 1, 1);
+
+ entry = elm_entry_add(viewport);
+ evas_object_data_set(window, "explore.about.entry", entry);
+ elm_entry_scrollable_set(entry, EINA_TRUE);
+ elm_entry_editable_set(entry, EINA_FALSE);
+ elm_entry_line_wrap_set(entry, ELM_WRAP_WORD);
+ elm_scroller_policy_set(entry, ELM_SCROLLER_POLICY_OFF, ELM_SCROLLER_POLICY_AUTO);
+ evas_object_size_hint_weight_set(entry, EVAS_HINT_EXPAND, EVAS_HINT_EXPAND);
+ evas_object_size_hint_align_set(entry, EVAS_HINT_FILL, EVAS_HINT_FILL);
+ elm_table_pack(viewport, entry, 0, 0, 1, 1);
+ evas_object_show(entry);
+
+ overview = elm_segment_control_item_add(tabs, NULL, _("Overview"));
+ elm_segment_control_item_add(tabs, NULL, _("Credits"));
+ elm_segment_control_item_add(tabs, NULL, _("License"));
+ evas_object_smart_callback_add(tabs, "changed", explore_about_tab_changed, entry);
+ elm_segment_control_item_selected_set(overview, EINA_TRUE);
+ explore_about_tab_changed(entry, tabs, overview);
+
+ close = explore_button_add(box, _("Close"), explore_about_close, window);
+ evas_object_data_set(window, "explore.about.close", close);
+ evas_object_size_hint_align_set(close, 0.5, 0.5);
+ explore_about_theme(owner, body);
+ evas_object_resize(window, ELM_SCALE_SIZE(405), ELM_SCALE_SIZE(390));
+ elm_win_center(window, EINA_TRUE, EINA_TRUE);
evas_object_show(window);
+ elm_object_focus_set(close, EINA_TRUE);
}
static void
@@ -756,8 +899,7 @@ explore_theme_content(Explore_Window *window)
explore_places_theme(window);
explore_toolbar_icon(window, window->transfers_button, "transfers", _("Transfers"));
if (window->about_window)
- explore_chrome_dialog_theme(window->about_window, window->widget_theme, window->theme,
- "explore/about", NULL);
+ explore_about_theme(window, NULL);
explore_transfers_toolbar_update(window);
explore_transfers_retheme(window);
explore_find_retheme(window);
--
To stop receiving notification emails like this one, please contact
the administrator of this repository.