From a3c8e37caa0c449e0bcd240f17d23797b00b0296 Mon Sep 17 00:00:00 2001 From: Youngbok Shin Date: Tue, 23 Jan 2018 19:55:14 +0900 Subject: border: add border.edc for frame object in the efl_ui_win It is copied from the default theme of upstream EFL. It also raised the version of theme from 110 to 119. --- mobile/efl-theme-tizen-mobile.edc | 3 +- mobile/widgets/border.edc | 898 ++++++++++++++++++++++++++++++++++++++ 2 files changed, 900 insertions(+), 1 deletion(-) create mode 100644 mobile/widgets/border.edc (limited to 'mobile') diff --git a/mobile/efl-theme-tizen-mobile.edc b/mobile/efl-theme-tizen-mobile.edc index f7ea62aa..a2301dc1 100644 --- a/mobile/efl-theme-tizen-mobile.edc +++ b/mobile/efl-theme-tizen-mobile.edc @@ -47,7 +47,7 @@ externals { } // BUILD_FIX: Add version to edc as 110. -data.item: "version" "110"; +data.item: "version" "119"; // collections { @@ -114,6 +114,7 @@ collections { #include "widgets/hover.edc" #include "widgets/list.edc" #include "widgets/floatingbutton.edc" +#include "widgets/border.edc" color_classes { color_class { diff --git a/mobile/widgets/border.edc b/mobile/widgets/border.edc new file mode 100644 index 00000000..39dfe93f --- /dev/null +++ b/mobile/widgets/border.edc @@ -0,0 +1,898 @@ +/* Window client-side decorations and extra slots + * Includes swallows for: + * - app content + * - main menu + * - indicator + * - soft key + * - virtual keyboard + */ +/* TIZEN_ONLY(20180123): For Tizen, + * I removed all image parts to reduce + * the usage of unused resources in Tizen. + * If you want to add shadow, border and etc, + * please refer the theme of upstream EFL. */ + +group { name: "elm/border/base/default"; + data.item: "shadow" "1"; + data.item: "version" "119"; + parts { + /* opaque region of the window, to inform the compositor */ + spacer { "elm.spacer.opaque"; + desc { + rel1.to: "top_clip"; + rel2.to: "bottom_clip"; + } + desc { "max"; inherit: "default"; } + } + /* covers the entire client contents, excluding the main menu */ + spacer { "elm.spacer.content"; + required; // since 1.19 + desc { + rel1.to: "elm.swallow.menu"; + rel1.relative: 0.0 1.0; + rel2.to: "elm.swallow.keyboard"; + rel2.relative: 1.0 0.0; + } + } + /* shadow spacer and clipper */ + spacer { "shadow_spacer"; + desc { "default"; + rel1.offset: 0 0; + rel2.offset: 0 0; + } + desc { "hidden"; + rel1.offset: 0 0; + rel2.offset: 0 0; + } + } + /* window background: solid color */ + rect { "bg_clip"; + nomouse; + desc { "default"; + rel1.to: "top_clip"; + rel1.relative: 0.0 1.0; + rel2.to: "bottom_clip"; + } + } + rect { "elm.rect.background"; + required; // @since 1.19 + clip: "bg_clip"; + desc { "default"; + color: 255 255 255 255; + color_class: "elm/win/background"; // FIXME: color_class naming scheme + visible: 0; + } + desc { "visible"; + inherit: "default"; + visible: 1; + } + } + /* window background: image */ + swallow { "elm.swallow.background"; + required; // @since 1.19 + clip: "client_clip"; + } + spacer { "indicator_spacer"; + desc { "default"; + rel.to: "elm.swallow.indicator"; + } + desc { "hidden"; + rel.to: "top_clip"; + rel1.relative: 0.0 1.0; + align: 0.5 0.0; + fixed: 1 1; + } + } + /* main menu */ + rect { "menu_bg"; + desc { "default"; + color: 64 64 64 255; // FIXME: color_class + align: 0.5 0.0; + rel.to: "elm.swallow.menu"; + } + } + swallow { "elm.swallow.menu"; + required: 1; // since 1.19 + desc { "default"; + rel.to: "indicator_spacer"; + rel1.relative: 0.0 1.0; + visible: 0; + align: 0.5 0.0; + fixed: 1 1; + } + desc { "visible"; inherit: "default"; + visible: 1; + fixed: 0 1; + } + } + + /* application contents - spacer and clipper (without main menu) */ + spacer { "client_spacer"; + desc { "default"; + rel1.to: "elm.swallow.menu"; + rel1.relative: 0.0 1.0; + rel2.to: "elm.swallow.keyboard"; + rel2.relative: 1.0 0.0; + } + } + rect { "client_clip"; + nomouse; + desc { "default"; + rel.to: "client_spacer"; + } + } + + /* application contents */ + swallow { "elm.swallow.client"; + clip: "client_clip"; + desc { "default"; + rel.to: "client_spacer"; + } + } + + /* modal window blocker */ + rect { "elm.rect.blocker"; + required; + desc { "default"; + rel1.to: "top_clip"; + rel1.relative: 0.0 1.0; + rel2.to: "bottom_clip"; + rel2.relative: 1.0 0.0; + color: 0 0 0 0; + hid; + } + desc { "visible"; + inherit: "default"; + color_class: "elm/win/blocker"; + color: 255 255 255 255; + vis; + } + } + + /* top title bar - spacer and clipper */ + rect { "top_clip"; //nomouse; + desc { "default"; + rel1.to: "shadow_spacer"; + rel2.to_y: "title2"; + rel2.to_x: "shadow_spacer"; + vis; + } + desc { "hidden"; + inherit: "default"; + rel1.relative: 0.0 0.0; + rel2.to: "shadow_spacer"; + rel2.relative: 1.0 0.0; + rel2.offset: -1 -1; + max: -1 0; + min: 0 0; + fixed: 0 1; + hid; + } + } + text { "elm.text.title"; nomouse; + scale: 1; + effect: SHADOW BOTTOM; + clip: "top_clip"; + desc { "default"; + rel1.relative: 1.0 0.0; + rel1.offset: 1 3; + rel1.to_x: "elm.event.icon"; + rel1.to_y: "shadow_spacer"; + rel2.relative: 0.0 0.0; + rel2.offset: -2 3; + rel2.to_x: "elm.event.minimize"; + rel2.to_y: "shadow_spacer"; + align: 0.5 0.0; + color_class: "border_title"; + color3: 255 255 255 255; + text { font: FNBD; size: 10; + text_class: "title_bar"; + align: 0.5 0.0; + min: 0 1; + } + fixed: 0 1; + } + desc { "focused"; + inherit: "default"; + visible: 0; + } + } + text { "title2"; nomouse; + scale: 1; + effect: SOFT_SHADOW BOTTOM; + clip: "top_clip"; + desc { "default"; + rel1.relative: 1.0 0.0; + rel1.offset: 1 2; + rel1.to_x: "elm.event.icon"; + rel1.to_y: "shadow_spacer"; + rel2.relative: 0.0 0.0; + rel2.offset: -1 2; + rel2.to_x: "elm.event.minimize"; + rel2.to_y: "shadow_spacer"; + align: 0.5 0.0; + color_class: "border_title_active"; + color3: 255 255 255 255; + text { font: FNBD; size: 10; + text_source: "elm.text.title"; + text_class: "title_bar"; + align: 0.5 0.0; + min: 0 1; + } + fixed: 0 1; + visible: 0; + } + desc { "focused"; + inherit: "default"; + visible: 1; + } + } + spacer { "icon"; + desc { "default"; + rel1.to: "elm.event.icon"; + rel2.to: "elm.event.icon"; + } + desc { "bounce1"; + inherit: "default"; + rel1.relative: 0.5 0.5; + rel2.relative: 0.5 0.5; + } + desc { "bounce2"; + inherit: "default"; + rel1.relative: -0.5 -0.5; + rel2.relative: 1.2 1.2; + } + } + swallow { "elm.swallow.icon"; nomouse; + clip_to: "top_clip"; + desc { "default"; + rel1.to: "icon"; + rel1.relative: 0.15 0.15; + rel2.to: "icon"; + rel2.relative: 0.85 0.85; + rel2.offset: 0 0; + } + } + rect { "busy_clip"; nomouse; + desc { "default"; + color: 255 255 255 0; + visible: 0; + } + desc { "hung"; + inherit: "default"; + color: 255 255 255 255; + visible: 1; + } + } + rect { "clip1"; nomouse; + desc { "default"; + rel1.to: "top_clip"; + rel2.to: "top_clip"; + } + desc { "focused"; + inherit: "default"; + visible: 0; + } + } + rect { "clip2"; nomouse; + desc { "default"; + rel1.to: "top_clip"; + rel2.to: "top_clip"; + visible: 0; + } + desc { "focused"; + inherit: "default"; + visible: 1; + } + } + rect { "elm.event.icon"; + desc { "default"; + rel1.relative: 0.0 0.0; + rel1.to: "top_clip"; + rel2.relative: 0.0 1.0; + rel2.to: "top_clip"; + align: 0.0 0.5; + aspect: 1.0 1.0; aspect_preference: VERTICAL; + color: 0 0 0 0; + } + } + rect { "elm.event.titlebar"; + desc { "default"; + rel1.relative: 1.0 0.0; + rel1.to_x: "elm.event.icon"; + rel1.to_y: "top_clip"; + rel2.relative: 0.0 1.0; + rel2.offset: 0 -1; + rel2.to_x: "elm.event.minimize"; + rel2.to_y: "top_clip"; + color: 0 0 0 0; + } + } + rect { "elm.event.close"; + desc { "default"; + rel.to: "top_clip"; + rel1.relative: 1.0 0.0; + rel2.relative: 1.0 1.0; + align: 1.0 0.5; + aspect: 1.0 1.0; aspect_preference: VERTICAL; + color: 0 0 0 0; + } + } + rect { "elm.event.maximize"; + desc { "default"; + rel1.relative: -0.25 0.0; + rel1.offset: -1 0; + rel1.to_x: "elm.event.close"; + rel1.to_y: "top_clip"; + rel2.relative: -0.25 1.0; + rel2.to_x: "elm.event.close"; + rel2.to_y: "top_clip"; + align: 1.0 0.5; + aspect: 1.0 1.0; aspect_preference: VERTICAL; + color: 0 0 0 0; + } + } + rect { "elm.event.minimize"; + desc { "default"; + rel1.relative: 0.0 0.0; + rel1.offset: -1 0; + rel1.to_x: "elm.event.maximize"; + rel1.to_y: "top_clip"; + rel2.relative: 0.0 1.0; + rel2.to_y: "top_clip"; + rel2.to_x: "elm.event.maximize"; + align: 1.0 0.5; + aspect: 1.0 1.0; aspect_preference: VERTICAL; + color: 0 0 0 0; + } + } + rect { "top_resize_clip"; + clip: "top_clip"; + desc { "default"; + rel.to: "top_clip"; + } + desc { "hidden"; + inherit: "default"; + hid; + } + } + rect { "elm.event.resize.tl"; + clip: "top_resize_clip"; + desc { "default"; + rel.to: "top_clip"; + rel2.relative: 0.0 0.0; + min: 32 4; + align: 0.0 0.0; + color: 0 0 0 0; + fixed: 1 1; + } + desc { "hidden"; inherit: "default"; hid; } + } + rect { "elm.event.resize.t"; + clip: "top_resize_clip"; + desc { "default"; + rel1.relative: 1.0 0.0; + rel1.to_y: "top_clip"; + rel1.to_x: "elm.event.resize.tl"; + rel2.relative: 0.0 0.0; + rel2.to_x: "elm.event.resize.tr"; + rel2.to_y: "top_clip"; + min: 0 4; + align: 0.5 0.0; + color: 0 0 0 0; + fixed: 1 1; + } + desc { "hidden"; inherit: "default"; hid; } + } + rect { "elm.event.resize.tr"; + clip: "top_resize_clip"; + desc { "default"; + rel.to: "top_clip"; + rel1.relative: 1.0 0.0; + rel2.relative: 1.0 0.0; + min: 32 4; + align: 1.0 0.0; + color: 0 0 0 0; + fixed: 1 1; + } + desc { "hidden"; inherit: "default"; hid; } + } + /* bottom border - spacer and clipper */ + swallow { "elm.swallow.keyboard"; + desc { "default"; + rel.to: "bottom_clip"; + rel2.relative: 1.0 0.0; + align: 0.0 1.0; + fixed: 0 1; + } + } + rect { "bottom_clip"; + desc { "default"; + rel1 { relative: 0.0 1.0; offset: 0 -5; } + min: 0 5; + fixed: 0 1; + } + desc { "hidden"; + inherit: "default"; + rel1 { relative: 0.0 1.0; offset: 0 0; } + min: 0 0; + hid; + } + } + rect { "bottom"; + nomouse; + desc { "default"; + color_class: "border_bottom"; + color: 64 64 64 255; /* FIXME */ + rel.to: "bottom_clip"; + } + } + rect { "elm.event.resize.bl"; + clip: "bottom_clip"; + desc { "default"; + rel1.relative: 0.0 1.0; + rel1.to: "bottom_clip"; + rel2.relative: 0.0 1.0; + rel2.to: "bottom_clip"; + min: 32 5; + align: 0.0 1.0; + color: 0 0 0 0; + fixed: 1 1; + } + desc { "hidden"; inherit: "default"; hid; } + } + rect { "elm.event.resize.b"; + clip: "bottom_clip"; + desc { "default"; + rel1.relative: 1.0 1.0; + rel1.to_x: "elm.event.resize.tl"; + rel1.to_y: "bottom_clip"; + rel1.offset: 0 -1; + rel2.relative: 0.0 1.0; + rel2.to_x: "elm.event.resize.tr"; + rel2.to_y: "bottom_clip"; + min: 0 5; + align: 0.5 1.0; + color: 0 0 0 0; + fixed: 0 1; + } + desc { "hidden"; inherit: "default"; hid; } + } + rect { "elm.event.resize.br"; + clip: "bottom_clip"; + desc { "default"; + rel1.relative: 1.0 1.0; + rel1.to: "bottom_clip"; + rel2.relative: 1.0 1.0; + rel2.to: "bottom_clip"; + min: 32 5; + align: 1.0 1.0; + color: 0 0 0 0; + fixed: 1 1; + } + desc { "hidden"; inherit: "default"; hid; } + } + rect { "indicator_bg"; + clip: "bg_clip"; + desc { "default"; + color: 148 23 45 255; + rel.to: "elm.swallow.indicator"; + } + desc { "bg_transparent"; + inherit: "default"; + color: 0 0 0 0; + } + } + swallow { "elm.swallow.indicator"; + clip: "bg_clip"; + desc { "default"; + rel.to: "top_clip"; + rel1.relative: 0.0 1.0; + visible: 0; + align: 0.5 0.0; + fixed: 1 1; + } + desc { "visible"; inherit: "default"; + visible: 1; + fixed: 0 1; + } + desc { "hidden"; inherit: "visible"; + align: 0.5 1.0; + } + } + } + +#define BORDERLESS 1 +#define MAXIMIZED 2 +#define UNRESIZABLE 4 +#define SET_MODE(a) script { new m = get_int(border_mode); m |= (a); set_int(border_mode, m); eval_mode(m); } +#define UNSET_MODE(a) script { new m = get_int(border_mode); m &= ~(a); set_int(border_mode, m); eval_mode(m); } + +#define INDICATOR_TYPE_UNKNOWN 0 +#define INDICATOR_TYPE_BG_OPAQUE 1 +#define INDICATOR_TYPE_BG_TRANSPARENT 2 +#define INDICATOR_TYPE_HIDDEN 3 + + programs { + script { + public border_mode; + public indicator_type = 0; + public indicator_enabled = 0; + public eval_mode(m) { + if (m & (BORDERLESS | MAXIMIZED | UNRESIZABLE)) { + set_state(PART:"bottom_clip", "hidden", 0.0); + set_state(PART:"top_resize_clip", "hidden", 0.0); + } else { + set_state(PART:"bottom_clip", "default", 0.0); + set_state(PART:"top_resize_clip", "default", 0.0); + } + } + } + program { + signal: "elm,state,borderless,on"; source: "elm"; + action: STATE_SET "hidden"; + targets: "top_clip" "bottom_clip"; + after: "borderless,on"; + } + program { "borderless,on"; SET_MODE(BORDERLESS); } + program { + signal: "elm,state,borderless,off"; source: "elm"; + action: STATE_SET "default"; + targets: "top_clip" "bottom_clip"; + after: "borderless,off"; + } + program { "borderless,off"; UNSET_MODE(BORDERLESS); } + program { + signal: "elm,state,unresizable,on"; source: "elm"; + SET_MODE(UNRESIZABLE); + } + program { + signal: "elm,state,unresizable,off"; source: "elm"; + UNSET_MODE(UNRESIZABLE); + } + program { + signal: "elm,state,shadow,on"; source: "elm"; + action: STATE_SET "default"; + targets: "shadow_spacer"; + } + program { + signal: "elm,state,shadow,off"; source: "elm"; + action: STATE_SET "hidden"; + targets: "shadow_spacer"; + } + program { + signal: "elm,state,background,solid,on"; source: "elm"; + action: STATE_SET "visible"; + target: "elm.rect.background"; + } + program { + signal: "elm,state,background,solid,off"; source: "elm"; + action: STATE_SET "default"; + target: "elm.rect.background"; + } + program { + signal: "elm,action,focus"; source: "elm"; + action: STATE_SET "focused"; + target: "elm.text.title"; + target: "title2"; + target: "clip1"; + target: "clip2"; + } + program { + signal: "elm,action,unfocus"; source: "elm"; + action: STATE_SET "default"; + target: "elm.text.title"; + target: "title2"; + target: "clip1"; + target: "clip2"; + } + program { + signal: "elm,state,urgent"; source: "elm"; + action: STATE_SET "bounce1"; + target: "icon"; + after: "urg1"; + } + program { name: "urg1"; + action: STATE_SET "bounce2"; + transition: DECELERATE 0.4; + target: "icon"; + after: "urg2"; + } + program { name: "urg2"; + action: STATE_SET "bounce1"; + transition: ACCELERATE 0.3; + target: "icon"; + after: "urg1"; + } + program { + signal: "elm,state,not_urgent"; source: "elm"; + action: STATE_SET "default"; + target: "icon"; + } + program { name: "spin"; + signal: "elm,state,hung"; source: "elm"; + after: "spin2"; + } + program { name: "spin2"; + after: "spin"; + } + program { + signal: "elm,state,hung"; source: "elm"; + action: STATE_SET "hung"; + transition: SINUSOIDAL 0.25; + target: "busy_clip"; + } + program { + signal: "elm,state,unhung"; source: "elm"; + action: STATE_SET "default"; + transition: SINUSOIDAL 1.0; + target: "busy_clip"; + after: "spin3"; + } + program { name: "spin3"; + action: ACTION_STOP; + target: "spin"; + target: "spin2"; + } + + /* maximize & unmaximize */ + program { + signal: "elm,state,maximize*"; source: "elm"; + action: STATE_SET "max"; + target: "elm.spacer.opaque"; + } + program { + signal: "elm,state,maximize*"; source: "elm"; + SET_MODE(MAXIMIZED); + } + program { + signal: "elm,state,unmaximize*"; source: "elm"; + action: STATE_SET "default"; + target: "elm.spacer.opaque"; + } + program { + signal: "elm,state,unmaximize*"; source: "elm"; + UNSET_MODE(MAXIMIZED); + } + + /*indicator*/ + program { + signal: "elm,action,show_indicator"; source: "elm"; + script { + set_int(indicator_enabled, 1); + } + after: "update_indicator"; + } + program { + signal: "elm,action,hide_indicator"; source: "elm"; + script { + set_int(indicator_enabled, 0); + } + after: "update_indicator"; + } + program { + signal: "elm,action,indicator,bg_opaque"; source: "elm"; + script { + set_int(indicator_type, INDICATOR_TYPE_BG_OPAQUE); + } + after: "update_indicator"; + } + program { + signal: "elm,action,indicator,bg_transparent"; source: "elm"; + script { + set_int(indicator_type, INDICATOR_TYPE_BG_TRANSPARENT); + } + after: "update_indicator"; + } + program { + signal: "elm,action,indicator,hidden"; source: "elm"; + script { + set_int(indicator_type, INDICATOR_TYPE_HIDDEN); + } + after: "update_indicator"; + } + program { + signal: "elm,action,indicator,show_effect"; source: "elm"; + action: STATE_SET "visible"; + transition: DECELERATE 0.2; + target: "elm.swallow.indicator"; + } + program { + signal: "elm,action,indicator,hide_effect"; source: "elm"; + action: STATE_SET "hidden"; + transition: DECELERATE 0.2; + target: "elm.swallow.indicator"; + } + program { name: "update_indicator"; + script { + if (get_int(indicator_enabled)) { + if ((get_int(indicator_type) == INDICATOR_TYPE_BG_OPAQUE) || + (get_int(indicator_type) == INDICATOR_TYPE_UNKNOWN)) { + set_state(PART:"elm.swallow.indicator", "visible", 0.0); + set_state(PART:"indicator_spacer", "default", 0.0); + set_state(PART:"indicator_bg", "default", 0.0); + } else if (get_int(indicator_type) == INDICATOR_TYPE_BG_TRANSPARENT) { + set_state(PART:"elm.swallow.indicator", "visible", 0.0); + set_state(PART:"indicator_spacer", "default", 0.0); + set_state(PART:"indicator_bg", "bg_transparent", 0.0); + } else if (get_int(indicator_type) == INDICATOR_TYPE_HIDDEN) { + set_state(PART:"elm.swallow.indicator", "hidden", 0.0); + set_state(PART:"indicator_spacer", "hidden", 0.0); + set_state(PART:"indicator_bg", "default", 0.0); + } + } else { + set_state(PART:"elm.swallow.indicator", "default", 0.0); + set_state(PART:"indicator_spacer", "default", 0.0); + } + } + } + + /* application desktop menu */ + program { name: "show_menu"; + signal: "elm,action,show_menu"; source: "elm"; + action: STATE_SET "visible"; + target: "elm.swallow.menu"; + } + program { name: "hide_menu"; + signal: "elm,action,hide"; source: "elm"; + action: STATE_SET "default"; + target: "elm.swallow.menu"; + } + + /* modal windows */ + program { name: "hide_blocker"; + signal: "elm,action,hide_blocker"; source: "elm"; + action: STATE_SET "default" 0.0; + target: "elm.rect.blocker"; + transition: DECELERATE 0.2; + } + program { name: "show_blocker"; + signal: "elm,action,show_blocker"; source: "elm"; + action: STATE_SET "visible" 0.0; + target: "elm.rect.blocker"; + transition: DECELERATE 0.2; + } + program { + signal: "mouse,down,1"; source: "elm.event.titlebar"; + action: SIGNAL_EMIT "elm,action,move,start" "elm"; + } + program { + signal: "mouse,up,1"; source: "elm.event.titlebar"; + action: SIGNAL_EMIT "elm,action,move,stop" "elm"; + } + program { + signal: "mouse,clicked,1"; source: "elm.event.minimize"; + action: SIGNAL_EMIT "elm,action,minimize" "elm"; + } + program { + signal: "mouse,clicked,1"; source: "elm.event.maximize"; + action: SIGNAL_EMIT "elm,action,maximize" "elm"; + } + program { + signal: "mouse,clicked,1"; source: "elm.event.close"; + action: SIGNAL_EMIT "elm,action,close" "elm"; + } + program { + signal: "mouse,in"; source: "elm.event.resize.t"; + action: SIGNAL_EMIT "elm,action,resize,show" "elm.event.resize.t"; + } + program { + signal: "mouse,out"; source: "elm.event.resize.t"; + action: SIGNAL_EMIT "elm,action,resize,hide" "elm.event.resize.t"; + } + program { + signal: "mouse,down,1"; source: "elm.event.resize.t"; + action: SIGNAL_EMIT "elm,action,resize,start" "elm.event.resize.t"; + } + program { + signal: "mouse,in"; source: "elm.event.resize.b"; + action: SIGNAL_EMIT "elm,action,resize,show" "elm.event.resize.b"; + } + program { + signal: "mouse,out"; source: "elm.event.resize.b"; + action: SIGNAL_EMIT "elm,action,resize,hide" "elm.event.resize.b"; + } + program { + signal: "mouse,down,1"; source: "elm.event.resize.b"; + action: SIGNAL_EMIT "elm,action,resize,start" "elm.event.resize.b"; + } + program { + signal: "mouse,in"; source: "elm.event.resize.tl"; + action: SIGNAL_EMIT "elm,action,resize,show" "elm.event.resize.tl"; + } + program { + signal: "mouse,out"; source: "elm.event.resize.tl"; + action: SIGNAL_EMIT "elm,action,resize,hide" "elm.event.resize.tl"; + } + program { + signal: "mouse,down,1"; source: "elm.event.resize.tl"; + action: SIGNAL_EMIT "elm,action,resize,start" "elm.event.resize.tl"; + } + program { + signal: "mouse,in"; source: "elm.event.resize.tr"; + action: SIGNAL_EMIT "elm,action,resize,show" "elm.event.resize.tr"; + } + program { + signal: "mouse,out"; source: "elm.event.resize.tr"; + action: SIGNAL_EMIT "elm,action,resize,hide" "elm.event.resize.tr"; + } + program { + signal: "mouse,down,1"; source: "elm.event.resize.tr"; + action: SIGNAL_EMIT "elm,action,resize,start" "elm.event.resize.tr"; + } + program { + signal: "mouse,in"; source: "elm.event.resize.bl"; + action: SIGNAL_EMIT "elm,action,resize,show" "elm.event.resize.bl"; + } + program { + signal: "mouse,out"; source: "elm.event.resize.bl"; + action: SIGNAL_EMIT "elm,action,resize,hide" "elm.event.resize.bl"; + } + program { + signal: "mouse,down,1"; source: "elm.event.resize.bl"; + action: SIGNAL_EMIT "elm,action,resize,start" "elm.event.resize.bl"; + } + program { + signal: "mouse,in"; source: "elm.event.resize.br"; + action: SIGNAL_EMIT "elm,action,resize,show" "elm.event.resize.br"; + } + program { + signal: "mouse,out"; source: "elm.event.resize.br"; + action: SIGNAL_EMIT "elm,action,resize,hide" "elm.event.resize.br"; + } + program { + signal: "mouse,down,1"; source: "elm.event.resize.br"; + action: SIGNAL_EMIT "elm,action,resize,start" "elm.event.resize.br"; + } + program { + signal: "mouse,clicked,1"; source: "elm.event.icon"; + action: SIGNAL_EMIT "elm,action,menu" "elm"; + } + } +} + +group { name: "elm/border/dialog/default"; + inherit: "elm/border/base/default"; + parts { + text { "elm.text.title"; + clip: "top_clip"; + desc { "default"; + rel2.to_x: "elm.event.close"; + } + desc { "focused"; + inherit: "default"; + visible: 0; + } + } + text { "title2"; + desc { "default"; + rel2.to_x: "elm.event.close"; + } + desc { "focused"; + inherit: "default"; + visible: 1; + } + } + rect { "elm.event.maximize"; + desc { "default"; + visible: 0; + } + } + rect { "elm.event.minimize"; + desc { "default"; + visible: 0; + } + } + } +} + +group { name: "elm/border/naviframe/default"; + inherit: "elm/border/dialog/default"; +} + +#undef UNRESIZABLE +#undef BORDERLESS +#undef MAXIMIZED +#undef SET_MODE +#undef UNSET_MODE + -- cgit v1.2.3