summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMike Blumenkrantz <zmike@samsung.com>2014-05-08 19:54:59 -0400
committerMike Blumenkrantz <zmike@samsung.com>2014-05-13 16:14:43 -0400
commitb0adf86029490d74829a068d5786edc4ed72cb8b (patch)
tree43b4d35ab56fad90028bbd2c7fa1882763c0de6b
parentdb15563b8960f47bfb417e3a0ed918e344bae030 (diff)
polkit wip
-rw-r--r--data/themes/edc/polkit.edc130
1 files changed, 103 insertions, 27 deletions
diff --git a/data/themes/edc/polkit.edc b/data/themes/edc/polkit.edc
index 92b2bb0ab..693372579 100644
--- a/data/themes/edc/polkit.edc
+++ b/data/themes/edc/polkit.edc
@@ -1,25 +1,46 @@
1group { "elm/layout/polkit-auth/base"; nomouse; program_source: "polkit"; 1group { "elm/layout/polkit-auth/base"; nomouse; program_source: "polkit";
2 images.image: "bevel_dark_out.png" COMP; 2 images.image: "bevel_dark_out.png" COMP;
3 parts { 3 parts {
4 rect { "fader"; 4 rect { "fader"; mouse;
5 desc { hid; 5 desc { hid;
6 rel1.relative: 0.5 0.5;
7 rel2.relative: 0.5 0.5;
6 color: 0 0 0 0; 8 color: 0 0 0 0;
9 link.base: "polkit,hide";
10 link.transition: DECEL 0.2;
11 link.after: "hide_done";
12 program { "hide_done";
13 action: SIGNAL_EMIT "polkit,hide,done" "polkit";
14 }
7 } 15 }
8 desc { "visible"; vis; 16 desc { "visible"; vis;
9 color: 0 0 0 160; 17 color: 0 0 0 160;
10 link.base: "load" ""; 18 link.base: "show" "";
11 link.transition: LINEAR 0.2; 19 link.transition: ACCEL 0.2;
20 }
21 }
22 rect { "clip";
23 desc {
24 hid;
25 rel1.relative: 0.5 0.5;
26 rel2.relative: 0.5 0.5;
27 link.base: "polkit,hide";
28 link.transition: DECEL 0.2;
29 }
30 desc { "visible";
31 link.base: "show" "";
32 link.transition: ACCEL 0.2;
12 } 33 }
13 } 34 }
14 rect { "base"; 35 rect { "base"; clip: "clip";
15 desc { 36 desc {
16 rel1.relative: 0.3 0.3; 37 rel1.relative: 0.3 0.4;
17 rel2.relative: 0.7 0.7; 38 rel2.relative: 0.7 0.6;
18 color_class: "dialog_base"; 39 color_class: "dialog_base";
19 color: 64 64 64 255; 40 color: 64 64 64 255;
20 } 41 }
21 } 42 }
22 image { "bevel"; 43 image { "bevel"; clip: "clip";
23 desc { 44 desc {
24 rel1.to: "base"; 45 rel1.to: "base";
25 rel2.to: "base"; 46 rel2.to: "base";
@@ -29,7 +50,7 @@ group { "elm/layout/polkit-auth/base"; nomouse; program_source: "polkit";
29 fill.smooth: 0; 50 fill.smooth: 0;
30 } 51 }
31 } 52 }
32 text { "e.text.info"; 53 text { "polkit.text.info"; clip: "clip";
33 effect: SHADOW BOTTOM; 54 effect: SHADOW BOTTOM;
34 scale: 1; 55 scale: 1;
35 desc { 56 desc {
@@ -42,9 +63,11 @@ group { "elm/layout/polkit-auth/base"; nomouse; program_source: "polkit";
42 rel2.relative: 1 0; 63 rel2.relative: 1 0;
43 color: FN_COL_DEFAULT; 64 color: FN_COL_DEFAULT;
44 text { text: "Password required"; 65 text { text: "Password required";
45 font: FNBD; size: 11; 66 font: FNBD; size: 10;
67 size_range: 7 12;
46 min: 1 1; 68 min: 1 1;
47 ellipsis: -1; 69 ellipsis: -1;
70 fit: 1 0;
48 /* 71 /*
49 filter: "fat = buffer(\"alpha\") \ 72 filter: "fat = buffer(\"alpha\") \
50 grow ({ 8, dst = fat }) \ 73 grow ({ 8, dst = fat }) \
@@ -55,18 +78,29 @@ group { "elm/layout/polkit-auth/base"; nomouse; program_source: "polkit";
55 } 78 }
56 } 79 }
57 } 80 }
58 text { "user"; 81 swallow { "polkit.swallow.info"; clip: "clip";
59 effect: SHADOW BOTTOM;
60 scale: 1;
61 desc { 82 desc {
83 min: 0 40;
62 align: 0.5 0; 84 align: 0.5 0;
63 fixed: 0 1;
64 rel1.to_x: "base"; 85 rel1.to_x: "base";
65 rel1.to_y: "e.text.info"; 86 rel1.to_y: "polkit.text.info";
66 rel1.relative: 0 1; 87 rel1.relative: 0 1;
67 rel1.offset: 0 2; 88 rel1.offset: 0 2;
68 rel2.to: "base"; 89 rel2.to: "base";
69 rel2.relative: 1 0; 90 rel2.relative: 1 0;
91 }
92 }
93 text { "textinfo"; clip: "clip";
94 effect: SHADOW BOTTOM;
95 scale: 1;
96 desc {
97 align: 0.5 1;
98 fixed: 0 1;
99 rel1.to_x: "base";
100 rel1.relative: 0 1;
101 rel2.to_x: "base";
102 rel2.to_y: "polkit.swallow.users";
103 rel2.relative: 1 0;
70 color: FN_COL_DISABLE; 104 color: FN_COL_DISABLE;
71 text { text: "Select Authentication ID"; 105 text { text: "Select Authentication ID";
72 font: FN; size: 10; 106 font: FN; size: 10;
@@ -74,30 +108,72 @@ group { "elm/layout/polkit-auth/base"; nomouse; program_source: "polkit";
74 ellipsis: -1; 108 ellipsis: -1;
75 } 109 }
76 } 110 }
111 desc { "password"; inherit: "default";
112 text.text: "Enter password";
113 }
77 } 114 }
78 swallow { "e.swallow.users"; mouse; 115 rect { "pwclip"; clip: "clip";
79 scale: 1; 116 desc { hid;
117 minmul: 0 1;
118 max: 0 0;
119 rel2.relative: 0 1;
120 rel1.to: "polkit.swallow.password";
121 rel2.to: "polkit.swallow.password";
122 }
123 desc { "password";
124 rel1.to: "polkit.swallow.password";
125 rel2.to: "polkit.swallow.password";
126 }
127 }
128 swallow { "polkit.swallow.password"; mouse; clip: "pwclip";
129 desc { hid;
130 rel1.to: "polkit.swallow.users";
131 rel2.to: "polkit.swallow.users";
132 }
133 desc { "password"; inherit: "default"; vis; }
134 }
135 swallow { "polkit.swallow.buttons"; mouse; clip: "clip";
80 desc { 136 desc {
81 align: 0.5 0; 137 align: 0.5 1;
82 rel1.to_x: "base"; 138 rel1.to_x: "base";
83 rel1.to_y: "user";
84 rel1.offset: 0 2;
85 rel1.relative: 0 1; 139 rel1.relative: 0 1;
86 rel2.to: "base"; 140 rel2.to: "base";
87 rel2.relative: 1 0; 141 }
142 desc { "password"; inherit: "default"; hid;
143 minmul: 1 0;
144 max: -1 0;
88 } 145 }
89 } 146 }
90 swallow { "e.swallow.buttons"; mouse; 147 swallow { "polkit.swallow.users"; mouse; clip: "clip";
91 scale: 1;
92 desc { 148 desc {
93 align: 0.5 0; 149 align: 0.5 1;
94 rel1.to_x: "base"; 150 rel1.to_x: "base";
95 rel1.to_y: "e.swallow.users";
96 rel1.offset: 0 2;
97 rel1.relative: 0 1; 151 rel1.relative: 0 1;
98 rel2.to: "base"; 152 rel2.to_x: "base";
153 rel2.to_y: "polkit.swallow.buttons";
154 rel2.relative: 1 0;
155 }
156 desc { "password"; inherit: "default";
157 hid;
158 rel2.to_y: "base";
159 rel2.relative: 1 1;
160 }
161 }
162 target_group: "password" "polkit.swallow.buttons" "polkit.swallow.password"
163 "pwclip" "polkit.swallow.users" "textinfo";
164 program { signal: "polkit,password,hidden";
165 action: STATE_SET "default";
166 groups: "password";
167 transition: DECEL 0.2;
168 }
169 program { signal: "polkit,password,visible";
170 action: STATE_SET "password";
171 groups: "password";
172 transition: DECEL 0.2;
173 sequence {
174 action: SIGNAL_EMIT "polkit,password,visible,done" "polkit";
175 in: 0.01 0;
99 } 176 }
100 } 177 }
101
102 } 178 }
103} 179}