[entry] updated beat-theme changes
authorMyungjae Lee <mjae.lee@samsung.com>
Tue, 29 Mar 2011 05:32:45 +0000 (14:32 +0900)
committerMyungjae Lee <mjae.lee@samsung.com>
Tue, 29 Mar 2011 05:40:10 +0000 (14:40 +0900)
themes/groups/entry.edc

index e51bb35..6b179e4 100644 (file)
@@ -5,7 +5,7 @@
       styles
        {
           style { name: "entry_textblock_style";
-             base: "font=SLP:style=Roman font_size=24 color=#000000 wrap=char";
+             base: "font=SLP:style=Roman font_size=24 color=#000000 wrap=mixed";
              tag:  "br" "\n";
              tag:  "ps" "ps";
              tag:  "tab" "\t";
@@ -17,7 +17,7 @@
              tag:  "preedit_sel" "+ backing=on backing_color=#000000FF color=#FFFFFFFF";
           }
           style { name: "entry_textblock_disabled_style";
-             base: "font=SLP:style=Roman font_size=24 color=#00000080 wrap=char";
+             base: "font=SLP:style=Roman font_size=24 color=#00000080 wrap=mixed";
              tag:  "br" "\n";
              tag:  "ps" "ps";
              tag:  "tab" "\t";
       }
    }
 
