Menu button style updated and ap bg set 64/127964/3
authorRadek Kintop <r.kintop@samsung.com>
Tue, 2 May 2017 15:42:01 +0000 (17:42 +0200)
committerKiseok Chang <kiso.chang@samsung.com>
Wed, 10 May 2017 01:25:42 +0000 (01:25 +0000)
Change-Id: I762f05765bebd594d3f5f26f572e0623045671b2
Signed-off-by: Radek Kintop <r.kintop@samsung.com>
res/images/4.0/bg_dimmed_bk_95.#.png [new file with mode: 0644]
res/view/base.edc
res/widget/button.edc

diff --git a/res/images/4.0/bg_dimmed_bk_95.#.png b/res/images/4.0/bg_dimmed_bk_95.#.png
new file mode 100644 (file)
index 0000000..c817f59
Binary files /dev/null and b/res/images/4.0/bg_dimmed_bk_95.#.png differ
index da08944..ba04ddd 100644 (file)
 #define MENU_Y1 (TITLE_Y2 + 20.0 / BASE_RESOLUTION_Y)
 #define MENU_Y2 (MENU_Y1 + 74.0 / BASE_RESOLUTION_Y)
 
-
 group {
+
+       images {
+               image: "4.0/bg_dimmed_bk_95.#.png" RAW;
+       }
+
        name: GRP_VIEW_BASE;
        parts {
                part {
                        name: "bg";
-                       type: RECT;
+                       type: IMAGE;
                        scale: 0;
                        description {
                                state: "default" 0.0;
                                rel1.relative: 0.0510 0.0667;
                                rel2.relative: 0.9490 0.9111;
-                               color: 150 150 150 230;
+                               image {
+                                       normal: "4.0/bg_dimmed_bk_95.#.png";
+                               }
                        }
                }
                part {
index f31036c..26479b6 100644 (file)
@@ -128,7 +128,7 @@ group {
                        scale: 0;
                        description {
                                state, "default" 0.0;
-                               color, 104 104 104 64;
+                               color, 255 255 255 20;
                                rel1 {
                                        to, "padding.text.left";
                                        relative, 1.0 0.0;
@@ -139,7 +139,7 @@ group {
                                }
                                text {
                                        min, 1 1;
-                                       font, FONT_REGULAR;
+                                       font, "BreezeSans:weight=medium";
                                        size, 32;
                                        align, 0.5 0.5;
                                        ellipsis, -1;
@@ -148,7 +148,7 @@ group {
                        description {
                                state, "selected" 0.0;
                                inherit, "default" 0.0;
-                               color, 64 136 211 255;
+                               color, 255 255 255 179;
                        }
                        description {
                                state, "focused" 0.0;
@@ -157,45 +157,17 @@ group {
                        }
                }
 
-               part {
-                       name, "part.bottom.line";
-                       type, RECT;
-                       scale: 0;
-                       description {
-                               state, "default" 0.0;
-                               min, 0 3;
-                               rel1 {
-                                       to, "part.bg";
-                                       relative, 0.0 1.0;
-                               }
-                               rel2 {
-                                       to, "part.bg";
-                               }
-                               align, 0.5 1.0;
-                               fixed, 0 1;
-                               color, 64 136 211 0;
-                       }
-                       description {
-                               state, "selected" 0.0;
-                               inherit, "default" 0.0;
-                               color, 64 136 211 255;
-                       }
-                       description {
-                               state, "focused" 0.0;
-                               inherit, "default" 0.0;
-                       }
-               }
        }
                program {
                        name, "selected,set";
                        action, STATE_SET "selected" 0.0;
-                       target, "part.bottom.line";
+                       target, "elm.text";
                        transition, TRANSITION_FOCUS;
                }
                program {
                        name, "unselected,set";
                        action, STATE_SET "default" 0.0;
-                       target, "part.bottom.line";
+                       target, "elm.text";
                        transition, TRANSITION_FOCUS;
                }
                program {
@@ -247,8 +219,13 @@ group {
                                        new state;
                                        state = get_int(selected);
                                        if (state)
+                                       {
                                                run_program(PROGRAM:"selected,set");
-                                       run_program(PROGRAM:"unfocused,anim");
+                                       }
+                                       else
+                                       {
+                                               run_program(PROGRAM:"unfocused,anim");
+                                       }
                                        set_int(focused, false);
                                }
                        }