summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTom Hacohen <tom@stosb.com>2012-10-30 15:09:06 +0000
committerTom Hacohen <tom@stosb.com>2012-10-30 15:09:06 +0000
commita754be18c480bbd382c04a5cc38e5aeba8515f1d (patch)
tree6e3fb8bf7e702478f30775b0d2e06376e2211555
parentae1bd5a5f1bdcaca132612779ac2db0f9ff566d9 (diff)
Themes Darkness: Adjusted to support the new e_entry changes.
SVN revision: 78672
-rw-r--r--widgets/entry.edc92
1 files changed, 66 insertions, 26 deletions
diff --git a/widgets/entry.edc b/widgets/entry.edc
index ee62259..e35b9ba 100644
--- a/widgets/entry.edc
+++ b/widgets/entry.edc
@@ -1,6 +1,5 @@
1group { 1group {
2 name: "e/widgets/entry"; 2 name: "e/widgets/entry/scrollframe";
3 min: 18 18;
4 parts { 3 parts {
5 part { 4 part {
6 mouse_events: 0; 5 mouse_events: 0;
@@ -61,10 +60,17 @@ group {
61 color: 255 255 255 255; 60 color: 255 255 255 255;
62 } 61 }
63 } 62 }
63 part { name: "clipper"; type: RECT;
64 description { state: "default" 0.0;
65 rel1.to: "entry_bg";
66 rel2.to: "entry_bg";
67 }
68 }
64 part { 69 part {
65 name: "e.swallow.text"; 70 name: "e.swallow.content";
66 mouse_events: 0; 71 mouse_events: 1;
67 type: SWALLOW; 72 type: SWALLOW;
73 clip_to: "clipper";
68 description { 74 description {
69 state: "default" 0.0; 75 state: "default" 0.0;
70 rel1 { 76 rel1 {
@@ -102,27 +108,51 @@ group {
102 108
103group { 109group {
104 name: "e/widgets/entry/text"; 110 name: "e/widgets/entry/text";
111 styles {
112 style { name: "entry_textblock_style";
113 base: "font=Sans font_size=11 color=#ffffff text_class=entry color_classs=entry_text";
114 }
115 }
105 parts { 116 parts {
106 part { 117 part { name: "e.text.text"; type: TEXTBLOCK; mouse_events: 1;
107 name: "e.text.text";
108 type: TEXT;
109 mouse_events: 0;
110 scale: 1; 118 scale: 1;
111 description { 119 entry_mode: EDITABLE;
112 state: "default" 0.0; 120 select_mode: DEFAULT;
113 color: 255 255 255 255; 121 cursor_mode: BEFORE;
122 multiline: 0;
123 source: "e/widgets/entry/selection"; // selection under
124 source4: "e/widgets/entry/cursor"; // cursorover
125 description { state: "default" 0.0;
114 color_class: "entry_text"; 126 color_class: "entry_text";
115 text { 127 text {
116 text: "Entry"; 128 text: "";
117 font: "Sans"; 129 style: "entry_textblock_style";
118 size: 11;
119 min: 1 1; 130 min: 1 1;
120 align: 0.0 0.0; 131 align: 0.0 0.5;
121 text_class: "entry";
122 } 132 }
123 } 133 }
124 } 134 }
125 } 135 }
136 programs {
137 program { name: "focus";
138 signal: "load";
139 source: "";
140 action: FOCUS_SET;
141 target: "e.text.text";
142 }
143 }
144}
145
146group { name: "e/widgets/entry/password";
147 inherit: "e/widgets/entry/text";
148 parts {
149 part { name: "e.text.text";
150 entry_mode: PASSWORD;
151 description { state: "default" 0.0;
152 text.repch: "*";
153 }
154 }
155 }
126} 156}
127 157
128group { 158group {
@@ -154,9 +184,7 @@ group {
154 } 184 }
155 programs { 185 programs {
156 program { 186 program {
157 name: "on_cursor_show"; 187 signal: "e,action,show,cursor"; source: "e";
158 signal: "e,action,show,cursor";
159 source: "e";
160 action: ACTION_STOP; 188 action: ACTION_STOP;
161 target: "cursor_show"; 189 target: "cursor_show";
162 target: "cursor_hide"; 190 target: "cursor_hide";
@@ -165,24 +193,36 @@ group {
165 after: "cursor_show"; 193 after: "cursor_show";
166 } 194 }
167 program { 195 program {
168 name: "cursor_show"; 196 name: "on_cursor_hide";
197 signal: "e,action,hide,cursor";
198 source: "e";
199 action: ACTION_STOP;
200 target: "cursor_show";
201 target: "cursor_hide";
202 target: "cursor_show_timer";
203 target: "cursor_hide_timer";
204 after: "cursor_hide_stop";
205 }
206 program {
207 name: "cursor_hide_stop";
208 action: STATE_SET "default" 0.0;
209 target: "cursor";
210 }
211 program { name: "cursor_show";
169 action: STATE_SET "visible" 0.0; 212 action: STATE_SET "visible" 0.0;
170 target: "cursor"; 213 target: "cursor";
171 after: "cursor_show_timer"; 214 after: "cursor_show_timer";
172 } 215 }
173 program { 216 program { name: "cursor_hide";
174 name: "cursor_hide";
175 action: STATE_SET "default" 0.0; 217 action: STATE_SET "default" 0.0;
176 target: "cursor"; 218 target: "cursor";
177 after: "cursor_hide_timer"; 219 after: "cursor_hide_timer";
178 } 220 }
179 program { 221 program { name: "cursor_show_timer";
180 name: "cursor_show_timer";
181 in: 1.0 0.0; 222 in: 1.0 0.0;
182 after: "cursor_hide"; 223 after: "cursor_hide";
183 } 224 }
184 program { 225 program { name: "cursor_hide_timer";
185 name: "cursor_hide_timer";
186 in: 0.25 0.0; 226 in: 0.25 0.0;
187 after: "cursor_show"; 227 after: "cursor_show";
188 } 228 }