From 186aeb42eb7e97c07a58a30aafbca5d05c4e2302 Mon Sep 17 00:00:00 2001
From: divyesh purohit
Date: Tue, 26 Jan 2016 13:00:22 -0800
Subject: combobox: fix disabled state
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
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
---
data/themes/edc/elm/button.edc | 9 ++++++++-
data/themes/img/vertical_separated_bar_disabled.png | Bin 0 -> 492 bytes
2 files changed, 8 insertions(+), 1 deletion(-)
create mode 100644 data/themes/img/vertical_separated_bar_disabled.png
diff --git a/data/themes/edc/elm/button.edc b/data/themes/edc/elm/button.edc
index 9dd9f6186..0dfb4d2cf 100644
--- a/data/themes/edc/elm/button.edc
+++ b/data/themes/edc/elm/button.edc
@@ -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/data/themes/img/vertical_separated_bar_disabled.png b/data/themes/img/vertical_separated_bar_disabled.png
new file mode 100644
index 000000000..3db2fdd48
Binary files /dev/null and b/data/themes/img/vertical_separated_bar_disabled.png differ
--
cgit v1.2.1