[ctxpopup] P130611-5455: changes values for dimmed text
authorBora Hwang <bora1.hwang@samsung.com>
Thu, 13 Jun 2013 10:18:42 +0000 (19:18 +0900)
committerSungho Kwak <sungho1.kwak@samsung.com>
Thu, 20 Jun 2013 12:39:20 +0000 (21:39 +0900)
Change-Id: Ifceb966acdf6e669ca1de55b2370e1626d5eacbc

themes/inc/tizen-hd-inc.edc
themes/widgets/ctxpopup.edc

index 78ce623..7740ed8 100755 (executable)
 #define CTXPOPUP_SCROLLER_V_MIN_SIZE_INC 9 18
 #define CTXPOPUP_SCROLLER_H_MIN_SIZE_INC 18 9
 #define CTXPOPUP_FRAME_CORNER_ARROW_PADDING 22
+#define CTXPOPUP_ICON_CLIP_DEFAULT_COLOR_INC 255 255 255 255
+#define CTXPOPUP_ICON_CLIP_DIM_COLOR_INC 255 255 255 76
 #define CTXPOPUP_MAIN_TEXT_COLOR_INC 255 255 255 255
-#define CTXPOPUP_MAIN_TEXT_DIM_COLOR_INC 255 255 255 178
+#define CTXPOPUP_MAIN_TEXT_DIM_COLOR_INC 255 255 255 76
 #define CTXPOPUP_MAIN_TEXT_PRESS_COLOR_INC 255 255 255 255
 #define CTXPOPUP_LIST_MAIN_TEXT_COLOR_INC 255 255 255 255
-#define CTXPOPUP_LIST_MAIN_TEXT_DIM_COLOR_INC 255 255 255 178
+#define CTXPOPUP_LIST_MAIN_TEXT_DIM_COLOR_INC 255 255 255 76
 #define CTXPOPUP_LIST_MAIN_TEXT_PRESS_COLOR_INC 255 255 255 255
 #define CTXPOPUP_SEPARATOR_PXLINE_SIZE_INC 1
 #define CTXPOPUP_SEPARATOR_PADDING_INC 20
index d945c81..7758a28 100644 (file)
@@ -2639,6 +2639,7 @@ group {
       part {
          name: "elm.swallow.icon";
          type: SWALLOW;
+         clip_to: "icon_clip";
          scale: 1;
          description {
             state: "default" 0.0;
@@ -2651,6 +2652,22 @@ group {
          }
       }
       part {
+         name: "icon_clip";
+         type: RECT;
+         scale: 1;
+         description {
+            state: "default" 0.0;
+            rel1.to: "elm.swallow.icon";
+            rel2.to: "elm.swallow.icon";
+            color: CTXPOPUP_ICON_CLIP_DEFAULT_COLOR_INC;
+         }
+         description {
+            state: "disabled" 0.0;
+            inherit: "default" 0.0;
+            color: CTXPOPUP_ICON_CLIP_DIM_COLOR_INC;
+         }
+      }
+      part {
          name: "right_padding";
          scale: 1;
          description {
@@ -2737,6 +2754,7 @@ group {
          source: "elm";
          action: STATE_SET "disabled" 0.0;
          target: "disclip";
+         target: "icon_clip";
       }
       program {
          name: "enable";
@@ -2744,6 +2762,7 @@ group {
          source: "elm";
          action: STATE_SET "default" 0.0;
          target: "disclip";
+         target: "icon_clip";
       }
       program {
          name: "item_click2";
@@ -2920,6 +2939,7 @@ group {
       part {
          name: "elm.swallow.icon";
          type: SWALLOW;
+         clip_to: "icon_clip";
          scale: 1;
          description {
             state: "default" 0.0;
@@ -2931,6 +2951,22 @@ group {
          }
       }
       part {
+         name: "icon_clip";
+         type: RECT;
+         scale: 1;
+         description {
+            state: "default" 0.0;
+            rel1.to: "elm.swallow.icon";
+            rel2.to: "elm.swallow.icon";
+            color: CTXPOPUP_ICON_CLIP_DEFAULT_COLOR_INC;
+         }
+         description {
+            state: "disabled" 0.0;
+            inherit: "default" 0.0;
+            color: CTXPOPUP_ICON_CLIP_DIM_COLOR_INC;
+         }
+      }
+      part {
          name: "icon_right_padding";
          scale: 1;
          mouse_events: 0;
@@ -3073,7 +3109,7 @@ group {
             set_state(PART:"elm.text", "ellipsis_disabled", 0.0);
             else
             set_state(PART:"elm.text", "disabled", 0.0);
-
+            set_state(PART:"icon_clip", "disabled", 0.0);
             set_state(PART:"disclip", "disabled", 0.0);
          }
       }
@@ -3089,7 +3125,7 @@ group {
             set_state(PART:"elm.text", "ellipsis", 0.0);
             else
             set_state(PART:"elm.text", "default", 0.0);
-
+            set_state(PART:"icon_clip", "default", 0.0);
             set_state(PART:"disclip", "default", 0.0);
          }
       }
@@ -3600,6 +3636,7 @@ group {
       part {
          name: "elm.swallow.icon";
          type: SWALLOW;
+         clip_to: "icon_clip";
          scale: 1;
          description {
             state: "default" 0.0;
@@ -3611,6 +3648,22 @@ group {
          }
       }
       part {
+         name: "icon_clip";
+         type: RECT;
+         scale: 1;
+         description {
+            state: "default" 0.0;
+            rel1.to: "elm.swallow.icon";
+            rel2.to: "elm.swallow.icon";
+            color: CTXPOPUP_ICON_CLIP_DEFAULT_COLOR_INC;
+         }
+         description {
+            state: "disabled" 0.0;
+            inherit: "default" 0.0;
+            color: CTXPOPUP_ICON_CLIP_DIM_COLOR_INC;
+         }
+      }
+      part {
          name: "icon_right_padding";
          scale: 1;
          mouse_events: 0;
@@ -3753,7 +3806,7 @@ group {
             set_state(PART:"elm.text", "ellipsis_disabled", 0.0);
             else
             set_state(PART:"elm.text", "disabled", 0.0);
-
+            set_state(PART:"icon_clip", "disabled", 0.0);
             set_state(PART:"disclip", "disabled", 0.0);
          }
       }
@@ -3769,7 +3822,7 @@ group {
             set_state(PART:"elm.text", "ellipsis", 0.0);
             else
             set_state(PART:"elm.text", "default", 0.0);
-
+            set_state(PART:"icon_clip", "default", 0.0);
             set_state(PART:"disclip", "default", 0.0);
          }
       }