aboutsummaryrefslogtreecommitdiffstats
path: root/data/elementary/themes/edc/efl/spin_button.edc
diff options
context:
space:
mode:
authorSungtaek Hong <sth253.hong@samsung.com>2017-12-08 14:52:08 +0900
committerSungtaek Hong <sth253.hong@samsung.com>2017-12-08 16:02:24 +0900
commit1503fb53599602cda091d9bb7843de7056e95e1b (patch)
treeb3e1ebec7a933f4c4229e013d48acf4f8d175eb5 /data/elementary/themes/edc/efl/spin_button.edc
parentmultibuttonentry: Add theme for legacy multibuttonentry. (diff)
downloadefl-1503fb53599602cda091d9bb7843de7056e95e1b.tar.gz
efl_ui_spin: apply new theme set policy
Summary: Applied new theme group name. Moved logic in finalize to constructor. Test Plan: Run elementary_test->Efl.Ui.Spin, Efl.Ui.Spin.Button, Part_Background Reviewers: jpeg, woohyun, CHAN Reviewed By: CHAN Subscribers: cedric Differential Revision: https://phab.enlightenment.org/D5592
Diffstat (limited to '')
-rw-r--r--data/elementary/themes/edc/efl/spin_button.edc (renamed from data/elementary/themes/edc/elm/spin_button.edc)182
1 files changed, 96 insertions, 86 deletions
diff --git a/data/elementary/themes/edc/elm/spin_button.edc b/data/elementary/themes/edc/efl/spin_button.edc
index 5b53382691..40e9492a2e 100644
--- a/data/elementary/themes/edc/elm/spin_button.edc
+++ b/data/elementary/themes/edc/efl/spin_button.edc
@@ -1,21 +1,19 @@
-group { name: "elm/spin_button/base/default";
+group { "efl/spin_button";
images.image: "vert_bar_inset.png" COMP;
parts {
- part { name: "clip"; type: RECT;
- description { state: "default" 0.0;
- rel1.to: "elm.swallow.text_button";
- rel2.to: "elm.swallow.text_button";
+ rect { "clip";
+ desc { "default";
+ rel.to: "elm.swallow.text_button";
}
}
- part { name: "bg";
- type: RECT;
- scale: 1;
- description { state: "default" 0.0;
+ rect { "bg";
+ scale;
+ desc { "default";
color_class: "spinner_bg";
}
}
- part { name: "inset"; mouse_events: 0;
- description { state: "default" 0.0;
+ image { "inset"; nomouse;
+ desc { "default";
rel1.offset: 0 1;
rel2.offset: -1 -2;
image.normal: "vert_bar_inset.png";
@@ -24,39 +22,36 @@ group { name: "elm/spin_button/base/default";
fill.smooth: 0;
}
}
- part { name: "access";
- type: RECT;
- repeat_events: 1;
- description { state: "default" 0.0;
+ rect { "access";
+ repeat;
+ desc { "default";
fixed: 1 1;
color: 0 0 0 0;
rel1.to: "inset";
rel2.to: "inset";
- visible: 0;
+ hid;
}
- description { state: "active" 0.0;
- inherit: "default" 0.0;
- visible: 1;
+ desc { "active";
+ inherit: "default";
+ vis;
}
}
- part { name: "elm.swallow.entry";
- type: SWALLOW;
- clip_to: "clip";
- description { state: "default" 0.0;
+ swallow { "elm.swallow.entry";
+ clip: "clip";
+ desc { "default";
fixed: 1 1;
rel1.to: "elm.swallow.text_button";
rel2.to: "elm.swallow.text_button";
- visible: 0;
+ hid;
}
- description { state: "active" 0.0;
- inherit: "default" 0.0;
- visible: 1;
+ desc { "active";
+ inherit: "default";
+ vis;
}
}
- part { name: "elm.swallow.dec_button";
- type: SWALLOW;
- scale: 1;
- description { state: "default" 0.0;
+ swallow { "elm.swallow.dec_button";
+ scale;
+ desc { "default";
fixed: 1 0;
rel1.to: "inset";
rel1.offset: 1 1;
@@ -68,10 +63,9 @@ group { name: "elm/spin_button/base/default";
aspect: 1.0 1.0; aspect_preference: VERTICAL;
}
}
- part { name: "elm.swallow.inc_button";
- type: SWALLOW;
- scale: 1;
- description { state: "default" 0.0;
+ swallow { "elm.swallow.inc_button";
+ scale;
+ desc { "default";
fixed: 1 0;
rel1.to: "inset";
rel1.offset: 1 1;
@@ -83,11 +77,10 @@ group { name: "elm/spin_button/base/default";
aspect: 1.0 1.0; aspect_preference: VERTICAL;
}
}
- part { name: "elm.swallow.text_button";
- type: SWALLOW;
- scale: 1;
- description { state: "default" 0.0;
- visible: 1;
+ swallow { "elm.swallow.text_button";
+ scale;
+ desc { "default";
+ vis;
rel1.to_y: "inset";
rel1.to_x: "elm.swallow.dec_button";
rel1.relative: 1.0 0.0;
@@ -97,84 +90,82 @@ group { name: "elm/spin_button/base/default";
rel2.relative: 0.0 1.0;
rel2.offset: -2 -2;
}
- description { state: "inactive" 0.0;
- inherit: "default" 0.0;
- visible: 0;
+ desc { "inactive";
+ inherit: "default";
+ hid;
}
}
- part { name: "disabler";
- type: RECT;
- repeat_events: 0;
- mouse_events: 0;
- description { state: "default" 0.0;
+ rect { "disabler";
+ norepeat;
+ nomouse;
+ desc { "default";
color: 0 0 0 0;
- visible: 0;
+ hid;
}
- description { state: "disabled" 0.0;
- inherit: "default" 0.0;
- visible: 1;
+ desc { "disabled";
+ inherit: "default";
+ vis;
}
}
}
programs {
- program { name: "entry_active";
+ program { "entry_active";
signal: "elm,state,entry,active";
source: "elm";
- action: STATE_SET "active" 0.0;
+ action: STATE_SET "active";
target: "elm.swallow.entry";
}
- program { name: "entry_inactive";
+ program { "entry_inactive";
signal: "elm,state,entry,inactive";
source: "elm";
- action: STATE_SET "default" 0.0;
+ action: STATE_SET "default";
target: "elm.swallow.entry";
}
- program { name: "text_button_active";
+ program { "text_button_active";
signal: "elm,state,button,active";
source: "elm";
- action: STATE_SET "default" 0.0;
+ action: STATE_SET "default";
target: "elm.swallow.text_button";
}
- program { name: "text_button_inactive";
+ program { "text_button_inactive";
signal: "elm,state,button,inactive";
source: "elm";
- action: STATE_SET "inactive" 0.0;
+ action: STATE_SET "inactive";
target: "elm.swallow.text_button";
}
- program { name: "access_activate";
+ program { "access_activate";
signal: "elm,state,access,active";
source: "elm";
- action: STATE_SET "active" 0.0;
+ action: STATE_SET "active";
target: "access";
}
- program { name: "access_inactivate";
+ program { "access_inactivate";
signal: "elm,state,access,inactive";
source: "elm";
- action: STATE_SET "default" 0.0;
+ action: STATE_SET "default";
target: "access";
}
- program { name: "disable";
+ program { "disable";
signal: "elm,state,disabled";
source: "elm";
- action: STATE_SET "disabled" 0.0;
+ action: STATE_SET "disabled";
target: "disabler";
}
- program { name: "enable";
+ program { "enable";
signal: "elm,state,enabled";
source: "elm";
- action: STATE_SET "default" 0.0;
+ action: STATE_SET "default";
target: "disabler";
}
}
}
-group { name: "elm/spin_button/base/vertical";
- inherit: "elm/spin_button/base/default";
+group { "efl/spin_button:vertical";
+ inherit: "efl/spin_button";
parts {
- part { name: "elm.swallow.inc_button";
- type: SWALLOW;
- scale: 1;
- description { state: "default" 0.0;
+ swallow { "elm.swallow.inc_button";
+ scale;
+ desc { "default";
rel1.to: "inset";
rel1.offset: 1 1;
rel1.relative: 1.0 0.0;
@@ -183,11 +174,10 @@ group { name: "elm/spin_button/base/vertical";
align: 1.0 0.5;
}
}
- part { name: "elm.swallow.text_button";
- type: SWALLOW;
- scale: 1;
- description { state: "default" 0.0;
- visible: 1;
+ swallow { "elm.swallow.text_button";
+ scale;
+ desc { "default";
+ vis;
rel1.to_y: "inset";
rel1.to_x: "elm.swallow.dec_button";
rel1.relative: 1.0 0.0;
@@ -197,15 +187,14 @@ group { name: "elm/spin_button/base/vertical";
rel2.relative: 0.0 1.0;
rel2.offset: -2 -2;
}
- description { state: "active" 0.0;
- inherit: "default" 0.0;
- visible: 0;
+ desc { "active";
+ inherit: "default";
+ hid;
}
}
- part { name: "elm.swallow.dec_button";
- type: SWALLOW;
- scale: 1;
- description { state: "default" 0.0;
+ swallow { "elm.swallow.dec_button";
+ scale;
+ desc { "default";
rel1.to: "inset";
rel1.offset: 1 1;
rel2.to: "inset";
@@ -216,3 +205,24 @@ group { name: "elm/spin_button/base/vertical";
}
}
}
+
+group { "efl/spin_button/inc_button";
+ inherit: "elm/button/base/spinner/increase/default";
+}
+
+group { "efl/spin_button/dec_button";
+ inherit: "elm/button/base/spinner/decrease/default";
+}
+
+group { "efl/spin_button/text_button";
+ inherit: "elm/button/base/spinner/default";
+ alias: "efl/spin_button/text_button:vertical";
+}
+
+group { "efl/spin_button/inc_button:vertical";
+ inherit: "elm/button/base/spinner/increase/vertical";
+}
+
+group { "efl/spin_button/dec_button:vertical";
+ inherit: "elm/button/base/spinner/decrease/vertical";
+} \ No newline at end of file