combobox: fix disabled state
authordivyesh purohit <div.purohit@samsung.com>
Tue, 26 Jan 2016 21:00:22 +0000 (13:00 -0800)
committerCedric BAIL <cedric@osg.samsung.com>
Tue, 26 Jan 2016 21:04:55 +0000 (13:04 -0800)
Summary:
Apply gray-scale to vertical_separated_bar_glow image and increase the opacity
of the button, so that the text on the entry is visible.
@fix T3075
Signed-off-by: divyesh purohit <div.purohit@samsung.com>
Test Plan: please run combobox example from elementary_test

Reviewers: shilpasingh, cedric, raster

Maniphest Tasks: T3075

Differential Revision: https://phab.enlightenment.org/D3605

Signed-off-by: Cedric BAIL <cedric@osg.samsung.com>
legacy/elementary/data/themes/edc/elm/button.edc
legacy/elementary/data/themes/img/vertical_separated_bar_disabled.png [new file with mode: 0644]

index 9dd9f61..0dfb4d2 100644 (file)
@@ -1720,6 +1720,7 @@ group { name: "elm/button/base/combobox_vertical/default";
    images.image: "button_normal.png" COMP;
    images.image: "button_clicked.png" COMP;
    images.image: "vertical_separated_bar_glow.png" COMP;
+   images.image: "vertical_separated_bar_disabled.png" COMP;
    parts {
       image { "base"; nomouse;
          desc { "default";
@@ -1741,7 +1742,7 @@ group { name: "elm/button/base/combobox_vertical/default";
          }
          desc { "disabled";
             inherit: "default";
-            color: 255 255 255 64;
+            color: 255 255 255 180;
          }
       }
       rect { "event";
@@ -1785,6 +1786,10 @@ group { name: "elm/button/base/combobox_vertical/default";
             rel1.offset: 0 -2;
             rel2.offset: 0 -1;
          }
+         desc { "disabled";
+            inherit: "default";
+            image.normal: "vertical_separated_bar_disabled.png";
+         }
       }
    }
    programs {
@@ -1830,12 +1835,14 @@ group { name: "elm/button/base/combobox_vertical/default";
          action: STATE_SET "disabled" 0.0;
          target: "icon_clip";
          target: "event";
+         target: "select_line";
       }
       program { name: "button_state_enabled";
          signal: "elm,state,enabled"; source: "elm";
          action: STATE_SET "default" 0.0;
          target: "icon_clip";
          target: "event";
+         target: "select_line";
       }
    }
 }
diff --git a/legacy/elementary/data/themes/img/vertical_separated_bar_disabled.png b/legacy/elementary/data/themes/img/vertical_separated_bar_disabled.png
new file mode 100644 (file)
index 0000000..3db2fdd
Binary files /dev/null and b/legacy/elementary/data/themes/img/vertical_separated_bar_disabled.png differ