aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDaniel Hirt <hirt.danny@gmail.com>2017-07-26 20:00:03 +0300
committerDaniel Hirt <hirt.danny@gmail.com>2017-08-14 20:20:38 +0300
commit67e42863b585f8cada18fb6c9471dfd6caada8cf (patch)
tree479a1d9f3e013c294710c0190a7ffee4fa859d0a
parentlayout.edc: port to TEXTBLOCK (diff)
downloadefl-67e42863b585f8cada18fb6c9471dfd6caada8cf.tar.gz
actionslider.edc: port to actionslider
-rw-r--r--data/elementary/themes/edc/elm/actionslider.edc56
1 files changed, 25 insertions, 31 deletions
diff --git a/data/elementary/themes/edc/elm/actionslider.edc b/data/elementary/themes/edc/elm/actionslider.edc
index dc382c24bd..91e7a1d9b8 100644
--- a/data/elementary/themes/edc/elm/actionslider.edc
+++ b/data/elementary/themes/edc/elm/actionslider.edc
@@ -1,4 +1,14 @@
group { name: "elm/actionslider/base/default";
+ styles {
+ style { name: "actionslider_style";
+ base: STL_COL_PRIMER" font="FN" font_size=10 style=shadow,bottom text_class=button color_class=button_text left_margin=2 right_margin=2";
+ ENABLED_TEXTBLOCK_TAGS
+ }
+ style { name: "actionslider_check_off_style";
+ base: STL_COL_PRIMER" font="FN" font_size=10 style=shadow,bottom text_class=check_off_text color_class=check_off_text left_margin=2 right_margin=2";
+ ENABLED_TEXTBLOCK_TAGS
+ }
+ }
images.image: "bevel_in.png" COMP;
images.image: "button_normal.png" COMP;
images.image: "button_clicked.png" COMP;
@@ -42,61 +52,49 @@ group { name: "elm/actionslider/base/default";
rel2.to: "bg";
}
}
- part { name: "elm.text.left"; type: TEXT;
- effect: SHADOW BOTTOM;
+ part { name: "elm.text.left"; type: TEXTBLOCK;
scale: 1;
description { state: "default" 0.0;
- color: FN_COL_DEFAULT;
- color_class: "button_text";
- text { font: FN; size: 10;
+ text { style: "actionslider_style";
+ font: FN; size: 10;
align: 0.05 0.5;
min: 1 1;
ellipsis: -1;
- text_class: "button";
}
}
description { state: "disabled" 0.0;
inherit: "default" 0.0;
- color: FN_COL_DISABLE;
- color_class: "button_text_disabled";
+ text.style: "button_disabled_style";
}
}
- part { name: "elm.text.center"; type: TEXT;
- effect: SHADOW BOTTOM;
+ part { name: "elm.text.center"; type: TEXTBLOCK;
scale: 1;
description { state: "default" 0.0;
- color: FN_COL_DEFAULT;
- color_class: "check_off_text";
- text { font: FN; size: 10;
+ text { style: "actionslider_style";
+ font: FN; size: 10;
align: 0.5 0.5;
min: 1 1;
ellipsis: -1;
- text_class: "check_off_text";
}
}
description { state: "disabled" 0.0;
inherit: "default" 0.0;
- color: FN_COL_DISABLE;
- color_class: "button_text_disabled";
+ text.style: "button_disabled_style";
}
}
- part { name: "elm.text.right"; type: TEXT;
- effect: SHADOW BOTTOM;
+ part { name: "elm.text.right"; type: TEXTBLOCK;
scale: 1;
description { state: "default" 0.0;
- color: FN_COL_DEFAULT;
- color_class: "check_off_text";
- text { font: FN; size: 10;
+ text { style: "actionslider_style";
+ font: FN; size: 10;
align: 0.95 0.5;
min: 1 1;
ellipsis: -1;
- text_class: "check_off_text";
}
}
description { state: "disabled" 0.0;
inherit: "default" 0.0;
- color: FN_COL_DISABLE;
- color_class: "button_text_disabled";
+ text.style: "button_disabled_style";
}
}
part { name: "elm.drag_button_base"; type: SWALLOW; mouse_events: 0;
@@ -168,7 +166,7 @@ group { name: "elm/actionslider/base/default";
image.border: 5 5 4 6;
}
}
- part { name: "elm.text.indicator"; type: TEXT; mouse_events: 0;
+ part { name: "elm.text.indicator"; type: TEXTBLOCK; mouse_events: 0;
effect: SHADOW BOTTOM;
scale: 1;
description { state: "default" 0.0;
@@ -180,19 +178,15 @@ group { name: "elm/actionslider/base/default";
to: "elm.drag_button";
offset: -5 -3;
}
- color: FN_COL_DEFAULT;
- color_class: "check_off_text";
- text {
+ text { style: "actionslider_check_off_style";
font: FN; size: 10;
align: 0.5 0.5;
min: 0 1;
- text_class: "check_off_text";
}
}
description { state: "disabled" 0.0;
inherit: "default" 0.0;
- color: FN_COL_DISABLE;
- color_class: "button_text_disabled";
+ text.style: "button_disabled_style";
}
}
part { name: "disabler";