summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMike Blumenkrantz <m.blumenkran@samsung.com>2013-08-19 08:39:43 +0100
committerMike Blumenkrantz <m.blumenkran@samsung.com>2013-10-28 13:23:31 +0000
commit12969ff4bc08d493bdc1a9d2e5dfe59a2a612280 (patch)
treeb78c11159771cf8d3670973d256bf42e4e858243
parentce6792fcd0d35275828091cc5d66eaf68ff6eb03 (diff)
downloadenlightenment-12969ff4bc08d493bdc1a9d2e5dfe59a2a612280.tar.gz
feature: add E_THEME_OVERRIDE to specify an edje file to use as the override for the default theme
-rw-r--r--src/bin/e_theme.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/src/bin/e_theme.c b/src/bin/e_theme.c
index 2ad68c87c3..71da6ad19e 100644
--- a/src/bin/e_theme.c
+++ b/src/bin/e_theme.c
@@ -31,6 +31,7 @@ e_theme_init(void)
{
E_Config_Theme *et;
Eina_List *l = NULL;
+ const char *theme_override;
/* Register mime handler */
theme_hdl = e_fm2_mime_handler_new(_("Set As Theme"), "preferences-desktop-theme",
@@ -41,14 +42,15 @@ e_theme_init(void)
/* this is a fallback that is ALWAYS there - if all fails things will */
/* always fall back to the default theme. the rest after this are config */
/* values users can set */
- e_theme_file_set("base", "default.edj");
+ theme_override = getenv("E_THEME_OVERRIDE");
+ if (!theme_override) e_theme_file_set("base", "default.edj");
EINA_LIST_FOREACH(e_config->themes, l, et)
{
char buf[256];
snprintf(buf, sizeof(buf), "base/%s", et->category);
- e_theme_file_set(buf, et->file);
+ e_theme_file_set(buf, theme_override ?: et->file);
}
if (!mappings) mappings = eina_hash_string_superfast_new(NULL);