+   group { name: "elm/entry/base/char_wrap";
+      data.item: "default_font_size" "24";
+      data.item: "min_font_size" "8";
+      data.item: "max_font_size" "60";
+      styles
+       {
+          style { name: "entry_textblock_char_wrap_style";
+             base: "font=SLP:style=Roman font_size=24 color=#000000 wrap=char";
+             tag:  "br" "\n";
+             tag:  "ps" "ps";
+             tag:  "tab" "\t";
+             tag:  "em" "+ font=SLP:style=Oblique";
+             tag:  "b" "+ font=SLP:style=Bold";
+             tag:  "link" "+ color=#800 underline=on underline_color=#8008";
+             tag:  "hilight" "+ font=SLP:style=Bold";
+             tag:  "preedit" "+ underline=on underline_color=#000000FF";
+             tag:  "preedit_sel" "+ backing=on backing_color=#000000FF color=#FFFFFFFF";
+          }
+          style { name: "entry_textblock_char_wrap_disabled_style";
+             base: "font=SLP:style=Roman font_size=24 color=#00000080 wrap=char";
+             tag:  "br" "\n";
+             tag:  "ps" "ps";
+             tag:  "tab" "\t";
+             tag:  "em" "+ font=SLP:style=Oblique";
+             tag:  "b" "+ font=SLP:style=Bold";
+             tag:  "link" "+ color=#00000080 underline=on underline_color=#00000080";
+             tag:  "hilight" "+ font=SLP:style=Bold";
+             tag:  "preedit" "+ underline=on underline_color=#000000FF";
+             tag:  "preedit_sel" "+ backing=on backing_color=#000000FF color=#FFFFFFFF";
+          }
+       }
+      data {
+         item: context_menu_orientation "horizontal";
+      }
+      parts {
+        part { name: "entry.swallow.background";
+           type: SWALLOW;
+           description { state: "default" 0.0;
+                  visible: 1;
+                  rel1 { relative: 0 0; to: "elm.text"; }
+                  rel2 { relative: 1 1; to: "elm.text"; }
+                       }
+               }
+      }
+      parts {
+        part { name: "elm.text";
+           type: TEXTBLOCK;
+           mouse_events: 1;
+           scale: 1;
+           entry_mode: EDITABLE;
+           select_mode: BLOCK_HANDLE;
+           //cursor_mode: BEFORE;
+           multiline: 1;
+           source: "elm/entry/selection/default"; // selection under
+           source2: "elm/entry/selection/block_handle"; // block handle
+           source3: "elm/entry/selection/block_handle_top"; // block handle
+           source4: "elm/entry/cursor/default"; // cursorover
+           source5: "elm/entry/anchor/default"; // anchor under
+//         source6: "X"; // anchor over
+           description { state: "default" 0.0;
+                         fixed: 1 0;
+              text {
+                 style: "entry_textblock_char_wrap_style";
+                 min: 0 1;
+              }
+           }
+           description { state: "disabled" 0.0;
+               inherit: "default" 0.0;
+              text {
+                 style: "entry_textblock_char_wrap_disabled_style";
+                 min: 0 1;
+              }
+           }
+        }
+      }
+      programs {
+        program { name: "focus";
+            signal: "load";
+           source: "";
+           action: FOCUS_SET;
+           target: "elm.text";
+        }
+        program { name: "disable";
+           signal: "elm,state,disabled";
+           source: "elm";
+           action: STATE_SET "disabled" 0.0;
+           target: "elm.text";
+        }
+        program { name: "enable";
+           signal: "elm,state,enabled";
+           source: "elm";
+           action: STATE_SET "default" 0.0;
+           target: "elm.text";
+        }
+      }
+   }
+
    group { name: "elm/entry/base-nowrap/default";
       data.item: "default_font_size" "24";
       data.item: "min_font_size" "8";
                styles
                {
                        style { name: "editfield_textblock_style";
-                               base: "font=SLP:style=Roman font_size=32 color=#000000 wrap=char";
+                               base: "font=SLP:style=Roman font_size=32 color=#000000 wrap=mixed";
                                tag:  "br" "\n";
                                tag:  "ps" "ps";
                                tag:  "tab" "\t";
                                tag:  "preedit_sel" "+ backing=on backing_color=#000000FF color=#FFFFFFFF";
                        }
                        style { name: "editfield_textblock_disabled_style";
-                               base: "font=SLP:style=Roman font_size=32 color=#00000080 wrap=char linesize=44";
+                               base: "font=SLP:style=Roman font_size=32 color=#00000080 wrap=mixed linesize=44";
                                tag:  "br" "\n";
                                tag:  "ps" "ps";
                                tag:  "tab" "\t";
                }
        }
 
+       group { name: "elm/entry/base/editfield/char_wrap";
+               alias: "elm/entry/base/editfield/default/char_wrap";
+               alias: "elm/entry/base/editfield/lighting/char_wrap";
+               alias: "elm/entry/base/editfield/multiline/char_wrap";
+               alias: "elm/entry/base/editfield/multiline/default/char_wrap";
+               alias: "elm/entry/base/editfield/multiline/lighting/char_wrap";
+
+               data.item: "default_font_size" "24";
+               data.item: "min_font_size" "8";
+               data.item: "max_font_size" "60";
+
+               styles
+               {
+                       style { name: "editfield_textblock_char_wrap_style";
+                               base: "font=SLP:style=Roman font_size=32 color=#000000 wrap=char";
+                               tag:  "br" "\n";
+                               tag:  "ps" "ps";
+                               tag:  "tab" "\t";
+                               tag:  "em" "+ font=SLP:style=Oblique";
+                               tag:  "b" "+ font=SLP:style=Bold";
+                               tag:  "link" "+ color=#800 underline=on underline_color=#8008";
+                               tag:  "hilight" "+ font=SLP:style=Bold";
+                               tag:  "preedit" "+ underline=on underline_color=#000000FF";
+                               tag:  "preedit_sel" "+ backing=on backing_color=#000000FF color=#FFFFFFFF";
+                       }
+                       style { name: "editfield_textblock_char_wrap_disabled_style";
+                               base: "font=SLP:style=Roman font_size=32 color=#00000080 wrap=char linesize=44";
+                               tag:  "br" "\n";
+                               tag:  "ps" "ps";
+                               tag:  "tab" "\t";
+                               tag:  "em" "+ font=SLP:style=Oblique";
+                               tag:  "b" "+ font=SLP:style=Bold";
+                               tag:  "link" "+ color=#00000080 underline=on underline_color=#00000080";
+                               tag:  "hilight" "+ font=SLP:style=Bold";
+                               tag:  "preedit" "+ underline=on underline_color=#000000FF";
+                               tag:  "preedit_sel" "+ backing=on backing_color=#000000FF color=#FFFFFFFF";
+                       }
+               }
+      data {
+         item: context_menu_orientation "horizontal";
+      }
+      parts {
+        part { name: "entry.swallow.background";
+           type: SWALLOW;
+           description { state: "default" 0.0;
+                  visible: 1;
+                  rel1 { relative: 0 0; to: "elm.text"; }
+                  rel2 { relative: 1 1; to: "elm.text"; }
+                       }
+               }
+      }
+               parts {
+                       part { name: "elm.text";
+                               type: TEXTBLOCK;
+                               mouse_events: 1;
+                               scale: 1;
+                               entry_mode: EDITABLE;
+                               select_mode: BLOCK_HANDLE;
+                               //cursor_mode: BEFORE;
+                               multiline: 1;
+                               source: "elm/entry/selection/default"; // selection under
+                               source2: "elm/entry/selection/block_handle"; // block handle
+                               source3: "elm/entry/selection/block_handle_top"; // block handle
+                               source4: "elm/entry/cursor/default"; // cursorover
+                               source5: "elm/entry/anchor/default"; // anchor under
+                               //source6: "X"; // anchor over
+                               description { state: "default" 0.0;
+                                       fixed: 1 0;
+                                       text {
+                                               style: "editfield_textblock_char_wrap_style";
+                                               min: 0 1;
+                                       }
+                               }
+                               description { state: "disabled" 0.0;
+                                       inherit: "default" 0.0;
+                                       text {
+                                               style: "editfield_textblock_char_wrap_disabled_style";
+                                               min: 0 1;
+                                       }
+                               }
+                       }
+               }
+               programs {
+                       program { name: "focus";
+                               signal: "load";
+                               source: "";
+                               action: FOCUS_SET;
+                               target: "elm.text";
+                       }
+                       program { name: "disable";
+                               signal: "elm,state,disabled";
+                               source: "elm";
+                               action: STATE_SET "disabled" 0.0;
+                               target: "elm.text";
+                       }
+                       program { name: "enable";
+                               signal: "elm,state,enabled";
+                               source: "elm";
+                               action: STATE_SET "default" 0.0;
+                               target: "elm.text";
+                       }
+               }
+       }
+
        group { name: "elm/entry/base-single/editfield";
                alias: "elm/entry/base-single/editfield/default";
                alias: "elm/entry/base-single/editfield/lighting";
                                        visible: 1;
                                        fixed: 1 1;
                                        align: 0.5 0.25;
-                                       min: 120 150;
+                                       min: 50 80;
                                        color: 0 0 0 0;
                                }
                        }
                                        visible: 1;
                                        fixed: 1 1;
                                        align: 0.5 0.75;
