diff options
-rw-r--r-- | mobile/HD-inc.edc | 7 | ||||
-rw-r--r-- | mobile/HD/images/default/toast_popup.png | bin | 0 -> 2139 bytes | |||
-rw-r--r-- | mobile/widgets/win.edc | 94 |
3 files changed, 101 insertions, 0 deletions
diff --git a/mobile/HD-inc.edc b/mobile/HD-inc.edc index 3cc58cf1..41239a14 100644 --- a/mobile/HD-inc.edc +++ b/mobile/HD-inc.edc @@ -969,6 +969,13 @@ #define PANES_STYLE_DEFAULT_FIXED_SIZE_INC 52 #define PANES_DEFAULT_FIXED_SEPERATOR_NORMAL_COLOR_INC 118 118 118 255 +// ****************************************************** // +// InWin +// ****************************************************** // +#define INWIN_BG_BORDER_INC 30 30 30 30 +#define INWIN_PADDING_CONTENT_SIZE_INC 50 + + #define STYLE_TAGS \ tag: "br" "\n";\ tag: "ps" "ps";\ diff --git a/mobile/HD/images/default/toast_popup.png b/mobile/HD/images/default/toast_popup.png Binary files differnew file mode 100644 index 00000000..8e5bc8e8 --- /dev/null +++ b/mobile/HD/images/default/toast_popup.png diff --git a/mobile/widgets/win.edc b/mobile/widgets/win.edc index ccd9abe3..35579e25 100644 --- a/mobile/widgets/win.edc +++ b/mobile/widgets/win.edc @@ -99,3 +99,97 @@ group { name: "elm/win/base/default"; // } } + +group { name: "elm/win/inwin/default"; + images { + image: "toast_popup.png" COMP; + } + parts { + part { name: "base"; + type: RECT; + scale: 1; + mouse_events: 1; + description { state: "default" 0.0; + color: 0 0 0 0; + } + description { state: "visible" 0.0; + inherit: "default" 0.0; + color: 0 0 0 64; + } + } + part { name: "pop"; + scale: 1; + mouse_events: 1; + description { state: "default" 0.0; + image { + normal: "toast_popup.png"; + border: INWIN_BG_BORDER_INC; + border_scale: 1; + } + } + } + part { name: "elm.content.padding.left"; + type: SPACER; + scale: 1; + description { state: "default" 0.0; + min: INWIN_PADDING_CONTENT_SIZE_INC INWIN_PADDING_CONTENT_SIZE_INC; + fixed: 1 1; + align: 0 0; + rel1 { + to: "pop"; + relative: 0.0 0.0; + } + rel2 { + to: "pop"; + relative: 0.0 0.0; + } + } + } + part { name: "elm.content.padding.right"; + type: SPACER; + scale: 1; + description { state: "default" 0.0; + min: INWIN_PADDING_CONTENT_SIZE_INC INWIN_PADDING_CONTENT_SIZE_INC; + fixed: 1 1; + align: 1 1; + rel1 { + to: "pop"; + relative: 1.0 1.0; + } + rel2 { + to: "pop"; + relative: 1.0 1.0; + } + } + } + part { name: "elm.swallow.content"; + type: SWALLOW; + scale: 1; + description { state: "default" 0.0; + rel1 { + to: "elm.content.padding.left"; + relative: 1.0 1.0; + } + rel2 { + to: "elm.content.padding.right"; + relative: 0.0 0.0; + } + } + } + } + programs { + program { name: "show"; + signal: "elm,action,show"; + source: "elm"; + action: STATE_SET "visible" 0.0; + target: "base"; + } + program { name: "hide"; + signal: "elm,action,hide"; + source: "elm"; + action: STATE_SET "default" 0.0; + target: "base"; + } + } +} + |