-                                       min: 120 150;
+                                       min: 50 80;
                                        color: 0 0 0 0;
                                }
                        }
         }
    }
 
+
+#define MAGNIFIER_HEIGHT 114
+#define MAGNIFIER_SCALE 1.2
+
+       group { name: "elm/entry/magnifier/fill-width";
+               data.item: "height" MAGNIFIER_HEIGHT;
+               data.item: "scale" MAGNIFIER_SCALE;
+               images {
+                 image: "magnifier_noarrow.png" COMP;
+                 image: "magnifier_noarrow_line.png" COMP;
+               }
+               parts {
+                       part { name: "bg";
+                               mouse_events: 0;
+                               scale: 1;
+                               description { state: "default" 0.0;
+                                       align: 0.5 0.0;
+                                       rel1 { offset: -20 -10; }
+                                       rel2 { offset: 22 15; }
+                                       image {
+                                               normal: "magnifier_noarrow.png";
+                                               border: 25 25 35 25;
+                                       }
+                                       image.middle: SOLID;
+                                       fill.smooth: 0;
+                               }
+                       }
+                       part { name: "swallow";
+                               type: SWALLOW;
+                               mouse_events: 0;
+                               scale: 1;
+                               description { state: "default" 0.0;
+                                       align: 0.0 0.0;
+                                       rel1 {
+                                               to: "bg";
+                                               offset: 18 18;
+                                       }
+                                       rel2 {
+                                               to: "bg";
+                                               offset: -20 -20;
+                                       }
+                               }
+                       }
+                       part { name: "outline";
+                               mouse_events: 0;
+                               scale: 1;
+                               description { state: "default" 0.0;
+                                       visible: 0;
+                                       align: 0.0 0.0;
+                                       rel1 { to: "bg"; offset: 0 0; }
+                                       rel2 { to: "bg"; offset: -1 -1; }
+                                       image {
+                                               normal: "magnifier_noarrow_line.png";
+                                               border: 25 25 35 25;
+                                       }
+                                       image.middle: SOLID;
+                                       fill.smooth: 0;
+                               }
+                       }
+               }
+       }
+
+
+       group { name: "elm/entry/magnifier/fixed-size";
+               data.item: "height" MAGNIFIER_HEIGHT;
+               data.item: "scale" MAGNIFIER_SCALE;
+               images {
+                 image: "magnifier.png" COMP;
+                 image: "magnifier_line.png" COMP;
+               }
+               parts {
+                       part { name: "bg";
+                               mouse_events: 0;
+                               scale: 1;
+                               description { state: "default" 0.0;
+                               fixed: 1 1;
+                                       min: 224 MAGNIFIER_HEIGHT;
+                                       align: 0.5 0.0;
+                                       image {
+                                               normal: "magnifier.png";
+                                               border: 25 25 35 25;
+                                       }
+                                       image.middle: SOLID;
+                                       fill.smooth: 0;
+                               }
+                       }
+                       part { name: "swallow";
+                               type: SWALLOW;
+                               mouse_events: 0;
+                               scale: 1;
+                               description { state: "default" 0.0;
+                               fixed: 1 1;
+                                       align: 0.0 0.0;
+                                       rel1 {
+                                               to: "bg";
+                                               offset: 18 18;
+                                       }
+                                       rel2 {
+                                               to: "bg";
+                                               offset: -20 -20;
+                                       }
+                               }
+                       }
+                       part { name: "outline";
+                               mouse_events: 0;
+                               scale: 1;
+                               description { state: "default" 0.0;
+                               fixed: 1 1;
+                                       visible: 0;
+                                       align: 0.0 0.0;
+                                       rel1 { to: "bg"; offset: 0 0; }
+                                       rel2 { to: "bg"; offset: -1 -1; }
+                                       image {
+                                               normal: "magnifier_line.png";
+                                               border: 25 25 35 25;
+                                       }
+                                       image.middle: SOLID;
+                                       fill.smooth: 0;
+                               }
+                       }
+               }
+       }
+
        group { name: "elm/entry/matchlist/default";
                data.item: "max_height" "230";
                parts {