From 145eb051982060b3de0029244ea922b5f878e93b Mon Sep 17 00:00:00 2001 From: Sungtaek Hong Date: Mon, 9 Jan 2017 17:42:44 +0900 Subject: [PATCH 01/16] theme: add toolbar style Change-Id: I34c2216a9e986844a746b427e2593d219b21e710 Signed-off-by: Sungtaek Hong --- ElmSharp/theme/tv/HD-inc.edc | 53 + .../Navigation_elements/core_navi_press.#.png | Bin 0 -> 1297 bytes .../Navigation_elements/core_navigation_bar_bg.png | Bin 0 -> 1511 bytes .../core_navigation_bar_icon_arrow.png | Bin 0 -> 1311 bytes .../Navigation_elements/core_tab_selectbar.#.png | Bin 0 -> 993 bytes ElmSharp/theme/tv/color_classes.edc | 139 + ElmSharp/theme/tv/elm-sharp-theme-tv.edc | 1 + ElmSharp/theme/tv/widgets/toolbar.edc | 2987 ++++++++++++++++++++ 8 files changed, 3180 insertions(+) create mode 100755 ElmSharp/theme/tv/HD/images/Navigation_elements/core_navi_press.#.png create mode 100644 ElmSharp/theme/tv/HD/images/Navigation_elements/core_navigation_bar_bg.png create mode 100644 ElmSharp/theme/tv/HD/images/Navigation_elements/core_navigation_bar_icon_arrow.png create mode 100755 ElmSharp/theme/tv/HD/images/Navigation_elements/core_tab_selectbar.#.png create mode 100644 ElmSharp/theme/tv/widgets/toolbar.edc diff --git a/ElmSharp/theme/tv/HD-inc.edc b/ElmSharp/theme/tv/HD-inc.edc index c407029..65c925d 100644 --- a/ElmSharp/theme/tv/HD-inc.edc +++ b/ElmSharp/theme/tv/HD-inc.edc @@ -141,7 +141,60 @@ #define SPINNER_TEXT_HEIGHT_INC 146 #define SPINNER_BUTTON_CORNER_RADIUS 10 +//****************************************************************************// +// Tabbar +//****************************************************************************// +#define TABBAR_COMMON_SLIDE_START_DELAY_SEC 0.8 +#define TABBAR_COMMON_SLIDE_INTER_DELAY_SEC 0.8 +#define TABBAR_COMMON_SLIDE_SPEED_WEIGHT 0.5 +#define TABBAR_COMMON_SLIDE_TEXT_GAP 60 +#define TABBAR_COMMON_SLIDE_TEXT_CHAR_GAP " " //60 (6 spaces) +#define TABBAR_COMMON_SLIDE_TEXT_MAX_LENGTH (2*(256+6)) + +#define TABBAR_COMMON_DEFAULT_ITEM_SIZE_INC 90 64; +#define TABBAR_COMMON_LANDSCAPE_DEFAULT_ITEM_SIZE_INC 160 64; +#define TABBAR_COMMON_SCROLL_ITEM_SIZE_INC 210 64; +#define TABBAR_COMMON_LANDSCAPE_SCROLL_ITEM_SIZE_INC 270 64; +#define TABBAR_COMMON_SELECTED_LINE_HEIGHT_INC 4 +#define TABBAR_COMMON_SELECTED_LINE_TOP_PADDING_SIZE_INC 0 3 +#define TABBAR_COMMON_SELECTED_LINE_SELECT_ANIM_TIME_INC 0.33 +#define TABBAR_COMMON_SELECTED_LINE_UNSELECT_ANIM_TIME_INC 0.33 +#define TABBAR_COMMON_BADGE_TOP_RIGHT_PADDING_SIZE_INC 14 2 + +#define TABBAR_DEFAULT_TEXT_LEFT_TOP_PADDING_SIZE_INC 8 0 +#define TABBAR_DEFAULT_TEXT_RIGHT_BOTTOM_PADDING_SIZE_INC 8 9+4+3 +#define TABBAR_DEFAULT_ICON_TEXT_LEFT_TOP_PADDING_SIZE_INC 8 2 +#define TABBAR_DEFAULT_ICON_TEXT_RIGHT_BOTTOM_PADDING_SIZE_INC 8 4+3 +#define TABBAR_DEFAULT_ICON_TEXT_LAND_LEFT_TOP_PADDING_SIZE_INC 8+50+16 0 +#define TABBAR_DEFAULT_ICON_TEXT_LAND_RIGHT_BOTTOM_PADDING_SIZE_INC 8 9+4+3 +#define TABBAR_DEFAULT_ICON_SIZE_INC 60 60 +#define TABBAR_DEFAULT_ICON_LAND_SIZE_INC 50 50 +#define TABBAR_DEFAULT_ICON_BOTTOM_PADDING_SIZE_INC 0 3+42 +#define TABBAR_DEFAULT_TEXT_TOP_PADDING_SIZE_INC 0 60+3 +#define TABBAR_DEFAULT_TEXT_LEFT_PADDING_SIZE_INC 16 0 +#define TABBAR_DEFAULT_TEXT_SIZE_INC 0 52 +#define TABBAR_DEFAULT_ICON_TEXT_SIZE_INC 0 42 +#define TABBAR_DEFAULT_ICON_LAND_TEXT_SIZE_INC 0 52 + +#define TABBAR_TITLE_TEXT_SIZE_INC 0 52 +#define TABBAR_TITLE_TEXT_LEFT_TOP_PADDING_SIZE_INC 8 0 +#define TABBAR_TITLE_TEXT_RIGHT_BOTTOM_PADDING_SIZE_INC 8 0 +#define TABBAR_TITLE_ICON_TEXT_LAND_LEFT_TOP_PADDING_SIZE_INC 8+50+9 0 +#define TABBAR_TITLE_ICON_TEXT_LAND_RIGHT_BOTTOM_PADDING_SIZE_INC 8 3+4 +#define TABBAR_TITLE_ICON_SIZE_INC 50 50 +#define TABBAR_TITLE_TEXT_LEFT_PADDING_SIZE_INC 9 0 + +#define TABBAR_LIGHT_VIEW_TEXT_SIZE_INC 0 43 +#define TABBAR_LIGHT_VIEW_TEXT_LEFT_TOP_PADDING_SIZE_INC 8 0 +#define TABBAR_LIGHT_VIEW_TEXT_RIGHT_BOTTOM_PADDING_SIZE_INC 8 11 +#define TABBAR_LIGHT_VIEW_SELECTED_LINE_TOP_PADDING_SIZE_INC 0 4 +//Navigation style +#define TOOLBAR_NAVI_HEIGHT_INC 70 +#define TOOLBAR_NAVI_PADDING_INC 32 +#define TOOLBAR_NAVI_ICON_ARROW_WIDTH_INC 60 +#define TOOLBAR_NAVI_ICON_ARROW_HEIGHT_INC 70 +#define TOOLBAR_NAVI_DIVIDER_HEIGHT_INC 2 #define STYLE_TAGS \ tag: "br" "\n";\ diff --git a/ElmSharp/theme/tv/HD/images/Navigation_elements/core_navi_press.#.png b/ElmSharp/theme/tv/HD/images/Navigation_elements/core_navi_press.#.png new file mode 100755 index 0000000000000000000000000000000000000000..c0fbe0aa977d3e9b12715fbcc5511c379241dfc5 GIT binary patch literal 1297 zcmeAS@N?(olHy`uVBq!ia0vp^S|H591|*LjJ{b+9BuiW)N`mv#O3D+9QW+dm@{>{( zJaZG%Q-e|yQz{EjrrIztFe_z-M3hAM`dB6B=jtVb)aX^@765fKFxc2v6eK2Rr0UTq__OB&@Hb09I0xZL0)vRD^GUf^&XRs)DJWv2L<~p`n7AnVzAE zshOFfj)IYap^?4;5Si&3npl~dSs9rtK!Fm_wxX0Ys~{IQs9ivwtx`rwNr9EVetCJh zUb(Seeo?xx^|#0uTKVr7^KE~&-IMVSR9nfZANAQKal@=Hr> zm4GgVcpgi&u1T;Y}Gc(1?*wE3)#o5%%#N64<(9qS?!qM5>$;Hyb)y>qx z*vZiqrq?AuximL5uLPzy1)F;qvDMSXF{I+w zo0aLwj_X4g{3Bo!JHyPjm z=8Jm3<+6Zp*8aLmLEnWOdJai#@;i_3-20qgeC7g^ld>Oj+~$jKxWE2|V8-l^OPTxr z3*Fr;FH?SG;iK+fvpvmxd7g>7#~rlVG5u`FhkF*Plct<$oP6*2Wv+~drbk}VQw$dQ zs)s2~nc~wJ`}E{g(fn`@>Kp^Qqsj6;=LWN%Kt@najo;@7RZiR z%&T6;t;gy9ndiN6gHEX7fhgHjhpaJj1ht&HljRQy2EV?AoO!mc3->H_ZbK&Fe39Hm0p*0Toi7 Lu6{1-oD!Mv4 zq}24xJX@vryZ0+8WTx0Eg`4^s_!c;)W@LI)6{QAO`Gq7`WhYyvDB0U7*i={n4aiL` zNmQuF&B-gas<2f8n`;GRgM{^!6u?SKvTcwn`GuBNuFf>#!Gt)CP zF*P$Y)KM@pFf`IP03tJ8LlY}gGb`4?pZBPB7%B|o_|H#M)s)5TT^D5IB>nPO#NVgU?A za}xt|BLg!FLqiJ#3u6moOH%_E0}C@#7Z;cr*z}qh8ChC5x>%UFI=dJex|TDmy7 znOe9QxSARpJDJ1udgc|EB<3Zj!tBii+6&cdj#sahb5UwyNq$jCetr%t1q5W|m*f{` z=Gku_A^g)RODY3wWfGH5fgeQF<2cCIS^ME;~ z2$(f)fBovrz`!K#>EaktaqG&=lU~e@BCgtkf0&=oH+ZlmsHub5;;ri!Z4uWC8cq8j zHb}G2aTO8#%aR^rwcFDr*79!q`UQf_hA+Lo?=2|vEPQFVe%GwN8pUJ2DR<2_yiNMp zarn_B^#IPizi}2>cb0LSX=d8?Xj0XLgy5skgts)w0y*wq|Mt0x&Q7wgJ)d6a$t;ly zlw#h}5DS!I7dU_u))P%$XOA({uXz8%wvTKj(UJZM9$UpP075 zzsqj&y){@i<6EKOLh+alwhd2&A8Xx?{wMX~3!k!cVc_C#`s)v`@$%ZfSLCvy_q&?? z^ITW>wLea9uM)&EtZ<*EWbf%quG&$ko`lFwo{t(MJpDNL;p?5ff zcT%0+tEj2rwMJ^dc$w9nXj8Uv$LUAG2?wt}S|>Bzzq-)A{bTt)RtbjBJFXv7)pj@u PDtbL#{an^LB{Ts5z9cht literal 0 HcmV?d00001 diff --git a/ElmSharp/theme/tv/HD/images/Navigation_elements/core_navigation_bar_icon_arrow.png b/ElmSharp/theme/tv/HD/images/Navigation_elements/core_navigation_bar_icon_arrow.png new file mode 100644 index 0000000000000000000000000000000000000000..0cd2ac33ce3cb4566661ab55124e887aacda7b6d GIT binary patch literal 1311 zcmeAS@N?(olHy`uVBq!ia0vp^HbCsg!3HEJxPHG1q$EpRBT9nv(@M${i&7aJQ}UBi z6+Ckj(^G>|6H_V+Po@HOFe_z-M3hAM`dB6B=jtVb)aX^@765ev4YaQ)NKDR7Em25H zP0!4;ReHaBzmh^`img((sjq==fpcm`rbks#YH*cbNODznvSo^ry`6$hg%!|%+|-gp zg^Jvqyke^gTP3i$RzNmLSYJs2tfVB{Rte&$2;Tq&=lr5n1yem^-DCqpLj^N4Jwp>y zGc!XS1tSAPBYguPGSf9Qu`)HYGBQ_y0wthrMJZ`kK`w4kyMR1frHqo20xNy}^73-M za$~*xqI7*jOG`_T8Ae9BKoz>hm3bwJ6}oxF$}kgLQj3#|G7CyF^YauyCMG83mzLNn z0bL65LT&-v*t}wBFaZNhzap_f-%!s0Mv>2~2MaLa!rEy`ZF!TL84#CABECEH%ZgC_h&L>}9J=+-@<)X&zK> z3U0Sp;MA)Rbc{YIVv!;mCIn19ASOK70y*%6pPC0u?M1+3UFqT|!@$5e+0(@_q~g|_ z8T++c10{~%Kb>Zvy>qsNO0(msgpI!f%SD+r6`=Z;;De}{Og$noX zYyW=jWyy5wJH_jt|F!wL^1IFH+smKtd0#m%*yFOv$>1%jmfS6ZZW4(Y#5!d)SIgvO zk%wA4wol_x=qvYv&!7esnjwyj%8k@A0)397V4eU4J#L?4sg2my4(8c4e+! z`*ijVo}%ESLs_l$_jS)5oiTm4So5RHk3LLDJ05cM^v?ZXH(lilf9#=C`Fhj!Vq>{~ zxLh$y@0OV@TDtl^ROe~;hq_y2tB#lrES)WH-* zQA5UzULt#94-5{F|JK*x7i2qtr>eM&=5f;sA(eAb4Fbcn7GMcl&hohpI8IT!Xtz?u zRr7>mBag8X3=?|+VN=xjL>yT5BE+Bu7hGSZzdU(L1J_aMS<&RoK!bI6rWL|+t5C69 zi?;006UV@KtPlYYVhhCHk{>CtO1E_tVkg%u4cZXAsM6a(Rm~#MPzZs@WYRXr^FWdq zJ}XKRe-sEDFR&b0Qku^yqNE6;p!3nhTjc%RaW^v>%Oh6?7Qcp&MWq`5;lWYN&x#nnb#tf*15;{istWQZP2Q0+wgE zB&9CUH2)9vydFBjCAbssKZT>pasb&9j8G%AN#o{65?6tuh0ww%tRS@1tzxl`FpBCZ z09siBhi6^iLCxq$8*iG5;YZl=ZD{B!O%xc{b(CqD%X6|Yn&otz=cmNnsF2adguIr~ zbAm35U9OJoh6jDz%eYq?N zhD{p#SEIXEWO@>_H@4)^8+_=KX%ER*UtIgSn>>kAhMud$@9@c2sY{cC(aPqJ((mCt zl|#h`r$1aCmTx}0t>s<|)P>cLFSqusG|sFPuEHB{9^ZkV?>*ee>_vCKRiCdv`u@wf i{?@s2ZF4Qv`m}$JngnNWz0cNb$)hu-3i|#0-0B~EBR=~8 literal 0 HcmV?d00001 diff --git a/ElmSharp/theme/tv/color_classes.edc b/ElmSharp/theme/tv/color_classes.edc index 093dfbc..83486bf 100644 --- a/ElmSharp/theme/tv/color_classes.edc +++ b/ElmSharp/theme/tv/color_classes.edc @@ -491,4 +491,143 @@ color_classes { color_class { "spinner/default/text_disabled"; color: 0 0 0 163; } + /* + * Toolbar + */ + color_class { "toolbar/default/bg"; + color: 61 185 204 255; + } + color_class { "toolbar_item/default/bg"; + color: 61 185 204 255; + } + color_class { "toolbar_item/default/effect"; + color: 0 0 0 77; + } + color_class { "toolbar_item/default/underline"; + color: 249 249 249 255; + } + color_class { "toolbar_item/default/icon"; + color: 249 249 249 99; + } + color_class { "toolbar_item/default/icon_selected"; + color: 249 249 249 255; + } + color_class { "toolbar_item/default/icon_pressed"; + color: 249 249 249 255; + } + color_class { "toolbar_item/default/icon_disabled"; + color: 249 249 249 76; + } + color_class { "toolbar_item/default/text"; + color: 250 250 250 184; + } + color_class { "toolbar_item/default/text_pressed"; + color: 250 250 250 255; + } + color_class { "toolbar_item/default/text_selected"; + color: 250 250 250 255; + } + color_class { "toolbar_item/default/text_disabled"; + color: 250 250 250 115; + } + color_class { "toolbar_item/default/text_under_icon"; + color: 250 250 250 184; + } + color_class { "toolbar_item/default/text_under_icon_pressed"; + color: 250 250 250 255; + } + color_class { "toolbar_item/default/text_under_icon_selected"; + color: 250 250 250 255; + } + color_class { "toolbar_item/default/text_under_icon_disabled"; + color: 250 250 250 115; + } + color_class { "toolbar/tabbar_with_title/bg"; + color: 61 185 204 255; + } + color_class { "toolbar_item/tabbar_with_title/bg"; + color: 61 185 204 255; + } + color_class { "toolbar_item/tabbar_with_title/effect"; + color: 0 0 0 77; + } + color_class { "toolbar_item/tabbar_with_title/underline"; + color: 249 249 249 255; + } + color_class { "toolbar_item/tabbar_with_title/icon"; + color: 249 249 249 99; + } + color_class { "toolbar_item/tabbar_with_title/icon_selected"; + color: 249 249 249 255; + } + color_class { "toolbar_item/tabbar_with_title/icon_pressed"; + color: 249 249 249 255; + } + color_class { "toolbar_item/tabbar_with_title/icon_disabled"; + color: 249 249 249 76; + } + color_class { "toolbar_item/tabbar_with_title/text"; + color: 250 250 250 184; + } + color_class { "toolbar_item/tabbar_with_title/text_pressed"; + color: 250 250 250 255; + } + color_class { "toolbar_item/tabbar_with_title/text_selected"; + color: 250 250 250 255; + } + color_class { "toolbar_item/tabbar_with_title/text_disabled"; + color: 250 250 250 115; + } + color_class { "toolbar/navigationbar/bg"; + color: 61 185 204 255; + } + color_class { "toolbar/navigationbar/divider"; + color: 249 249 249 38; + } + color_class { "toolbar_item/navigationbar/bg"; + color: 61 185 204 255; + } + color_class { "toolbar_item/navigationbar/effect"; + color: 0 0 0 77; + } + color_class { "toolbar_item/navigationbar/icon"; + color: 249 249 249 255; + } + color_class { "toolbar_item/navigationbar/text"; + color: 250 250 250 184; + } + color_class { "toolbar_item/navigationbar/text_pressed"; + color: 250 250 250 255; + } + color_class { "toolbar_item/navigationbar/text_disabled"; + color: 250 250 250 163; + } + color_class { "toolbar_item/navigationbar/text_selected"; + color: 250 250 250 255; + } + color_class { "toolbar/light_view/bg"; + color: 150 154 158 255; + } + color_class { "toolbar_item/light_view/bg"; + color: 150 154 158 255; + } + color_class { "toolbar_item/light_view/effect"; + color: 0 0 0 77; + } + color_class { "toolbar_item/light_view/underline"; + color: 249 249 249 255; + } + color_class { "toolbar_item/light_view/text"; + color: 250 250 250 184; + } + color_class { "toolbar_item/light_view/text_pressed"; + color: 250 250 250 255; + } + color_class { "toolbar_item/light_view/text_selected"; + color: 250 250 250 255; + } + color_class { "toolbar_item/light_view/text_disabled"; + color: 250 250 250 115; + } + } diff --git a/ElmSharp/theme/tv/elm-sharp-theme-tv.edc b/ElmSharp/theme/tv/elm-sharp-theme-tv.edc index 66ec934..bd28cfa 100644 --- a/ElmSharp/theme/tv/elm-sharp-theme-tv.edc +++ b/ElmSharp/theme/tv/elm-sharp-theme-tv.edc @@ -78,5 +78,6 @@ collections { #include "widgets/progressbar.edc" #include "widgets/radio.edc" #include "widgets/slider.edc" +#include "widgets/toolbar.edc" #include "widgets/tooltip.edc" } diff --git a/ElmSharp/theme/tv/widgets/toolbar.edc b/ElmSharp/theme/tv/widgets/toolbar.edc new file mode 100644 index 0000000..09b1635 --- /dev/null +++ b/ElmSharp/theme/tv/widgets/toolbar.edc @@ -0,0 +1,2987 @@ +group { "elm/toolbar/item/event/default"; + inherit_only: 1; + parts { + rect { "event"; + mouse; + desc { "default"; + rel.to: "base"; + color: 0 0 0 0; + } + } + } + programs { + /* Program for selected event */ + program { "selected"; + signal: "elm,state,selected"; + source: "elm"; + after: "on_selected"; + } + /* Program for unselected event */ + program { "unselected"; + signal: "elm,state,unselected"; + source: "elm"; + after: "on_unselected"; + } + /* Program for pressed event */ + program { "pressed"; + signal: "mouse,down,1"; + source: "event"; + after: "on_pressed"; + } + program { "pressed_key"; + signal: "elm,action,pressed"; + source: "elm"; + after: "on_pressed_key"; + } + /* Program for unpressed event */ + program { "unpressed"; + signal: "mouse,up,1"; + source: "event"; + after: "on_unpressed"; + } + program { "unpressed_key"; + signal: "elm,action,unpressed"; + source: "elm"; + after: "on_unpressed_key"; + } + /* Program for clicked event */ + program { "clicked"; + signal: "mouse,clicked,1"; + source: "event"; + after: "on_clicked"; + } + /* Program for mouse_in event */ + program { "mouse_in"; + signal: "mouse,in"; + source: "event"; + after: "on_mouse_in"; + } + /* Program for mouse_out event */ + program { "mouse_out"; + signal: "mouse,out"; + source: "event"; + after: "on_mouse_out"; + } + /* Program for enabled event */ + program { "enabled"; + signal: "elm,state,enabled"; + source: "elm"; + after: "on_enabled"; + } + /* Program for disabled event */ + program { "diabled"; + signal: "elm,state,disabled"; + source: "elm"; + after: "on_disabled"; + } + /* Program for multi_down event */ + program { "multi_down"; + signal: "elm,action,multi,down"; + source: "elm"; + after: "on_multi_down"; + } + /* Program for multi_cancel event */ + program { "multi_cancel"; + signal: "elm,action,multi,cancel"; + source: "elm"; + after: "on_multi_cancel"; + } + /* Program for visible_text event */ + program { "visible_text"; + signal: "elm,state,text,visible"; + source: "elm"; + after: "on_visible_text"; + } + /* Program for hidden_text event */ + program { "hidden_text"; + signal: "elm,state,text,hidden"; + source: "elm"; + after: "on_hidden_text"; + } + /* Program for visible_icon event */ + program { "visible_icon"; + signal: "elm,state,icon,visible"; + source: "elm"; + after: "on_visible_icon"; + } + /* Program for hidden_icon event */ + program { "hidden_icon"; + signal: "elm,state,icon,hidden"; + source: "elm"; + after: "on_hidden_icon"; + } + /* Program for tab_number_item event */ + program { "tab_number_item"; + signal: "elm,number,item,*"; + source: "elm"; + after: "on_tab_number_item"; + } + /* Program for landscape_mode event */ + program { "orient_90"; + source: "elm"; + signal: "elm,state,orient,90"; + after: "on_orient_90"; + } + program { "orient_270"; + source: "elm"; + signal: "elm,state,orient,270"; + after: "on_orient_270"; + } + /* Program for portrait_mode event */ + program { "orient_0"; + source: "elm"; + signal: "elm,state,orient,0"; + after: "on_orient_0"; + } + program { "orient_180"; + source: "elm"; + signal: "elm,state,orient,180"; + after: "on_orient_180"; + } + /* Program for shrink_scroll event */ + program { "shrink_scroll"; + signal: "elm,state,shrink,scroll"; + source: "elm"; + after: "on_shrink_scroll"; + } + /* Program for disabled event */ + program { "shrink_expand"; + signal: "elm,state,shrink,expand"; + source: "elm"; + after: "on_shrink_expand"; + } + program { "shrink_menu"; + signal: "elm,state,shrink,menu"; + source: "elm"; + after: "on_shrink_menu"; + } + program { "shrink_hide"; + signal: "elm,state,shrink,hide"; + source: "elm"; + after: "on_shrink_hide"; + } + program { "shrink_default"; + signal: "elm,state,shrink,default"; + source: "elm"; + after: "on_shrink_default"; + } + /* Program for order_item_default event */ + program { name: "order_item_default"; + signal: "elm,order,default,item"; + source: "elm"; + after: "on_order_item_default"; + } + /* Program for order_item_first event */ + program { name: "order_item_first"; + signal: "elm,order,first,item"; + source: "elm"; + after: "on_order_item_first"; + } + /* Program for order_item_last event */ + program { name: "order_item_last"; + signal: "elm,order,last,item"; + source: "elm"; + after: "on_order_item_last"; + } + } +} + +group { "elm/toolbar/base/template"; + inherit_only: 1; + parts { + /* base part for toolbar */ + spacer { "base"; + desc { "default"; + } + } + rect { "bg_base"; + nomouse; + desc { "default"; + rel.to: "base"; +// color: 61 185 204 255; // background color for toolbar + } + } + /* default swallow icon part */ + swallow { "elm.swallow.content"; + desc { "default"; + rel.to: "base"; + } + } + } +} + +group { "elm/toolbar/item/template"; + inherit_only: 1; + parts { + /* base part for toolbar item */ + spacer { "base"; + desc { "default"; + } + } + rect { "bg_base"; + nomouse; + desc { "default"; + rel.to: "base"; +// color: 61 185 204 255; // background color for toolbar item + } + } + /* default icon part */ + swallow { "elm.swallow.icon"; + desc { "default"; + rel.to: "base"; + } + } + /* default text part */ + textblock { "elm.text"; + desc { "default"; + rel.to: "base"; + } + } + /* default badge part */ + swallow { "elm.swallow.badge"; + desc { "default"; + rel.to: "base"; + } + } + } + programs { + /* program for selected effect*/ + program { "on_selected"; + } + /* program for unselected effect*/ + program { "on_unselected"; + } + /* program for pressed_key effect*/ + program { "on_pressed_key"; + } + /* program for pressed effect*/ + program { "on_pressed"; + } + /* program for unpressed_key effect*/ + program { "on_unpressed_key"; + } + /* program for unpressed effect*/ + program { "on_unpressed"; + } + /* program for clicked effect*/ + program { "on_clicked"; + } + /* program for enabled effect*/ + program { "on_enabled"; + } + /* program for disabled effect*/ + program { "on_disabled"; + } + } +} + +#define ITEM_STATE_ENABLED 0 +#define ITEM_STATE_DISABLED 1 +#define TAG \ + tag: "br" "\n"; \ + tag: "ps" "ps"; \ + tag: "hilight" "+ font_weight=Bold"; \ + tag: "b" "+ font_weight=Bold"; \ + tag: "tab" "\t"; + +styles { + style { name: "tabbar_textblock_style"; + base: "color=#FFF color_class=toolbar_item/default/text font=Tizen:weight=Normal:width=Condensed font_size=38 align=center wrap=none ellipsis=1 text_class=tizen"; + TAG + } + style { name: "tabbar_textblock_pressed_style"; + base: "color=#FFF color_class=toolbar_item/default/text_pressed font=Tizen:weight=Normal:width=Condensed font_size=38 align=center wrap=none ellipsis=1 text_class=tizen"; + TAG + } + style { name: "tabbar_textblock_selected_style"; + base: "color=#FFF color_class=toolbar_item/default/text_selected font=Tizen:weight=Normal:width=Condensed font_size=38 align=center wrap=none ellipsis=1 text_class=tizen"; + TAG + } + style { name: "tabbar_textblock_selected_slide_style"; + base: "color=#FFF color_class=toolbar_item/default/text_selected font=Tizen:weight=Normal:width=Condensed font_size=38 align=left wrap=none text_class=tizen"; + TAG + } + style { name: "tabbar_textblock_disabled_style"; + base: "color=#FFF color_class=toolbar_item/default/text_disabled font=Tizen:weight=Normal:width=Condensed font_size=38 align=center wrap=none ellipsis=1 text_class=tizen"; + TAG + } + style { name: "tabbar_icon_textblock_style"; + base: "color=#FFF color_class=toolbar_item/default/text_under_icon font=Tizen:weight=Normal:width=Condensed font_size=30 align=center wrap=none ellipsis=1 text_class=tizen"; + TAG + } + style { name: "tabbar_icon_textblock_pressed_style"; + base: "color=#FFF color_class=toolbar_item/default/text_under_icon_pressed font=Tizen:weight=Normal:width=Condensed font_size=30 align=center wrap=none ellipsis=1 text_class=tizen"; + TAG + } + style { name: "tabbar_icon_textblock_selected_style"; + base: "color=#FFF color_class=toolbar_item/default/text_under_icon_selected font=Tizen:weight=Normal:width=Condensed font_size=30 align=center wrap=none ellipsis=1 text_class=tizen"; + TAG + } + style { name: "tabbar_icon_textblock_selected_slide_style"; + base: "color=#FFF color_class=toolbar_item/default/text_under_icon_selected font=Tizen:weight=Normal:width=Condensed font_size=30 align=left wrap=none text_class=tizen"; + TAG + } + style { name: "tabbar_icon_textblock_disabled_style"; + base: "color=#FFF color_class=toolbar_item/default/text_under_icon_disabled font=Tizen:weight=Normal:=Condensed font_size=30 align=center wrap=none ellipsis=1 text_class=tizen"; + TAG + } + style { name: "tabbar_with_title_textblock_style"; + base: "color=#FFF color_class=toolbar_item/tabbar_with_title/text font=Tizen:weight=Normal:width=Condensed font_size=38 align=center wrap=none ellipsis=1 text_class=tizen"; + TAG + } + style { name: "tabbar_with_title_textblock_pressed_style"; + base: "color=#FFF color_class=toolbar_item/tabbar_with_title/text_pressed font=Tizen:weight=Normal:width=Condensed font_size=38 align=center wrap=none ellipsis=1 text_class=tizen"; + TAG + } + style { name: "tabbar_with_title_textblock_selected_style"; + base: "color=#FFF color_class=toolbar_item/tabbar_with_title/text_selected font=Tizen:weight=Normal:width=Condensed font_size=38 align=center wrap=none ellipsis=1 text_class=tizen"; + TAG + } + style { name: "tabbar_with_title_textblock_selected_slide_style"; + base: "color=#FFF color_class=toolbar_item/tabbar_with_title/text_selected font=Tizen:weight=Normal:width=Condensed font_size=38 align=left wrap=none text_class=tizen"; + TAG + } + style { name: "tabbar_with_title_textblock_disabled_style"; + base: "color=#FFF color_class=toolbar_item/tabbar_with_title/text_disabled font=Tizen:weight=Normal:width=Condensed font_size=38 align=center wrap=none ellipsis=1 text_class=tizen"; + TAG + } + style { name: "tabbar_navigationbar_textblock_style"; + base: "color=#FFF color_class=toolbar_item/navigationbar/text font=Tizen:weight=Normal font_size=32 align=center wrap=none text_class=tizen"; + TAG + } + style { name: "tabbar_navigationbar_textblock_pressed_style"; + base: "color=#FFF color_class=toolbar_item/navigationbar/text_pressed font=Tizen:weight=Normal font_size=32 align=center wrap=none text_class=tizen"; + TAG + } + style { name: "tabbar_navigationbar_textblock_disabled_style"; + base: "color=#FFF color_class=toolbar_item/navigationbar/text_disabled font=Tizen:weight=Normal font_size=32 align=center wrap=none text_class=tizen"; + TAG + } + style { name: "tabbar_navigationbar_textblock_selected_style"; + base: "color=#FFF color_class=toolbar_item/navigationbar/text_selected font=Tizen:weight=Normal font_size=32 align=center wrap=none text_class=tizen"; + TAG + } + style { name: "tabbar_light_view_textblock_style"; + base: "color=#FFF color_class=toolbar_item/light_view/text font=Tizen:width=Condensed font_size=32 align=center wrap=none ellipsis=1 text_class=tizen"; + TAG + } + style { name: "tabbar_light_view_textblock_pressed_style"; + base: "color=#FFF color_class=toolbar_item/light_view/text_pressed font=Tizen:width=Condensed font_size=32 align=center wrap=none ellipsis=1 text_class=tizen"; + TAG + } + style { name: "tabbar_light_view_textblock_selected_style"; + base: "color=#FFF color_class=toolbar_item/light_view/text_selected font=Tizen:width=Condensed font_size=32 align=center wrap=none ellipsis=1 text_class=tizen"; + TAG + } + style { name: "tabbar_light_view_textblock_selected_slide_style"; + base: "color=#FFF color_class=toolbar_item/light_view/text_selected font=Tizen:width=Condensed font_size=32 align=center wrap=none text_class=tizen"; + TAG + } + style { name: "tabbar_light_view_textblock_disabled_style"; + base: "color=#FFF color_class=toolbar_item/light_view/text_disabled font=Tizen:width=Condensed font_size=32 align=center wrap=none ellipsis=1 text_class=tizen"; + TAG + } +} + +group { "elm/toolbar/base/default"; + alias: "elm/toolbar/base/tabbar"; + nomouse; + parts { + spacer { "base"; + scale; + desc { "default"; + } + } + rect { "bg_base"; + scale; + desc { "default"; + rel1.to: "base"; + rel2.to: "base"; + rel2.offset: -1 -1; + color_class: "toolbar/default/bg"; + } + } + rect { "clipper_elm.swallow.content"; + scale; + desc { "default"; + rel1.to: "base"; + rel2.to: "base"; + rel2.offset: -1 -1; + } + } + swallow { "elm.swallow.content"; + clip: "clipper_elm.swallow.content"; + scale; + mouse; + desc { "default"; + rel1.to: "base"; + rel2.to: "base"; + rel2.offset: -1 -1; + } + } + } +} + +group { "elm/toolbar/item/tabbar"; + alias: "elm/toolbar/item/default"; + images { + image: "core_tab_selectbar.#.png" COMP; + } + nomouse; + parts { + spacer { "base"; + scale; + desc { "default"; + } + } + rect { "bg_base"; + scale; + desc { "default"; + rel1.to: "base"; + rel2.to: "base"; + min: TABBAR_COMMON_DEFAULT_ITEM_SIZE_INC; + color_class: "toolbar_item/default/bg"; + } + desc { "land"; + inherit: "default"; + min: TABBAR_COMMON_LANDSCAPE_DEFAULT_ITEM_SIZE_INC; + } + desc { "scroll"; + inherit: "default"; + min: TABBAR_COMMON_SCROLL_ITEM_SIZE_INC; + } + desc { "land_scroll"; + inherit: "default"; + min: TABBAR_COMMON_LANDSCAPE_SCROLL_ITEM_SIZE_INC; + } + } + spacer { "padding_badge_top_right"; + scale; + desc { "default"; + min: TABBAR_COMMON_BADGE_TOP_RIGHT_PADDING_SIZE_INC; + align: 1.0 0.0; + fixed: 1 1; + rel1.to: "base"; + rel2.to: "base"; + rel1.relative: 1.0 0.0; + rel2.relative: 1.0 0.0; + } + } + swallow { "elm.swallow.badge"; + scale; + desc { "default"; + min: 50 50; + align: 1.0 0.0; + fixed: 1 1; + rel1.to: "padding_badge_top_right"; + rel2.to: "padding_badge_top_right"; + rel1.relative: 0.0 1.0; + rel2.relative: 0.0 1.0; + } + } + spacer { "padding_selected_line_top"; + scale; + desc { "default"; + rel1.to: "elm.text"; + rel2.to: "elm.text"; + rel1.relative: 0.0 1.0; + rel2.relative: 1.0 1.0; + fixed: 0 1; + min: TABBAR_COMMON_SELECTED_LINE_TOP_PADDING_SIZE_INC; + align: 0.5 0.0; + } + } + rect { "bg_cover"; + scale; + desc { "default"; + hid; + rel1.to: "base"; + rel2.to: "base"; + } + desc { "pressed"; + inherit: "default"; + vis; + color_class: "toolbar_item/default/effect"; + } + desc { "disabled"; + inherit: "default"; + hid; + } + } + image { "selected_line"; + scale; + desc { "default"; + rel1.to: "padding_selected_line_top"; + rel1.relative: 0.25 1.0; + rel2.to: "padding_selected_line_top"; + rel2.relative: 0.75 1.0; + image.normal: "core_tab_selectbar.#.png"; + fixed: 0 1; + align: 0.5 0.0; + min: 0 TABBAR_COMMON_SELECTED_LINE_HEIGHT_INC; + max: -1 TABBAR_COMMON_SELECTED_LINE_HEIGHT_INC; + color: 255 255 255 0; + color_class: "toolbar_item/default/underline"; + } + desc { "selected"; + inherit: "default"; + rel1.to: "padding_selected_line_top"; + rel1.relative: 0.0 1.0; + rel2.to: "padding_selected_line_top"; + rel2.relative: 1.0 1.0; + color: 255 255 255 255; + } + } + spacer { "padding_left_top"; + scale; + desc { "default"; + align: 0.0 0.0; + rel1.to: "base"; + rel2.to: "base"; + rel2.relative: 0.0 0.0; + min: 0 0; + fixed: 1 1; + } + desc { "padding_text"; + inherit: "default"; + min: TABBAR_DEFAULT_TEXT_LEFT_TOP_PADDING_SIZE_INC; + } + desc { "icon_text"; + inherit: "default"; + min: TABBAR_DEFAULT_ICON_TEXT_LEFT_TOP_PADDING_SIZE_INC; + } + desc { "icon_text_land"; + inherit: "default"; + min: TABBAR_DEFAULT_ICON_TEXT_LAND_LEFT_TOP_PADDING_SIZE_INC; + } + } + spacer { "padding_right_bottom"; + scale; + desc { "default"; + align: 1.0 1.0; + rel1.to: "base"; + rel2.to: "base"; + rel1.relative: 1.0 1.0; + min: 0 0; + fixed: 1 1; + } + desc { "padding_text"; + inherit: "default"; + min: TABBAR_DEFAULT_TEXT_RIGHT_BOTTOM_PADDING_SIZE_INC; + } + desc { "icon_text"; + inherit: "default"; + min: TABBAR_DEFAULT_ICON_TEXT_RIGHT_BOTTOM_PADDING_SIZE_INC; + } + desc { "icon_text_land"; + inherit: "default"; + min: TABBAR_DEFAULT_ICON_TEXT_LAND_RIGHT_BOTTOM_PADDING_SIZE_INC; + } + } + spacer { "padding_icon_bottom"; + scale; + desc { "default"; + min: TABBAR_DEFAULT_ICON_BOTTOM_PADDING_SIZE_INC; + fixed: 0 1; + align: 0.5 1.0; + rel1.to_y: "padding_right_bottom"; + rel1.relative: 0.0 0.0; + rel2.to_y: "padding_right_bottom"; + rel2.relative: 1.0 0.0; + } + } + swallow { "elm.swallow.icon"; + scale; + clip: "clipper_elm.swallow.icon"; + desc { "default"; + hid; + rel1.to: "base"; + rel2.to: "base"; + min: TABBAR_DEFAULT_ICON_SIZE_INC; + max: TABBAR_DEFAULT_ICON_SIZE_INC; + } + desc { "visible"; + inherit: "default"; + vis; + rel1.to: "padding_left_top"; + rel1.relative: 1.0 1.0; + rel2.to_x: "padding_right_bottom"; + rel2.to_y: "padding_icon_bottom"; + rel2.relative: 0.0 0.0; + } + desc { "visible_icon_only"; + inherit: "default"; + vis; + rel1.to: "padding_left_top"; + rel1.relative: 1.0 1.0; + rel2.to: "padding_right_bottom"; + rel2.relative: 0.0 0.0; + } + desc { "visible_land"; + inherit: "default"; + vis; + align: 1.0 0.5; + min: TABBAR_DEFAULT_ICON_LAND_SIZE_INC; + max: TABBAR_DEFAULT_ICON_LAND_SIZE_INC; + rel1 { + to_x: "padding_text_left"; + to_y: "elm.text"; + relative: 0.0 0.0; + } + rel2 { + to_x: "padding_text_left"; + to_y: "elm.text"; + relative: 0.0 1.0; + } + } + } + spacer { "padding_text_top"; + scale; + desc { "default"; + min: TABBAR_DEFAULT_TEXT_TOP_PADDING_SIZE_INC; + fixed: 0 1; + align: 0.5 0.0; + rel1.to_y: "padding_left_top"; + rel1.relative: 0.0 1.0; + rel2.to_y: "padding_left_top"; + rel2.relative: 1.0 1.0; + } + } + spacer { "padding_text_left"; + scale; + desc { "default"; + min: TABBAR_DEFAULT_TEXT_LEFT_PADDING_SIZE_INC; + fixed: 1 0; + align: 1.0 0.5; + rel1.to_x: "elm.text"; + rel1.relative: 0.0 0.0; + rel2.to_x: "elm.text"; + rel2.relative: 0.0 1.0; + } + } + textblock { "elm.text"; + scale; + clip: "clipper_elm.text"; + desc { "default"; + hid; + min: TABBAR_DEFAULT_TEXT_SIZE_INC; + max: TABBAR_DEFAULT_TEXT_SIZE_INC; + rel1.to: "padding_left_top"; + rel1.relative: 1.0 1.0; + rel2.to: "padding_right_bottom"; + rel2.relative: 0.0 0.0; + } + desc { "text_normal"; + inherit: "default"; + vis; + text { + style: "tabbar_textblock_style"; + min: 0 1; + max: 1 0; + } + } + desc { "text_pressed"; + inherit: "text_normal"; + text.style: "tabbar_textblock_pressed_style"; + } + desc { "text_selected"; + inherit: "text_normal"; + text.style: "tabbar_textblock_selected_style"; + } + desc { "text_disabled"; + inherit: "text_normal"; + text.style: "tabbar_textblock_disabled_style"; + } + desc { "icon_text"; + inherit: "default"; + min: TABBAR_DEFAULT_ICON_TEXT_SIZE_INC; + max: TABBAR_DEFAULT_ICON_TEXT_SIZE_INC; + vis; + rel1 { + to_x: "padding_left_top"; + to_y: "padding_text_top"; + relative: 1.0 1.0; + } + rel2 { + to: "padding_right_bottom"; + relative: 0.0 0.0; + } + text { + style: "tabbar_icon_textblock_style"; + min: 0 1; + max: 1 1; + } + } + desc { "icon_text_pressed"; + inherit: "icon_text"; + text.style: "tabbar_icon_textblock_pressed_style"; + } + desc { "icon_text_selected"; + inherit: "icon_text"; + text.style: "tabbar_icon_textblock_selected_style"; + } + desc { "icon_text_disabled"; + inherit: "icon_text"; + text.style: "tabbar_icon_textblock_disabled_style"; + } + desc { "icon_text_land"; + inherit: "default"; + vis; + min: TABBAR_DEFAULT_ICON_LAND_TEXT_SIZE_INC; + max: TABBAR_DEFAULT_ICON_LAND_TEXT_SIZE_INC; + text { + style: "tabbar_textblock_style"; + min: 0 1; + max: 1 1; + } + } + desc { "icon_text_land_pressed"; + inherit: "icon_text_land"; + text.style: "tabbar_textblock_pressed_style"; + } + desc { "icon_text_land_selected"; + inherit: "icon_text_land"; + text.style: "tabbar_textblock_selected_style"; + } + desc { "icon_text_land_disabled"; + inherit: "icon_text_land"; + text.style: "tabbar_textblock_disabled_style"; + } + } + spacer { "slide_text_gap"; + scale; + desc { "default"; + fixed: 1 1; + min: TABBAR_COMMON_SLIDE_TEXT_GAP 0; + max: TABBAR_COMMON_SLIDE_TEXT_GAP -1; + align: 1.0 0.5; + rel1.to: "padding_left_top"; + rel1.relative: 1.0 1.0; + rel2.to_x: "padding_left_top"; + rel2.to_y: "padding_right_bottom"; + rel2.relative: 1.0 0.0; + } + } + textblock { "elm.text.slide"; + scale; + clip: "clipper_elm.text.slide"; + desc { "default"; + fixed: 1 1; + align: 0.0 0.5; + min: TABBAR_DEFAULT_TEXT_SIZE_INC; + max: TABBAR_DEFAULT_TEXT_SIZE_INC; + rel1.to: "padding_left_top"; + rel1.relative: 1.0 1.0; + rel2.to: "padding_right_bottom"; + rel2.relative: 0.0 0.0; + text { + style: "tabbar_textblock_selected_slide_style"; + min: 1 1; + max: 1 0; + } + } + desc { "slide_begin"; + inherit: "default"; + } + desc { "slide_end"; + inherit: "default"; + align: 1.0 0.5; + rel1 { + to_x: "slide_text_gap"; + to_y: "padding_left_top"; + relative: 0.0 1.0; + } + rel2 { + to_x: "slide_text_gap"; + to_y: "padding_right_bottom"; + relative: 1.0 0.0; + } + } + desc { "icon_text"; + inherit: "default"; + min: TABBAR_DEFAULT_ICON_TEXT_SIZE_INC; + max: TABBAR_DEFAULT_ICON_TEXT_SIZE_INC; + vis; + rel1 { + to_x: "padding_left_top"; + to_y: "padding_text_top"; + relative: 1.0 1.0; + } + rel2 { + to: "padding_right_bottom"; + relative: 0.0 0.0; + } + text { + style: "tabbar_icon_textblock_selected_slide_style"; + min: 1 1; + max: 1 1; + } + } + desc { "icon_text_slide_begin"; + inherit: "icon_text"; + } + desc { "icon_text_slide_end"; + inherit: "icon_text"; + align: 1.0 0.5; + rel1 { + to_x: "slide_text_gap"; + to_y: "padding_text_top"; + relative: 0.0 1.0; + } + rel2 { + to_x: "slide_text_gap"; + to_y: "padding_right_bottom"; + relative: 1.0 0.0; + } + } + desc { "icon_text_land"; + inherit: "default"; + vis; + min: TABBAR_DEFAULT_ICON_LAND_TEXT_SIZE_INC; + max: TABBAR_DEFAULT_ICON_LAND_TEXT_SIZE_INC; + text { + style: "tabbar_textblock_selected_slide_style"; + min: 1 1; + max: 1 1; + } + } + desc { "icon_text_land_slide_begin"; + inherit: "icon_text_land"; + } + desc { "icon_text_land_slide_end"; + inherit: "icon_text_land"; + align: 1.0 0.5; + rel1 { + to_x: "slide_text_gap"; + to_y: "padding_left_top"; + relative: 0.0 1.0; + } + rel2 { + to_x: "slide_text_gap"; + to_y: "padding_right_bottom"; + relative: 1.0 0.0; + } + } + } + rect { "clipper_elm.swallow.icon"; + desc { "default"; + rel1.to: "base"; + rel2.to: "base"; + color_class: "toolbar_item/default/icon"; + } + desc { "selected"; + inherit: "default"; + color_class: "toolbar_item/default/icon_selected"; + } + desc { "pressed"; + inherit: "default"; + color_class: "toolbar_item/default/icon_pressed"; + } + desc { "disabled"; + inherit: "default"; + color_class: "toolbar_item/default/icon_disabled"; + } + } + rect { "clipper_elm.text"; + desc { "default"; + fixed: 1 1; + rel1.to: "padding_left_top"; + rel1.relative: 1.0 1.0; + rel2.to: "padding_right_bottom"; + rel2.relative: 0.0 0.0; + vis; + } + desc { "disabled"; + inherit: "default"; + } + desc { "hidden"; + inherit: "default"; + hid; + } + } + rect { "clipper_elm.text.slide"; + desc { "default"; + fixed: 1 1; + rel1.to: "padding_left_top"; + rel1.relative: 1.0 1.0; + rel2.to: "padding_right_bottom"; + rel2.relative: 0.0 0.0; + hid; + } + desc { "visible"; + inherit: "default"; + vis; + } + } + } + inherit: "elm/toolbar/item/event/default"; + script { + public selected = 0; + public pressed = 0; + public item_state = ITEM_STATE_ENABLED; + public icon_text = 0; + public mouse_down = 0; + public multi_down = 0; + public landscape = 0; + public item_text = 0; + public shrink_scroll_enabled = 0; + public g_duration = 0; + public g_stopslide = 0; + public g_timer_id = 0; + public g_anim_id = 0; + public g_tb_w = 0; + public g_tb_h = 24; + public org_text = 0; + + public get_tb_width() { + new x, y, w, h; + get_geometry(PART:"elm.text.slide", x, y, w, h); + set_int(g_tb_w, w); + set_int(g_tb_h, h); + get_geometry(PART:"clipper_elm.text.slide", x, y, w, h); + set_int(org_text, w); + } + public slide_to_end_anim(val, Float:pos) { + new slide_start_timer; + + if (get_int(g_stopslide)) return; + if (get_int(icon_text)) { + if (get_int(landscape)) + set_tween_state(PART:"elm.text.slide", pos*0.5, "icon_text_land_slide_begin", 0.0, "icon_text_land_slide_end", 0.0); + else + set_tween_state(PART:"elm.text.slide", pos*0.5, "icon_text_slide_begin", 0.0, "icon_text_slide_end", 0.0); + } else { + set_tween_state(PART:"elm.text.slide", pos*0.5, "slide_begin", 0.0, "slide_end", 0.0); + } + if (pos >= 1.0) { + slide_start_timer = get_int(g_timer_id); + if (slide_start_timer) { + cancel_timer(slide_start_timer); + set_int(g_timer_id, 0); + } + set_int(g_timer_id, timer(TABBAR_COMMON_SLIDE_INTER_DELAY_SEC, "start_slide", 0)); + set_int(g_anim_id, 0); + } + } + public slide_to_end() { + new slide_anim_id; + if (get_int(g_stopslide)) return; + slide_anim_id = get_int(g_anim_id); + if (slide_anim_id) { + cancel_anim(slide_anim_id); + set_int(g_anim_id, 0); + } + set_int(g_anim_id, anim(get_float(g_duration), "slide_to_end_anim", 0)); + } + public start_slide(val) { + new buf[256]; + new buffer[TABBAR_COMMON_SLIDE_TEXT_MAX_LENGTH]; + new Float:len; + set_int(g_stopslide, 0); + get_text(PART:"elm.text", buf, 256); + set_text(PART:"elm.text.slide", buf); + get_tb_width(); + if (!get_float(g_duration)) { + len = get_int(g_tb_w); + set_float(g_duration, len / get_int(g_tb_h) * TABBAR_COMMON_SLIDE_SPEED_WEIGHT); + } + if(get_int(g_tb_w) > get_int(org_text)) { + get_text(PART:"elm.text", buf, 256); + snprintf(buffer, TABBAR_COMMON_SLIDE_TEXT_MAX_LENGTH, "%s", buf); + strcat(buffer, TABBAR_COMMON_SLIDE_TEXT_CHAR_GAP); + strcat(buffer, buf); + strcat(buffer, TABBAR_COMMON_SLIDE_TEXT_CHAR_GAP); + set_text(PART:"elm.text.slide", buffer); + + if (get_int(icon_text)) { + if (get_int(landscape)) + set_state(PART:"elm.text.slide", "icon_text_land_slide_begin", 0.0); + else + set_state(PART:"elm.text.slide", "icon_text_slide_begin", 0.0); + } else { + set_state(PART:"elm.text.slide", "slide_begin", 0.0); + } + + set_state(PART:"clipper_elm.text", "hidden", 0.0); + set_state(PART:"clipper_elm.text.slide", "visible", 0.0); + slide_to_end(); + } + set_int(g_timer_id, 0); + } + public stop_slide() { + new slide_start_timer; + new slide_anim_id; + set_int(g_stopslide, 1); + set_float(g_duration, 0); + slide_start_timer = get_int(g_timer_id); + if (slide_start_timer) { + cancel_timer(slide_start_timer); + set_int(g_timer_id, 0); + } + slide_anim_id = get_int(g_anim_id); + if (slide_anim_id) { + cancel_anim(slide_anim_id); + set_int(g_anim_id, 0); + } + if (get_int(icon_text)) { + if (get_int(landscape)) + set_state(PART:"elm.text.slide", "icon_text_land", 0.0); + else + set_state(PART:"elm.text.slide", "icon_text", 0.0); + } else { + set_state(PART:"elm.text.slide", "default", 0.0); + } + set_state(PART:"clipper_elm.text", "default", 0.0); + set_state(PART:"clipper_elm.text.slide", "default", 0.0); + } + } + programs { + program { "on_selected"; + action: STATE_SET "selected"; + target: "clipper_elm.swallow.icon"; + after: "selected_text"; + } + program { "on_unselected"; + action: STATE_SET "default"; + target: "clipper_elm.swallow.icon"; + after: "unselected_text"; + } + program { "on_pressed_key"; + after: "on_pressed"; + } + program { "on_pressed"; + script { + if ((get_int(item_state) != ITEM_STATE_DISABLED) + && get_int(multi_down) == 0 + && get_int(mouse_down) == 0) + { + set_int(mouse_down, 1); + set_state(PART:"bg_cover", "pressed", 0.0); + if (!get_int(icon_text)) + set_state(PART:"elm.text", "text_pressed", 0.0); + else if (!get_int(landscape)) + set_state(PART:"elm.text", "icon_text_pressed", 0.0); + else + set_state(PART:"elm.text", "icon_text_land_pressed", 0.0); + set_state(PART:"clipper_elm.swallow.icon", "pressed", 0.0); + set_int(pressed, 1); + } + } + } + program { "on_unpressed_key"; + after: "on_unpressed"; + } + program { "on_unpressed"; + script { + if ((get_int(item_state) != ITEM_STATE_DISABLED) + && get_int(mouse_down) == 1) + { + set_int(mouse_down, 0); + set_int(pressed, 0); + set_state(PART:"bg_cover", "default", 0.0); + if (get_int(selected)) + { + if (!get_int(icon_text)) + set_state(PART:"elm.text", "text_selected", 0.0); + else if (!get_int(landscape)) + set_state(PART:"elm.text", "icon_text_selected", 0.0); + else + set_state(PART:"elm.text", "icon_text_land_selected", 0.0); + set_state(PART:"clipper_elm.swallow.icon", "selected", 0.0); + } + else + { + if (!get_int(icon_text)) + set_state(PART:"elm.text", "text_normal", 0.0); + else if (!get_int(landscape)) + set_state(PART:"elm.text", "icon_text", 0.0); + else + set_state(PART:"elm.text", "icon_text_land", 0.0); + set_state(PART:"clipper_elm.swallow.icon", "default", 0.0); + } + } + } + } + program { "on_clicked"; + script { + if (get_int(multi_down) == 0) { + emit("elm,action,click", "elm"); + if (get_int(item_state) != ITEM_STATE_DISABLED) + run_program(PROGRAM:"touch_sound"); + } + } + } + program { "on_mouse_in"; + script { + if (get_int(multi_down) == 0) + emit("elm,mouse,in", "elm"); + } + } + program { "on_mouse_out"; + script { + if ((get_int(multi_down) == 0) && (get_int(mouse_down) == 0)) + emit("elm,mouse,out", "elm"); + } + } + program { "on_enabled"; + script { + set_int(item_state, ITEM_STATE_ENABLED); + stop_slide(); + set_state(PART:"bg_cover", "default", 0.0); + if (!get_int(icon_text)) { + if (!get_int(selected)) + set_state(PART:"elm.text", "text_normal", 0.0); + else + set_state(PART:"elm.text", "text_selected", 0.0); + } else if (!get_int(landscape)) { + if (!get_int(selected)) + set_state(PART:"elm.text", "icon_text", 0.0); + else + set_state(PART:"elm.text", "icon_text_selected", 0.0); + } else { + if (!get_int(selected)) + set_state(PART:"elm.text", "icon_text_land", 0.0); + else + set_state(PART:"elm.text", "icon_text_land_selected", 0.0); + } + set_state(PART:"clipper_elm.text", "default", 0.0); + set_state(PART:"clipper_elm.swallow.icon", "default", 0.0); + if (get_int(selected)) + set_int(g_timer_id, timer(TABBAR_COMMON_SLIDE_START_DELAY_SEC, "start_slide", 0)); + } + } + program { "on_disabled"; + script { + set_int(item_state, ITEM_STATE_DISABLED); + stop_slide(); + set_state(PART:"bg_cover", "disabled", 0.0); + if (!get_int(icon_text)) + set_state(PART:"elm.text", "text_disabled", 0.0); + else if (!get_int(landscape)) + set_state(PART:"elm.text", "icon_text_disabled", 0.0); + else + set_state(PART:"elm.text", "icon_text_land_disabled", 0.0); + set_state(PART:"clipper_elm.text", "disabled", 0.0); + set_state(PART:"clipper_elm.swallow.icon", "disabled", 0.0); + } + } + program { "on_multi_down"; + script { + set_int(multi_down, 1); + } + } + program { "on_multi_cancel"; + script { + set_int(multi_down, 0); + } + } + program { "on_visible_text"; + script { + set_int(item_text, 1); + stop_slide(); + if (!get_int(icon_text)) + { + if (get_int(selected)) + set_state(PART:"elm.text", "text_selected", 0.0); + else + set_state(PART:"elm.text", "text_normal", 0.0); + set_state(PART:"padding_left_top", "padding_text", 0.0); + set_state(PART:"padding_right_bottom", "padding_text", 0.0); + } + else + { + if (!get_int(landscape)) + { + if (get_int(selected)) + set_state(PART:"elm.text", "icon_text_selected", 0.0); + else + set_state(PART:"elm.text", "icon_text", 0.0); + set_state(PART:"padding_left_top", "icon_text", 0.0); + set_state(PART:"padding_right_bottom", "icon_text", 0.0); + set_state(PART:"elm.swallow.icon", "visible", 0.0); + } + else + { + if (get_int(selected)) + set_state(PART:"elm.text", "icon_text_land_selected", 0.0); + else + set_state(PART:"elm.text", "icon_text_land", 0.0); + set_state(PART:"padding_left_top", "icon_text_land", 0.0); + set_state(PART:"padding_right_bottom", "icon_text_land", 0.0); + set_state(PART:"elm.swallow.icon", "visible_land", 0.0); + } + } + if (get_int(selected)) + set_int(g_timer_id, timer(TABBAR_COMMON_SLIDE_START_DELAY_SEC, "start_slide", 0)); + } + } + program { "on_hidden_text"; + script { + set_int(item_text, 0); + stop_slide(); + set_state(PART:"elm.text", "default", 0.0); + } + } + program { "on_visible_icon"; + script { + set_int(icon_text, 1); + stop_slide(); + if (!get_int(landscape)) + { + if (get_int(item_text)) + { + set_state(PART:"elm.swallow.icon", "visible", 0.0); + set_state(PART:"elm.text", "icon_text", 0.0); + } + else + { + set_state(PART:"elm.swallow.icon", "visible_icon_only", 0.0); + } + set_state(PART:"padding_left_top", "icon_text", 0.0); + set_state(PART:"padding_right_bottom", "icon_text", 0.0); + } + else + { + if (get_int(item_text)) + { + set_state(PART:"elm.swallow.icon", "visible_land", 0.0); + set_state(PART:"elm.text", "icon_text_land", 0.0); + } + else + { + set_state(PART:"elm.swallow.icon", "visible_icon_only", 0.0); + } + set_state(PART:"padding_left_top", "icon_text_land", 0.0); + set_state(PART:"padding_right_bottom", "icon_text_land", 0.0); + } + if (get_int(selected)) + set_int(g_timer_id, timer(TABBAR_COMMON_SLIDE_START_DELAY_SEC, "start_slide", 0)); + } + } + program { "on_hidden_icon"; + script { + set_int(icon_text, 0); + stop_slide(); + set_state(PART:"elm.swallow.icon", "default", 0.0); + set_state(PART:"elm.text", "text_normal", 0.0); + set_state(PART:"padding_left_top", "padding_text", 0.0); + set_state(PART:"padding_right_bottom", "padding_text", 0.0); + if (get_int(selected)) + set_int(g_timer_id, timer(TABBAR_COMMON_SLIDE_START_DELAY_SEC, "start_slide", 0)); + } + } + program { "on_tab_number_item"; + script { + if (get_int(landscape)) { + if (get_int(shrink_scroll_enabled)) + set_state(PART:"bg_base", "land_scroll", 0.0); + else + set_state(PART:"bg_base", "land", 0.0); + } else { + if (get_int(shrink_scroll_enabled)) + set_state(PART:"bg_base", "scroll", 0.0); + else + set_state(PART:"bg_base", "default", 0.0); + } + } + } + program { "selected_text"; + script{ + set_int(selected, 1); + stop_slide(); + if (!get_int(icon_text)) + set_state(PART:"elm.text", "text_selected", 0.0); + else if (!get_int(landscape)) + set_state(PART:"elm.text", "icon_text_selected", 0.0); + else + set_state(PART:"elm.text", "icon_text_land_selected", 0.0); + set_int(g_timer_id, timer(TABBAR_COMMON_SLIDE_START_DELAY_SEC, "start_slide", 0)); + } + after: "selected_line_anim"; + } + program { "unselected_text"; + script{ + set_int(selected, 0); + if (!get_int(icon_text)) + set_state(PART:"elm.text", "text_normal", 0.0); + else if (!get_int(landscape)) + set_state(PART:"elm.text", "icon_text", 0.0); + else + set_state(PART:"elm.text", "icon_text_land", 0.0); + stop_slide(); + } + after: "unselected_line_anim"; + } + program { "selected_line_anim"; + action: STATE_SET "selected"; + transition: GLIDE_EASE_OUT(TABBAR_COMMON_SELECTED_LINE_SELECT_ANIM_TIME_INC); + target: "selected_line"; + } + program { "unselected_line_anim"; + action: STATE_SET "default"; + transition: GLIDE_EASE_OUT(TABBAR_COMMON_SELECTED_LINE_UNSELECT_ANIM_TIME_INC); + target: "selected_line"; + } + program { "touch_sound"; + action: RUN_PLUGIN "touch_sound"; + } + program { "on_orient_90"; + after: "landscape_mode"; + } + program { "on_orient_270"; + after: "landscape_mode"; + } + program { "landscape_mode"; + script { + if (!get_int(landscape)) { + set_int(landscape, 1); + stop_slide(); + if (get_int(shrink_scroll_enabled)) + set_state(PART:"bg_base", "land_scroll", 0.0); + else + set_state(PART:"bg_base", "land", 0.0); + + if (get_int(icon_text)) { + set_state(PART:"padding_left_top", "icon_text_land", 0.0); + set_state(PART:"padding_right_bottom", "icon_text_land", 0.0); + set_state(PART:"elm.swallow.icon", "visible_land", 0.0); + if (get_int(selected)) + { + set_state(PART:"elm.text", "icon_text_land_selected", 0.0); + set_state(PART:"clipper_elm.swallow.icon", "selected", 0.0); + } + else if (get_int(pressed)) + { + set_state(PART:"elm.text", "icon_text_land_pressed", 0.0); + set_state(PART:"clipper_elm.swallow.icon", "pressed", 0.0); + } + else if (get_int(item_state)) + { + set_state(PART:"elm.text", "icon_text_land", 0.0); + set_state(PART:"clipper_elm.swallow.icon", "disabled", 0.0); + } + else + { + set_state(PART:"elm.text", "icon_text_land", 0.0); + set_state(PART:"clipper_elm.swallow.icon", "default", 0.0); + } + } + if (get_int(selected)) + set_int(g_timer_id, timer(TABBAR_COMMON_SLIDE_START_DELAY_SEC, "start_slide", 0)); + } + } + } + program { "on_orient_0"; + after: "portrait_mode"; + } + program { "on_orient_180"; + after: "portrait_mode"; + } + program { "portrait_mode"; + script { + if (get_int(landscape)) { + set_int(landscape, 0); + stop_slide(); + if (get_int(shrink_scroll_enabled)) + set_state(PART:"bg_base", "scroll", 0.0); + else + set_state(PART:"bg_base", "default", 0.0); + + if (get_int(icon_text)) { + set_state(PART:"padding_left_top", "icon_text", 0.0); + set_state(PART:"padding_right_bottom", "icon_text", 0.0); + set_state(PART:"elm.swallow.icon", "visible", 0.0); + if (get_int(selected)) + { + set_state(PART:"elm.text", "icon_text_selected", 0.0); + set_state(PART:"clipper_elm.swallow.icon", "selected", 0.0); + } + else if (get_int(pressed)) + { + set_state(PART:"elm.text", "icon_text_pressed", 0.0); + set_state(PART:"clipper_elm.swallow.icon", "pressed", 0.0); + } + else if (get_int(item_state)) + { + set_state(PART:"elm.text", "icon_text", 0.0); + set_state(PART:"clipper_elm.swallow.icon", "disabled", 0.0); + } + else + { + set_state(PART:"elm.text", "icon_text", 0.0); + set_state(PART:"clipper_elm.swallow.icon", "default", 0.0); + } + } + if (get_int(selected)) + set_int(g_timer_id, timer(TABBAR_COMMON_SLIDE_START_DELAY_SEC, "start_slide", 0)); + } + } + } + program { "on_shrink_scroll"; + script { + set_int(shrink_scroll_enabled, 1); + if (get_int(landscape)) + set_state(PART:"bg_base", "land_scroll", 0.0); + else + set_state(PART:"bg_base", "scroll", 0.0); + } + } + program { "on_shrink_expand"; + after: "shrink_scroll_disabled"; + } + program { "on_shrink_menu"; + after: "shrink_scroll_disabled"; + } + program { "on_shrink_hide"; + after: "shrink_scroll_disabled"; + } + program { "on_shrink_default"; + after: "shrink_scroll_disabled"; + } + program { "shrink_scroll_disabled"; + script { + set_int(shrink_scroll_enabled, 0); + if (get_int(landscape)) + set_state(PART:"bg_base", "land", 0.0); + else + set_state(PART:"bg_base", "default", 0.0); + } + } + program { "resize"; + signal: "resize"; + source: "*"; + script { + stop_slide(); + if (get_int(selected)) + set_int(g_timer_id, timer(TABBAR_COMMON_SLIDE_START_DELAY_SEC, "start_slide", 0)); + } + } + program { "on_order_item_default"; + } + program { "on_order_item_first"; + } + program { "on_order_item_last"; + } + } +} + +group { "elm/toolbar/object/default"; + parts { + swallow { "elm.swallow.object"; // object group + desc { "default"; + } + } + } +} + +group { "elm/toolbar/base/tabbar_with_title"; + parts { + spacer { "base"; + scale; + desc { "default"; + } + } + rect { "base_bg"; + scale; + desc { "default"; + rel1.to: "base"; + rel2.to: "base"; + rel2.offset: -1 -1; + color_class: "toolbar/tabbar_with_title/bg"; + } + } + rect { "clipper_content"; + nomouse; + scale; + desc { "default"; + rel1.to: "base"; + rel2.to: "base"; + rel2.offset: -1 -1; + } + } + swallow { "elm.swallow.content"; + clip: "clipper_content"; + scale; + desc { "default"; + rel1.to: "base"; + rel2.to: "base"; + rel2.offset: -1 -1; + } + } + } +} + +group { "elm/toolbar/base/light_view"; + inherit: "elm/toolbar/base/tabbar_with_title"; + parts { + rect { "base_bg"; + scale; + desc { "default"; + rel1.to: "base"; + rel2.to: "base"; + rel2.offset: -1 -1; + color_class: "toolbar/light_view/bg"; + } + } + } +} + +group { "elm/toolbar/item/tabbar_with_title"; + images { + image: "core_tab_selectbar.#.png" COMP; + } + nomouse; + parts { + spacer { "base"; + scale; + desc { "default"; + } + } + rect { "bg_base"; + scale; + desc { "default"; + rel1.to: "base"; + rel2.to: "base"; + min: TABBAR_COMMON_DEFAULT_ITEM_SIZE_INC; + color_class: "toolbar_item/tabbar_with_title/bg"; + } + desc { "land"; + inherit: "default"; + min: TABBAR_COMMON_LANDSCAPE_DEFAULT_ITEM_SIZE_INC; + } + desc { "scroll"; + inherit: "default"; + min: TABBAR_COMMON_SCROLL_ITEM_SIZE_INC; + } + desc { "land_scroll"; + inherit: "default"; + min: TABBAR_COMMON_LANDSCAPE_SCROLL_ITEM_SIZE_INC; + } + } + rect { "bg_cover"; + scale; + desc { "default"; + rel1.to: "base"; + rel2.to: "base"; + hid; + } + desc { "pressed"; + inherit: "default"; + vis; + color_class: "toolbar_item/tabbar_with_title/effect"; + } + desc { "disabled"; + inherit: "default"; + hid; + } + desc { "selected"; + inherit: "default"; + hid; + } + } + spacer { "padding_selected_line_top"; + scale; + desc { "default"; + rel1 { + to: "elm.text"; + relative: 0.0 1.0; + } + rel2 { + to: "elm.text"; + relative: 1.0 1.0; + } + fixed: 0 1; + min: TABBAR_COMMON_SELECTED_LINE_TOP_PADDING_SIZE_INC; + align: 0.5 0.0; + } + } + image { "selected_line"; + scale; + desc { "default"; + min: 0 TABBAR_COMMON_SELECTED_LINE_HEIGHT_INC; + max: 0 TABBAR_COMMON_SELECTED_LINE_HEIGHT_INC; + rel1 { + to: "padding_selected_line_top"; + relative: 0.0 1.0; + } + rel2 { + to: "padding_selected_line_top"; + relative: 1.0 1.0; + } + image.normal: "core_tab_selectbar.#.png"; + fixed: 0 1; + color: 255 255 255 0; + color_class: "toolbar_item/tabbar_with_title/underline"; + align: 0.5 0.0; + } + desc { "selected"; + inherit: "default"; + max: -1 TABBAR_COMMON_SELECTED_LINE_HEIGHT_INC; + color: 255 255 255 255; + } + } + spacer { "padding_left_top"; + scale; + desc { "default"; + align: 0.0 0.0; + rel2.relative: 0.0 0.0; + min: 0 0; + fixed: 1 1; + } + desc { "padding_text"; + inherit: "default"; + min: TABBAR_TITLE_TEXT_LEFT_TOP_PADDING_SIZE_INC; + } + desc { "icon_text"; + inherit: "default"; + min: TABBAR_TITLE_ICON_TEXT_LAND_LEFT_TOP_PADDING_SIZE_INC; + } + } + spacer { "padding_right_bottom"; + scale; + desc { "default"; + align: 1.0 1.0; + rel1.relative: 1.0 1.0; + fixed: 1 1; + } + desc { "padding_text"; + inherit: "default"; + min: TABBAR_TITLE_TEXT_RIGHT_BOTTOM_PADDING_SIZE_INC; + } + desc { "icon_text"; + inherit: "default"; + min: TABBAR_TITLE_ICON_TEXT_LAND_RIGHT_BOTTOM_PADDING_SIZE_INC; + } + } + spacer { "padding_icon_text"; + scale; + desc { "default"; + min: 0 0; + fixed: 1 0; + align: 1.0 0.5; + rel1 { + to_x: "selected_line"; + relative: 0.0 0.0; + } + rel2 { + to_x: "selected_line"; + relative: 0.0 1.0; + } + } + desc { "visible"; + inherit: "default"; + } + } + spacer { "padding_text_left"; + scale; + desc { "default"; + min: TABBAR_TITLE_TEXT_LEFT_PADDING_SIZE_INC; + fixed: 1 0; + align: 1.0 0.5; + rel1 { + to_x: "elm.text"; + relative: 0.0 0.0; + } + rel2 { + to_x: "elm.text"; + relative: 0.0 1.0; + } + } + } + swallow { "elm.swallow.icon"; + scale; + clip: "clipper_elm.swallow.icon"; + desc { "default"; + hid; + min: TABBAR_TITLE_ICON_SIZE_INC; + max: TABBAR_TITLE_ICON_SIZE_INC; + fixed: 1 1; + } + desc { "visible"; + inherit: "default"; + vis; + align: 1.0 1.0; + rel1 { + to_x: "padding_text_left"; + to_y: "elm.text"; + relative: 0.0 1.0; + } + rel2 { + to_x: "padding_text_left"; + to_y: "elm.text"; + relative: 0.0 1.0; + } + } + desc { "visible_icon_only"; + inherit: "default"; + vis; + rel1 { + to: "padding_left_top"; + relative: 1.0 1.0; + } + rel2 { + to: "padding_right_bottom"; + relative: 0.0 0.0; + } + } + } + textblock { "elm.text"; + scale; + clip: "clipper_elm.text"; + desc { "default"; + hid; + min: TABBAR_TITLE_TEXT_SIZE_INC; + max: TABBAR_TITLE_TEXT_SIZE_INC; + rel1 { + to: "padding_left_top"; + relative: 1.0 1.0; + } + rel2 { + to: "padding_right_bottom"; + relative: 0.0 0.0; + } + fixed: 1 1; + } + desc { "text_normal"; + inherit: "default"; + vis; + text { + style: "tabbar_with_title_textblock_style"; + min: 0 1; + max: 1 0; + } + } + desc { "text_pressed"; + inherit: "text_normal"; + text.style: "tabbar_with_title_textblock_pressed_style"; + } + desc { "text_selected"; + inherit: "text_normal"; + text.style: "tabbar_with_title_textblock_selected_style"; + } + desc { "text_disabled"; + inherit: "text_normal"; + text.style: "tabbar_with_title_textblock_disabled_style"; + } + } + spacer { "slide_text_gap"; + scale; + desc { "default"; + fixed: 1 1; + min: TABBAR_COMMON_SLIDE_TEXT_GAP 0; + max: TABBAR_COMMON_SLIDE_TEXT_GAP -1; + align: 1.0 0.5; + rel1.relative: 0.0 0.0; + rel2.relative: 0.0 1.0; + rel1 { + to: "padding_left_top"; + relative: 1.0 1.0; + } + rel2 { + to_x: "padding_left_top"; + to_y: "padding_right_bottom"; + relative: 1.0 0.0; + } + } + } + textblock { "elm.text.slide"; + scale; + clip: "clipper_elm.text.slide"; + desc { "default"; + fixed: 1 1; + align: 0.0 0.5; + min: TABBAR_TITLE_TEXT_SIZE_INC; + max: TABBAR_TITLE_TEXT_SIZE_INC; + rel1 { + to: "padding_left_top"; + relative: 1.0 1.0; + } + rel2 { + to: "padding_right_bottom"; + relative: 0.0 0.0; + } + text { + style: "tabbar_with_title_textblock_selected_slide_style"; + min: 1 1; + max: 1 0; + } + } + desc { "slide_begin"; + inherit: "default"; + } + desc { "slide_end"; + inherit: "default"; + align: 1.0 0.5; + rel1 { + to_x: "slide_text_gap"; + to_y: "padding_left_top"; + relative: 0.0 1.0; + } + rel2 { + to_x: "slide_text_gap"; + to_y: "padding_right_bottom"; + relative: 1.0 0.0; + } + } + } + rect { "clipper_elm.swallow.icon"; + desc { "default"; + color_class: "toolbar_item/tabbar_with_title/icon"; + } + desc { "selected"; + inherit: "default"; + color_class: "toolbar_item/tabbar_with_title/icon_selected"; + } + desc { "pressed"; + inherit: "default"; + color_class: "toolbar_item/tabbar_with_title/icon_pressed"; + } + desc { "disabled"; + inherit: "default"; + color_class: "toolbar_item/tabbar_with_title/icon_disabled"; + } + } + rect { "clipper_elm.text"; + desc { "default"; + fixed: 1 1; + rel1 { + to: "padding_left_top"; + relative: 1.0 1.0; + } + rel2 { + to: "padding_right_bottom"; + relative: 0.0 0.0; + } + vis; + } + desc { "disabled"; + inherit: "default"; + } + desc { "hidden"; + inherit: "default"; + hid; + } + } + rect { "clipper_elm.text.slide"; + desc { "default"; + fixed: 1 1; + rel1 { + to: "padding_left_top"; + relative: 1.0 1.0; + } + rel2 { + to: "padding_right_bottom"; + relative: 0.0 0.0; + } + hid; + } + desc { "visible"; + inherit: "default"; + vis; + } + } + } + inherit: "elm/toolbar/item/event/default"; + script { + public selected = 0; + public pressed = 0; + public item_state = ITEM_STATE_ENABLED; + public icon_text = 0; + public mouse_down = 0; + public multi_down = 0; + public landscape = 0; + public item_text = 0; + public shrink_scroll_enabled = 0; + public g_duration = 0; + public g_stopslide = 0; + public g_timer_id = 0; + public g_anim_id = 0; + public g_tb_w = 0; + public g_tb_h = 24; + public org_text = 0; + + public get_tb_width() { + new x, y, w, h; + get_geometry(PART:"elm.text.slide", x, y, w, h); + set_int(g_tb_w, w); + set_int(g_tb_h, h); + get_geometry(PART:"clipper_elm.text.slide", x, y, w, h); + set_int(org_text, w); + } + public slide_to_end_anim(val, Float:pos) { + new slide_start_timer; + + if (get_int(g_stopslide)) return; + set_tween_state(PART:"elm.text.slide", pos*0.5, "slide_begin", 0.0, "slide_end", 0.0); + + if (pos >= 1.0) { + slide_start_timer = get_int(g_timer_id); + if (slide_start_timer) { + cancel_timer(slide_start_timer); + set_int(g_timer_id, 0); + } + set_int(g_timer_id, timer(TABBAR_COMMON_SLIDE_INTER_DELAY_SEC, "start_slide", 0)); + set_int(g_anim_id, 0); + } + } + public slide_to_end() { + new slide_anim_id; + if (get_int(g_stopslide)) return; + slide_anim_id = get_int(g_anim_id); + if (slide_anim_id) { + cancel_anim(slide_anim_id); + set_int(g_anim_id, 0); + } + set_int(g_anim_id, anim(get_float(g_duration), "slide_to_end_anim", 0)); + } + public start_slide(val) { + new buf[256]; + new buffer[TABBAR_COMMON_SLIDE_TEXT_MAX_LENGTH]; + new Float:len; + set_int(g_stopslide, 0); + get_text(PART:"elm.text", buf, 256); + set_text(PART:"elm.text.slide", buf); + get_tb_width(); + if (!get_float(g_duration)) { + len = get_int(g_tb_w); + set_float(g_duration, len / get_int(g_tb_h) * TABBAR_COMMON_SLIDE_SPEED_WEIGHT); + } + if(get_int(g_tb_w) > get_int(org_text)) { + get_text(PART:"elm.text", buf, 256); + snprintf(buffer, TABBAR_COMMON_SLIDE_TEXT_MAX_LENGTH, "%s", buf); + strcat(buffer, TABBAR_COMMON_SLIDE_TEXT_CHAR_GAP); + strcat(buffer, buf); + strcat(buffer, TABBAR_COMMON_SLIDE_TEXT_CHAR_GAP); + set_text(PART:"elm.text.slide", buffer); + + set_state(PART:"elm.text.slide", "slide_begin", 0.0); + + set_state(PART:"clipper_elm.text", "hidden", 0.0); + set_state(PART:"clipper_elm.text.slide", "visible", 0.0); + slide_to_end(); + } + set_int(g_timer_id, 0); + } + public stop_slide() { + new slide_start_timer; + new slide_anim_id; + set_int(g_stopslide, 1); + set_float(g_duration, 0); + slide_start_timer = get_int(g_timer_id); + if (slide_start_timer) { + cancel_timer(slide_start_timer); + set_int(g_timer_id, 0); + } + slide_anim_id = get_int(g_anim_id); + if (slide_anim_id) { + cancel_anim(slide_anim_id); + set_int(g_anim_id, 0); + } + set_state(PART:"elm.text.slide", "default", 0.0); + set_state(PART:"clipper_elm.text", "default", 0.0); + set_state(PART:"clipper_elm.text.slide", "default", 0.0); + } + } + programs { + program { "on_selected"; + action: STATE_SET "selected"; + target: "clipper_elm.swallow.icon"; + after: "selected_text"; + } + program { "on_unselected"; + action: STATE_SET "default"; + target: "clipper_elm.swallow.icon"; + after: "unselected_text"; + } + program { "on_pressed_key"; + after: "on_pressed"; + } + program { "on_pressed"; + script { + if ((get_int(item_state) != ITEM_STATE_DISABLED) + && get_int(multi_down) == 0 + && get_int(mouse_down) == 0) + { + set_int(mouse_down, 1); + set_state(PART:"bg_cover", "pressed", 0.0); + set_state(PART:"elm.text", "text_pressed", 0.0); + set_state(PART:"clipper_elm.swallow.icon", "pressed", 0.0); + set_int(pressed, 1); + } + } + } + program { "on_unpressed_key"; + after: "on_unpressed"; + } + program { "on_unpressed"; + script { + if ((get_int(item_state) != ITEM_STATE_DISABLED) + && get_int(mouse_down) == 1) + { + set_int(mouse_down, 0); + set_int(pressed, 0); + set_state(PART:"bg_cover", "default", 0.0); + if (get_int(selected)) + { + set_state(PART:"elm.text", "text_selected", 0.0); + set_state(PART:"clipper_elm.swallow.icon", "selected", 0.0); + } + else + { + set_state(PART:"elm.text", "text_normal", 0.0); + set_state(PART:"clipper_elm.swallow.icon", "default", 0.0); + } + } + } + } + program { "on_clicked"; + script { + if (get_int(multi_down) == 0) { + emit("elm,action,click", "elm"); + if (get_int(item_state) != ITEM_STATE_DISABLED) + run_program(PROGRAM:"touch_sound"); + } + } + } + program { "on_mouse_in"; + script { + if (get_int(multi_down) == 0) + emit("elm,mouse,in", "elm"); + } + } + program { "on_mouse_out"; + script { + if ((get_int(multi_down) == 0) && (get_int(mouse_down) == 0)) + emit("elm,mouse,out", "elm"); + } + } + program { "selected_text"; + script{ + set_int(selected, 1); + stop_slide(); + set_state(PART:"elm.text", "text_selected", 0.0); + if (get_int(selected)) + set_int(g_timer_id, timer(TABBAR_COMMON_SLIDE_START_DELAY_SEC, "start_slide", 0)); + } + after: "selected_line_anim"; + } + program { "selected_line_anim"; + action: STATE_SET "selected"; + transition: GLIDE_EASE_OUT(TABBAR_COMMON_SELECTED_LINE_SELECT_ANIM_TIME_INC); + target: "selected_line"; + } + program { "unselected_text"; + script{ + set_int(selected, 0); + set_state(PART:"elm.text", "text_normal", 0.0); + stop_slide(); + } + after: "unselected_line_anim"; + } + program { "unselected_line_anim"; + action: STATE_SET "default"; + transition: GLIDE_EASE_OUT(TABBAR_COMMON_SELECTED_LINE_UNSELECT_ANIM_TIME_INC); + target: "selected_line"; + } + program { "touch_sound"; + action: RUN_PLUGIN "touch_sound"; + } + program { "on_enabled"; + script { + set_int(item_state, ITEM_STATE_ENABLED); + stop_slide(); + set_state(PART:"bg_cover", "default", 0.0); + if (!get_int(selected)) + set_state(PART:"elm.text", "text_normal", 0.0); + else + set_state(PART:"elm.text", "text_selected", 0.0); + set_state(PART:"clipper_elm.text", "default", 0.0); + set_state(PART:"clipper_elm.swallow.icon", "default", 0.0); + if (get_int(selected)) + set_int(g_timer_id, timer(TABBAR_COMMON_SLIDE_START_DELAY_SEC, "start_slide", 0)); + } + } + program { "on_disabled"; + script { + set_int(item_state, ITEM_STATE_DISABLED); + stop_slide(); + set_state(PART:"bg_cover", "disabled", 0.0); + set_state(PART:"elm.text", "text_disabled", 0.0); + set_state(PART:"clipper_elm.text", "disabled", 0.0); + set_state(PART:"clipper_elm.swallow.icon", "disabled", 0.0); + } + } + program { "on_multi_down"; + script { + set_int(multi_down, 1); + } + } + program { "on_multi_cancel"; + script { + set_int(multi_down, 0); + } + } + program { "on_visible_text"; + script { + set_int(item_text, 1); + stop_slide(); + if (!get_int(selected)) + set_state(PART:"elm.text", "text_normal", 0.0); + else + set_state(PART:"elm.text", "text_selected", 0.0); + if (!get_int(icon_text)) + { + set_state(PART:"padding_left_top", "padding_text", 0.0); + set_state(PART:"padding_right_bottom", "padding_text", 0.0); + } + else + { + set_state(PART:"elm.swallow.icon", "visible", 0.0); + set_state(PART:"padding_left_top", "icon_text", 0.0); + set_state(PART:"padding_right_bottom", "icon_text", 0.0); + } + if (get_int(selected)) + set_int(g_timer_id, timer(TABBAR_COMMON_SLIDE_START_DELAY_SEC, "start_slide", 0)); + } + } + program { "on_hidden_text"; + script { + set_int(item_text, 0); + stop_slide(); + set_state(PART:"elm.text", "default", 0.0); + } + } + program { "on_visible_icon"; + script { + set_int(icon_text, 1); + stop_slide(); + if (get_int(item_text)) + set_state(PART:"elm.swallow.icon", "visible", 0.0); + else + set_state(PART:"elm.swallow.icon", "visible_icon_only", 0.0); + set_state(PART:"padding_left_top", "icon_text", 0.0); + set_state(PART:"padding_right_bottom", "icon_text", 0.0); + if (get_int(selected)) + set_int(g_timer_id, timer(TABBAR_COMMON_SLIDE_START_DELAY_SEC, "start_slide", 0)); + } + } + program { "on_hidden_icon"; + signal: "elm,state,icon,hidden"; + source: "elm"; + script { + set_int(icon_text, 0); + stop_slide(); + if (!get_int(selected)) + set_state(PART:"elm.text", "text_normal", 0.0); + else + set_state(PART:"elm.text", "text_selected", 0.0); + set_state(PART:"elm.swallow.icon", "default", 0.0); + set_state(PART:"padding_left_top", "padding_text", 0.0); + set_state(PART:"padding_right_bottom", "padding_text", 0.0); + if (get_int(selected)) + set_int(g_timer_id, timer(TABBAR_COMMON_SLIDE_START_DELAY_SEC, "start_slide", 0)); + } + } + program { "on_tab_number_item"; + script { + if (get_int(landscape)) { + if (get_int(shrink_scroll_enabled)) + set_state(PART:"bg_base", "land_scroll", 0.0); + else + set_state(PART:"bg_base", "land", 0.0); + } else { + if (get_int(shrink_scroll_enabled)) + set_state(PART:"bg_base", "scroll", 0.0); + else + set_state(PART:"bg_base", "default", 0.0); + } + } + } + program { "on_orient_90"; + after: "landscape_mode"; + } + program { "on_orient_270"; + after: "landscape_mode"; + } + program { "landscape_mode"; + script { + if (!get_int(landscape)) { + set_int(landscape, 1); + stop_slide(); + if (get_int(shrink_scroll_enabled)) + set_state(PART:"bg_base", "land_scroll", 0.0); + else + set_state(PART:"bg_base", "land", 0.0); + if (get_int(selected)) + set_int(g_timer_id, timer(TABBAR_COMMON_SLIDE_START_DELAY_SEC, "start_slide", 0)); + } + } + } + program { "on_orient_0"; + after: "portrait_mode"; + } + program { "on_orient_180"; + after: "portrait_mode"; + } + program { "portrait_mode"; + script { + if (get_int(landscape)) { + set_int(landscape, 0); + stop_slide(); + if (get_int(shrink_scroll_enabled)) + set_state(PART:"bg_base", "scroll", 0.0); + else + set_state(PART:"bg_base", "default", 0.0); + if (get_int(selected)) + set_int(g_timer_id, timer(TABBAR_COMMON_SLIDE_START_DELAY_SEC, "start_slide", 0)); + } + } + } + program { "on_shrink_scroll"; + script { + set_int(shrink_scroll_enabled, 1); + if (get_int(landscape)) + set_state(PART:"bg_base", "land_scroll", 0.0); + else + set_state(PART:"bg_base", "scroll", 0.0); + } + } + program { "on_shrink_expand"; + after: "shrink_scroll_disabled"; + } + program { "on_shrink_menu"; + after: "shrink_scroll_disabled"; + } + program { "on_shrink_hide"; + after: "shrink_scroll_disabled"; + } + program { "on_shrink_default"; + after: "shrink_scroll_disabled"; + } + program { "shrink_scroll_disabled"; + script { + set_int(shrink_scroll_enabled, 0); + if (get_int(landscape)) + set_state(PART:"bg_base", "land", 0.0); + else + set_state(PART:"bg_base", "default", 0.0); + } + } + program { "resize"; + signal: "resize"; + source: "*"; + script { + stop_slide(); + if (get_int(selected)) + set_int(g_timer_id, timer(TABBAR_COMMON_SLIDE_START_DELAY_SEC, "start_slide", 0)); + } + } + program { "on_order_item_default"; + } + program { "on_order_item_first"; + } + program { "on_order_item_last"; + } + } +} + +group { "elm/toolbar/base/navigationbar"; + parts { + rect { "base"; + scale; + desc { "default"; + min: 0 TOOLBAR_NAVI_HEIGHT_INC; + color_class: "toolbar/navigationbar/bg"; + } + } + spacer { "padding_left"; + type: SPACER; + nomouse; + scale; + desc { "default"; + min: TOOLBAR_NAVI_PADDING_INC 0; + fixed: 1 0; + rel1.to: "base"; + rel2.relative: 0.0 1.0; + rel2.to: "base"; + align: 0.0 0.0; + } + desc { "hidden"; + inherit: "default"; + min: 0 0; + } + } + rect { "divider"; + nomouse; + desc { "default"; + min: 0 TOOLBAR_NAVI_DIVIDER_HEIGHT_INC; + fixed: 0 1; + align: 0.0 0.0; + rel1.to: "base"; + rel2.relative: 1.0 0.0; + rel2.to: "base"; + color_class: "toolbar/navigationbar/divider"; + } + } + rect { "clipper_elm.swallow.content"; + nomouse; + scale; + desc { "default"; + rel1.to: "base"; + rel2.to: "base"; + rel2.offset: -1 -1; + } + } + swallow { "elm.swallow.content"; + clip: "clipper_elm.swallow.content"; + desc { "default"; + rel1 { + relative: 1.0 1.0; + to_x: "padding_left"; + to_y: "divider"; + } + rel2.to: "base"; + } + } + } +} + +group { "elm/toolbar/item/navigationbar"; + images { + set { + name: "core_navigation_bar_bg"; + image { + image: "core_navigation_bar_bg.png" COMP; + } + } + set { + name: "core_navigation_bar_icon_arrow"; + image { + image: "core_navigation_bar_icon_arrow.png" COMP; + } + } + image: "core_navi_press.#.png" COMP; + } + data.item: "transition_animation_on" "0"; + nomouse; + parts { + rect { "bg_base"; + scale; + desc { "default"; + color_class: "toolbar_item/navigationbar/bg"; + } + } + spacer { "padding_icon_arrow"; + scale; + desc { "default"; + min: TOOLBAR_NAVI_ICON_ARROW_WIDTH_INC 0; + fixed: 1 0; + rel1.relative: 1.0 0.0; + rel1.to: "bg_base"; + rel2.relative: 1.0 1.0; + rel2.to: "bg_base"; + align: 1.0 0.5; + } + } + image { "icon_arrow"; + type: IMAGE; + scale; + desc { "default"; + min: TOOLBAR_NAVI_ICON_ARROW_WIDTH_INC TOOLBAR_NAVI_ICON_ARROW_HEIGHT_INC; + fixed: 1 1; + color_class: "toolbar_item/navigationbar/icon"; + rel1.to: "padding_icon_arrow"; + rel2.to: "padding_icon_arrow"; + vis; + image.normal: "core_navigation_bar_icon_arrow"; + } + desc { "hidden"; + inherit: "default"; + hid; + } + desc { "rtl"; + inherit: "default"; + map.on: 1; + map.rotation.y: 180.0; + } + } + spacer { "base"; + scale; + desc { "default"; + rel2.to: "padding_icon_arrow"; + rel2.relative: 0.0 1.0; + } + } + image { "press_effect"; + scale; + desc { "default"; + rel1.to: "elm.text"; + rel1.offset: -14 -6; + rel2.to: "elm.text"; + rel2.offset: 14 9; + image.normal: "core_navi_press.#.png"; + color: 0 0 0 0; + color_class: "toolbar_item/navigationbar/effect"; + hid; + } + desc { "ready"; + inherit: "default"; + vis; + } + desc { "pressed"; + inherit: "ready"; + color: 255 255 255 255; + } + } + textblock { "elm.text"; + scale; + clip: "clipper_elm.text"; + desc { "default"; + align: 0.0 0.5; + rel2 { + relative: 0.0 1.0; + to: "padding_icon_arrow"; + } + text { + style: "tabbar_navigationbar_textblock_style"; + min: 1 1; + max: 1 1; + align: 0.0 0.5; + } + } + desc { "pressed"; + inherit: "default"; + text.style: "tabbar_navigationbar_textblock_pressed_style"; + } + desc { "disabled"; + inherit: "default"; + text.style: "tabbar_navigationbar_textblock_disabled_style"; + } + desc { "selected"; + inherit: "default"; + text.style: "tabbar_navigationbar_textblock_selected_style"; + } + } + rect { "clipper_elm.text"; + desc { "default"; + color: 255 255 255 255; + } + desc { "animation"; + color: 255 255 255 0; + } + desc { "disabled"; + color: 255 255 255 255; + } + } + image { "padding_right"; + scale; + desc { "default"; + min: TOOLBAR_NAVI_ICON_ARROW_WIDTH_INC 0; + fixed: 1 0; + hid; + rel1.relative: 1.0 0.0; + rel1.to: "bg_base"; + rel2.relative: 1.0 1.0; + rel2.to: "bg_base"; + align: 1.0 1.0; + color: 61 185 204 255; + image.normal: "core_navigation_bar_bg"; + } + desc { "hidden"; + inherit: "default"; + hid; + } + } + } + inherit: "elm/toolbar/item/event/default"; + script { + public item_state = ITEM_STATE_ENABLED; + public mouse_down = 0; + public multi_down = 0; + public selected = 0; + public animate = 0; + public mirrored_state = 0; + } + programs { + program { "pressed_effect"; + script { + run_program(PROGRAM:"pressed_effect3"); + run_program(PROGRAM:"pressed_effect4"); + } + } + program { "pressed_effect3"; + action: STATE_SET "pressed"; + target: "press_effect"; + transition: GLIDE_EASE_OUT(0.3); + after: "pressed_effect5"; + } + program { "pressed_effect4"; + action: STATE_SET "pressed"; + target: "elm.text"; + transition: GLIDE_EASE_OUT(0.3); + } + program { "pressed_effect5"; + script { + set_int(animate, 0); + if (get_int(mouse_down) == 0) { + run_program(PROGRAM:"unpressed_effect"); + } + } + } + program { "unpressed_effect"; + script { + run_program(PROGRAM:"unpressed_effect2"); + run_program(PROGRAM:"unpressed_effect3"); + } + } + program { "unpressed_effect2"; + action: STATE_SET "ready"; + target: "press_effect"; + transition: GLIDE_EASE_OUT(0.45); + after: "unpressed_effect3"; + } + program { "unpressed_effect3"; + script { + if (get_int(item_state) == ITEM_STATE_DISABLED) + set_state(PART:"elm.text", "disabled",0.0); + else { + if (get_int(selected)) + set_state(PART:"elm.text", "selected", 0.0); + else + set_state(PART:"elm.text", "default", 0.0); + } + } + } + + program { "on_pressed_key"; + after: "on_pressed"; + } + program { "on_pressed"; + script { + if ((get_int(item_state) != ITEM_STATE_DISABLED) + && get_int(multi_down) == 0 + && get_int(mouse_down) == 0) + { + set_int(mouse_down, 1); + set_int(animate, 1); + run_program(PROGRAM:"pressed_effect"); + } + } + } + program { "on_unpressed_key"; + after: "on_unpressed"; + } + program { "on_unpressed"; + script { + if ((get_int(item_state) != ITEM_STATE_DISABLED) + && get_int(mouse_down) == 1) + { + set_int(mouse_down, 0); + if (get_int(animate) == 0) { + run_program(PROGRAM:"unpressed_effect"); + } + } + } + } + program { "on_clicked"; + script { + if (get_int(multi_down) == 0) { + emit("elm,action,click", "elm"); + + if (get_int(item_state) != ITEM_STATE_DISABLED) { + run_program(PROGRAM:"touch_sound"); + } + } + } + } + program { "touch_sound"; + action: RUN_PLUGIN "touch_sound"; + } + program { "on_mouse_in"; + script { + if (get_int(multi_down) == 0) + emit("elm,mouse,in", "elm"); + } + } + program { "on_mouse_out"; + script { + if ((get_int(multi_down) == 0) && (get_int(mouse_down) == 0)) + emit("elm,mouse,out", "elm"); + } + } + program { "on_disabled"; + script { + set_int(item_state, ITEM_STATE_DISABLED); + set_state(PART:"bg_base", "disabled", 0.0); + set_state(PART:"elm.text", "disabled", 0.0); + set_state(PART:"clipper_elm.text", "disabled", 0.0); + set_int(selected, 0); + } + } + program { "on_multi_down"; + script{ + set_int(multi_down, 1); + } + } + program { "on_multi_cancel"; + script { + set_int(multi_down, 0); + } + } + program { "on_enabled"; + script { + set_int(item_state, ITEM_STATE_ENABLED); + set_state(PART:"bg_base", "default", 0.0); + set_state(PART:"elm.text", "default", 0.0); + set_state(PART:"clipper_elm.text", "default", 0.0); + set_int(selected, 0); + } + } + program { "on_order_item_default"; + after: "visible_icon_arrow"; + } + program { "on_order_item_first"; + after: "visible_icon_arrow"; + } + program { "on_order_item_last"; + after: "hidden_icon_arrow"; + } + program { "visible_icon_arrow"; + script { + if (get_int(mirrored_state)) + set_state(PART:"icon_arrow", "rtl", 0.0); + else + set_state(PART:"icon_arrow", "default", 0.0); + set_state(PART:"padding_right", "default", 0.0); + if (get_int(item_state) != ITEM_STATE_DISABLED) { + set_state(PART:"elm.text", "default", 0.0); + set_int(selected, 0); + } + } + } + program { "hidden_icon_arrow"; + script { + set_state(PART:"icon_arrow", "hidden", 0.0); + set_state(PART:"padding_right", "hidden", 0.0); + if (get_int(item_state) != ITEM_STATE_DISABLED) { + set_state(PART:"elm.text", "selected", 0.0); + set_int(selected, 1); + } + } + } + program { "on_selected"; + script { + if (get_int(item_state) != ITEM_STATE_DISABLED) { + set_state(PART:"elm.text", "selected", 0.0); + set_int(selected, 1); + } + } + } + program { "on_unselected"; + script { + if (get_int(item_state) != ITEM_STATE_DISABLED) { + set_state(PART:"elm.text", "default", 0.0); + set_int(selected, 0); + } + } + } + program { "rtl_mirrored"; + signal: "edje,state,rtl"; + source: "edje"; + script { + set_int(mirrored_state, 1); + } + } + program { "ltr_mirrored"; + signal: "edje,state,ltr"; + source: "edje"; + script { + set_int(mirrored_state, 0); + } + } + program { "on_tab_number_item"; + } + program { "on_visible_text"; + } + program { "on_hidden_text"; + } + program { "on_visible_icon"; + } + program { "on_hidden_icon"; + } + program { "on_orient_0"; + } + program { "on_orient_90"; + } + program { "on_orient_180"; + } + program { "on_orient_270"; + } + program { "on_shrink_scroll"; + } + program { "on_shrink_expand"; + } + program { "on_shrink_menu"; + } + program { "on_shrink_hide"; + } + program { "on_shrink_default"; + } + } +} + +group { "elm/toolbar/more/default"; + alias:"elm/toolbar/more/tabbar"; + alias:"elm/toolbar/more/tabbar/item_with_title"; + alias:"elm/toolbar/more/tabbar_with_title"; + alias:"elm/toolbar/more/navigationbar"; + parts { + swallow { "elm.swallow.content"; + desc { "default"; + hid; + } + } + swallow { "elm.swallow.content2"; + desc { "default"; + hid; + } + } + } +} + +group { "elm/toolbar/item/light_view"; + inherit: "elm/toolbar/item/tabbar_with_title"; + parts { + rect { "bg_base"; + scale; + desc { "default"; + rel1.to: "base"; + rel2.to: "base"; + min: TABBAR_COMMON_DEFAULT_ITEM_SIZE_INC; + color_class: "toolbar_item/light_view/bg"; + } + desc { "land"; + inherit: "default"; + min: TABBAR_COMMON_LANDSCAPE_DEFAULT_ITEM_SIZE_INC; + } + desc { "scroll"; + inherit: "default"; + min: TABBAR_COMMON_SCROLL_ITEM_SIZE_INC; + } + desc { "land_scroll"; + inherit: "default"; + min: TABBAR_COMMON_LANDSCAPE_SCROLL_ITEM_SIZE_INC; + } + } + rect { "bg_cover"; + scale; + desc { "default"; + rel1.to: "base"; + rel2.to: "base"; + hid; + } + desc { "pressed"; + inherit: "default"; + vis; + color_class: "toolbar_item/light_view/effect"; + } + desc { "disabled"; + inherit: "default"; + hid; + } + desc { "selected"; + inherit: "default"; + hid; + } + } + part { "padding_left_top"; + type: SPACER; + scale; + nomouse; + desc { state: "default"; + align: 0.0 0.0; + rel2.relative: 0.0 0.0; + min: 0 0; + fixed: 1 1; + } + desc { state: "text"; + inherit: "default"; + min: TABBAR_LIGHT_VIEW_TEXT_LEFT_TOP_PADDING_SIZE_INC; + } + } + part { "padding_right_bottom"; + type: SPACER; + scale; + nomouse; + desc { state: "default"; + align: 1.0 1.0; + rel1.relative: 1.0 1.0; + fixed: 1 1; + } + desc { state: "text"; + inherit: "default"; + min: TABBAR_LIGHT_VIEW_TEXT_RIGHT_BOTTOM_PADDING_SIZE_INC; + } + } + part { "padding_selected_line_top"; + type: SPACER; + scale; + nomouse; + desc { state: "default"; + rel1 { + to: "elm.text"; + relative: 0.0 1.0; + } + rel2 { + to: "elm.text"; + relative: 1.0 1.0; + } + fixed: 0 1; + min: TABBAR_LIGHT_VIEW_SELECTED_LINE_TOP_PADDING_SIZE_INC; + align: 0.5 0.0; + } + } + image { "selected_line"; + scale; + desc { "default"; + min: 0 TABBAR_COMMON_SELECTED_LINE_HEIGHT_INC; + max: 0 TABBAR_COMMON_SELECTED_LINE_HEIGHT_INC; + rel1 { + to: "padding_selected_line_top"; + relative: 0.0 1.0; + } + rel2 { + to: "padding_selected_line_top"; + relative: 1.0 1.0; + } + image.normal: "core_tab_selectbar.#.png"; + fixed: 0 1; + color: 255 255 255 0; + color_class: "toolbar_item/light_view/underline"; + align: 0.5 0.0; + } + desc { "selected"; + inherit: "default"; + max: -1 TABBAR_COMMON_SELECTED_LINE_HEIGHT_INC; + color: 255 255 255 255; + } + } + part { "elm.text"; + type: TEXTBLOCK; + nomouse; + scale; + clip: "clipper_elm.text"; + desc { state: "default"; + hid; + min: TABBAR_LIGHT_VIEW_TEXT_SIZE_INC; + max: TABBAR_LIGHT_VIEW_TEXT_SIZE_INC; + rel1 { + to: "padding_left_top"; + relative: 1.0 1.0; + } + rel2 { + to: "padding_right_bottom"; + relative: 0.0 0.0; + } + fixed: 1 1; + } + desc { state: "text_normal"; + inherit: "default"; + vis; + text { + style: "tabbar_light_view_textblock_style"; + min: 0 1; + max: 1 0; + } + } + desc { state:"text_pressed"; + inherit: "text_normal"; + text.style: "tabbar_light_view_textblock_pressed_style"; + } + desc { state:"text_selected"; + inherit: "text_normal"; + text.style: "tabbar_light_view_textblock_selected_style"; + } + desc { state:"text_disabled"; + inherit: "text_normal"; + text.style: "tabbar_light_view_textblock_disabled_style"; + } + desc { state: "icon_text"; + inherit: "default"; + vis; + text { + style: "tabbar_light_view_textblock_style"; + min: 0 1; + max: 1 0; + } + } + desc { state:"icon_text_pressed"; + inherit: "icon_text"; + text.style: "tabbar_light_view_textblock_pressed_style"; + } + desc { state:"icon_text_selected"; + inherit: "icon_text"; + text.style: "tabbar_light_view_textblock_selected_style"; + } + desc { state:"icon_text_disabled"; + inherit: "icon_text"; + text.style: "tabbar_light_view_textblock_disabled_style"; + } + } + part { "elm.text.slide"; + type: TEXTBLOCK; + scale; + clip: "clipper_elm.text.slide"; + desc { state: "default"; + fixed: 1 1; + align: 0.0 0.5; + min: TABBAR_LIGHT_VIEW_TEXT_SIZE_INC; + max: TABBAR_LIGHT_VIEW_TEXT_SIZE_INC; + rel1 { + to: "padding_left_top"; + relative: 1.0 1.0; + } + rel2 { + to: "padding_right_bottom"; + relative: 0.0 0.0; + } + text { + style: "tabbar_light_view_textblock_selected_slide_style"; + min: 1 1; + max: 1 0; + } + } + desc { state: "slide_begin"; + inherit: "default"; + } + desc { state: "slide_end"; + inherit: "default"; + align: 1.0 0.5; + rel1 { + to_x: "slide_text_gap"; + to_y: "padding_left_top"; + relative: 0.0 1.0; + } + rel2 { + to_x: "slide_text_gap"; + to_y: "padding_right_bottom"; + relative: 1.0 0.0; + } + } + desc { state: "icon_text"; + inherit: "default"; + text { + style: "tabbar_light_view_textblock_selected_slide_style"; + min: 1 1; + max: 1 0; + } + } + desc { state: "icon_text_slide_begin"; + inherit: "icon_text"; + } + desc { state: "icon_text_slide_end"; + inherit: "slide_end"; + } + } + } +} -- 2.7.4 From 23400452c4249a198fe91b07aa0ba70c7ec925e3 Mon Sep 17 00:00:00 2001 From: Sungtaek Hong Date: Mon, 9 Jan 2017 20:05:41 +0900 Subject: [PATCH 02/16] theme: change button text to textblock Change-Id: If3160309c4dcd06e6ada337a3711b8442ed96a0f Signed-off-by: Sungtaek Hong --- ElmSharp/theme/tv/widgets/button.edc | 69 ++++++++++++++++++++---------------- 1 file changed, 39 insertions(+), 30 deletions(-) diff --git a/ElmSharp/theme/tv/widgets/button.edc b/ElmSharp/theme/tv/widgets/button.edc index d240d0a..f62c553 100644 --- a/ElmSharp/theme/tv/widgets/button.edc +++ b/ElmSharp/theme/tv/widgets/button.edc @@ -32,6 +32,40 @@ #define BUTTON_TEXT_FONT_SIZE 20 #define BUTTON_BORDER 4 4 4 4 +#define STYLE_TAGS \ + tag: "br" "\n";\ + tag: "ps" "ps";\ + tag: "tab" "\t";\ + tag: "b" "+ font_weight=Bold"; + +// ************* button text ********** // +styles { + style { name: "button_default"; + base: "align=center color=#ffffffff font="FONT_M" font_size="BUTTON_TEXT_FONT_SIZE" text_class=button ellipsis=1.0 color_class=button/default/text"; + STYLE_TAGS + } + style { name: "button_default_focused"; + base: "align=center color=#ffffffff font="FONT_M" font_size="BUTTON_TEXT_FONT_SIZE" text_class=button ellipsis=1.0 color_class=button/default/text_focused"; + STYLE_TAGS + } + style { name: "button_default_dim"; + base: "align=center color=#ffffffff font="FONT_M" font_size="BUTTON_TEXT_FONT_SIZE" text_class=button ellipsis=1.0 color_class=button/default/text_disabled"; + STYLE_TAGS + } + style { name: "button_ampm"; + base: "align=center color=#ffffffff font=Tizen:style=Light font_size=40 text_class=tizen"; + STYLE_TAGS + } + style { name: "button_ampm_dim"; + base: "align=center color=#ffffffff font=Tizen:style=Light font_size=40 text_class=tizen"; + STYLE_TAGS + } + style { name: "button_ampm_press"; + base: "align=center color=#ffffffff font=Tizen:style=Light font_size=40 text_class=tizen"; + STYLE_TAGS + } +} + /********************************************************************************* Document: Tizen TV_General Guide_GUI Guideline_v1.0_140430.ppt Button @@ -102,31 +136,28 @@ group { name: "elm/button/base/default"; max: 37 37; } } - part { name: "elm.text"; type: TEXT; mouse_events: 0; + part { name: "elm.text"; type: TEXTBLOCK; mouse_events: 0; scale: 1; description { state: "default" 0.0; rel1.to_x: "pad.left"; rel1.relative: 1.0 0.0; rel2.to_x: "pad.right"; rel2.relative: 0.0 1.0; - color_class: "button/default/text"; text { - font: FONT_M;//TODO Tizen Sans regular - size: BUTTON_DEFAULT_FONT_SIZE; min: 1 1; max: 1 1; ellipsis: -1; - text_class: "button"; + style: "button_default"; } } description { state: "focus" 0.0; inherit: "default" 0.0; - color_class: "button/default/text_focused"; text.min: 1 1; + text.style: "button_default_focused"; } description { state: "dim" 0.0; inherit: "default" 0.0; - color_class: "button/default/text_disabled"; + text.style: "button_default_disabled"; } } part { name: "event"; type: RECT; @@ -960,29 +991,6 @@ group { name: "elm/button/base/spinner/vertical_date_picker"; } } -// ************* button text ********** // -#define STYLE_TAGS \ - tag: "br" "\n";\ - tag: "ps" "ps";\ - tag: "tab" "\t";\ - tag: "b" "+ font_weight=Bold"; - -styles { - style { name: "button_ampm"; - base: "align=center color=#ffffffff font=Tizen:style=Light font_size=40 text_class=tizen"; - STYLE_TAGS - } - style { name: "button_ampm_dim"; - base: "align=center color=#ffffffff font=Tizen:style=Light font_size=40 text_class=tizen"; - STYLE_TAGS - } - style { name: "button_ampm_press"; - base: "align=center color=#ffffffff font=Tizen:style=Light font_size=40 text_class=tizen"; - STYLE_TAGS - } -} - - group { name: "elm/button/base/datetime/default"; data.item: "vector_ux" "default"; data.item: "corner_radius" "39"; @@ -1622,3 +1630,4 @@ styles { #undef BUTTON_TEXT_MIN_SIZE #undef BUTTON_TEXT_FONT_SIZE #undef BUTTON_BORDER +#undef STYLE_TAGS -- 2.7.4 From 36fa27de886889ce222f23713bad782b5793b09e Mon Sep 17 00:00:00 2001 From: JEONGHYUN YUN Date: Tue, 10 Jan 2017 13:14:55 +0900 Subject: [PATCH 03/16] Update version to beta-006 Change-Id: I397b7d3574403b72058177f54f01c9ebc744181e Signed-off-by: JEONGHYUN YUN --- packaging/elm-sharp.spec | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packaging/elm-sharp.spec b/packaging/elm-sharp.spec index afe18ad..0ce69aa 100644 --- a/packaging/elm-sharp.spec +++ b/packaging/elm-sharp.spec @@ -1,4 +1,4 @@ -%define DEV_VERSION beta-005 +%define DEV_VERSION beta-006 Name: elm-sharp Summary: C# Binding for Elementary -- 2.7.4 From 91cb595d5eac1e4619fa5b3f80205a46d852a07f Mon Sep 17 00:00:00 2001 From: chungryeol lim Date: Tue, 10 Jan 2017 13:47:38 +0900 Subject: [PATCH 04/16] Fixed Naviitem.TitleBarBackgroundColor is Color.Default Change-Id: I85ead73f548fda20126403a1dc3b695b50472b05 Signed-off-by: chungryeol lim --- ElmSharp.Test/TC/NaviframeTest2.cs | 20 +++++++++++++++++++- ElmSharp/ElmSharp/NaviItem.cs | 3 +-- 2 files changed, 20 insertions(+), 3 deletions(-) diff --git a/ElmSharp.Test/TC/NaviframeTest2.cs b/ElmSharp.Test/TC/NaviframeTest2.cs index 3de3e41..064640b 100644 --- a/ElmSharp.Test/TC/NaviframeTest2.cs +++ b/ElmSharp.Test/TC/NaviframeTest2.cs @@ -89,7 +89,14 @@ namespace ElmSharp.Test Button barChange = new Button(parent) { - Text = "TitleTextColor & BarColor", + Text = "TitleBarColor Change", + WeightX = 1, + AlignmentX = -1, + }; + + Button barColorDefault = new Button(parent) + { + Text = "TitleBarColor - Default", WeightX = 1, AlignmentX = -1, }; @@ -101,6 +108,7 @@ namespace ElmSharp.Test insertAfterTop.Show(); removeTop.Show(); barChange.Show(); + barColorDefault.Show(); push.Clicked += (s, e) => { @@ -144,6 +152,15 @@ namespace ElmSharp.Test } }; + barColorDefault.Clicked += (s, e) => + { + int currentIndex = _navi.NavigationStack.Count - 1; + if (currentIndex >= 0) + { + _navi.NavigationStack[currentIndex].TitleBarBackgroundColor = Color.Default; + } + }; + box.PackEnd(label); box.PackEnd(push); box.PackEnd(pop); @@ -151,6 +168,7 @@ namespace ElmSharp.Test box.PackEnd(insertAfterTop); box.PackEnd(removeTop); box.PackEnd(barChange); + box.PackEnd(barColorDefault); return box; } diff --git a/ElmSharp/ElmSharp/NaviItem.cs b/ElmSharp/ElmSharp/NaviItem.cs index 3e92445..d3f3bde 100644 --- a/ElmSharp/ElmSharp/NaviItem.cs +++ b/ElmSharp/ElmSharp/NaviItem.cs @@ -67,8 +67,7 @@ namespace ElmSharp { if (value.IsDefault) { - Console.WriteLine("ItemObject instance doesn't support to set TitleBarBackgroundColor to Color.Default."); - //TODO. Soon we will support the "elm_object_item_color_class_del" function in EFL. + Interop.Elementary.elm_object_item_color_class_del(Handle, "bg_title"); } else { -- 2.7.4 From 06a5d4719bd0daa8e5ecc912741ba30d91e8939c Mon Sep 17 00:00:00 2001 From: Sungtaek Hong Date: Tue, 10 Jan 2017 17:19:58 +0900 Subject: [PATCH 05/16] theme: add touch sound in genlist full style Change-Id: I764f6686df29739df9694fe56795a1198e9356bf Signed-off-by: Sungtaek Hong --- ElmSharp/theme/mobile/HD-inc.edc | 4 + ElmSharp/theme/mobile/elm-sharp-theme-mobile.edc | 1 + ElmSharp/theme/mobile/widgets/genlist.edc | 208 +++++++++++++++++++++++ 3 files changed, 213 insertions(+) create mode 100644 ElmSharp/theme/mobile/widgets/genlist.edc diff --git a/ElmSharp/theme/mobile/HD-inc.edc b/ElmSharp/theme/mobile/HD-inc.edc index c3266bd..4af4422 100644 --- a/ElmSharp/theme/mobile/HD-inc.edc +++ b/ElmSharp/theme/mobile/HD-inc.edc @@ -75,3 +75,7 @@ #define RADIO_DEFAULT_SIZE_INC 50 50 #define RADIO_PAD_BEFORE_TEXT_INC 32 0 +//****************************************************************************// +// GENLIST +//****************************************************************************// +#define LIST_BOTTOMLINE_HEIGHT 2 diff --git a/ElmSharp/theme/mobile/elm-sharp-theme-mobile.edc b/ElmSharp/theme/mobile/elm-sharp-theme-mobile.edc index d9baad4..b4f11b9 100644 --- a/ElmSharp/theme/mobile/elm-sharp-theme-mobile.edc +++ b/ElmSharp/theme/mobile/elm-sharp-theme-mobile.edc @@ -85,6 +85,7 @@ collections { #include "widgets/colorselector.edc" #include "widgets/entry.edc" +#include "widgets/genlist.edc" #include "widgets/label.edc" #include "widgets/radio.edc" #include "widgets/layout.edc" diff --git a/ElmSharp/theme/mobile/widgets/genlist.edc b/ElmSharp/theme/mobile/widgets/genlist.edc new file mode 100644 index 0000000..64399f6 --- /dev/null +++ b/ElmSharp/theme/mobile/widgets/genlist.edc @@ -0,0 +1,208 @@ +/* + * Copyright (c) 2010 Samsung Electronics Co., Ltd All Rights Reserved + * + * BSD 2-Clause License (http://www.opensource.org/licenses/bsd-license.php) + * + * Redistribution and use in source and binary forms, with or without + * modification, are permitted provided that the following conditions are met: + * + * 1. Redistributions of source code must retain the above copyright notice, this + * list of conditions and the following disclaimer. + * 2. Redistributions in binary form must reproduce the above copyright notice, + * this list of conditions and the following disclaimer in the documentation + * and/or other materials provided with the distribution. + * + * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND + * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED + * WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE + * DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR + * ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES + * (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; + * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND + * ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT + * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS + * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. + */ + +#define LIST_PROGRAM_SOUND \ + program { name: "play_sound"; \ + signal: "elm,state,clicked"; \ + source: "elm"; \ + script { \ + run_program(PROGRAM:"touch_sound"); \ + } \ + } \ + program { name: "touch_sound"; \ + action: RUN_PLUGIN "touch_sound"; \ + } + +group { "elm/genlist/item/event/default" + inherit_only: 1; + parts { + rect { "event"; nomouse; repeat; scale; + desc { "default"; + color: 0 0 0 0; + rel.to: "base"; + } + desc { "disabled"; + inherit: "default"; + hid; + } + } + } + programs { + /* Program for enabled event */ + program { "enabled"; + signal: "elm,state,enabled"; + source: "elm"; + action: STATE_SET "default"; + target: "event"; + after: "on_enabled"; + } + /* Program for disabled event */ + program { "disabled"; + signal: "elm,state,disabled"; + source: "elm"; + action: STATE_SET "disabled"; + target: "event"; + after: "on_disabled"; + } + program { "enable_event_pass"; + signal: "elm,event,pass,enabled"; + source: "elm"; + script { + set_mouse_events(PART:"event", 0); + } + } + program { "disable_event_pass"; + signal: "elm,event,pass,disabled"; + source:"elm"; + script { + set_mouse_events(PART:"event", 1); + } + } + program { "enable_event_repeat"; + signal: "elm,event,repeat,enabled"; + source: "elm"; + script { + set_repeat_events(PART:"event", 1); + } + } + program { "disable_event_repeat"; + signal: "elm,event,repeat,disabled"; + source:"elm"; + script { + set_repeat_events(PART:"event", 0); + } + } + } +} + +group { "elm/genlist/item/full/default"; + alias: "elm/genlist/item_compress/full/default"; + alias: "elm/genlist/tree/full/default"; + alias: "elm/genlist/tree_compress/full/default"; + inherit: "elm/genlist/item/event/default"; + + data.item: "banded_bg_area" "elm.swallow.bg"; + data.item: "contents" "elm.swallow.content"; + + parts { + spacer { "base"; scale; + desc { "default"; + } + } + + swallow { "elm.swallow.bg"; scale; + desc { "default"; + rel.to: "base"; + } + } + rect { "bg"; scale; + desc { "default"; + rel.to: "elm.swallow.bg"; + color_class: "genlist_item/full/bg"; + } + desc { "pressed"; inherit: "default"; + color_class: "genlist_item/full/bg"; + } + desc { "disabled"; inherit: "default"; + color_class: "genlist_item/full/bg"; + } + } + swallow { "elm.swallow.content"; scale; + desc { "default"; + rel1 { to: "bg"; relative: 0.0 0.0; } + rel2 { to: "bg"; relative: 1.0 1.0; } + } + } + rect { "elm.bottomline"; scale; + desc { "default"; + vis; + min: 0 LIST_BOTTOMLINE_HEIGHT; + max: -1 LIST_BOTTOMLINE_HEIGHT; + align: 0.5 0.0; + fixed: 0 1; + rel1.relative: 0.0 0.0; + rel2.relative: 1.0 0.0; + color_class: "genlist_item/full/bottomline"; + } + desc { "hidden"; inherit: "default"; + hid; + } + } + rect { "event"; + after: "elm.bottomline"; + desc { "default"; + rel.to: "base"; + } + desc { "disabled"; + inherit: "default"; + hid; + } + } + } + programs { + LIST_PROGRAM_SOUND + program { + signal: "elm,state,elm.swallow.bg,visible"; + source: "elm"; + action: STATE_SET "hidden"; + target: "elm.bottomline"; + } + program { + signal: "elm,state,elm.swallow.bg,hidden"; + source: "elm"; + action: STATE_SET "default"; + target: "elm.bottomline"; + } + program { "default"; + signal: "elm,state,default"; + source: "elm"; + action: STATE_SET "default"; + target: "bg"; + target: "elm.bottomline"; + target: "event"; + } + program { "pressed"; + signal: "elm,state,selected"; + source: "elm"; + action: STATE_SET "pressed"; + target: "bg"; + } + program { "unpressed"; + signal: "elm,state,unselected"; + source: "elm"; + action: STATE_SET "default"; + target: "bg"; + } + program { "on_enabled"; + action: STATE_SET "default"; + target: "bg"; + } + program { "on_disabled"; + action: STATE_SET "disabled"; + target: "bg"; + } + } +} -- 2.7.4 From c1a751974cb44d8ea01f3ce1dd2aaa4c510d3d44 Mon Sep 17 00:00:00 2001 From: WonYoung Choi Date: Wed, 11 Jan 2017 15:26:01 +0900 Subject: [PATCH 06/16] Fix black screen error of ElmSharp.Test When ElmSharp.Test runs with AppFW, first screen was black because Elementary.ThemeOverlay() was not called. Change-Id: I725a3ad97f1b1bf10ee43472e7817491de49346f --- ElmSharp.Test/TestRunner.cs | 19 +++++++++++++++---- 1 file changed, 15 insertions(+), 4 deletions(-) diff --git a/ElmSharp.Test/TestRunner.cs b/ElmSharp.Test/TestRunner.cs index b359d20..b59f07f 100644 --- a/ElmSharp.Test/TestRunner.cs +++ b/ElmSharp.Test/TestRunner.cs @@ -27,11 +27,13 @@ namespace ElmSharp.Test public class TestRunner : CoreUIApplication { private Window _firstPageWindow; + private static bool s_terminated; public static string ResourceDir { get; private set; } public TestRunner() { + s_terminated = false; } protected override void OnCreate() @@ -43,13 +45,16 @@ namespace ElmSharp.Test base.OnCreate(); } + protected override void OnTerminate() + { + s_terminated = true; + base.OnTerminate(); + } + public void RunStandalone(string[] args) { ResourceDir = Path.Combine(Path.GetDirectoryName(typeof(TestRunner).GetTypeInfo().Assembly.Location), "res"); - Elementary.Initialize(); - Elementary.ThemeOverlay(); - EcoreSynchronizationContext.Initialize(); var testCases = GetTestCases(); @@ -193,11 +198,17 @@ namespace ElmSharp.Test static void Main(string[] args) { + Elementary.Initialize(); + Elementary.ThemeOverlay(); + TestRunner testRunner = new TestRunner(); testRunner.Run(args); // if running with appfw is failed, below line will be executed. - testRunner.RunStandalone(args); + if (!s_terminated) + { + testRunner.RunStandalone(args); + } } } } -- 2.7.4 From 16ef6b0ff704cb1000df62e60dbd34024bd770cb Mon Sep 17 00:00:00 2001 From: WonYoung Choi Date: Wed, 11 Jan 2017 17:00:48 +0900 Subject: [PATCH 07/16] Add theme for common profile Change-Id: I04f995148e379e54f6669c6123ee77336b4490f6 --- ElmSharp/theme/common/HD-inc.edc | 77 ++ .../theme/common/HD/images/Assist_Views/README | 1 + .../common/HD/images/Navigation_elements/README | 1 + .../User_Input_Elements/core_radio_bg_01.svg | 8 + .../User_Input_Elements/core_radio_bg_02.svg | 9 + .../images/User_Input_Elements/core_radio_icon.svg | 7 + .../User_Input_Elements/core_radio_stroke.svg | 8 + .../User_Input_Elements/core_radio_white_bg.svg | 8 + ElmSharp/theme/common/color_classes.edc | 101 ++ ElmSharp/theme/common/elm-sharp-theme-mobile.edc | 93 ++ ElmSharp/theme/common/widgets/colorselector.edc | 91 ++ ElmSharp/theme/common/widgets/entry.edc | 1077 ++++++++++++++++++++ ElmSharp/theme/common/widgets/label.edc | 722 +++++++++++++ ElmSharp/theme/common/widgets/layout.edc | 40 + ElmSharp/theme/common/widgets/radio.edc | 559 ++++++++++ 15 files changed, 2802 insertions(+) create mode 100644 ElmSharp/theme/common/HD-inc.edc create mode 100644 ElmSharp/theme/common/HD/images/Assist_Views/README create mode 100644 ElmSharp/theme/common/HD/images/Navigation_elements/README create mode 100755 ElmSharp/theme/common/HD/images/User_Input_Elements/core_radio_bg_01.svg create mode 100755 ElmSharp/theme/common/HD/images/User_Input_Elements/core_radio_bg_02.svg create mode 100755 ElmSharp/theme/common/HD/images/User_Input_Elements/core_radio_icon.svg create mode 100755 ElmSharp/theme/common/HD/images/User_Input_Elements/core_radio_stroke.svg create mode 100755 ElmSharp/theme/common/HD/images/User_Input_Elements/core_radio_white_bg.svg create mode 100644 ElmSharp/theme/common/color_classes.edc create mode 100644 ElmSharp/theme/common/elm-sharp-theme-mobile.edc create mode 100644 ElmSharp/theme/common/widgets/colorselector.edc create mode 100644 ElmSharp/theme/common/widgets/entry.edc create mode 100644 ElmSharp/theme/common/widgets/label.edc create mode 100644 ElmSharp/theme/common/widgets/layout.edc create mode 100644 ElmSharp/theme/common/widgets/radio.edc diff --git a/ElmSharp/theme/common/HD-inc.edc b/ElmSharp/theme/common/HD-inc.edc new file mode 100644 index 0000000..c3266bd --- /dev/null +++ b/ElmSharp/theme/common/HD-inc.edc @@ -0,0 +1,77 @@ +/* + * Copyright (c) 2015 Samsung Electronics Co., Ltd All Rights Reserved + * + * BSD 2-Clause License (http://www.opensource.org/licenses/bsd-license.php) + * + * Redistribution and use in source and binary forms, with or without + * modification, are permitted provided that the following conditions are met: + * + * 1. Redistributions of source code must retain the above copyright notice, this + * list of conditions and the following disclaimer. + * 2. Redistributions in binary form must reproduce the above copyright notice, + * this list of conditions and the following disclaimer in the documentation + * and/or other materials provided with the distribution. + * + * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND + * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED + * WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE + * DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR + * ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES + * (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; + * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND + * ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT + * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS + * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. + */ + +//****************************************************************************// +// This file defines the width, height (not color!) for each widgets +// We can define different INC file by Resolution (HD, qHD, WVGA, HVGA) +// +// ************* Naming Rule ************ // +// {WIDGET}_{GROUP}_{PART}_{STATE}_{TYPE} +// WIDGET: NAVIFRAME, LIST, DATETIME, POPUP, etc. +// GROUP: INDEX +// PART: TEXT, ICON, BG, PADDING, DIVIDER, ICON, etc. +// STATE: LEFT, RIGHT, TOP, BOTTOM, MIN, MAX, +// TYPE: HEIGHT, WIDTH, SIZE +// e.g. LIST_PADDING_LEFT_HEIGHT +//****************************************************************************// + +#define BASE_SCALE_INC 2.6 + +//****************************************************************************// +// Colorselector +//****************************************************************************// +#define COLORSELECTOR_PALETTE_COLORPLANE_HEIGHT_INC 238 +#define COLORSELECTOR_PALETTE_COLORPLANE_WIDTH_INC 678 +#define COLORSELECTOR_PORTRAIT_HOR_PAD_COLORPLANE_INC "8" +#define COLORSELECTOR_PORTRAIT_VER_PAD_COLORPLANE_INC "8" +#define COLORSELECTOR_TOPBOTTOM_PAD_COLORPLANE_INC 24 + +//****************************************************************************// +// Entry +//****************************************************************************// +#define ENTRY_PREEDIT_BACKGROUND_COLOR_INC "#000000" +#define ENTRY_PREEDIT_HIGHLIGHT_BACKGROUND_COLOR_INC "#8bd8ff99" +#define ENTRY_PREEDIT_TEXT_COLOR_INC "#FAFAFA" +#define ENTRY_PREEDIT_UNDERLINE_COLOR_INC "#000000" +#define ENTRY_PREEDIT_SUB1_COLOR_INC "#2EA8E1" +#define ENTRY_PREEDIT_SUB2_COLOR_INC "#9962C3" +#define ENTRY_PREEDIT_SUB3_COLOR_INC "#76DE37" +#define ENTRY_PREEDIT_SUB4_COLOR_INC "#999999" +#define ENTRY_LEFT_RIGHT_MARGIN_INC 5 +#define ENTRY_FONT_SIZE_INC 40 +#define ENTRY_CURSOR_SIZE_INC 3 0 + +//****************************************************************************// +// Label +//****************************************************************************// +#define LABEL_FONT_SIZE_INC 24 + +//****************************************************************************// +// RADIO +//****************************************************************************// +#define RADIO_DEFAULT_SIZE_INC 50 50 +#define RADIO_PAD_BEFORE_TEXT_INC 32 0 + diff --git a/ElmSharp/theme/common/HD/images/Assist_Views/README b/ElmSharp/theme/common/HD/images/Assist_Views/README new file mode 100644 index 0000000..1746a11 --- /dev/null +++ b/ElmSharp/theme/common/HD/images/Assist_Views/README @@ -0,0 +1 @@ +This is reserved directory for mobile images. Please delete this file when any file is added. diff --git a/ElmSharp/theme/common/HD/images/Navigation_elements/README b/ElmSharp/theme/common/HD/images/Navigation_elements/README new file mode 100644 index 0000000..f267efa --- /dev/null +++ b/ElmSharp/theme/common/HD/images/Navigation_elements/README @@ -0,0 +1 @@ +This is reserved space for mobile images. Please erase this file if any image is added. diff --git a/ElmSharp/theme/common/HD/images/User_Input_Elements/core_radio_bg_01.svg b/ElmSharp/theme/common/HD/images/User_Input_Elements/core_radio_bg_01.svg new file mode 100755 index 0000000..a903fc2 --- /dev/null +++ b/ElmSharp/theme/common/HD/images/User_Input_Elements/core_radio_bg_01.svg @@ -0,0 +1,8 @@ + + + + + + diff --git a/ElmSharp/theme/common/HD/images/User_Input_Elements/core_radio_bg_02.svg b/ElmSharp/theme/common/HD/images/User_Input_Elements/core_radio_bg_02.svg new file mode 100755 index 0000000..4bf9638 --- /dev/null +++ b/ElmSharp/theme/common/HD/images/User_Input_Elements/core_radio_bg_02.svg @@ -0,0 +1,9 @@ + + + + + + diff --git a/ElmSharp/theme/common/HD/images/User_Input_Elements/core_radio_icon.svg b/ElmSharp/theme/common/HD/images/User_Input_Elements/core_radio_icon.svg new file mode 100755 index 0000000..3170adc --- /dev/null +++ b/ElmSharp/theme/common/HD/images/User_Input_Elements/core_radio_icon.svg @@ -0,0 +1,7 @@ + + + + + + diff --git a/ElmSharp/theme/common/HD/images/User_Input_Elements/core_radio_stroke.svg b/ElmSharp/theme/common/HD/images/User_Input_Elements/core_radio_stroke.svg new file mode 100755 index 0000000..9a8fdab --- /dev/null +++ b/ElmSharp/theme/common/HD/images/User_Input_Elements/core_radio_stroke.svg @@ -0,0 +1,8 @@ + + + + + + diff --git a/ElmSharp/theme/common/HD/images/User_Input_Elements/core_radio_white_bg.svg b/ElmSharp/theme/common/HD/images/User_Input_Elements/core_radio_white_bg.svg new file mode 100755 index 0000000..054a779 --- /dev/null +++ b/ElmSharp/theme/common/HD/images/User_Input_Elements/core_radio_white_bg.svg @@ -0,0 +1,8 @@ + + + + + + diff --git a/ElmSharp/theme/common/color_classes.edc b/ElmSharp/theme/common/color_classes.edc new file mode 100644 index 0000000..d10c93b --- /dev/null +++ b/ElmSharp/theme/common/color_classes.edc @@ -0,0 +1,101 @@ +color_classes { + /* + * Layout + */ + color_class { + name: "layout/background/bg"; + color: 0 0 0 0; + } + /* + * Colorselector + */ + color_class { + name: "colorselector/default/bg"; + color: 250 250 250 255; + } + /* + * Entry + */ + color_class { "entry/default/text_edit"; + color: 0 0 0 255; + } + color_class { "entry/default/text_edit_focused"; + color: 0 0 0 255; + } + color_class { "entry/default/text_edit_disabled"; + color: 0 0 0 110; + } + color_class { "entry/default/text_guide"; + color: 0 0 0 145; + } + color_class { "entry/default/text_guide_focused"; + color: 0 0 0 145; + } + color_class { "entry/default/text_guide_disabled"; + color: 0 0 0 110; + } + color_class { + name: "entry/default/bg"; + color: 0 0 0 0; + } + color_class { "entry/default/cursor"; + color: 0 184 230 110; + } + /* + * Label + */ + color_class { + name: "label/default/bg"; + color: 0 0 0 0; + } + color_class { + name: "label/slide_long/bg"; + color: 0 0 0 0; + } + color_class { + name: "label/slide_short/bg"; + color: 0 0 0 0; + } + color_class { + name: "label/slide_roll/bg"; + color: 0 0 0 0; + } + color_class { + name: "label/slide_bounce/bg"; + color: 0 0 0 0; + } + + /* + * Radio + */ + color_class { "radio/default/icon"; + color: 61 185 204 255; + } + color_class { "radio/default/bg"; + color: 250 250 250 51; + } + color_class { "radio/default/icon_disabled"; + color: 61 185 204 77; + } + color_class { "radio/default/bg_disabled"; + color: 250 250 250 38; + } + color_class { "radio/default/bg_border_on"; + color: 250 250 250 77; + } + color_class { "radio/default/bg_border_on_disabled"; + color: 250 250 250 38; + } + color_class { "radio/default/stroke"; + color: 61 185 204 255; + } + color_class { "radio/default/stroke_disabled"; + color: 61 185 204 77; + } + color_class { "radio/default/bg_on"; + color: 250 250 250 255; + } + color_class { "radio/default/bg_on_disabled"; + color: 250 250 250 255; + } +} diff --git a/ElmSharp/theme/common/elm-sharp-theme-mobile.edc b/ElmSharp/theme/common/elm-sharp-theme-mobile.edc new file mode 100644 index 0000000..d9baad4 --- /dev/null +++ b/ElmSharp/theme/common/elm-sharp-theme-mobile.edc @@ -0,0 +1,93 @@ +/* + * Copyright (c) 2015 Samsung Electronics Co., Ltd All Rights Reserved + * + * BSD 2-Clause License (http://www.opensource.org/licenses/bsd-license.php) + * + * Redistribution and use in source and binary forms, with or without + * modification, are permitted provided that the following conditions are met: + * + * 1. Redistributions of source code must retain the above copyright notice, this + * list of conditions and the following disclaimer. + * 2. Redistributions in binary form must reproduce the above copyright notice, + * this list of conditions and the following disclaimer in the documentation + * and/or other materials provided with the distribution. + * + * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND + * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED + * WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE + * DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR + * ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES + * (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; + * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND + * ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT + * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS + * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. + */ + +// LICENSE NOTE: +// This file (and only this one) is licenses under public-domain. The reason +// is that this is meant to serve as a template for making your own themes and +// Elementary's LGPL license is not intended to follow. The images used do come +// under LGPL, but this file specifically for the structure of your theme is +// public-domain. This means you can take, use, re-license and otherwise +// have zero restrictions on using this file as a base for your theme. + +//****************************************************************************************// +// This is theme body including all widget bodys +// Define shared descriptions (e.g. sound samples, color classes, textblock styles) in here +// Do not define size(width, height) in here!!!! +//****************************************************************************************// + +// Include INC (e.g. HD-inc.edc, HVGA-inc.edc for each resolution) file +#include "HD-inc.edc" + +externals { + external: "elm"; +} + +// BUILD_FIX: Add version to edc as 110. +data.item: "version" "110"; +// + +collections { + base_scale: BASE_SCALE_INC; + plugins { + plugin { + name: "touch_sound"; + source: "feedback"; + param: "FEEDBACK_TYPE_SOUND FEEDBACK_PATTERN_TAP"; // FEEDBACK_TYPE_SOUND, FEEDBACK_PATTERN_TOUCH_TAP + + /* 2014.06.11 updated from libsvi(feedback) + Above plugin will run below external function: + int feedback_play_type(feedback_type_e type, feedback_pattern_e pattern); + + param1: feedback_type_e + FEEDBACK_TYPE_NONE = 0, + FEEDBACK_TYPE_SOUND = 1, + FEEDBACK_TYPE_VIBRATION, + FEEDBACK_TYPE_LED, + FEEDBACK_TYPE_END + + * param2 enumeration: + FEEDBACK_PATTERN_TAP = 0, + FEEDBACK_PATTERN_SIP, + FEEDBACK_PATTERN_SIP_BACKSPACE, + FEEDBACK_PATTERN_SIP_FUNCTION, + FEEDBACK_PATTERN_SIP_FJKEY, + ... + + * For more information please refer libsvi. + */ + } + } + +#include "color_classes.edc" + +#include "widgets/colorselector.edc" +#include "widgets/entry.edc" +#include "widgets/label.edc" +#include "widgets/radio.edc" +#include "widgets/layout.edc" + +} + diff --git a/ElmSharp/theme/common/widgets/colorselector.edc b/ElmSharp/theme/common/widgets/colorselector.edc new file mode 100644 index 0000000..4ac5725 --- /dev/null +++ b/ElmSharp/theme/common/widgets/colorselector.edc @@ -0,0 +1,91 @@ +/* + * Copyright (c) 2010 Samsung Electronics Co., Ltd All Rights Reserved + * + * BSD 2-Clause License (http://www.opensource.org/licenses/bsd-license.php) + * + * Redistribution and use in source and binary forms, with or without + * modification, are permitted provided that the following conditions are met: + * + * 1. Redistributions of source code must retain the above copyright notice, this + * list of conditions and the following disclaimer. + * 2. Redistributions in binary form must reproduce the above copyright notice, + * this list of conditions and the following disclaimer in the documentation + * and/or other materials provided with the distribution. + * + * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND + * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED + * WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE + * DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR + * ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES + * (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; + * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND + * ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT + * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS + * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. + */ + +group { "elm/colorselector/palette/colorplane"; + alias: "elm/colorselector/palette/default"; + data.item: "horizontal_pad" COLORSELECTOR_PORTRAIT_HOR_PAD_COLORPLANE_INC; + data.item: "vertical_pad" COLORSELECTOR_PORTRAIT_VER_PAD_COLORPLANE_INC; + + parts { + spacer { "base"; + scale; + desc { "default"; + min: COLORSELECTOR_PALETTE_COLORPLANE_WIDTH_INC COLORSELECTOR_PALETTE_COLORPLANE_HEIGHT_INC; + max: -1 -1; + } + } + rect { "bg"; + nomouse; + desc { "default"; + rel.to: "base"; + color_class: "colorselector/default/bg"; + } + } + spacer { "padding_top"; + scale; + desc { "default"; + min: 0 COLORSELECTOR_TOPBOTTOM_PAD_COLORPLANE_INC; + fixed: 0 1; + rel1 { + relative: 0.0 0.0; + to: "base"; + } + rel2 { + relative: 1.0 0.0; + to: "base"; + } + align: 0.0 0.0; + } + } + swallow { "palette"; + scale; + mouse; + desc { state: "default"; + align: 0.5 0.0; + fixed: 0 1; + rel1 { + relative: 0.0 1.0; + to_y: "padding_top"; + } + rel2.to_y: "padding_top"; + } + } + spacer { "padding_palette"; + scale; + desc { "default"; + min: 0 COLORSELECTOR_TOPBOTTOM_PAD_COLORPLANE_INC; + fixed: 0 1; + rel1 { + relative: 0.0 1.0; + to: "palette"; + } + rel2.to: "palette"; + align: 0.0 0.0; + } + } + } +} + diff --git a/ElmSharp/theme/common/widgets/entry.edc b/ElmSharp/theme/common/widgets/entry.edc new file mode 100644 index 0000000..41f240f --- /dev/null +++ b/ElmSharp/theme/common/widgets/entry.edc @@ -0,0 +1,1077 @@ +/* + * Copyright (c) 2010 Samsung Electronics Co., Ltd All Rights Reserved + * + * BSD 2-Clause License (http://www.opensource.org/licenses/bsd-license.php) + * + * Redistribution and use in source and binary forms, with or without + * modification, are permitted provided that the following conditions are met: + * + * 1. Redistributions of source code must retain the above copyright notice, this + * list of conditions and the following disclaimer. + * 2. Redistributions in binary form must reproduce the above copyright notice, + * this list of conditions and the following disclaimer in the documentation + * and/or other materials provided with the distribution. + * + * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND + * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED + * WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE + * DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR + * ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES + * (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; + * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND + * ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT + * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS + * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. + */ + +#define ENTRY_DEFAULT_TAGS \ + tag: "em" "+ font_style=Oblique"; \ + tag: "b" "+ font_weight=Bold"; \ + tag: "link" "+ color=#800 underline=on underline_color=#8008"; \ + tag: "hilight" "+ font_weight=Bold"; + +#define ENTRY_SINGLELINE_TAGS \ + tag: "br" ""; \ + tag: "em" "+ font_style=Oblique"; \ + tag: "b" "+ font_weight=Bold"; \ + tag: "link" "+ color=#800 underline=on underline_color=#8008"; \ + tag: "hilight" "+ font_weight=Bold"; + +#define ENTRY_PREEDIT_TAGS \ + tag: "preedit" "+ underline=on underline_color="ENTRY_PREEDIT_UNDERLINE_COLOR_INC; \ + tag: "preedit_sel" "+ backing=on backing_color="ENTRY_PREEDIT_BACKGROUND_COLOR_INC" color="ENTRY_PREEDIT_TEXT_COLOR_INC" underline=on underline_color="ENTRY_PREEDIT_TEXT_COLOR_INC; \ + tag: "preedit_highlight" "+ backing=on backing_color="ENTRY_PREEDIT_HIGHLIGHT_BACKGROUND_COLOR_INC" underline=on underline_color="ENTRY_PREEDIT_TEXT_COLOR_INC; \ + tag: "preedit_sub1" "+ backing=on backing_color="ENTRY_PREEDIT_SUB1_COLOR_INC" underline=on underline_color="ENTRY_PREEDIT_UNDERLINE_COLOR_INC; \ + tag: "preedit_sub2" "+ backing=on backing_color="ENTRY_PREEDIT_SUB2_COLOR_INC" underline=on underline_color="ENTRY_PREEDIT_UNDERLINE_COLOR_INC; \ + tag: "preedit_sub3" "+ backing=on backing_color="ENTRY_PREEDIT_SUB3_COLOR_INC" underline=on underline_color="ENTRY_PREEDIT_UNDERLINE_COLOR_INC; \ + tag: "preedit_sub4" "+ backing=on backing_color="ENTRY_PREEDIT_SUB4_COLOR_INC" underline=on underline_color="ENTRY_PREEDIT_UNDERLINE_COLOR_INC; + +styles { + style { "entry_textblock_style"; + base: "font=Tizen:weight=Light font_size="ENTRY_FONT_SIZE_INC" color=#fff left_margin="ENTRY_LEFT_RIGHT_MARGIN_INC" right_margin="ENTRY_LEFT_RIGHT_MARGIN_INC" wrap=mixed text_class=entry color_class=entry/default/text_edit"; + ENTRY_DEFAULT_TAGS + ENTRY_PREEDIT_TAGS + } + style { "entry_textblock_focused_style"; + base: "font=Tizen:weight=Light font_size="ENTRY_FONT_SIZE_INC" color=#fff left_margin="ENTRY_LEFT_RIGHT_MARGIN_INC" right_margin="ENTRY_LEFT_RIGHT_MARGIN_INC" wrap=mixed text_class=entry color_class=entry/default/text_edit_focused"; + ENTRY_DEFAULT_TAGS + ENTRY_PREEDIT_TAGS + } + style { "entry_textblock_disabled_style"; + base: "font=Tizen:weight=Light font_size="ENTRY_FONT_SIZE_INC" color=#fff left_margin="ENTRY_LEFT_RIGHT_MARGIN_INC" right_margin="ENTRY_LEFT_RIGHT_MARGIN_INC" wrap=mixed text_class=entry color_class=entry/default/text_edit_disabled"; + ENTRY_DEFAULT_TAGS + ENTRY_PREEDIT_TAGS + } + style { "entry_textblock_guide_style"; + base: "font=Tizen:weight=Light font_size="ENTRY_FONT_SIZE_INC" color=#fff left_margin="ENTRY_LEFT_RIGHT_MARGIN_INC" right_margin="ENTRY_LEFT_RIGHT_MARGIN_INC" wrap=mixed text_class=entry color_class=entry/default/text_guide"; + ENTRY_DEFAULT_TAGS + } + style { "entry_textblock_guide_focused_style"; + base: "font=Tizen:weight=Light font_size="ENTRY_FONT_SIZE_INC" color=#fff left_margin="ENTRY_LEFT_RIGHT_MARGIN_INC" right_margin="ENTRY_LEFT_RIGHT_MARGIN_INC" wrap=mixed text_class=entry color_class=entry/default/text_guide_focused"; + ENTRY_DEFAULT_TAGS + } + style { "entry_textblock_guide_disabled_style"; + base: "font=Tizen:weight=Light font_size="ENTRY_FONT_SIZE_INC" color=#fff left_margin="ENTRY_LEFT_RIGHT_MARGIN_INC" right_margin="ENTRY_LEFT_RIGHT_MARGIN_INC" wrap=mixed text_class=entry color_class=entry/default/text_guide_disabled"; + ENTRY_DEFAULT_TAGS + } + style { "entry_textblock_char_wrap_style"; + base: "font=Tizen:weight=Light font_size="ENTRY_FONT_SIZE_INC" color=#fff left_margin="ENTRY_LEFT_RIGHT_MARGIN_INC" right_margin="ENTRY_LEFT_RIGHT_MARGIN_INC" wrap=char text_class=entry color_class=entry/default/text_edit"; + ENTRY_DEFAULT_TAGS + ENTRY_PREEDIT_TAGS + } + style { "entry_textblock_char_wrap_focused_style"; + base: "font=Tizen:weight=Light font_size="ENTRY_FONT_SIZE_INC" color=#fff left_margin="ENTRY_LEFT_RIGHT_MARGIN_INC" right_margin="ENTRY_LEFT_RIGHT_MARGIN_INC" wrap=char text_class=entry color_class=entry/default/text_edit_focused"; + ENTRY_DEFAULT_TAGS + ENTRY_PREEDIT_TAGS + } + style { "entry_textblock_char_wrap_disabled_style"; + base: "font=Tizen:weight=Light font_size="ENTRY_FONT_SIZE_INC" color=#fff left_margin="ENTRY_LEFT_RIGHT_MARGIN_INC" right_margin="ENTRY_LEFT_RIGHT_MARGIN_INC" wrap=char text_class=entry color_class=entry/default/text_edit_disabled"; + ENTRY_DEFAULT_TAGS + ENTRY_PREEDIT_TAGS + } + style { "entry_textblock_char_wrap_guide_style"; + base: "font=Tizen:weight=Light font_size="ENTRY_FONT_SIZE_INC" color=#fff left_margin="ENTRY_LEFT_RIGHT_MARGIN_INC" right_margin="ENTRY_LEFT_RIGHT_MARGIN_INC" wrap=char text_class=entry color_class=entry/default/text_guide"; + ENTRY_DEFAULT_TAGS + } + style { "entry_textblock_char_wrap_guide_focused_style"; + base: "font=Tizen:weight=Light font_size="ENTRY_FONT_SIZE_INC" color=#fff left_margin="ENTRY_LEFT_RIGHT_MARGIN_INC" right_margin="ENTRY_LEFT_RIGHT_MARGIN_INC" wrap=char text_class=entry color_class=entry/default/text_guide_focused"; + ENTRY_DEFAULT_TAGS + } + style { "entry_textblock_char_wrap_guide_disabled_style"; + base: "font=Tizen:weight=Light font_size="ENTRY_FONT_SIZE_INC" color=#fff left_margin="ENTRY_LEFT_RIGHT_MARGIN_INC" right_margin="ENTRY_LEFT_RIGHT_MARGIN_INC" wrap=char text_class=entry color_class=entry/default/text_guide_disabled"; + ENTRY_DEFAULT_TAGS + } + style { "entry_single_textblock_style"; + base: "font=Tizen:weight=Light font_size="ENTRY_FONT_SIZE_INC" color=#fff left_margin="ENTRY_LEFT_RIGHT_MARGIN_INC" right_margin="ENTRY_LEFT_RIGHT_MARGIN_INC" wrap=none text_class=entry color_class=entry/default/text_edit"; + ENTRY_SINGLELINE_TAGS + ENTRY_PREEDIT_TAGS + } + style { "entry_single_textblock_focused_style"; + base: "font=Tizen:weight=Light font_size="ENTRY_FONT_SIZE_INC" color=#fff left_margin="ENTRY_LEFT_RIGHT_MARGIN_INC" right_margin="ENTRY_LEFT_RIGHT_MARGIN_INC" wrap=none text_class=entry color_class=entry/default/text_edit_focused"; + ENTRY_SINGLELINE_TAGS + ENTRY_PREEDIT_TAGS + } + style { "entry_single_textblock_disabled_style"; + base: "font=Tizen:weight=Light font_size="ENTRY_FONT_SIZE_INC" color=#fff left_margin="ENTRY_LEFT_RIGHT_MARGIN_INC" right_margin="ENTRY_LEFT_RIGHT_MARGIN_INC" wrap=none text_class=entry color_class=entry/default/text_edit_disabled"; + ENTRY_SINGLELINE_TAGS + ENTRY_PREEDIT_TAGS + } + style { "entry_single_textblock_guide_style"; + base: "font=Tizen:weight=Light font_size="ENTRY_FONT_SIZE_INC" color=#fff left_margin="ENTRY_LEFT_RIGHT_MARGIN_INC" right_margin="ENTRY_LEFT_RIGHT_MARGIN_INC" wrap=none text_class=entry color_class=entry/default/text_guide"; + ENTRY_SINGLELINE_TAGS + } + style { "entry_single_textblock_guide_focused_style"; + base: "font=Tizen:weight=Light font_size="ENTRY_FONT_SIZE_INC" color=#fff left_margin="ENTRY_LEFT_RIGHT_MARGIN_INC" right_margin="ENTRY_LEFT_RIGHT_MARGIN_INC" wrap=none text_class=entry color_class=entry/default/text_guide_focused"; + ENTRY_SINGLELINE_TAGS + } + style { "entry_single_textblock_guide_disabled_style"; + base: "font=Tizen:weight=Light font_size="ENTRY_FONT_SIZE_INC" color=#fff left_margin="ENTRY_LEFT_RIGHT_MARGIN_INC" right_margin="ENTRY_LEFT_RIGHT_MARGIN_INC" wrap=none text_class=entry color_class=entry/default/text_guide_disabled"; + ENTRY_SINGLELINE_TAGS + } +} + +group { "elm/entry/event/default"; + inherit_only: 1; + parts { + rect { "event"; + mouse; + repeat; + desc { "default"; + color: 0 0 0 0; + } + desc { "disabled"; + inherit: "default"; + hid; + } + } + } + programs { + program { "clicked"; + signal: "mouse,clicked,1"; + source: "event"; + after: "on_clicked"; + } + program { "load"; + signal: "load"; + source: ""; + after: "on_load"; + } + program { "disabled"; + signal: "elm,state,disabled"; + source: "elm"; + action: STATE_SET "disabled"; + target: "event"; + after: "on_disabled"; + } + program { "enabled"; + signal: "elm,state,disabled"; + source: "elm"; + action: STATE_SET "default"; + target: "event"; + after: "on_enabled"; + } + program { "focus"; + signal: "elm,action,focus"; + source: "elm"; + after: "on_focus"; + } + program { "unfocus"; + signal: "elm,action,unfocus"; + source: "elm"; + after: "on_unfocus"; + } + program { "disabled_guide"; + signal: "elm,guide,disabled"; + source: "elm"; + after: "on_disabled_guide"; + } + program { "enabled_guide"; + signal: "elm,guide,enabled"; + source: "elm"; + after: "on_enabled_guide"; + } + } +} + +group { "elm/entry/base/template"; + inherit_only: 1; + data.item: "default_font_size" ENTRY_FONT_SIZE_INC; + data.item: "focus_highlight" "on"; + data.item: context_menu_orientation "horizontal"; + parts { + rect { "bg"; + nomouse; + desc { "default"; + color_class: "entry/default/bg"; + } + } + textblock { "elm.guide"; + nomouse; + scale; + desc { "default"; + rel.to: "elm.text"; + text.style: "entry_textblock_guide_style"; + } + desc { "focused"; + inherit: "default"; + text.style: "entry_textblock_guide_focused_style"; + } + desc { "disabled"; + inherit: "default"; + text.style: "entry_textblock_guide_disabled_style"; + } + desc { "hidden"; + inherit: "default"; + hid; + } + } + textblock { "elm.text"; + mouse; + scale; + entry_mode: EDITABLE; + select_mode: EXPLICIT; + cursor_mode: BEFORE; + multiline: 1; + source: "elm/entry/selection/default"; // selection under + source4: "elm/entry/cursor/default"; // cursorover + source5: "elm/entry/anchor/default"; // anchor under + desc { "default"; + text.style: "entry_textblock_style"; + } + desc { "focused"; + inherit: "default"; + text.style: "entry_textblock_focused_style"; + } + desc { "disabled"; + inherit: "default"; + text.style: "entry_textblock_disabled_style"; + } + } + } + inherit: "elm/entry/event/default"; + script { + public focused = 0; + public disabled = 0; + public guide_disabled = 0; + } + programs { + program { "on_load"; + action: FOCUS_SET; + target: "elm.text"; + } + program { "on_clicked"; + action: RUN_PLUGIN "touch_sound"; + } + program { "on_focus"; + script { + set_int(focused, 1); + if (get_int(disabled) == 0) { + set_state(PART:"elm.text", "focused", 0.0); + if (get_int(guide_disabled) == 0) + set_state(PART:"elm.guide", "focused", 0.0); + } + } + } + program { "on_unfocus"; + script { + set_int(focused, 0); + if (get_int(disabled) == 0) { + set_state(PART:"elm.text", "default", 0.0); + if (get_int(guide_disabled) == 0) + set_state(PART:"elm.guide", "default", 0.0); + } + } + } + program { "on_disabled"; + script { + set_int(disabled, 1); + set_state(PART:"elm.text", "disabled", 0.0); + if (get_int(guide_disabled) == 0) + set_state(PART:"elm.guide", "disabled", 0.0); + } + } + program { "on_enabled"; + script { + set_int(disabled, 0); + if (get_int(focused)) + set_state(PART:"elm.text", "focused", 0.0); + else + set_state(PART:"elm.text", "default", 0.0); + if (get_int(guide_disabled) == 0) { + if (get_int(focused)) + set_state(PART:"elm.guide", "focused", 0.0); + else + set_state(PART:"elm.guide", "default", 0.0); + } + } + } + program { "on_disabled_guide"; + script { + set_int(guide_disabled, 1); + set_state(PART:"elm.guide", "hidden", 0.0); + } + } + program { "on_enabled_guide"; + script { + set_int(guide_disabled, 0); + if (get_int(disabled)) + set_state(PART:"elm.guide", "disabled", 0.0); + else if (get_int(focused)) + set_state(PART:"elm.guide", "focused", 0.0); + else + set_state(PART:"elm.guide", "default", 0.0); + } + } + } +} + +group { "elm/entry/cursor/event/default"; + inherit_only: 1; + programs { + program { "selection_start"; + signal: "selection,start"; + source: "elm.text"; + after: "on_selection_start"; + } + program { "selection_cleared"; + signal: "selection,cleared"; + source: "elm.text"; + after: "on_selection_cleared"; + } + program { "focus"; + signal: "elm,action,focus"; + source: "elm"; + after: "on_focus"; + } + program { "unfocus"; + signal: "elm,action,unfocus"; + source: "elm"; + after: "on_unfocus"; + } + program { "show_cursor"; + signal: "elm,action,show,cursor"; + source: "elm"; + after: "on_show_cursor"; + } + } +} + +group { "elm/entry/cursor/template"; + inherit: "elm/entry/cursor/event/default"; + inherit_only: 1; + parts { + rect { "cursor"; + clip: "clipper"; + desc { "default"; + hid; + } + desc { "visible"; + inherit: "default"; + vis; + } + } + rect { "clipper"; + desc { "default"; + } + desc { "hidden"; + inherit: "default"; + hid; + } + } + } + programs { + program { "on_selection_start"; + action: STATE_SET "hidden"; + target: "clipper"; + } + program { "on_selection_cleared"; + action: STATE_SET "default"; + target: "clipper"; + } + program { "on_focus"; + action: ACTION_STOP; + target: "cursor_visible"; + target: "cursor_hidden"; + target: "cursor_visible_timer"; + target: "cursor_hidden_timer"; + after: "cursor_visible"; + } + program { "on_unfocus"; + action: ACTION_STOP; + target: "cursor_visible"; + target: "cursor_hidden"; + target: "cursor_visible_timer"; + target: "cursor_hidden_timer"; + after: "cursor_hidden_stop"; + } + program { "on_show_cursor"; + action: ACTION_STOP; + target: "cursor_visible"; + target: "cursor_hidden"; + target: "cursor_visible_timer"; + target: "cursor_hidden_timer"; + after: "cursor_visible"; + } + program { "cursor_hidden_stop"; + action: STATE_SET "default"; + target: "cursor"; + } + program { "cursor_visible"; + action: STATE_SET "visible"; + target: "cursor"; + after: "cursor_visible_timer"; + } + program { "cursor_hidden"; + action: STATE_SET "default"; + target: "cursor"; + after: "cursor_hidden_timer"; + } + program { "cursor_visible_timer"; + in: 0.6 0.0; + after: "cursor_hidden"; + } + program { "cursor_hidden_timer"; + in: 0.6 0.0; + after: "cursor_visible"; + } + } +} + +group { "elm/entry/cursor/default"; + inherit: "elm/entry/cursor/template"; + parts { + rect { "cursor"; + nomouse; + scale; + clip: "clipper"; + desc { "default"; + min: ENTRY_CURSOR_SIZE_INC; + color_class: "entry/default/cursor"; + hid; + } + desc { "visible"; + inherit: "default"; + vis; + } + } + rect { "clipper"; + desc { "default"; + rel.to: "cursor"; + fixed: 1 1; + } + desc { "hidden"; + inherit: "default"; + hid; + } + } + } +} + +group { "elm/entry/base/default"; + inherit: "elm/entry/base/template"; + alias: "elm/entry/base-mixedwrap/default"; + parts { + textblock { "elm.guide"; + nomouse; + scale; + desc { "default"; + rel.to: "elm.text"; + text { + style: "entry_textblock_guide_style"; + min: 0 1; + align: 0.0 0.0; + } + } + desc { "focused"; + inherit: "default"; + text.style: "entry_textblock_guide_focused_style"; + } + desc { "disabled"; + inherit: "default"; + text.style: "entry_textblock_guide_disabled_style"; + } + desc { "hidden"; + inherit: "default"; + hid; + } + } + textblock { "elm.text"; + mouse; + scale; + entry_mode: EDITABLE; + select_mode: EXPLICIT; + cursor_mode: BEFORE; + multiline: 1; + source: "elm/entry/selection/default"; // selection under + source4: "elm/entry/cursor/default"; // cursorover + source5: "elm/entry/anchor/default"; // anchor under + desc { "default"; + fixed: 1 0; + text { + style: "entry_textblock_style"; + min: 0 1; + align: 0.0 0.0; + } + } + desc { "focused"; + inherit: "default"; + text { + style: "entry_textblock_focused_style"; + min: 0 1; + } + } + desc { "disabled"; + inherit: "default"; + text { + style: "entry_textblock_disabled_style"; + min: 0 1; + } + } + } + } +} + +group { "elm/entry/base-charwrap/default"; + alias: "elm/entry/base/char_wrap"; + inherit: "elm/entry/base/template"; + parts { + textblock { "elm.guide"; + nomouse; + scale; + desc { "default"; + rel.to: "elm.text"; + text { + style: "entry_textblock_char_wrap_guide_style"; + min: 0 1; + align: 0.0 0.0; + } + } + desc { "focused"; + inherit: "default"; + text.style: "entry_textblock_char_wrap_guide_focused_style"; + } + desc { "disabled"; + inherit: "default"; + text.style: "entry_textblock_char_wrap_guide_disabled_style"; + } + desc { "hidden"; + inherit: "default"; + hid; + } + } + textblock { "elm.text"; + mouse; + scale; + entry_mode: EDITABLE; + select_mode: EXPLICIT; + cursor_mode: BEFORE; + multiline: 1; + source: "elm/entry/selection/default"; // selection under + source4: "elm/entry/cursor/default"; // cursorover + source5: "elm/entry/anchor/default"; // anchor under + desc { "default"; + fixed: 1 0; + text { + style: "entry_textblock_char_wrap_style"; + min: 0 1; + align: 0.0 0.0; + } + } + desc { "focused"; + inherit: "default"; + text { + style: "entry_textblock_char_wrap_focused_style"; + min: 0 1; + } + } + desc { "disabled"; + inherit: "default"; + text { + style: "entry_textblock_char_wrap_disabled_style"; + min: 0 1; + } + } + } + } +} + +group { "elm/entry/base-nowrap/default"; + inherit: "elm/entry/base/template"; + parts { + textblock { "elm.guide"; + nomouse; + scale; + desc { "default"; + rel.to: "elm.text"; + text { + style: "entry_textblock_guide_style"; + min: 0 1; + align: 0.0 0.0; + } + } + desc { "focused"; + inherit: "default"; + text.style: "entry_textblock_guide_focused_style"; + } + desc { "disabled"; + inherit: "default"; + text.style: "entry_textblock_guide_disabled_style"; + } + desc { "hidden"; + inherit: "default"; + hid; + } + } + textblock { "elm.text"; + mouse; + scale; + entry_mode: EDITABLE; + select_mode: EXPLICIT; + cursor_mode: BEFORE; + multiline: 1; + source: "elm/entry/selection/default"; // selection under + source4: "elm/entry/cursor/default"; // cursorover + source5: "elm/entry/anchor/default"; // anchor under + desc { "default"; + text { + style: "entry_textblock_style"; + min: 1 1; + align: 0.0 0.0; + } + } + desc { "focused"; + inherit: "default"; + text { + style: "entry_textblock_focused_style"; + min: 1 1; + } + } + desc { "disabled"; + inherit: "default"; + text { + style: "entry_textblock_disabled_style"; + min: 0 1; + } + } + } + } +} + +group { "elm/entry/base-single/default"; + inherit: "elm/entry/base/template"; + parts { + textblock { "elm.guide"; + nomouse; + scale; + desc { "default"; + fixed: 1 1; + rel.to: "elm.text"; + text { + style: "entry_single_textblock_guide_style"; + min: 0 1; + max: 0 0; + align: 0.0 0.5; + } + } + desc { "focused"; + inherit: "default"; + text.style: "entry_single_textblock_guide_focused_style"; + } + desc { "disabled"; + inherit: "default"; + text.style: "entry_single_textblock_guide_disabled_style"; + } + desc { "hidden"; + inherit: "default"; + hid; + } + } + textblock { "elm.text"; + mouse; + scale; + entry_mode: EDITABLE; + select_mode: EXPLICIT; + cursor_mode: BEFORE; + multiline: 0; + source: "elm/entry/selection/default"; // selection under + source4: "elm/entry/cursor/default"; // cursorover + source5: "elm/entry/anchor/default"; // anchor under + desc { "default"; + text { + style: "entry_single_textblock_style"; + min: 1 1; + max: 0 0; + align: 0.0 0.5; + } + } + desc { "focused"; + inherit: "default"; + text.style: "entry_single_textblock_focused_style"; + } + desc { "disabled"; + inherit: "default"; + text.style: "entry_single_textblock_disabled_style"; + } + } + } +} + +group { "elm/entry/base-single-noedit/default"; + inherit: "elm/entry/base/template"; + alias: "elm/entry/base-single-noedit/vcenter_align"; + parts { + textblock { "elm.guide"; + nomouse; + scale; + desc { "default"; + fixed: 1 1; + rel.to: "elm.text"; + text { + style: "entry_single_textblock_guide_style"; + min: 0 1; + max: 0 1; + } + } + desc { "focused"; + inherit: "default"; + text.style: "entry_single_textblock_guide_focused_style"; + } + desc { "disabled"; + inherit: "default"; + text.style: "entry_single_textblock_guide_disabled_style"; + } + desc { "hidden"; + inherit: "default"; + hid; + } + } + textblock { "elm.text"; + mouse; + scale; + entry_mode: PLAIN; + select_mode: EXPLICIT; + cursor_mode: BEFORE; + multiline: 0; + source: "elm/entry/selection/default"; // selection under + source5: "elm/entry/anchor/default"; // anchor under + desc { "default"; + text { + style: "entry_single_textblock_style"; + min: 1 1; + max: 0 1; + } + } + desc { "focused"; + inherit: "default"; + text.style: "entry_single_textblock_focused_style"; + } + desc { "disabled"; + inherit: "default"; + text.style: "entry_single_textblock_disabled_style"; + } + } + } +} + +group { "elm/entry/base-noedit/default"; + inherit: "elm/entry/base/template"; + parts { + textblock { "elm.guide"; + nomouse; + scale; + desc { "default"; + rel.to: "elm.text"; + text { + style: "entry_textblock_guide_style"; + min: 0 1; + align: 0.0 0.0; + } + } + desc { "focused"; + inherit: "default"; + text.style: "entry_textblock_guide_focused_style"; + } + desc { "disabled"; + inherit: "default"; + text.style: "entry_textblock_guide_disabled_style"; + } + desc { "hidden"; + inherit: "default"; + hid; + } + } + textblock { "elm.text"; + mouse; + scale; + entry_mode: PLAIN; + select_mode: EXPLICIT; + cursor_mode: BEFORE; + multiline: 1; + source: "elm/entry/selection/default"; // selection under + source5: "elm/entry/anchor/default"; // anchor under + desc { "default"; + fixed: 1 0; + text { + style: "entry_textblock_style"; + min: 0 1; + align: 0.0 0.0; + } + } + desc { "focused"; + inherit: "default"; + text.style: "entry_textblock_focused_style"; + } + desc { "disabled"; + inherit: "default"; + text.style: "entry_textblock_disabled_style"; + } + } + } +} + +group { "elm/entry/base-noedit-charwrap/default"; + inherit: "elm/entry/base/template"; + parts { + textblock { "elm.guide"; + nomouse; + scale; + desc { "default"; + rel.to: "elm.text"; + text { + style: "entry_textblock_char_wrap_guide_style"; + min: 0 1; + align: 0.0 0.0; + } + } + desc { "focused"; + inherit: "default"; + text.style: "entry_textblock_char_wrap_guide_focused_style"; + } + desc { "disabled"; + inherit: "default"; + text.style: "entry_textblock_char_wrap_guide_disabled_style"; + } + desc { "hidden"; + inherit: "default"; + hid; + } + } + textblock { "elm.text"; + mouse; + scale; + entry_mode: PLAIN; + select_mode: EXPLICIT; + cursor_mode: BEFORE; + multiline: 1; + source: "elm/entry/selection/default"; // selection under + source5: "elm/entry/anchor/default"; // anchor under + desc { "default"; + fixed: 1 0; + text { + style: "entry_textblock_char_wrap_style"; + min: 0 1; + align: 0.0 0.0; + } + } + desc { "focused"; + inherit: "default"; + text.style: "entry_textblock_char_wrap_focused_style"; + } + desc { "disabled"; + inherit: "default"; + text.style: "entry_textblock_char_wrap_disabled_style"; + } + } + } +} + +group { "elm/entry/base-noedit-mixedwrap/default"; + inherit: "elm/entry/base/template"; + parts { + part { "elm.guide"; + type: TEXTBLOCK; + nomouse; + scale; + desc { "default"; + rel.to: "elm.text"; + text { + style: "entry_textblock_guide_style"; + min: 0 1; + align: 0.0 0.0; + } + } + desc { "focused"; + inherit: "default"; + text.style: "entry_textblock_guide_focused_style"; + } + desc { "disabled"; + inherit: "default"; + text.style: "entry_textblock_guide_disabled_style"; + } + desc { "hidden"; + inherit: "default"; + hid; + } + } + textblock { "elm.text"; + mouse; + scale; + entry_mode: PLAIN; + select_mode: EXPLICIT; + cursor_mode: BEFORE; + multiline: 1; + source: "elm/entry/selection/default"; // selection under + source5: "elm/entry/anchor/default"; // anchor under + desc { "default"; + fixed: 1 0; + text { + style: "entry_textblock_style"; + min: 0 1; + align: 0.0 0.0; + } + } + desc { "focused"; + inherit: "default"; + text.style: "entry_textblock_focused_style"; + } + desc { "disabled"; + inherit: "default"; + text.style: "entry_textblock_disabled_style"; + } + } + } +} + +group { "elm/entry/base-nowrap-noedit/default"; + inherit: "elm/entry/base/template"; + parts { + textblock { "elm.guide"; + type: TEXTBLOCK; + nomouse; + scale; + desc { "default"; + rel.to: "elm.text"; + text { + style: "entry_textblock_guide_style"; + min: 0 1; + align: 0.0 0.0; + } + } + desc { "focused"; + inherit: "default"; + text.style: "entry_textblock_guide_focused_style"; + } + desc { "disabled"; + inherit: "default"; + text.style: "entry_textblock_guide_disabled_style"; + } + desc { "hidden"; + inherit: "default"; + hid; + } + } + textblock { "elm.text"; + mouse; + scale; + entry_mode: PLAIN; + select_mode: EXPLICIT; + cursor_mode: BEFORE; + multiline: 1; + source: "elm/entry/selection/default"; // selection under + source5: "elm/entry/anchor/default"; // anchor under + desc { "default"; + text { + style: "entry_textblock_style"; + min: 1 1; + align: 0.0 0.0; + } + } + desc { "focused"; + inherit: "default"; + text.style: "entry_textblock_focused_style"; + } + desc { "disabled"; + inherit: "default"; + text.style: "entry_textblock_disabled_style"; + } + } + } +} + +group { "elm/entry/base-password/default"; + inherit: "elm/entry/base/template"; + parts { + textblock { "elm.guide"; + nomouse; + scale; + desc { "default"; + fixed: 1 1; + rel.to: "elm.text"; + text { + style: "entry_single_textblock_guide_style"; + min: 0 1; + max: 0 1; + } + } + desc { "focused"; + inherit: "default"; + text.style: "entry_single_textblock_guide_focused_style"; + } + desc { "disabled"; + inherit: "default"; + text.style: "entry_single_textblock_guide_disabled_style"; + } + desc { "hidden"; + inherit: "default"; + hid; + } + } + textblock { "elm.text"; + mouse; + scale; + entry_mode: PASSWORD; + select_mode: EXPLICIT; + cursor_mode: BEFORE; + multiline: 0; + source: "elm/entry/selection/default"; // selection under + source4: "elm/entry/cursor/default"; // cursorover + source5: "elm/entry/anchor/default"; // anchor under + desc { "default"; + text { + style: "entry_single_textblock_style"; + repch: "•"; + min: 1 1; + max: 0 1; + } + } + desc { "focused"; + inherit: "default"; + text.style: "entry_single_textblock_focused_style"; + } + desc { "disabled"; + inherit: "default"; + text.style: "entry_single_textblock_disabled_style"; + } + } + } +} + +group { "elm/entry/selection/default"; + parts { + rect { "bg"; + scale; + nomouse; + desc { "default"; + color: 0 221 255 153; + } + } + } +} + +group { "elm/entry/anchor/default"; + parts { + spacer { "bg"; + desc { "default"; } + } + } +} diff --git a/ElmSharp/theme/common/widgets/label.edc b/ElmSharp/theme/common/widgets/label.edc new file mode 100644 index 0000000..5b11efd --- /dev/null +++ b/ElmSharp/theme/common/widgets/label.edc @@ -0,0 +1,722 @@ +/* + * Copyright (c) 2010 Samsung Electronics Co., Ltd All Rights Reserved + * + * BSD 2-Clause License (http://www.opensource.org/licenses/bsd-license.php) + * + * Redistribution and use in source and binary forms, with or without + * modification, are permitted provided that the following conditions are met: + * + * 1. Redistributions of source code must retain the above copyright notice, this + * list of conditions and the following disclaimer. + * 2. Redistributions in binary form must reproduce the above copyright notice, + * this list of conditions and the following disclaimer in the documentation + * and/or other materials provided with the distribution. + * + * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND + * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED + * WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE + * DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR + * ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES + * (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; + * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND + * ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT + * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS + * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. + */ + +#define SLIDE_SPEED_WEIGHT 0.5 +#define SLIDE_TEXT_GAP 60 +#define SLIDE_TEXT_CHAR_GAP " " //60 (6 spaces) +#define SLIDE_TEXT_MAX_LENGTH (2*(1024+6)) + +styles { + style { "textblock_style"; + base: "font=Tizen:weight=Normal font_size="LABEL_FONT_SIZE_INC" color=#FFF color_class=label/default/text text_class=label"; + tag: "br" "\n"; + tag: "ps" "ps"; + tag: "hilight" "+ font_weight=Bold"; + tag: "b" "+ font_weight=Bold"; + tag: "tab" "\t"; + } + style { "textblock_charwrap_style"; + base: "font=Tizen:weight=Normal font_size="LABEL_FONT_SIZE_INC" color=#FFF color_class=label/default/text text_class=label"; + tag: "br" "\n"; + tag: "ps" "ps"; + tag: "hilight" "+ font_weight=Bold"; + tag: "b" "+ font_weight=Bold"; + tag: "tab" "\t"; + } + style { "textblock_style_marker"; + base: "font=Tizen:weight=Bold font_size=14 align=center color=#FFF wrap=word color_class=label/default/text text_class=tizen"; + tag: "br" "\n"; + tag: "ps" "ps"; + tag: "hilight" "+ font_weight=Bold"; + tag: "b" "+ font_weight=Bold"; + tag: "tab" "\t"; + } +} + +group { "elm/label/event/default"; + inherit_only: 1; + programs { + program { "start_slide"; + source: "elm"; + signal: "elm,state,slide,start"; + after: "on_start_slide"; + } + program { "stop_slide"; + source: "elm"; + signal: "elm,state,slide,stop"; + after: "on_stop_slide"; + } + } +} + +group { "elm/label/base/template"; + inherit: "elm/label/event/default"; + inherit_only: 1; + parts { + rect { "bg"; + desc { "default"; + color_class: "label/default/bg"; + } + } + rect { "clipper"; + desc { "default"; + } + } + textblock { "elm.text"; + scale; + clip: "clipper"; + desc { "default"; + text.style: "textblock_style"; + } + } + } + programs { + program { "on_start_slide"; + } + program { "on_stop_slide"; + } + } +} + +group { "elm/label/base/default"; + inherit: "elm/label/base/template"; + parts { + textblock { "elm.text"; + scale; + clip: "clipper"; + desc { "default"; + text { + style: "textblock_style"; + min: 0 1; + align: 0.0 0.0; + } + } + } + } +} + +/* default label doesn't use it */ +group { "elm/label/base_wrap/default"; + inherit: "elm/label/base/template"; + parts { + textblock { "elm.text"; + scale; + multiline: 1; + desc { "default"; + text { + style: "textblock_style"; + min: 0 1; + align: 0.0 0.0; + } + } + desc { "charwrap_mode"; + text { + style: "textblock_charwrap_style"; + min: 0 1; + align: 0.0 0.0; + } + } + } + } + programs { + program { "default"; + signal: "elm,state,default"; + source: "elm"; + action: STATE_SET "default"; + target: "elm.text"; + } + program { "charwrap"; + signal: "elm,state,charwrap"; + source: "elm"; + action: STATE_SET "charwrap_mode"; + target: "elm.text"; + } + } +} + +/* default label doesn't use it */ +group { "elm/label/base_wrap_ellipsis/default"; + inherit: "elm/label/base/template"; + parts { + textblock { "elm.text"; + scale; + multiline: 1; + desc { "default"; + fixed: 0 1; + text { + style: "textblock_style"; + min: 0 1; + align: 0.0 0.0; + } + } + desc { "charwrap_mode"; + fixed: 0 1; + text { + style: "textblock_charwrap_style"; + min: 0 1; + align: 0.0 0.0; + } + } + } + } + programs { + program { "default"; + signal: "elm,state,default"; + source: "elm"; + action: STATE_SET "default"; + target: "elm.text"; + } + program { "charwrap"; + signal: "elm,state,charwrap"; + source: "elm"; + action: STATE_SET "charwrap_mode"; + target: "elm.text"; + } + } +} + +group { "elm/label/base/slide_long"; + inherit: "elm/label/base/template"; + script { + public g_duration = 0, g_stopslide, g_timer_id, g_anim_id; + + public message(Msg_Type:type, id, ...) { + if (type == MSG_FLOAT_SET) { + new Float:duration; + duration = getfarg(2); + if (id == 0) + set_float(g_duration, duration); + else + set_float(g_duration, duration / LABEL_FONT_SIZE_INC * SLIDE_SPEED_WEIGHT); + } + } + public slide_to_end_anim(val, Float:pos) { + new stopflag; + new id; + stopflag = get_int(g_stopslide); + if (stopflag == 1) return; + set_tween_state(PART:"elm.text", pos, "slide_begin", 0.0, "slide_end", 0.0); + if (pos >= 1.0) { + id = timer(0.5, "slide_to_begin", 1); + set_int(g_timer_id, id); + } + } + public slide_to_end() { + new stopflag; + new id; + new Float:duration; + stopflag = get_int(g_stopslide); + if (stopflag == 1) return; + duration = get_float(g_duration); + id = anim(duration, "slide_to_end_anim", 1); + set_int(g_anim_id, id); + } + public slide_to_begin() { + new stopflag; + new id; + stopflag = get_int(g_stopslide); + if (stopflag == 1) return; + set_state(PART:"elm.text", "slide_begin", 0.0); + id = timer(0.5, "slide_to_end", 1); + set_int(g_timer_id, id); + } + public start_slide() { + set_int(g_stopslide, 0); + set_state(PART:"elm.text", "slide_begin", 0.0); + slide_to_end(); + } + public stop_slide() { + new id; + set_int(g_stopslide, 1); + id = get_int(g_anim_id); + cancel_anim(id); + id = get_int(g_timer_id); + cancel_timer(id); + set_state(PART:"elm.text", "default", 0.0); + } + } + parts { + rect { "bg"; + desc { "default"; + color_class: "label/slide_long/bg"; + } + } + textblock { "elm.text"; + scale; + clip: "clipper"; + desc { "default"; + align: 0.0 0.0; + text { + style: "textblock_style"; + min: 0 1; + align: 0.0 0.0; + } + } + desc { "slide_end"; + inherit: "default"; + rel2.relative: 0.0 1.0; + align: 1.0 0.0; + text { + style: "textblock_style"; + min: 1 1; + align: 0.0 0.0; + } + } + desc { "slide_begin"; + inherit: "default"; + rel1.relative: 1.0 0.0; + text { + style: "textblock_style"; + min: 1 1; + align: 0.0 0.0; + } + } + } + } + programs { + program { "on_start_slide"; + script { + start_slide(); + } + } + program { "on_stop_slide"; + script { + stop_slide(); + } + } + } +} + +group { "elm/label/base/slide_roll"; + inherit: "elm/label/base/template"; + script { + public g_duration = 0; + public g_stopslide = 0; + public g_timer_id = 0; + public g_anim_id = 0; + public g_tb_w = 0; + public g_tb_h = LABEL_FONT_SIZE_INC; + public org_text = 0; + public message(Msg_Type:type, id, ...) { + if (type == MSG_FLOAT_SET) { + new Float:duration; + duration = getfarg(2); + if (id == 0) + set_float(g_duration, duration); + else + set_float(g_duration, duration / get_int(g_tb_h) * SLIDE_SPEED_WEIGHT); + } + } + public get_tb_width() { + new x, y, w, h; + set_state(PART:"elm.text", "no_ellipsis", 0.0); + get_geometry(PART:"elm.text", x, y, w, h); + set_int(g_tb_w, w); + set_int(g_tb_h, h); + set_state(PART:"clipper_elm.text", "default", 0.0); + get_geometry(PART:"clipper_elm.text", x, y, w, h); + set_int(org_text, w); + } + public slide_to_end_anim(val, Float:pos) { + if (get_int(g_stopslide)) return; + set_tween_state(PART:"elm.text.slide", pos*0.5, "slide_begin", 0.0, "slide_end", 0.0); + if (pos >= 1.0) { + set_int(g_timer_id, timer(1.5, "start_slide", 0)); + } + } + public slide_to_end() { + if (get_int(g_stopslide)) return; + set_int(g_anim_id, anim(get_float(g_duration), "slide_to_end_anim", 0)); + } + public start_slide(val) { + new Float:len; + set_int(g_stopslide, 0); + get_tb_width(); + if (!get_float(g_duration)) { + len = get_int(g_tb_w); + set_float(g_duration, len / get_int(g_tb_h) * SLIDE_SPEED_WEIGHT); + } + if(get_int(g_tb_w) > get_int(org_text)) { + run_program(PROGRAM:"slide_text_set"); + set_state(PART:"elm.text.slide", "slide_begin", 0.0); + set_state(PART:"clipper_elm.text", "hide", 0.0); + set_state(PART:"clipper_elm.text.slide", "show", 0.0); + slide_to_end(); + } + } + public stop_slide() { + new slide_start_timer; + new slide_anim_id; + set_int(g_stopslide, 1); + set_float(g_duration, 0); + slide_start_timer = get_int(g_timer_id); + if (slide_start_timer) { + cancel_timer(slide_start_timer); + set_int(g_timer_id, 0); + } + slide_anim_id = get_int(g_anim_id); + if (slide_anim_id) { + cancel_anim(slide_anim_id); + set_int(g_anim_id, 0); + } + set_text(PART:"elm.text.slide", ""); + set_state(PART:"elm.text", "default", 0.0); + set_state(PART:"elm.text.slide", "default", 0.0); + set_state(PART:"clipper_elm.text", "default", 0.0); + set_state(PART:"clipper_elm.text.slide", "default", 0.0); + } + } + parts { + rect { "bg"; + desc { "default"; + color_class: "label/slide_roll/bg"; + } + } + rect { "clipper_elm.text"; + nomouse; + clip: "clipper"; + desc { "default"; + } + desc { "hide"; + inherit: "default"; + hid; + } + } + textblock { "elm.text"; + scale; + clip: "clipper_elm.text"; + desc { "default"; + align: 0.0 0.5; + text { + style: "textblock_style"; + min: 0 1; + } + } + desc { "no_ellipsis"; + inherit: "default"; + text.min: 1 1; + } + } + rect { "clipper_elm.text.slide"; + nomouse; + clip: "clipper"; + desc { "default"; + hid; + } + desc { "show"; + inherit: "default"; + vis; + } + } + spacer { "slide_text_gap"; + scale; + desc { "default"; + fixed: 1 0; + min: SLIDE_TEXT_GAP 0; + max: SLIDE_TEXT_GAP -1; + align: 1.0 0.5; + rel2.relative: 0.0 1.0; + } + } + textblock { "elm.text.slide"; + scale; + clip: "clipper_elm.text.slide"; + desc { "default"; + align: 0.0 0.5; + text { + style: "textblock_style"; + min: 0 1; + } + } + desc { "slide_begin"; + inherit: "default"; + text.min: 1 1; + rel2.relative: 0.0 1.0; + } + desc { "slide_end"; + inherit: "default"; + align: 1.0 0.5; + text.min: 1 1; + text.align: 1.0 0.5; + rel.to: "slide_text_gap"; + } + } + } + programs { + program { "slide_text_set"; + script { + new buf[1024]; + new buffer[SLIDE_TEXT_MAX_LENGTH]; + get_text(PART:"elm.text", buf, 1024); + snprintf(buffer, SLIDE_TEXT_MAX_LENGTH, "%s", buf); + strcat(buffer, SLIDE_TEXT_CHAR_GAP); + strcat(buffer, buf); + strcat(buffer, SLIDE_TEXT_CHAR_GAP); + set_text(PART:"elm.text.slide", buffer); + } + } + program { "on_start_slide"; + script { + run_program(PROGRAM:"stop_slide"); + set_int(g_timer_id, timer(1.5, "start_slide", 0)); + } + } + program { "on_stop_slide"; + script { + stop_slide(); + } + } + } +} + +group { "elm/label/base/slide_short"; + inherit: "elm/label/base/template"; + script { + public g_duration = 0, g_stopslide, g_timer_id, g_anim_id; + + public message(Msg_Type:type, id, ...) { + if (type == MSG_FLOAT_SET) { + new Float:duration; + duration = getfarg(2); + if (id == 0) + set_float(g_duration, duration); + else + set_float(g_duration, duration / LABEL_FONT_SIZE_INC * SLIDE_SPEED_WEIGHT); + } + } + public slide_to_end_anim(val, Float:pos) { + new stopflag; + new id; + stopflag = get_int(g_stopslide); + if (stopflag == 1) return; + set_tween_state(PART:"elm.text", pos, "slide_begin", 0.0, "slide_end", 0.0); + if (pos >= 1.0) { + id = timer(0.5, "slide_to_begin", 1); + set_int(g_timer_id, id); + } + } + public slide_to_end() { + new stopflag; + new id; + new Float:duration; + stopflag = get_int(g_stopslide); + if (stopflag == 1) return; + duration = get_float(g_duration); + id = anim(duration, "slide_to_end_anim", 1); + set_int(g_anim_id, id); + } + public slide_to_begin() { + new stopflag; + new id; + stopflag = get_int(g_stopslide); + if (stopflag == 1) return; + set_state(PART:"elm.text", "slide_begin", 0.0); + id = timer(0.5, "slide_to_end", 1); + set_int(g_timer_id, id); + } + public start_slide() { + set_int(g_stopslide, 0); + set_state(PART:"elm.text", "slide_begin", 0.0); + slide_to_end(); + } + public stop_slide() { + new id; + set_int(g_stopslide, 1); + id = get_int(g_anim_id); + cancel_anim(id); + id = get_int(g_timer_id); + cancel_timer(id); + set_state(PART:"elm.text", "default", 0.0); + } + } + parts { + rect { "bg"; + desc { "default"; + color_class: "label/slide_short/bg"; + } + } + textblock { "elm.text"; + scale; + clip: "clipper"; + desc { "default"; + align: 0.0 0.0; + text { + style: "textblock_style"; + min: 0 1; + align: 0.0 0.0; + } + } + desc { "slide_end"; + inherit: "default"; + rel1.relative: 1.0 0.0; + align: 1.0 0.0; + text { + style: "textblock_style"; + min: 1 1; + align: 0.0 0.0; + } + } + desc { "slide_begin"; + inherit: "default"; + rel2.relative: 0.0 1.0; + align: 0.0 0.0; + text { + style: "textblock_style"; + min: 1 1; + align: 0.0 0.0; + } + } + } + } + programs { + program { "on_start_slide"; + script { + start_slide(); + } + } + program { "on_stop_slide"; + script { + stop_slide(); + } + } + } +} + +group { "elm/label/base/slide_bounce"; + inherit: "elm/label/base/template"; + script { + public g_duration = 0, g_stopslide, g_timer_id, g_anim_id; + + public message(Msg_Type:type, id, ...) { + if (type == MSG_FLOAT_SET) { + new Float:duration; + duration = getfarg(2); + if (id == 0) + set_float(g_duration, duration); + else + set_float(g_duration, duration / LABEL_FONT_SIZE_INC * SLIDE_SPEED_WEIGHT); + } + } + public slide_to_end_anim(val, Float:pos) { + new stopflag; + new id; + stopflag = get_int(g_stopslide); + if (stopflag == 1) return; + set_tween_state(PART:"elm.text", pos, "slide_begin", 0.0, "slide_end", 0.0); + if (pos >= 1.0) { + id = timer(0.5, "slide_to_begin", 1); + set_int(g_timer_id, id); + } + } + public slide_to_end() { + new stopflag; + new id; + new Float:duration; + stopflag = get_int(g_stopslide); + if (stopflag == 1) return; + duration = get_float(g_duration); + id = anim(duration, "slide_to_end_anim", 1); + set_int(g_anim_id, id); + } + public slide_to_begin_anim(val, Float:pos) { + new stopflag; + new id; + stopflag = get_int(g_stopslide); + if (stopflag == 1) return; + set_tween_state(PART:"elm.text", pos, "slide_end", 0.0, "slide_begin", 0.0); + if (pos >= 1.0) { + id = timer(0.5, "slide_to_end", 1); + set_int(g_timer_id, id); + } + } + public slide_to_begin() { + new stopflag; + new id; + new Float:duration; + stopflag = get_int(g_stopslide); + if (stopflag == 1) return; + duration = get_float(g_duration); + id = anim(duration, "slide_to_begin_anim", 1); + set_int(g_anim_id, id); + } + public start_slide() { + set_int(g_stopslide, 0); + set_state(PART:"elm.text", "slide_begin", 0.0); + slide_to_end(); + } + public stop_slide() { + new id; + set_int(g_stopslide, 1); + id = get_int(g_anim_id); + cancel_anim(id); + id = get_int(g_timer_id); + cancel_timer(id); + set_state(PART:"elm.text", "default", 0.0); + } + } + parts { + rect { "bg"; + desc { "default"; + color_class: "label/slide_bounce/bg"; + } + } + textblock { "elm.text"; + scale; + clip: "clipper"; + desc { "default"; + align: 0.0 0.0; + text { + style: "textblock_style"; + min: 0 1; + align: 0.0 0.0; + } + } + desc { "slide_end"; + inherit: "default"; + rel1.relative: 1.0 0.0; + align: 1.0 0.0; + text.min: 1 1; + } + desc { "slide_begin"; + inherit: "default"; + rel2.relative: 0.0 1.0; + text.min: 1 1; + } + } + } + programs { + program { "on_start_slide"; + script { + start_slide(); + } + } + program { "on_stop_slide"; + script { + stop_slide(); + } + } + } +} diff --git a/ElmSharp/theme/common/widgets/layout.edc b/ElmSharp/theme/common/widgets/layout.edc new file mode 100644 index 0000000..4268a9f --- /dev/null +++ b/ElmSharp/theme/common/widgets/layout.edc @@ -0,0 +1,40 @@ +/* + * Copyright (c) 2010 Samsung Electronics Co., Ltd All Rights Reserved + * + * BSD 2-Clause License (http://www.opensource.org/licenses/bsd-license.php) + * + * Redistribution and use in source and binary forms, with or without + * modification, are permitted provided that the following conditions are met: + * + * 1. Redistributions of source code must retain the above copyright notice, this + * list of conditions and the following disclaimer. + * 2. Redistributions in binary form must reproduce the above copyright notice, + * this list of conditions and the following disclaimer in the documentation + * and/or other materials provided with the distribution. + * + * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND + * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED + * WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE + * DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR + * ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES + * (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; + * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND + * ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT + * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS + * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. + */ + +group { "elm/layout/background/default"; + parts { + rect { "bg"; + scale; + desc { "default"; + color_class: "layout/background/bg"; + } + } + swallow { "elm.swallow.content"; + scale; + desc { "default"; } + } + } +} diff --git a/ElmSharp/theme/common/widgets/radio.edc b/ElmSharp/theme/common/widgets/radio.edc new file mode 100644 index 0000000..9ddf30f --- /dev/null +++ b/ElmSharp/theme/common/widgets/radio.edc @@ -0,0 +1,559 @@ +/* + * Copyright (c) 2015 Samsung Electronics Co., Ltd All Rights Reserved + * + * BSD 2-Clause License (http://www.opensource.org/licenses/bsd-license.php) + * + * Redistribution and use in source and binary forms, with or without + * modification, are permitted provided that the following conditions are met: + * + * 1. Redistributions of source code must retain the above copyright notice, this + * list of conditions and the following disclaimer. + * 2. Redistributions in binary form must reproduce the above copyright notice, + * this list of conditions and the following disclaimer in the documentation + * and/or other materials provided with the distribution. + * + * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND + * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED + * WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE + * DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR + * ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES + * (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; + * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND + * ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT + * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS + * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. + */ +#define STYLE_TAGS \ + tag: "br" "\n";\ + tag: "ps" "ps";\ + tag: "tab" "\t";\ + tag: "b" "+ font_weight=Bold"; + +styles{ + style { name: "radio_default"; + base: "color=#000000FF font=Tizen:weight=Light font_size=40 text_class=tizen ellipsis=1.0"; + STYLE_TAGS + } + style { name: "radio_default_dim"; + base: "color=#000000A3 font=Tizen:weight=Light font_size=40 text_class=tizen ellipsis=1.0"; + STYLE_TAGS + } + style { name: "radio_default_press"; + base: "color=#000000FF font=Tizen:weight=Light font_size=40 text_class=tizen ellipsis=1.0"; + STYLE_TAGS + } +} +#undef STYLE_TAGS + +group { "elm/radio/event/default"; + inherit_only: 1; + parts { + rect { "event"; + mouse; + desc { "default"; + color: 0 0 0 0 ; + rel.to: "base"; + } + desc { "disabled"; + inherit: "default"; + hid; + } + } + } + programs { + program { "clicked"; + signal: "mouse,clicked,1"; + source: "event"; + action: SIGNAL_EMIT "elm,action,click" ""; + after: "on_clicked"; + } + program { "pressed"; + signal: "mouse,down,1*"; + source: "event"; + action: SIGNAL_EMIT "elm,action,press" ""; + after: "on_pressed"; + } + program { "unpressed"; + signal: "mouse,up,1"; + source: "event"; + action: SIGNAL_EMIT "elm,action,unpress" ""; + after: "on_unpressed"; + } + program { "set_radio"; + signal: "elm,state,radio,on"; + source: "elm"; + after: "on_set_radio"; + } + program { "unset_radio"; + signal: "elm,state,radio,off"; + source: "elm"; + after: "on_unset_radio"; + } + program { "disabled"; + signal: "elm,state,disabled"; + source: "elm"; + after: "on_disabled"; + } + program { "enabled"; + signal: "elm,state,enabled"; + source: "elm"; + after: "on_enabled"; + } + program { "enable_event_pass"; + signal: "elm,event,pass,enabled"; + source: "elm"; + script { + set_mouse_events(PART:"event", 0); + } + } + program { "disable_event_pass"; + signal: "elm,event,pass,disabled"; + source: "elm"; + script { + set_mouse_events(PART:"event", 1); + } + } + program { "enable_event_repeat"; + signal: "elm,event,repeat,enabled"; + source: "elm"; + script { + set_repeat_events(PART:"event", 1); + } + } + program { "disable_event_repeat"; + signal: "elm,event,repeat,disabled"; + source: "elm"; + script { + set_repeat_events(PART:"event", 0); + } + } + } +} +group { "elm/radio/base/template"; + parts { + spacer { "base"; + desc { "default"; + } + } + } + inherit: "elm/radio/event/default"; + programs { + program { "on_clicked"; + } + program { "on_pressed"; + } + program { "on_unpressed"; + } + program { "on_disabled"; + } + program { "on_enabled"; + } + program { "on_set_radio"; + } + program { "on_unset_radio"; + } + } +} +group { "elm/radio/base/default"; + images{ + vector: core_radio_stroke.svg; + vector: core_radio_icon.svg; + vector: core_radio_bg_01.svg; + vector: core_radio_bg_02.svg; + vector: core_radio_white_bg.svg; + } + nomouse; + target_group: "vector_group" "clipper_bg_vector" "clipper_icon" "clipper_icon_inner" "clipper_icon_outer" "clipper_icon_stroke"; + parts { + spacer { "base"; + scale; + desc { "default"; + min: RADIO_DEFAULT_SIZE_INC; + } + } + //bg shape + vector { "bg_vector"; + scale; + clip: "clipper_bg_vector"; + desc { "default"; + image.normal: "core_radio_white_bg.svg"; + min: RADIO_DEFAULT_SIZE_INC; + rel1.relative: 0 0.5; + rel2.relative: 0 0.5; + align: 0 0.5; + fixed: 1 1; + } + } + rect { "clipper_bg_vector"; + desc { "default"; + color_class: "radio/default/bg"; + } + desc { "on"; + color_class: "radio/default/bg_border_on"; + } + desc { "off"; + inherit: "default"; + } + desc { "disabled_on"; + color_class: "radio/default/bg_border_on_disabled"; + } + desc { "disabled_off"; + color_class: "radio/default/bg_disabled"; + } + } + vector { "icon"; + scale; + clip: "clipper_icon"; + desc { "default"; + image.normal: "core_radio_icon.svg"; + rel1.to: "bg_vector"; + rel2.to: "bg_vector"; + } + } + rect { "clipper_icon"; + desc { "default"; + color: 250 250 250 0; + } + desc { "on"; + color_class: "radio/default/bg_on" ; + } + desc { "off"; + inherit: "default"; + } + desc { "disabled_off"; + inherit: "default"; + } + desc { "disabled_on"; + color_class: "radio/default/bg_on_disabled" ; + } + } + vector { "icon_inner"; + scale; + clip: "clipper_icon_inner"; + desc { "default"; + image.normal: "core_radio_bg_01.svg"; + rel.to: "bg_vector"; + } + } + rect { "clipper_icon_inner"; + desc { "default"; + rel1.relative: 0.5 0.5; + rel2.relative: 0.5 0.5; + rel.to: "bg_vector"; + } + desc { "on"; + rel.to: "bg_vector"; + color_class: "radio/default/icon"; + } + desc { "off"; + inherit: "default"; + } + desc { "disabled_off"; + inherit: "default"; + } + desc { "disabled_on"; + rel.to: "bg_vector"; + color_class: "radio/default/icon_disabled"; + } + } + vector { "icon_outer"; + scale; + clip: "clipper_icon_outer"; + desc { "default"; + image.normal: "core_radio_bg_02.svg"; + rel1.to: "bg_vector"; + rel2.to: "bg_vector"; + } + } + rect { "clipper_icon_outer"; + desc { "default"; + color: 61 185 204 0; + } + desc { "on"; + color_class: "radio/default/icon"; + } + desc { "off"; + inherit: "default"; + } + desc { "disabled_off"; + inherit: "default"; + } + desc { "disabled_on"; + color_class: "radio/default/icon_disabled"; + } + } + vector { "icon_stroke"; + scale; + clip: "clipper_icon_stroke"; + desc { "default"; + image.normal: "core_radio_stroke.svg"; + rel1.to: "bg_vector"; + rel2.to: "bg_vector"; + } + } + rect { "clipper_icon_stroke"; + desc { "default"; + color_class: "radio/default/stroke"; + } + desc { "on"; + color: 61 185 204 0; + } + desc { "off"; + inherit: "default"; + } + desc { "disabled_off"; + color_class: "radio/default/stroke_disabled"; + } + desc { "disabled_on"; + inherit: "on"; + } + } + spacer { "padding_before_text"; + scale; + desc { "default"; + align: 0.0 0.5; + min: 0 0; + rel1 { + to: "bg_vector"; + relative: 1.0 0.0; + } + rel2 { + to: "bg_vector"; + relative: 1.0 1.0; + } + } + desc { "visible"; + inherit: "default" 0.0; + min: RADIO_PAD_BEFORE_TEXT_INC; + fixed: 1 1; + } + } + textblock { "elm.text"; + scale; + desc { "default"; + hid; + fixed: 0 1; + rel1 { + relative: 1.0 0.5; + to_x: "padding_before_text"; + } + rel2 { + relative: 1.0 0.5; + } + align: 0.0 0.5; + text { + style: "radio_default"; + min: 0 0; + } + } + desc { "visible"; + inherit: "default" 0.0; + vis; + text.min: 0 1; + } + desc { "disabled"; + inherit: "default" 0.0; + vis; + text { + style: "radio_default_dim"; + min: 0 1; + } + } + desc { "pressed"; + inherit: "default" 0.0; + vis; + text { + style: "radio_default_press"; + min: 0 1; + } + } + } + } + inherit: "elm/radio/event/default"; + script { + public radio_state; + public disabled; + public text; + public animate = 0; + } + programs { + program { "on_clicked"; + script { + if (get_int(disabled) == 1) return; + emit("elm,action,radio,toggle", ""); + run_program(PROGRAM:"touch_sound"); + } + } + program { "on_pressed"; + script { + if (get_int(disabled) == 1) return; + if (get_int(text) == 1) { + set_state(PART:"elm.text", "pressed", 0.0); + } + } + } + program { "on_unpressed"; + script { + if (get_int(disabled) == 1) return; + if (get_int(radio_state) == 1) { + run_program(PROGRAM:"toggle_on_without_effect"); + }else { + run_program(PROGRAM:"toggle_off_without_effect"); + } + if (get_int(text) == 1) { + set_state(PART:"elm.text", "visible", 0.0); + } + } + } + program { "on_disabled"; + script { + set_int(disabled, 1); + if (get_int(radio_state) == 1) { + run_program(PROGRAM:"toggle_disabled_on_without_effect"); + }else { + run_program(PROGRAM:"toggle_disabled_off_without_effect"); + } + if (get_int(text) == 1) { + set_state(PART:"elm.text", "disabled", 0.0); + } + } + } + program { "on_enabled"; + script { + set_int(disabled, 0); + if (get_int(radio_state) == 1) { + run_program(PROGRAM:"toggle_on_without_effect"); + } else { + run_program(PROGRAM:"toggle_off_without_effect"); + } + if (get_int(text) == 1) { + set_state(PART:"elm.text", "visible", 0.0); + } + } + } + program { "on_set_radio"; + script { + if (get_int(disabled) == 1) { + if (get_int(animate) == 0) { + run_program(PROGRAM:"toggle_disabled_on_without_effect"); + } else { + run_program(PROGRAM:"toggle_disabled_on_with_effect"); + } + }else { + if (get_int(animate) == 0) { + run_program(PROGRAM:"toggle_on_without_effect"); + emit("elm,radio,state,toggle", "tizen_vg"); + } else { + run_program(PROGRAM:"toggle_on_with_effect"); + emit("elm,radio,action,toggle", "tizen_vg"); + } + } + set_int(animate, 0); + set_int(radio_state, 1); + } + } + program { "on_unset_radio"; + script { + if (get_int(disabled) == 1) { + if (get_int(animate) == 0) { + run_program(PROGRAM:"toggle_disabled_off_without_effect"); + } else { + run_program(PROGRAM:"toggle_disabled_off_with_effect"); + } + }else { + if (get_int(animate) == 0) { + run_program(PROGRAM:"toggle_off_without_effect"); + emit("elm,radio,state,toggle", "tizen_vg"); + } else { + run_program(PROGRAM:"toggle_off_with_effect"); + emit("elm,radio,action,toggle", "tizen_vg"); + } + } + set_int(animate, 0); + set_int(radio_state, 0); + } + } + program { "touch_sound"; + action: RUN_PLUGIN "touch_sound"; + } + program { "activate_animate_radio"; + signal: "elm,activate,radio,on"; + source: "elm"; + script { + set_int(animate, 1); + } + } + program { "deactivate_animate_radio"; + signal: "elm,activate,radio,off"; + source: "elm"; + script { + set_int(animate, 1); + } + } + program { "toggle_on_with_effect"; + action: STATE_SET "on"; + transition: DECELERATE 0.3; + target_groups: "vector_group"; + after: "finished_animation"; + } + program { "toggle_off_with_effect"; + action: STATE_SET "default"; + target_groups: "vector_group"; + transition: DECELERATE 0.3; + after: "finished_animation"; + } + program { "toggle_disabled_on_with_effect"; + action: STATE_SET "disabled_on"; + target_groups: "vector_group"; + transition: DECELERATE 0.3; + after: "finished_animation"; + } + program { "toggle_disabled_off_with_effect"; + action: STATE_SET "disabled_off"; + target_groups: "vector_group"; + transition: DECELERATE 0.3; + after: "finished_animation"; + } + program { "toggle_on_without_effect"; + action: STATE_SET "on"; + target_groups: "vector_group"; + } + program { "toggle_off_without_effect"; + action: STATE_SET "default"; + target_groups: "vector_group"; + } + program { "toggle_disabled_on_without_effect"; + action: STATE_SET "disabled_on"; + target_groups: "vector_group"; + } + program { "toggle_disabled_off_without_effect"; + action: STATE_SET "disabled_off"; + target_groups: "vector_group"; + } + program { "finished_animation"; + action: SIGNAL_EMIT "animation,finished" ""; + } + program { "visible_text"; + signal: "elm,state,text,visible"; + source: "elm"; + script { + set_int(text, 1); + set_state(PART:"padding_before_text", "visible", 0.0); + if (get_int(disabled) == 1) { + set_state(PART:"elm.text", "disabled", 0.0); + }else { + set_state(PART:"elm.text", "visible", 0.0); + } + } + } + program { "hidden_text"; + signal: "elm,state,text,hidden"; + source: "elm"; + script { + set_int(text, 0); + set_state(PART:"padding_before_text", "default", 0.0); + set_state(PART:"elm.text", "default", 0.0); + } + } + } +} -- 2.7.4 From 6e28c5ac9df60476feda5e13717bdaa6379fc044 Mon Sep 17 00:00:00 2001 From: Sungtaek Hong Date: Wed, 11 Jan 2017 17:02:07 +0900 Subject: [PATCH 08/16] theme: modify tv base scale to 2.0 Change-Id: I4cc33ed343c2f7059521b1c1201c5d985c6b7b18 Signed-off-by: Sungtaek Hong --- ElmSharp/theme/tv/HD-inc.edc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ElmSharp/theme/tv/HD-inc.edc b/ElmSharp/theme/tv/HD-inc.edc index 65c925d..0171a4a 100644 --- a/ElmSharp/theme/tv/HD-inc.edc +++ b/ElmSharp/theme/tv/HD-inc.edc @@ -38,7 +38,7 @@ // e.g. LIST_PADDING_LEFT_HEIGHT //****************************************************************************// -#define BASE_SCALE_INC 2.6 +#define BASE_SCALE_INC 2.0 //****************************************************************************// // Check -- 2.7.4 From 31a2bcdc7a1fe3cfe461bc915014522422efef90 Mon Sep 17 00:00:00 2001 From: Sungtaek Hong Date: Wed, 11 Jan 2017 17:03:37 +0900 Subject: [PATCH 09/16] theme: modify tv full, double_labe genlist item Change-Id: Icc9f35de41fc3ae686f9b2e0bf3a64b3980edd29 Signed-off-by: Sungtaek Hong --- ElmSharp/theme/tv/HD-inc.edc | 61 +++++++++++ ElmSharp/theme/tv/color_classes.edc | 55 ++++++++-- ElmSharp/theme/tv/widgets/genlist.edc | 192 +++++++++++----------------------- 3 files changed, 168 insertions(+), 140 deletions(-) diff --git a/ElmSharp/theme/tv/HD-inc.edc b/ElmSharp/theme/tv/HD-inc.edc index 0171a4a..8d34a20 100644 --- a/ElmSharp/theme/tv/HD-inc.edc +++ b/ElmSharp/theme/tv/HD-inc.edc @@ -218,4 +218,65 @@ styles { base: "color=#FFF color_class=check/on&off/text_pressed font=Tizen:weight=Light font_size=40 text_class=tizen ellipsis=1.0"; STYLE_TAGS } + style { name: "list_group_index_text"; + base: "color=#ffffff color_class=genlist_item/group_index/text font="FONT_M" font_size=30 text_class=list_item align=left"; + STYLE_TAGS + STYLE_TAG_MATCH + } + style { name: "list_group_index_text_focused"; + base: "color=#ffffff color_class=genlist_item/group_index/text_focused font="FONT_M" font_size=30 text_class=list_item align=left"; + STYLE_TAGS + STYLE_TAG_MATCH + } + style { name: "list_group_index_text_disabled"; + base: "color=#ffffff color_class=genlist_item/group_index/text_disabled font="FONT_M" font_size=30 text_class=list_item align=left"; + STYLE_TAGS + STYLE_TAG_MATCH + } + style { name: "list_group_index_text_end"; + base: "color=#ffffff color_class=genlist_item/group_index/text_end font="FONT_M" font_size=30 text_class=list_item align=right"; + STYLE_TAGS + STYLE_TAG_MATCH + } + style { name: "list_group_index_text_end_focused"; + base: "color=#ffffff color_class=genlist_item/group_index/text_end_focused font="FONT_M" font_size=30 text_class=list_item align=right"; + STYLE_TAGS + STYLE_TAG_MATCH + } + style { name: "list_group_index_text_end_disabled"; + base: "color=#ffffff color_class=genlist_item/group_index/text_end_disabled font="FONT_M" font_size=30 text_class=list_item align=right"; + STYLE_TAGS + STYLE_TAG_MATCH + } + // ************* list double_label ********** // + style { name: "list_double_label_text"; + base: "color=#ffffff color_class=genlist_item/double_label/text font=Tizen:weight=Light font_size=40 text_class=list_item ellipsis=1.0"; + STYLE_TAGS + STYLE_TAG_MATCH + } + style { name: "list_double_label_text_pressed"; + base: "color=#ffffff color_class=genlist_item/double_label/text_pressed font=Tizen:weight=Light font_size=40 text_class=list_item ellipsis=1.0"; + STYLE_TAGS + STYLE_TAG_MATCH + } + style { name: "list_double_label_text_disabled"; + base: "color=#ffffff color_class=genlist_item/double_label/text_disabled font=Tizen:weight=Light font_size=40 text_class=list_item ellipsis=1.0"; + STYLE_TAGS + STYLE_TAG_MATCH + } + style { name: "list_double_label_text_sub"; + base: "color=#ffffff color_class=genlist_item/double_label/text_sub font=Tizen:weight=Normal font_size=30 text_class=tizen ellipsis=1.0 align=left"; + STYLE_TAGS + STYLE_TAG_MATCH + } + style { name: "list_double_label_text_sub_pressed"; + base: "color=#ffffff color_class=genlist_item/double_label/text_sub_pressed font=Tizen:weight=Normal font_size=30 text_class=tizen ellipsis=1.0 align=left"; + STYLE_TAGS + STYLE_TAG_MATCH + } + style { name: "list_double_label_text_sub_disabled"; + base: "color=#ffffff color_class=genlist_item/double_label/text_sub_disabled font=Tizen:weight=Normal font_size=30 text_class=tizen ellipsis=1.0 align=left"; + STYLE_TAGS + STYLE_TAG_MATCH + } } diff --git a/ElmSharp/theme/tv/color_classes.edc b/ElmSharp/theme/tv/color_classes.edc index 83486bf..f574d58 100644 --- a/ElmSharp/theme/tv/color_classes.edc +++ b/ElmSharp/theme/tv/color_classes.edc @@ -197,19 +197,25 @@ color_classes { color_class { "genlist_item/group_index/bg_focused"; color: 69 143 255 255; } - color_class { "genlist_item/group_index/bottomline"; - color: 222 222 222 222; + color_class { "genlist_item/group_index/text"; + color: 255 255 255 204; } - color_class { "genlist_item/double_label/bg"; - color: 42 50 64 255; + color_class { "genlist_item/group_index/text_focused"; + color: 255 255 255 255; } - color_class { "genlist_item/double_label/bg_selected"; - color: 69 143 255 255; + color_class { "genlist_item/group_index/text_disabled"; + color: 50 50 50 255; } - color_class { "genlist_item/double_label/bg_focused"; - color: 69 143 255 255; + color_class { "genlist_item/group_index/text_end"; + color: 255 255 255 204; } - color_class { "genlist_item/double_label/bottomline"; + color_class { "genlist_item/group_index/text_end_focused"; + color: 255 255 255 255; + } + color_class { "genlist_item/group_index/text_end_disabled"; + color: 50 50 50 255; + } + color_class { "genlist_item/group_index/bottomline"; color: 222 222 222 222; } // Genlist-Type1 @@ -261,6 +267,37 @@ color_classes { color_class { "genlist_item/type1/bottomline"; color: 204 204 204 255; } + // Genlist-Double_Label + color_class { "genlist_item/double_label/bg"; + color: 0 0 0 0; + } + color_class { "genlist_item/double_label/bg_pressed"; + color: 0 0 0 10; + } + color_class { "genlist_item/double_label/bg_disabled"; + color: 0 0 0 0; + } + color_class { "genlist_item/double_label/text"; + color: 7 7 7 255; + } + color_class { "genlist_item/double_label/text_pressed"; + color: 7 7 7 255; + } + color_class { "genlist_item/double_label/text_disabled"; + color: 7 7 7 255; + } + color_class { "genlist_item/double_label/text_sub"; + color: 115 115 115 255; + } + color_class { "genlist_item/double_label/text_sub_pressed"; + color: 115 115 115 255; + } + color_class { "genlist_item/double_label/text_sub_disabled"; + color: 115 115 115 163; + } + color_class { "genlist_item/double_label/bottomline"; + color: 204 204 204 255; + } color_class { "genlist_item/end_icon/bg"; color: 255 255 255 255; } diff --git a/ElmSharp/theme/tv/widgets/genlist.edc b/ElmSharp/theme/tv/widgets/genlist.edc index 4381d53..0090c49 100644 --- a/ElmSharp/theme/tv/widgets/genlist.edc +++ b/ElmSharp/theme/tv/widgets/genlist.edc @@ -781,8 +781,8 @@ group { "elm/genlist/item/full/default"; nomouse; program_source: "elm"; data.item: "contents" "elm.swallow.content"; data.item: "focus_highlight" "on"; - target_group: "default" "base" "bottom_line" "elm.text"; - target_group: "disabled" "event" "elm.text"; + target_group: "default" "base" "bottom_line"; + target_group: "disabled" "event"; parts { GENLIST_BASE_COLOR_CLASS("genlist_item/full/bg", "genlist_item/full/bg_selected", "genlist_item/full/bg_focused") GENLIST_PAD(40, 40, 20, 20) @@ -813,7 +813,7 @@ group { "elm/genlist/item/group_index/default"; nomouse; program_source: "elm"; GENLIST_PAD(70, 70, 20, 20) GENLIST_BOTTOM_LINE_COLOR_CLASS("genlist_item/group_index/bottomline") - text { "elm.text"; scale; + textblock { "elm.text"; scale; desc { "default"; rel1.to: "pad.top.left"; rel1.relative: 1.0 1.0; @@ -821,21 +821,22 @@ group { "elm/genlist/item/group_index/default"; nomouse; program_source: "elm"; rel2.to_y: "pad.bottom.right"; rel2.relative: 0.0 0.0; color: 255 255 255 204; // 80% - text { font: FONT_M; size: 30; + text { min: 1 1; - ellipsis: -1; - align: 0.0 0.5; + style: "list_group_index_text"; } } desc { "focused"; inherit: "default"; color: 255 255 255 255; + text.style: "list_group_index_text_focused"; } desc { "disabled"; inherit: "default"; color: 50 50 50 255; + text.style: "list_group_index_text_disabled"; } } - text { "elm.text.end"; scale; + textblock { "elm.text.end"; scale; desc { "default"; rel1.to_x: "pad.center.right"; rel1.relative: 0.0 0.5; @@ -844,17 +845,18 @@ group { "elm/genlist/item/group_index/default"; nomouse; program_source: "elm"; align: 1.0 0.5; color: 255 255 255 204; // 80% fixed: 1 1; - text { font: FONT_M; size: 30; + text { min: 1 1; - ellipsis: -1; - align: 1.0 0.5; + style: "list_group_index_text_end"; } } desc { "focused"; inherit: "default"; color: 255 255 255 255; + text.style: "list_group_index_text_end_focused"; } desc { "disabled"; inherit: "default"; color: 50 50 50 255; + text.style: "list_group_index_text_end_disabled"; } } swallow { "elm.swallow.end"; mouse; @@ -896,129 +898,8 @@ group { "elm/genlist/item/group_index/default"; nomouse; program_source: "elm"; programs { GENLIST_PROGRAMS("default", "disabled") } - } -group { "elm/genlist/item/double_label/default"; nomouse; program_source: "elm"; - alias: "elm/genlist/item_compress/double_label/default"; - alias: "elm/genlist/tree/double_label/default"; - alias: "elm/genlist/tree_compress/double_label/default"; - - data.item: "texts" "elm.text elm.text.sub"; - data.item: "contents" "elm.swallow.icon elm.swallow.end"; - data.item: "focus_highlight" "on"; - target_group: "default" "base" "bottom_line" "elm.text" "elm.text.sub"; - target_group: "disabled" "event" "elm.text" "elm.text.sub"; - - parts { - GENLIST_BASE_COLOR_CLASS("genlist_item/double_label/bg", "genlist_item/double_label/bg_selected", "genlist_item/double_label/bg_focused") - GENLIST_PAD(32, 32, 29, 19) - GENLIST_BOTTOM_LINE_COLOR_CLASS("genlist_item/double_label/bottomline") - swallow { "elm.swallow.icon"; mouse; scale; - desc { "default"; - rel1.to: "pad.top.left"; - rel1.relative: 1.0 1.0; - rel2.to: "pad.top.left"; - rel2.relative: 1.0 1.0; - min: 44 44; - fixed: 1 1; - align: 0.0 0.0; - } - } - spacer { "pad.left.center"; scale; - desc { "default"; - rel1.to: "elm.swallow.icon"; - rel1.relative: 0.0 1.0; - rel2.to: "elm.swallow.icon"; - min: 0 3; - fixed: 0 1; - align: 0.5 0.0; - } - } - text { "elm.text.sub"; scale; - desc { "default"; - rel1.to: "pad.left.center"; - rel1.relative: 0.0 1.0; - rel2.to_x: "pad.left.center"; - rel2.to_y: "pad.bottom.right"; - rel2.relative: 1.0 0.0; - color: 211 211 211 255; - min: 0 20; - text { font: FONT_M; size: 24; - min: 0 1; - } - } - desc { "focused"; inherit: "default" 0.0; - color: 255 255 255 255; - } - desc { "disabled"; inherit: "default" 0.0; - color: 50 50 50 255; - } - } - spacer { "pad.center"; scale; - desc { "default"; - rel1.to: "elm.swallow.icon"; - rel1.relative: 1.0 0.0; - rel2.to: "elm.swallow.icon"; - rel2.relative: 1.0 1.0; - min: 19 0; - fixed: 1 0; - align: 0.0 0.5; - } - } - text { "elm.text"; scale; - desc { "default"; - rel1.to_x: "pad.center"; - rel1.relative: 1.0 0.5; - rel2.to_x: "pad.center"; - rel2.relative: 1.0 0.5; - align: 0.0 0.5; - fixed: 1 1; - color: 211 211 211 255; - text { font: FONT_M; size: 24; - min: 1 1; - ellipsis: -1; - } - } - desc { "focused"; inherit: "default" 0.0; - color: 255 255 255 255; - } - desc { "disabled"; inherit: "default" 0.0; - color: 50 50 50 255; - } - } - spacer { "pad.center2"; scale; - desc { "default"; - rel1.to_x: "elm.text"; - rel1.relative: 1.0 0.0; - rel2.to_x: "elm.text"; - rel2.relative: 1.0 1.0; - min: 14 0; - fixed: 1 0; - align: 0.0 0.5; - } - } - //FIXME: with icon - swallow { "elm.swallow.end"; mouse; scale; - desc { "default"; - rel1.to_x: "pad.center2"; - rel1.relative: 1.0 0.0; - rel2.to_x: "pad.bottom.right"; - rel2.relative: 0.0 1.0; - min: 40 30; - max: 40 30; - fixed: 0 1; - align: 0.0 0.5; - } - } - } - programs { - GENLIST_PROGRAMS("default", "disabled") - } -} - - - group { "elm/genlist/item/event/default" inherit_only: 1; parts { @@ -1600,6 +1481,55 @@ group { "elm/genlist/item/type1/default"; } } +group { "elm/genlist/item/double_label/default"; + alias: "elm/genlist/item_compress/double_label/default"; + alias: "elm/genlist/tree/double_label/default"; + alias: "elm/genlist/tree_compress/double_label/default"; + inherit: "elm/genlist/item/type1/default"; + data.item: "texts" "elm.text elm.text.sub"; + data.item: "contents" "elm.swallow.icon elm.swallow.end"; + parts { + rect { "bg"; scale; + desc { "default"; + color_class: "genlist_item/double_label/bg"; + } + desc { "pressed"; inherit: "default"; + color_class: "genlist_item/double_label/bg_pressed"; + } + desc { "disabled"; inherit: "default"; + color_class: "genlist_item/double_label/bg_disabled"; + } + } + textblock { "elm.text.sub"; scale; + desc { "default"; + text.style: "list_double_label_text_sub"; + } + desc { "pressed"; inherit: "default"; + text.style: "list_double_label_text_sub_pressed"; + } + desc { "disabled"; inherit: "default"; + text.style: "list_double_label_text_sub_disabled"; + } + } + textblock { "elm.text"; scale; + desc { "default"; + text.style: "list_double_label_text"; + } + desc { "pressed"; inherit: "default"; + text.style: "list_double_label_text_pressed"; + } + desc { "disabled"; inherit: "default"; + text.style: "list_double_label_text_disabled"; + } + } + rect { "elm.bottomline"; scale; + desc { "default"; + color_class: "genlist_item/double_label/bottomline"; + } + } + } +} + group { "elm/genlist/item/end_icon/default"; nomouse; program_source: "elm"; alias: "elm/genlist/item_compress/end_icon/default"; alias: "elm/genlist/tree/end_icon/default"; -- 2.7.4 From 2140f162e54b1702b1a9eedd092a818a04c3f5aa Mon Sep 17 00:00:00 2001 From: WonYoung Choi Date: Wed, 11 Jan 2017 17:16:37 +0900 Subject: [PATCH 10/16] Fix build break on Tizen:Common profile Change-Id: Ie2292b47f777bd5157f2cac57d992e5e99a07c16 --- .../common/{elm-sharp-theme-mobile.edc => elm-sharp-theme-common.edc} | 0 1 file changed, 0 insertions(+), 0 deletions(-) rename ElmSharp/theme/common/{elm-sharp-theme-mobile.edc => elm-sharp-theme-common.edc} (100%) diff --git a/ElmSharp/theme/common/elm-sharp-theme-mobile.edc b/ElmSharp/theme/common/elm-sharp-theme-common.edc similarity index 100% rename from ElmSharp/theme/common/elm-sharp-theme-mobile.edc rename to ElmSharp/theme/common/elm-sharp-theme-common.edc -- 2.7.4 From accb8bf4853e88b2cd2ea3d6073f45008eada6e4 Mon Sep 17 00:00:00 2001 From: Sungtaek Hong Date: Wed, 11 Jan 2017 22:20:03 +0900 Subject: [PATCH 11/16] theme: add back_btn Change-Id: I0283f16ec8cb5f6a59163453f1308281d05ca29a Signed-off-by: Sungtaek Hong --- ElmSharp/theme/tv/HD-inc.edc | 40 ++ .../images/Navigation_elements/core_icon_back.png | Bin 0 -> 1214 bytes ElmSharp/theme/tv/color_classes.edc | 21 + ElmSharp/theme/tv/macros.edc | 340 +++++++++++++++ ElmSharp/theme/tv/widgets/button.edc | 464 ++++++++++++++++++--- 5 files changed, 815 insertions(+), 50 deletions(-) create mode 100644 ElmSharp/theme/tv/HD/images/Navigation_elements/core_icon_back.png diff --git a/ElmSharp/theme/tv/HD-inc.edc b/ElmSharp/theme/tv/HD-inc.edc index 8d34a20..9cb95f2 100644 --- a/ElmSharp/theme/tv/HD-inc.edc +++ b/ElmSharp/theme/tv/HD-inc.edc @@ -41,6 +41,21 @@ #define BASE_SCALE_INC 2.0 //****************************************************************************// +// Button +//****************************************************************************// +#define BUTTON_DEFAULT_PAD_SIZE 20 70 +#define BUTTON_DEFAULT_MIN_SIZE 196 70 +#define BUTTON_DEFAULT_FONT_SIZE 28 +#define BUTTON_TEXT_PAD_SIZE 20 45 +#define BUTTON_TEXT_MIN_SIZE 147 45 +#define BUTTON_TEXT_FONT_SIZE 28 +#define BUTTON_BORDER 4 4 4 4 + +#define BUTTON_NAVIFRAME_BACK_BUTTON_SIZE_INC 80 80 +#define BUTTON_NAVIFRAME_BACK_BUTTON_EFFECT_MAX_SIZE_INC 80 80 +#define BUTTON_NAVIFRAME_BACK_CORNER_RADIUS 10 + +//****************************************************************************// // Check //****************************************************************************// #define CHECK_ONOFF_SIZE_INC 72 72 @@ -206,6 +221,31 @@ tag: "match" "+ color=#3db8cc"; styles { + style { name: "button_default"; + base: "align=center color=#ffffffff font="FONT_M" font_size="BUTTON_TEXT_FONT_SIZE" text_class=button ellipsis=1.0 color_class=button/default/text"; + STYLE_TAGS + } + style { name: "button_default_focused"; + base: "align=center color=#ffffffff font="FONT_M" font_size="BUTTON_TEXT_FONT_SIZE" text_class=button ellipsis=1.0 color_class=button/default/text_focused"; + STYLE_TAGS + } + style { name: "button_default_disabled"; + base: "align=center color=#ffffffff font="FONT_M" font_size="BUTTON_TEXT_FONT_SIZE" text_class=button ellipsis=1.0 color_class=button/default/text_disabled"; + STYLE_TAGS + } + style { name: "button_ampm"; + base: "align=center color=#ffffffff font=Tizen:style=Light font_size=40 text_class=tizen"; + STYLE_TAGS + } + style { name: "button_ampm_dim"; + base: "align=center color=#ffffffff font=Tizen:style=Light font_size=40 text_class=tizen"; + STYLE_TAGS + } + style { name: "button_ampm_press"; + base: "align=center color=#ffffffff font=Tizen:style=Light font_size=40 text_class=tizen"; + STYLE_TAGS + } + style { name: "check_on&off"; base: "color=#FFF color_class=check/on&off/text font=Tizen:weight=Light font_size=40 text_class=tizen ellipsis=1.0"; STYLE_TAGS diff --git a/ElmSharp/theme/tv/HD/images/Navigation_elements/core_icon_back.png b/ElmSharp/theme/tv/HD/images/Navigation_elements/core_icon_back.png new file mode 100644 index 0000000000000000000000000000000000000000..baf1df030a3846db95755caa40dbf5b60569cebf GIT binary patch literal 1214 zcmeAS@N?(olHy`uVBq!ia0vp^HXzKw1|+Ti+$;i8k|nMYCBgY=CFO}lsSJ)O`AMk? zp1FzXsX?iUDV2pMQ-L~|l`=yjN+NuHtdjF{^%6m9^eS=-fVzQ(*;f=KCTFLXC?ut( zXXe=|z2CiGNg*@ERw>-n*TA>HIW;5GqpB!1xXLdixhgx^GDXSWPQj+a3TQxXYDuC( zMQ%=Bu~mhw64+cTAR8pCucQE0Qj%?}1aVY^Z-9bxeo?A|sh+WJvVozYf|;3~p^2%P znW2t?k%6I+z5x)K=^C0?nVMM{nJYkn6417ylr*a#7dNO~K%T8qMoCG5mA-y?dAVM> zv0i>ry1t>Mr6tG=BO_g)3fZ zE`@j@w*YQzUNJP7fB~jokyxN_sAmB35=^15FMg%Dxp39RB|)hO_hL1;IHa;5RX-@T zIKQ+g85nVC${?!>telHd6HD@oLh|!-V4)b0kzbNuoRMFk;2dnGpb?&#my%yztO-`{ z>ucqiS6q^qmz?V9Vygr+K`%2i#md~=+`!z~&BV#s(#X)z)x^@o!r0Bw&D7k`)y2%r z+z_VMB|o_|H#M&WrZ)wl*A%B-P*TV(0NU)5T9jFqn&MWJpQ`}&vQ;K-w;16x52`l> zw_A*H>eUB2MjsThND&Pa0;V1i6P|2=9C*S{%>$k}MOWC#=&Nwyq=E-NgHY#G)brOdx zo}Js7<6(M=EsTMg$KU`mA;TCG5I03VRg`&-cAm|*DZ<~sTsJ?ZbTxlRUgA!*mG>_7 z*lyo&ZvXoD8gK4p%S_(w{!yiUXS;FpA+M(08(e+Xh}_T#W6F_|mdcTn7P`Zoqfzja zSv$1+)TjC9rIWTixmmHw!pcVD^Nh)1i*5fOm(%613%R24@8HIb22o|UTTY3{N9}cL zx7)C(Z<@swlc-k-n=?)x_Fc48dWLhh$xEm8$qie#O%r{3Y1X8QP;2kf?8>j%QP-oM zth^qvQGD_JDU0jxF5TC0yxtqxOJE<$th8g|VbJ0`tFtrvfF7ts@pScbS?83{1OS(F Bn-c&4 literal 0 HcmV?d00001 diff --git a/ElmSharp/theme/tv/color_classes.edc b/ElmSharp/theme/tv/color_classes.edc index f574d58..c5e74a8 100644 --- a/ElmSharp/theme/tv/color_classes.edc +++ b/ElmSharp/theme/tv/color_classes.edc @@ -24,6 +24,27 @@ color_classes { color_class { "button/default/text_disabled"; color: 89 89 89 102; } + color_class { "button/naviframe/back_btn/bg"; + color: 0 0 0 0; + } + color_class { "button/naviframe/back_btn/bg_pressed"; + color: 0 0 0 0; + } + color_class { "button/naviframe/back_btn/bg_disabled"; + color: 0 0 0 0; + } + color_class { "button/naviframe/back_btn/effect"; + color: 0 0 0 77; + } + color_class { "button/naviframe/back_btn/icon"; + color: 250 250 250 255; + } + color_class { "button/naviframe/back_btn/icon_pressed"; + color: 34 104 115 255; + } + color_class { "button/naviframe/back_btn/icon_disabled"; + color: 250 250 250 77; + } /* * Check */ diff --git a/ElmSharp/theme/tv/macros.edc b/ElmSharp/theme/tv/macros.edc index d2678b1..cf5ab47 100644 --- a/ElmSharp/theme/tv/macros.edc +++ b/ElmSharp/theme/tv/macros.edc @@ -33,3 +33,343 @@ color3: 255 255 255 255; \ } \ } + +#define BUTTON_VECTOR_PART(min_size, ratio, vector_base, clipper_vector_base, left_top, right_top, mid, left_bottom, right_bottom) \ + vector { vector_base"_top_left"; \ + clip: clipper_vector_base; \ + desc { "default"; \ + vis; \ + align: 0.0 0.0; \ + max: (min_size)*ratio (min_size)*ratio; \ + rel1.to: vector_base; \ + rel2.to: vector_base; \ + rel1.relative: 0.0 0.0; \ + rel2.relative: 1.0 1.0; \ + image.normal: left_top; \ + } \ + desc { "ready"; \ + inherit: "default"; \ + min: (min_size)-1 (min_size)-1; \ + } \ + desc { "pressed"; \ + inherit: "ready"; \ + } \ + desc { "hidden" \ + hid; \ + } \ + } \ + vector { vector_base"_top_right"; \ + clip: clipper_vector_base; \ + desc { "default"; \ + vis; \ + align: 1.0 0.0; \ + max: (min_size)*ratio (min_size)*ratio; \ + rel1.to: vector_base; \ + rel2.to: vector_base; \ + rel1.relative: 0.0 0.0; \ + rel2.relative: 1.0 1.0; \ + image.normal: right_top; \ + } \ + desc { "ready"; \ + inherit: "default"; \ + min: (min_size)-1 (min_size)-1; \ + } \ + desc { "pressed"; \ + inherit: "ready"; \ + } \ + desc { "hidden" \ + hid; \ + } \ + } \ + vector { vector_base"_top_mid"; \ + clip: clipper_vector_base; \ + desc { "default"; \ + vis; \ + rel1.to: vector_base"_top_left"; \ + rel1.relative: 1.0 0.0; \ + rel2.to: vector_base"_top_right"; \ + rel2.relative: 0.0 1.0; \ + image.normal: mid; \ + } \ + desc { "ready"; \ + inherit: "default"; \ + } \ + desc { "pressed"; \ + inherit: "ready"; \ + } \ + desc { "hidden" \ + hid; \ + } \ + } \ + vector { vector_base"_mid"; \ + clip: clipper_vector_base; \ + desc { "default"; \ + vis; \ + rel1.to: vector_base"_top_left"; \ + rel1.relative: 0.0 1.0; \ + rel2.to: vector_base"_bottom_right"; \ + rel2.relative: 1.0 0.0; \ + image.normal: mid; \ + } \ + desc { "ready"; \ + inherit: "default"; \ + } \ + desc { "pressed"; \ + inherit: "ready"; \ + } \ + desc { "hidden" \ + hid; \ + } \ + } \ + vector { vector_base"_bottom_left"; \ + clip: clipper_vector_base; \ + desc { "default"; \ + vis; \ + align: 0.0 1.0; \ + max: (min_size)*ratio (min_size)*ratio; \ + rel1.to: vector_base; \ + rel2.to: vector_base; \ + rel1.relative: 0.0 0.0; \ + rel2.relative: 1.0 1.0; \ + image.normal: left_bottom; \ + } \ + desc { "ready"; \ + inherit: "default"; \ + min: (min_size)-1 (min_size)-1; \ + } \ + desc { "pressed"; \ + inherit: "ready"; \ + } \ + desc { "hidden" \ + hid; \ + } \ + } \ + vector { vector_base"_bottom_right"; \ + clip: clipper_vector_base; \ + desc { "default"; \ + vis; \ + align: 1.0 1.0; \ + max: (min_size)*ratio (min_size)*ratio; \ + rel1.to: vector_base; \ + rel2.to: vector_base; \ + rel1.relative: 0.0 0.0; \ + rel2.relative: 1.0 1.0; \ + image.normal: right_bottom; \ + } \ + desc { "ready"; \ + inherit: "default"; \ + min: (min_size)-1 (min_size)-1; \ + } \ + desc { "pressed"; \ + inherit: "ready"; \ + } \ + desc { "hidden" \ + hid; \ + } \ + } \ + vector { vector_base"_bottom_mid"; \ + clip: clipper_vector_base; \ + desc { "default"; \ + vis; \ + rel1.to: vector_base"_bottom_left"; \ + rel1.relative: 1.0 0.0; \ + rel2.to: vector_base"_bottom_right"; \ + rel2.relative: 0.0 1.0; \ + image.normal: mid; \ + } \ + desc { "ready"; \ + inherit: "default"; \ + } \ + desc { "pressed"; \ + inherit: "ready"; \ + } \ + desc { "hidden" \ + hid; \ + } \ + } \ + vector { vector_base"_top_left_rtl"; \ + clip: clipper_vector_base; \ + desc { "default"; \ + vis; \ + align: 0.0 0.0; \ + max: (min_size)*ratio (min_size)*ratio; \ + rel1.to: vector_base; \ + rel2.to: vector_base; \ + rel1.relative: 0.0 0.0; \ + rel2.relative: 1.0 1.0; \ + image.normal: right_top; \ + } \ + desc { "ready"; \ + inherit: "default"; \ + min: (min_size)-1 (min_size)-1; \ + } \ + desc { "pressed"; \ + inherit: "ready"; \ + } \ + desc { "hidden" \ + hid; \ + } \ + } \ + vector { vector_base"_top_right_rtl"; \ + clip: clipper_vector_base; \ + desc { "default"; \ + vis; \ + align: 1.0 0.0; \ + max: (min_size)*ratio (min_size)*ratio; \ + rel1.to: vector_base; \ + rel2.to: vector_base; \ + rel1.relative: 0.0 0.0; \ + rel2.relative: 1.0 1.0; \ + image.normal: left_top; \ + } \ + desc { "ready"; \ + inherit: "default"; \ + min: (min_size)-1 (min_size)-1; \ + } \ + desc { "pressed"; \ + inherit: "ready"; \ + } \ + desc { "hidden" \ + hid; \ + } \ + } \ + vector { vector_base"_top_mid_rtl"; \ + clip: clipper_vector_base; \ + desc { "default"; \ + vis; \ + rel1.to: vector_base"_top_left_rtl"; \ + rel1.relative: 1.0 0.0; \ + rel2.to: vector_base"_top_right_rtl"; \ + rel2.relative: 0.0 1.0; \ + image.normal: mid; \ + } \ + desc { "ready"; \ + inherit: "default"; \ + } \ + desc { "pressed"; \ + inherit: "ready"; \ + } \ + desc { "hidden" \ + hid; \ + } \ + } \ + vector { vector_base"_mid_rtl"; \ + clip: clipper_vector_base; \ + desc { "default"; \ + vis; \ + rel1.to: vector_base"_top_left_rtl"; \ + rel1.relative: 0.0 1.0; \ + rel2.to: vector_base"_bottom_right_rtl"; \ + rel2.relative: 1.0 0.0; \ + image.normal: mid; \ + } \ + desc { "ready"; \ + inherit: "default"; \ + } \ + desc { "pressed"; \ + inherit: "ready"; \ + } \ + desc { "hidden" \ + hid; \ + } \ + } \ + vector { vector_base"_bottom_left_rtl"; \ + clip: clipper_vector_base; \ + desc { "default"; \ + vis; \ + align: 0.0 1.0; \ + max: (min_size)*ratio (min_size)*ratio; \ + rel1.to: vector_base; \ + rel2.to: vector_base; \ + rel1.relative: 0.0 0.0; \ + rel2.relative: 1.0 1.0; \ + image.normal: right_bottom; \ + } \ + desc { "ready"; \ + inherit: "default"; \ + min: (min_size)-1 (min_size)-1; \ + } \ + desc { "pressed"; \ + inherit: "ready"; \ + } \ + desc { "hidden" \ + hid; \ + } \ + } \ + vector { vector_base"_bottom_right_rtl"; \ + clip: clipper_vector_base; \ + desc { "default"; \ + vis; \ + align: 1.0 1.0; \ + max: (min_size)*ratio (min_size)*ratio; \ + rel1.to: vector_base; \ + rel2.to: vector_base; \ + rel1.relative: 0.0 0.0; \ + rel2.relative: 1.0 1.0; \ + image.normal: left_bottom; \ + } \ + desc { "ready"; \ + inherit: "default"; \ + min: (min_size)-1 (min_size)-1; \ + } \ + desc { "pressed"; \ + inherit: "ready"; \ + } \ + desc { "hidden" \ + hid; \ + } \ + } \ + vector { vector_base"_bottom_mid_rtl"; \ + clip: clipper_vector_base; \ + desc { "default"; \ + vis; \ + rel1.to: vector_base"_bottom_left_rtl"; \ + rel1.relative: 1.0 0.0; \ + rel2.to: vector_base"_bottom_right_rtl"; \ + rel2.relative: 0.0 1.0; \ + image.normal: mid; \ + } \ + desc { "ready"; \ + inherit: "default"; \ + } \ + desc { "pressed"; \ + inherit: "ready"; \ + } \ + desc { "hidden" \ + hid; \ + } \ + } + +#define BUTTON_VECTOR_PART_MIRRORED_VALUE \ + public rtl_mode = 0; + +#define BUTTON_VECTOR_PART_MIRRORED_SET_STATE(vector_base, _rtl, _state) \ + set_state(PART:vector_base"_top_left"_rtl, _state, 0.0); \ + set_state(PART:vector_base"_top_right"_rtl, _state, 0.0); \ + set_state(PART:vector_base"_bottom_left"_rtl, _state, 0.0); \ + set_state(PART:vector_base"_bottom_right"_rtl, _state, 0.0); \ + set_state(PART:vector_base"_top_mid"_rtl, _state, 0.0); \ + set_state(PART:vector_base"_mid"_rtl, _state, 0.0); \ + set_state(PART:vector_base"_bottom_mid"_rtl, _state, 0.0); + +#define BUTTON_VECTOR_PART_MIRRORED_PROGRAM( _icon ) \ + program { "rtl_mirrored"; \ + signal: "edje,state,rtl"; \ + source: "edje"; \ + script { \ + set_int(rtl_mode, 1); \ + if( strcmp(#_icon, "icon")) { \ + set_state(PART:_icon, "rtl", 0.0); \ + } \ + } \ + } \ + program { "ltr_mirrored"; \ + signal: "edje,state,ltr"; \ + source: "edje"; \ + script { \ + set_int(rtl_mode, 0); \ + if( strcmp(#_icon, "icon")) { \ + set_state(PART:_icon, "default", 0.0); \ + } \ + } \ + } diff --git a/ElmSharp/theme/tv/widgets/button.edc b/ElmSharp/theme/tv/widgets/button.edc index f62c553..b4e313a 100644 --- a/ElmSharp/theme/tv/widgets/button.edc +++ b/ElmSharp/theme/tv/widgets/button.edc @@ -24,48 +24,6 @@ * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ -#define BUTTON_DEFAULT_PAD_SIZE 20 70 -#define BUTTON_DEFAULT_MIN_SIZE 196 70 -#define BUTTON_DEFAULT_FONT_SIZE 28 -#define BUTTON_TEXT_PAD_SIZE 20 45 -#define BUTTON_TEXT_MIN_SIZE 147 45 -#define BUTTON_TEXT_FONT_SIZE 20 -#define BUTTON_BORDER 4 4 4 4 - -#define STYLE_TAGS \ - tag: "br" "\n";\ - tag: "ps" "ps";\ - tag: "tab" "\t";\ - tag: "b" "+ font_weight=Bold"; - -// ************* button text ********** // -styles { - style { name: "button_default"; - base: "align=center color=#ffffffff font="FONT_M" font_size="BUTTON_TEXT_FONT_SIZE" text_class=button ellipsis=1.0 color_class=button/default/text"; - STYLE_TAGS - } - style { name: "button_default_focused"; - base: "align=center color=#ffffffff font="FONT_M" font_size="BUTTON_TEXT_FONT_SIZE" text_class=button ellipsis=1.0 color_class=button/default/text_focused"; - STYLE_TAGS - } - style { name: "button_default_dim"; - base: "align=center color=#ffffffff font="FONT_M" font_size="BUTTON_TEXT_FONT_SIZE" text_class=button ellipsis=1.0 color_class=button/default/text_disabled"; - STYLE_TAGS - } - style { name: "button_ampm"; - base: "align=center color=#ffffffff font=Tizen:style=Light font_size=40 text_class=tizen"; - STYLE_TAGS - } - style { name: "button_ampm_dim"; - base: "align=center color=#ffffffff font=Tizen:style=Light font_size=40 text_class=tizen"; - STYLE_TAGS - } - style { name: "button_ampm_press"; - base: "align=center color=#ffffffff font=Tizen:style=Light font_size=40 text_class=tizen"; - STYLE_TAGS - } -} - /********************************************************************************* Document: Tizen TV_General Guide_GUI Guideline_v1.0_140430.ppt Button @@ -1623,11 +1581,417 @@ group { name: "elm/button/base/spinner/vertical_date_picker"; /***********************SPINNER BUTTONS STYLES******************************/ -#undef BUTTON_DEFAULT_PAD_SIZE -#undef BUTTON_DEFAULT_MIN_SIZE -#undef BUTTON_DEFAULT_FONT_SIZE -#undef BUTTON_TEXT_PAD_SIZE -#undef BUTTON_TEXT_MIN_SIZE -#undef BUTTON_TEXT_FONT_SIZE -#undef BUTTON_BORDER -#undef STYLE_TAGS + group { "elm/button/event/default"; + inherit_only: 1; + parts { + rect { "event"; + mouse; + desc { "default"; + color: 0 0 0 0; + rel.to: "base"; + } + desc { "disabled"; + inherit: "default"; + hid; + } + } + } + programs { + /* Program for pressed event */ + program { "pressed"; + signal: "mouse,down,1*"; + source: "event"; + action: SIGNAL_EMIT "elm,action,press" ""; + after: "on_pressed"; + } + /* Program for unpressed event */ + program { "unpressed"; + signal: "mouse,up,1*"; + source: "event"; + action: SIGNAL_EMIT "elm,action,unpress" ""; + after: "on_unpressed"; + } + /* Program for clicked event */ + program { "clicked"; + signal: "mouse,clicked,1"; + source: "event"; + action: SIGNAL_EMIT "elm,action,click" ""; + after: "on_clicked"; + } + /* Program for enabled event */ + program { "enabled"; + signal: "elm,state,enabled"; + source: "elm"; + action: STATE_SET "default"; + target: "event"; + after: "on_enabled"; + } + /* Program for disabled event */ + program { "disabled"; + signal: "elm,state,disabled"; + source: "elm"; + action: STATE_SET "disabled"; + target: "event"; + after: "on_disabled"; + } + program { "enable_event_pass"; + signal: "elm,event,pass,enabled"; + source: "elm"; + script { + set_mouse_events(PART:"event", 0); + } + } + program { "disable_event_pass"; + signal: "elm,event,pass,disabled"; + source:"elm"; + script { + set_mouse_events(PART:"event", 1); + } + } + program { "enable_event_repeat"; + signal: "elm,event,repeat,enabled"; + source: "elm"; + script { + set_repeat_events(PART:"event", 1); + } + } + program { "disable_event_repeat"; + signal: "elm,event,repeat,disabled"; + source:"elm"; + script { + set_repeat_events(PART:"event", 0); + } + } + } + } + + + group { "elm/button/base/naviframe/back_btn/default"; + alias: "elm/button/base/tizen_view/prev_btn"; + alias: "elm/button/base/naviframe/end_btn/default"; + images { + vector: "core_press_top_left.svg"; + vector: "core_press_top_right.svg"; + vector: "core_press_bottom_left.svg"; + vector: "core_press_bottom_right.svg"; + vector: "core_press_center.svg"; + } + target_group: "bg_effect_vector" "bg_effect_top_left" "bg_effect_top_right" "bg_effect_bottom_left" "bg_effect_bottom_right"; + + images { + set { + name: "core_icon_back"; + image { + image: "core_icon_back.png" COMP; + } + } + } + parts { + spacer { "base"; + scale; + nomouse; + desc { "default"; + min: BUTTON_NAVIFRAME_BACK_BUTTON_SIZE_INC; + max: BUTTON_NAVIFRAME_BACK_BUTTON_SIZE_INC; + fixed: 1 1; + } + } + spacer { "bg_spacer"; + scale; + desc { "default"; + fixed: 1 1; + rel1.relative: 0.5 0.5; + rel2.relative: 0.5 0.5; + min: BUTTON_NAVIFRAME_BACK_BUTTON_EFFECT_MAX_SIZE_INC; + max: BUTTON_NAVIFRAME_BACK_BUTTON_EFFECT_MAX_SIZE_INC; + } + } + BUTTON_VECTOR_PART(BUTTON_NAVIFRAME_BACK_CORNER_RADIUS + , 0.7 + , "bg", "clipper_bg" + , "core_press_top_left.svg", "core_press_top_right.svg" + , "core_press_center.svg" + , "core_press_bottom_left.svg", "core_press_bottom_right.svg"); + swallow { "bg"; + scale; + nomouse; + clip: "clipper_bg"; + desc { "default"; + rel.to: "bg_spacer"; + } + } + rect { "clipper_bg"; + scale; + desc { "default"; + color_class: "button/naviframe/back_btn/bg"; + } + desc { "pressed"; + color_class: "button/naviframe/back_btn/bg_pressed"; + } + desc { "disabled"; + color_class: "button/naviframe/back_btn/bg_disabled"; + } + } + spacer { "effect_spacer"; + scale; + desc { "default"; + rel.to: "bg"; + } + } + BUTTON_VECTOR_PART(BUTTON_NAVIFRAME_BACK_CORNER_RADIUS + , 0.7 + , "bg_effect", "clipper_bg_effect" + , "core_press_top_left.svg", "core_press_top_right.svg" + , "core_press_center.svg" + , "core_press_bottom_left.svg", "core_press_bottom_right.svg"); + //Effect Shape Part + swallow { "bg_effect"; + clip: "clipper_bg_effect"; + scale; + desc { "default"; + fixed: 1 1; + rel1.to: "effect_spacer"; + rel2.to: "effect_spacer"; + rel1.relative: 0.5 0.5; + rel2.relative: 0.5 0.5; + } + desc { "ready"; + inherit: "default"; + } + desc { "pressed"; + inherit: "default"; + rel1.relative: 0.0 0.0; + rel2.relative: 1.0 1.0; + } + } + rect { "clipper_bg_effect"; + desc { "default"; + fixed: 1 1; + rel.to: "bg_effect"; + color: 0 0 0 0; + color_class: "button/naviframe/back_btn/effect"; + hid; + } + desc { "ready"; + inherit: "default"; + vis; + } + desc { "pressed"; + inherit: "ready"; + color: 255 255 255 255; + } + } + image { "icon"; + scale; + nomouse; + clip: "clipper_icon"; + desc { "default"; + min: BUTTON_NAVIFRAME_BACK_BUTTON_SIZE_INC; + max: BUTTON_NAVIFRAME_BACK_BUTTON_SIZE_INC; + fixed: 1 1; + image.normal: "core_icon_back"; + } + desc { "rtl"; + inherit: "default"; + map.on: 1; + map.rotation.y: 180.0; + } + } + rect { "clipper_icon"; + scale; + desc { "default"; + color_class: "button/naviframe/back_btn/icon"; + } + desc { "pressed"; + color_class: "button/naviframe/back_btn/icon_pressed"; + } + desc { "disabled"; + color_class: "button/naviframe/back_btn/icon_disabled"; + } + } + } + inherit: "elm/button/event/default"; + script { + public mouse_down = 0; + public multi_down = 0; + public animate = 0; + public disabled = 0; + public minw = 0; + public minh = 0; + public get_effect_min_size(base_effect, Float:ratio, min_w, min_h) { + new x, y, w, h; + get_geometry(base_effect, x, y, w, h); + if (w > h) { + set_float(min_w, (w - h * (1 - ratio)) / w); + set_float(min_h, ratio); + } else { + set_float(min_w, ratio); + set_float(min_h, (h - w * (1 - ratio)) / h); + } + } + BUTTON_VECTOR_PART_MIRRORED_VALUE + } + program_remove: "unpressed"; + program_remove: "clicked"; + programs { + program { "on_pressed"; + script { + if ((get_int(multi_down) == 0) && (get_int(mouse_down) == 0) && (get_int(disabled) == 0)) { + new Float:rel_w, Float:rel_h; + stop_program(PROGRAM:"delay_unpressed_effect"); + set_int(mouse_down, 1); + set_int(animate, 1); + custom_state(PART:"bg_effect", "ready", 0.0); + get_effect_min_size(PART:"effect_spacer", 0.7, minw, minh); + rel_w = (1 - get_float(minw)) / 2; + rel_h = (1 - get_float(minh)) / 2; + set_state_val(PART:"bg_effect", STATE_REL1, rel_w, rel_h); + set_state_val(PART:"bg_effect", STATE_REL2, 1 - rel_w, 1 - rel_h); + run_program(PROGRAM:"pressed_effect"); + } + } + } + program { "unpressed"; + signal: "mouse,up,1"; + source: "event"; + script { + if (get_int(mouse_down) == 1) { + set_int(mouse_down, 0); + if (get_int(disabled) == 0) { + if (get_int(animate) == 0) { + run_program(PROGRAM:"unpressed_effect"); + } else { + set_state(PART:"bg_effect", "pressed", 0.0); + set_state(PART:"clipper_bg_effect", "pressed", 0.0); + set_int(animate, 0); + run_program(PROGRAM:"delay_unpressed_effect"); + } + emit("elm,action,unpress", ""); + } + } + } + } + program { "clicked"; + signal: "mouse,clicked,1"; + source: "event"; + script { + if ((get_int(multi_down) == 0) && (get_int(disabled) == 0)) { + run_program(PROGRAM:"play_sound"); + run_program(PROGRAM:"clicked_signal"); + } + } + } + program { "on_enabled"; + script { + set_int(disabled, 0); + set_state(PART:"clipper_bg", "default", 0.0); + set_state(PART:"clipper_icon", "default", 0.0); + } + } + program { "on_disabled"; + script { + set_int(disabled, 1); + if (get_int(animate) == 1) return; + set_state(PART:"clipper_bg", "disabled", 0.0); + set_state(PART:"clipper_icon", "disabled", 0.0); + } + } + program { "pressed_effect"; + script { + if(get_int(rtl_mode) == 0) { + BUTTON_VECTOR_PART_MIRRORED_SET_STATE("bg_effect","","default") + BUTTON_VECTOR_PART_MIRRORED_SET_STATE("bg_effect","_rtl","hidden") + } + else if(get_int(rtl_mode) == 1) { + BUTTON_VECTOR_PART_MIRRORED_SET_STATE("bg_effect","_rtl","default") + BUTTON_VECTOR_PART_MIRRORED_SET_STATE("bg_effect","","hidden") + } + set_state(PART:"clipper_bg_effect", "ready", 0.0); + set_state(PART:"bg_effect", "custom", 0.0); + run_program(PROGRAM:"pressed_effect2"); + } + } + program { "pressed_effect2"; + script { + if(get_int(rtl_mode) == 0) { + BUTTON_VECTOR_PART_MIRRORED_SET_STATE("bg_effect","","pressed") + } + else if(get_int(rtl_mode) == 1) { + BUTTON_VECTOR_PART_MIRRORED_SET_STATE("bg_effect","_rtl","pressed") + } + run_program(PROGRAM:"pressed_effect2_1"); + } + } + program { "pressed_effect2_1"; + action: STATE_SET "pressed"; + target: "clipper_bg_effect"; + target: "bg_effect"; + target: "clipper_icon"; + transition: GLIDE_EASE_OUT(0.15); + after: "pressed_effect3"; + } + program { "pressed_effect3"; + script { + set_state(PART:"clipper_bg", "pressed", 0.0); + set_int(animate, 0); + } + } + program { "delay_unpressed_effect"; + in: 0.1 0.0; + after: "unpressed_effect"; + } + program { "unpressed_effect"; + script { + run_program(PROGRAM:"unpressed_effect2"); + run_program(PROGRAM:"unpressed_effect2_1"); + } + } + program { "unpressed_effect2"; + action: STATE_SET "ready"; + target: "clipper_bg_effect"; + transition: GLIDE_EASE_OUT(0.45); + after: "unpressed_effect3"; + } + program { "unpressed_effect2_1"; + action: STATE_SET "default"; + target: "clipper_icon"; + transition: GLIDE_EASE_OUT(0.45); + } + program { "unpressed_effect3"; + script { + if(get_int(rtl_mode) == 0) { + BUTTON_VECTOR_PART_MIRRORED_SET_STATE("bg_effect","","default") + } + else if(get_int(rtl_mode) == 1) { + BUTTON_VECTOR_PART_MIRRORED_SET_STATE("bg_effect","_rtl","default") + } + set_state(PART:"clipper_bg_effect", "default", 0.0); + set_state(PART:"clipper_bg", "default", 0.0); + set_state(PART:"bg_effect", "default", 0.0); + } + } + program { "play_sound"; + action: RUN_PLUGIN "touch_sound"; + } + program { "clicked_signal"; + in: 0.001 0.0; + action: SIGNAL_EMIT "elm,action,click" ""; + } + program { "multi_down"; + signal: "elm,action,multi,down"; + source: "elm"; + script { + set_int(multi_down, 1); + } + } + program { "multi_up"; + signal: "elm,action,multi,up"; + source: "elm"; + script { + set_int(multi_down, 0); + } + } + BUTTON_VECTOR_PART_MIRRORED_PROGRAM("icon") + } + } + -- 2.7.4 From 264a02ca703f6517d5295f93e14d9c324ee9add4 Mon Sep 17 00:00:00 2001 From: Sungtaek Hong Date: Thu, 12 Jan 2017 18:47:12 +0900 Subject: [PATCH 12/16] theme: set min size when icon is set Change-Id: I4e31dbb3d3930d7e4a147ba69b1fa2c478618389 Signed-off-by: Sungtaek Hong --- ElmSharp/theme/tv/widgets/button.edc | 17 ++++++++++++++++- 1 file changed, 16 insertions(+), 1 deletion(-) diff --git a/ElmSharp/theme/tv/widgets/button.edc b/ElmSharp/theme/tv/widgets/button.edc index b4e313a..d459557 100644 --- a/ElmSharp/theme/tv/widgets/button.edc +++ b/ElmSharp/theme/tv/widgets/button.edc @@ -93,11 +93,16 @@ group { name: "elm/button/base/default"; min: 0 0; max: 37 37; } + description { state: "visible" 0.0; + inherit: "default" 0.0; + min: 37 37; + fixed: 1 1; + } } part { name: "elm.text"; type: TEXTBLOCK; mouse_events: 0; scale: 1; description { state: "default" 0.0; - rel1.to_x: "pad.left"; + rel1.to_x: "elm.swallow.content"; rel1.relative: 1.0 0.0; rel2.to_x: "pad.right"; rel2.relative: 0.0 1.0; @@ -164,6 +169,16 @@ group { name: "elm/button/base/default"; target: "button_base"; target: "elm.text"; } + program { name: "icon_show"; + signal: "elm,state,icon,visible"; source: "elm"; + action: STATE_SET "visible" 0.0; + target: "elm.swallow.content"; + } + program { name: "icon_hide"; + signal: "elm,state,icon,hidden"; source: "elm"; + action: STATE_SET "default" 0.0; + target: "elm.swallow.content"; + } program { name: "text_show"; signal: "elm,state,text,visible"; source: "elm"; script { -- 2.7.4 From 912d279b23d7e16312cb331ac4b662bae965ed64 Mon Sep 17 00:00:00 2001 From: SungHyun Min Date: Fri, 13 Jan 2017 19:24:16 +0900 Subject: [PATCH 13/16] Add Clear method in GenGrid Change-Id: I7bcb9d41d1ee33cdb29437cfd8b67a6f9f95c413 --- ElmSharp/ElmSharp/GenGrid.cs | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/ElmSharp/ElmSharp/GenGrid.cs b/ElmSharp/ElmSharp/GenGrid.cs index 20566a4..22c73c8 100644 --- a/ElmSharp/ElmSharp/GenGrid.cs +++ b/ElmSharp/ElmSharp/GenGrid.cs @@ -232,6 +232,11 @@ namespace ElmSharp Interop.Elementary.elm_gengrid_realized_items_update(Handle); } + public void Clear() + { + Interop.Elementary.elm_gengrid_clear(Handle); + } + protected override IntPtr CreateHandle(EvasObject parent) { return Interop.Elementary.elm_gengrid_add(parent); -- 2.7.4 From 51801d89e4bbb878aa8401aa2d58d6fdbad518ce Mon Sep 17 00:00:00 2001 From: WonYoung Choi Date: Mon, 16 Jan 2017 14:25:47 +0900 Subject: [PATCH 14/16] Add theme files for IVI profile Change-Id: I435c241fd6136d877d777f9f1f32319ce7f2506f --- ElmSharp/theme/ivi/HD-inc.edc | 81 ++ ElmSharp/theme/ivi/HD/images/Assist_Views/README | 1 + .../theme/ivi/HD/images/Navigation_elements/README | 1 + .../User_Input_Elements/core_radio_bg_01.svg | 8 + .../User_Input_Elements/core_radio_bg_02.svg | 9 + .../images/User_Input_Elements/core_radio_icon.svg | 7 + .../User_Input_Elements/core_radio_stroke.svg | 8 + .../User_Input_Elements/core_radio_white_bg.svg | 8 + ElmSharp/theme/ivi/color_classes.edc | 101 ++ ElmSharp/theme/ivi/elm-sharp-theme-ivi.edc | 94 ++ ElmSharp/theme/ivi/widgets/colorselector.edc | 91 ++ ElmSharp/theme/ivi/widgets/entry.edc | 1077 ++++++++++++++++++++ ElmSharp/theme/ivi/widgets/genlist.edc | 208 ++++ ElmSharp/theme/ivi/widgets/label.edc | 722 +++++++++++++ ElmSharp/theme/ivi/widgets/layout.edc | 40 + ElmSharp/theme/ivi/widgets/radio.edc | 559 ++++++++++ 16 files changed, 3015 insertions(+) create mode 100644 ElmSharp/theme/ivi/HD-inc.edc create mode 100644 ElmSharp/theme/ivi/HD/images/Assist_Views/README create mode 100644 ElmSharp/theme/ivi/HD/images/Navigation_elements/README create mode 100755 ElmSharp/theme/ivi/HD/images/User_Input_Elements/core_radio_bg_01.svg create mode 100755 ElmSharp/theme/ivi/HD/images/User_Input_Elements/core_radio_bg_02.svg create mode 100755 ElmSharp/theme/ivi/HD/images/User_Input_Elements/core_radio_icon.svg create mode 100755 ElmSharp/theme/ivi/HD/images/User_Input_Elements/core_radio_stroke.svg create mode 100755 ElmSharp/theme/ivi/HD/images/User_Input_Elements/core_radio_white_bg.svg create mode 100644 ElmSharp/theme/ivi/color_classes.edc create mode 100644 ElmSharp/theme/ivi/elm-sharp-theme-ivi.edc create mode 100644 ElmSharp/theme/ivi/widgets/colorselector.edc create mode 100644 ElmSharp/theme/ivi/widgets/entry.edc create mode 100644 ElmSharp/theme/ivi/widgets/genlist.edc create mode 100644 ElmSharp/theme/ivi/widgets/label.edc create mode 100644 ElmSharp/theme/ivi/widgets/layout.edc create mode 100644 ElmSharp/theme/ivi/widgets/radio.edc diff --git a/ElmSharp/theme/ivi/HD-inc.edc b/ElmSharp/theme/ivi/HD-inc.edc new file mode 100644 index 0000000..4af4422 --- /dev/null +++ b/ElmSharp/theme/ivi/HD-inc.edc @@ -0,0 +1,81 @@ +/* + * Copyright (c) 2015 Samsung Electronics Co., Ltd All Rights Reserved + * + * BSD 2-Clause License (http://www.opensource.org/licenses/bsd-license.php) + * + * Redistribution and use in source and binary forms, with or without + * modification, are permitted provided that the following conditions are met: + * + * 1. Redistributions of source code must retain the above copyright notice, this + * list of conditions and the following disclaimer. + * 2. Redistributions in binary form must reproduce the above copyright notice, + * this list of conditions and the following disclaimer in the documentation + * and/or other materials provided with the distribution. + * + * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND + * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED + * WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE + * DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR + * ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES + * (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; + * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND + * ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT + * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS + * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. + */ + +//****************************************************************************// +// This file defines the width, height (not color!) for each widgets +// We can define different INC file by Resolution (HD, qHD, WVGA, HVGA) +// +// ************* Naming Rule ************ // +// {WIDGET}_{GROUP}_{PART}_{STATE}_{TYPE} +// WIDGET: NAVIFRAME, LIST, DATETIME, POPUP, etc. +// GROUP: INDEX +// PART: TEXT, ICON, BG, PADDING, DIVIDER, ICON, etc. +// STATE: LEFT, RIGHT, TOP, BOTTOM, MIN, MAX, +// TYPE: HEIGHT, WIDTH, SIZE +// e.g. LIST_PADDING_LEFT_HEIGHT +//****************************************************************************// + +#define BASE_SCALE_INC 2.6 + +//****************************************************************************// +// Colorselector +//****************************************************************************// +#define COLORSELECTOR_PALETTE_COLORPLANE_HEIGHT_INC 238 +#define COLORSELECTOR_PALETTE_COLORPLANE_WIDTH_INC 678 +#define COLORSELECTOR_PORTRAIT_HOR_PAD_COLORPLANE_INC "8" +#define COLORSELECTOR_PORTRAIT_VER_PAD_COLORPLANE_INC "8" +#define COLORSELECTOR_TOPBOTTOM_PAD_COLORPLANE_INC 24 + +//****************************************************************************// +// Entry +//****************************************************************************// +#define ENTRY_PREEDIT_BACKGROUND_COLOR_INC "#000000" +#define ENTRY_PREEDIT_HIGHLIGHT_BACKGROUND_COLOR_INC "#8bd8ff99" +#define ENTRY_PREEDIT_TEXT_COLOR_INC "#FAFAFA" +#define ENTRY_PREEDIT_UNDERLINE_COLOR_INC "#000000" +#define ENTRY_PREEDIT_SUB1_COLOR_INC "#2EA8E1" +#define ENTRY_PREEDIT_SUB2_COLOR_INC "#9962C3" +#define ENTRY_PREEDIT_SUB3_COLOR_INC "#76DE37" +#define ENTRY_PREEDIT_SUB4_COLOR_INC "#999999" +#define ENTRY_LEFT_RIGHT_MARGIN_INC 5 +#define ENTRY_FONT_SIZE_INC 40 +#define ENTRY_CURSOR_SIZE_INC 3 0 + +//****************************************************************************// +// Label +//****************************************************************************// +#define LABEL_FONT_SIZE_INC 24 + +//****************************************************************************// +// RADIO +//****************************************************************************// +#define RADIO_DEFAULT_SIZE_INC 50 50 +#define RADIO_PAD_BEFORE_TEXT_INC 32 0 + +//****************************************************************************// +// GENLIST +//****************************************************************************// +#define LIST_BOTTOMLINE_HEIGHT 2 diff --git a/ElmSharp/theme/ivi/HD/images/Assist_Views/README b/ElmSharp/theme/ivi/HD/images/Assist_Views/README new file mode 100644 index 0000000..1746a11 --- /dev/null +++ b/ElmSharp/theme/ivi/HD/images/Assist_Views/README @@ -0,0 +1 @@ +This is reserved directory for mobile images. Please delete this file when any file is added. diff --git a/ElmSharp/theme/ivi/HD/images/Navigation_elements/README b/ElmSharp/theme/ivi/HD/images/Navigation_elements/README new file mode 100644 index 0000000..f267efa --- /dev/null +++ b/ElmSharp/theme/ivi/HD/images/Navigation_elements/README @@ -0,0 +1 @@ +This is reserved space for mobile images. Please erase this file if any image is added. diff --git a/ElmSharp/theme/ivi/HD/images/User_Input_Elements/core_radio_bg_01.svg b/ElmSharp/theme/ivi/HD/images/User_Input_Elements/core_radio_bg_01.svg new file mode 100755 index 0000000..a903fc2 --- /dev/null +++ b/ElmSharp/theme/ivi/HD/images/User_Input_Elements/core_radio_bg_01.svg @@ -0,0 +1,8 @@ + + + + + + diff --git a/ElmSharp/theme/ivi/HD/images/User_Input_Elements/core_radio_bg_02.svg b/ElmSharp/theme/ivi/HD/images/User_Input_Elements/core_radio_bg_02.svg new file mode 100755 index 0000000..4bf9638 --- /dev/null +++ b/ElmSharp/theme/ivi/HD/images/User_Input_Elements/core_radio_bg_02.svg @@ -0,0 +1,9 @@ + + + + + + diff --git a/ElmSharp/theme/ivi/HD/images/User_Input_Elements/core_radio_icon.svg b/ElmSharp/theme/ivi/HD/images/User_Input_Elements/core_radio_icon.svg new file mode 100755 index 0000000..3170adc --- /dev/null +++ b/ElmSharp/theme/ivi/HD/images/User_Input_Elements/core_radio_icon.svg @@ -0,0 +1,7 @@ + + + + + + diff --git a/ElmSharp/theme/ivi/HD/images/User_Input_Elements/core_radio_stroke.svg b/ElmSharp/theme/ivi/HD/images/User_Input_Elements/core_radio_stroke.svg new file mode 100755 index 0000000..9a8fdab --- /dev/null +++ b/ElmSharp/theme/ivi/HD/images/User_Input_Elements/core_radio_stroke.svg @@ -0,0 +1,8 @@ + + + + + + diff --git a/ElmSharp/theme/ivi/HD/images/User_Input_Elements/core_radio_white_bg.svg b/ElmSharp/theme/ivi/HD/images/User_Input_Elements/core_radio_white_bg.svg new file mode 100755 index 0000000..054a779 --- /dev/null +++ b/ElmSharp/theme/ivi/HD/images/User_Input_Elements/core_radio_white_bg.svg @@ -0,0 +1,8 @@ + + + + + + diff --git a/ElmSharp/theme/ivi/color_classes.edc b/ElmSharp/theme/ivi/color_classes.edc new file mode 100644 index 0000000..d10c93b --- /dev/null +++ b/ElmSharp/theme/ivi/color_classes.edc @@ -0,0 +1,101 @@ +color_classes { + /* + * Layout + */ + color_class { + name: "layout/background/bg"; + color: 0 0 0 0; + } + /* + * Colorselector + */ + color_class { + name: "colorselector/default/bg"; + color: 250 250 250 255; + } + /* + * Entry + */ + color_class { "entry/default/text_edit"; + color: 0 0 0 255; + } + color_class { "entry/default/text_edit_focused"; + color: 0 0 0 255; + } + color_class { "entry/default/text_edit_disabled"; + color: 0 0 0 110; + } + color_class { "entry/default/text_guide"; + color: 0 0 0 145; + } + color_class { "entry/default/text_guide_focused"; + color: 0 0 0 145; + } + color_class { "entry/default/text_guide_disabled"; + color: 0 0 0 110; + } + color_class { + name: "entry/default/bg"; + color: 0 0 0 0; + } + color_class { "entry/default/cursor"; + color: 0 184 230 110; + } + /* + * Label + */ + color_class { + name: "label/default/bg"; + color: 0 0 0 0; + } + color_class { + name: "label/slide_long/bg"; + color: 0 0 0 0; + } + color_class { + name: "label/slide_short/bg"; + color: 0 0 0 0; + } + color_class { + name: "label/slide_roll/bg"; + color: 0 0 0 0; + } + color_class { + name: "label/slide_bounce/bg"; + color: 0 0 0 0; + } + + /* + * Radio + */ + color_class { "radio/default/icon"; + color: 61 185 204 255; + } + color_class { "radio/default/bg"; + color: 250 250 250 51; + } + color_class { "radio/default/icon_disabled"; + color: 61 185 204 77; + } + color_class { "radio/default/bg_disabled"; + color: 250 250 250 38; + } + color_class { "radio/default/bg_border_on"; + color: 250 250 250 77; + } + color_class { "radio/default/bg_border_on_disabled"; + color: 250 250 250 38; + } + color_class { "radio/default/stroke"; + color: 61 185 204 255; + } + color_class { "radio/default/stroke_disabled"; + color: 61 185 204 77; + } + color_class { "radio/default/bg_on"; + color: 250 250 250 255; + } + color_class { "radio/default/bg_on_disabled"; + color: 250 250 250 255; + } +} diff --git a/ElmSharp/theme/ivi/elm-sharp-theme-ivi.edc b/ElmSharp/theme/ivi/elm-sharp-theme-ivi.edc new file mode 100644 index 0000000..b4f11b9 --- /dev/null +++ b/ElmSharp/theme/ivi/elm-sharp-theme-ivi.edc @@ -0,0 +1,94 @@ +/* + * Copyright (c) 2015 Samsung Electronics Co., Ltd All Rights Reserved + * + * BSD 2-Clause License (http://www.opensource.org/licenses/bsd-license.php) + * + * Redistribution and use in source and binary forms, with or without + * modification, are permitted provided that the following conditions are met: + * + * 1. Redistributions of source code must retain the above copyright notice, this + * list of conditions and the following disclaimer. + * 2. Redistributions in binary form must reproduce the above copyright notice, + * this list of conditions and the following disclaimer in the documentation + * and/or other materials provided with the distribution. + * + * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND + * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED + * WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE + * DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR + * ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES + * (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; + * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND + * ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT + * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS + * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. + */ + +// LICENSE NOTE: +// This file (and only this one) is licenses under public-domain. The reason +// is that this is meant to serve as a template for making your own themes and +// Elementary's LGPL license is not intended to follow. The images used do come +// under LGPL, but this file specifically for the structure of your theme is +// public-domain. This means you can take, use, re-license and otherwise +// have zero restrictions on using this file as a base for your theme. + +//****************************************************************************************// +// This is theme body including all widget bodys +// Define shared descriptions (e.g. sound samples, color classes, textblock styles) in here +// Do not define size(width, height) in here!!!! +//****************************************************************************************// + +// Include INC (e.g. HD-inc.edc, HVGA-inc.edc for each resolution) file +#include "HD-inc.edc" + +externals { + external: "elm"; +} + +// BUILD_FIX: Add version to edc as 110. +data.item: "version" "110"; +// + +collections { + base_scale: BASE_SCALE_INC; + plugins { + plugin { + name: "touch_sound"; + source: "feedback"; + param: "FEEDBACK_TYPE_SOUND FEEDBACK_PATTERN_TAP"; // FEEDBACK_TYPE_SOUND, FEEDBACK_PATTERN_TOUCH_TAP + + /* 2014.06.11 updated from libsvi(feedback) + Above plugin will run below external function: + int feedback_play_type(feedback_type_e type, feedback_pattern_e pattern); + + param1: feedback_type_e + FEEDBACK_TYPE_NONE = 0, + FEEDBACK_TYPE_SOUND = 1, + FEEDBACK_TYPE_VIBRATION, + FEEDBACK_TYPE_LED, + FEEDBACK_TYPE_END + + * param2 enumeration: + FEEDBACK_PATTERN_TAP = 0, + FEEDBACK_PATTERN_SIP, + FEEDBACK_PATTERN_SIP_BACKSPACE, + FEEDBACK_PATTERN_SIP_FUNCTION, + FEEDBACK_PATTERN_SIP_FJKEY, + ... + + * For more information please refer libsvi. + */ + } + } + +#include "color_classes.edc" + +#include "widgets/colorselector.edc" +#include "widgets/entry.edc" +#include "widgets/genlist.edc" +#include "widgets/label.edc" +#include "widgets/radio.edc" +#include "widgets/layout.edc" + +} + diff --git a/ElmSharp/theme/ivi/widgets/colorselector.edc b/ElmSharp/theme/ivi/widgets/colorselector.edc new file mode 100644 index 0000000..4ac5725 --- /dev/null +++ b/ElmSharp/theme/ivi/widgets/colorselector.edc @@ -0,0 +1,91 @@ +/* + * Copyright (c) 2010 Samsung Electronics Co., Ltd All Rights Reserved + * + * BSD 2-Clause License (http://www.opensource.org/licenses/bsd-license.php) + * + * Redistribution and use in source and binary forms, with or without + * modification, are permitted provided that the following conditions are met: + * + * 1. Redistributions of source code must retain the above copyright notice, this + * list of conditions and the following disclaimer. + * 2. Redistributions in binary form must reproduce the above copyright notice, + * this list of conditions and the following disclaimer in the documentation + * and/or other materials provided with the distribution. + * + * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND + * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED + * WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE + * DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR + * ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES + * (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; + * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND + * ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT + * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS + * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. + */ + +group { "elm/colorselector/palette/colorplane"; + alias: "elm/colorselector/palette/default"; + data.item: "horizontal_pad" COLORSELECTOR_PORTRAIT_HOR_PAD_COLORPLANE_INC; + data.item: "vertical_pad" COLORSELECTOR_PORTRAIT_VER_PAD_COLORPLANE_INC; + + parts { + spacer { "base"; + scale; + desc { "default"; + min: COLORSELECTOR_PALETTE_COLORPLANE_WIDTH_INC COLORSELECTOR_PALETTE_COLORPLANE_HEIGHT_INC; + max: -1 -1; + } + } + rect { "bg"; + nomouse; + desc { "default"; + rel.to: "base"; + color_class: "colorselector/default/bg"; + } + } + spacer { "padding_top"; + scale; + desc { "default"; + min: 0 COLORSELECTOR_TOPBOTTOM_PAD_COLORPLANE_INC; + fixed: 0 1; + rel1 { + relative: 0.0 0.0; + to: "base"; + } + rel2 { + relative: 1.0 0.0; + to: "base"; + } + align: 0.0 0.0; + } + } + swallow { "palette"; + scale; + mouse; + desc { state: "default"; + align: 0.5 0.0; + fixed: 0 1; + rel1 { + relative: 0.0 1.0; + to_y: "padding_top"; + } + rel2.to_y: "padding_top"; + } + } + spacer { "padding_palette"; + scale; + desc { "default"; + min: 0 COLORSELECTOR_TOPBOTTOM_PAD_COLORPLANE_INC; + fixed: 0 1; + rel1 { + relative: 0.0 1.0; + to: "palette"; + } + rel2.to: "palette"; + align: 0.0 0.0; + } + } + } +} + diff --git a/ElmSharp/theme/ivi/widgets/entry.edc b/ElmSharp/theme/ivi/widgets/entry.edc new file mode 100644 index 0000000..41f240f --- /dev/null +++ b/ElmSharp/theme/ivi/widgets/entry.edc @@ -0,0 +1,1077 @@ +/* + * Copyright (c) 2010 Samsung Electronics Co., Ltd All Rights Reserved + * + * BSD 2-Clause License (http://www.opensource.org/licenses/bsd-license.php) + * + * Redistribution and use in source and binary forms, with or without + * modification, are permitted provided that the following conditions are met: + * + * 1. Redistributions of source code must retain the above copyright notice, this + * list of conditions and the following disclaimer. + * 2. Redistributions in binary form must reproduce the above copyright notice, + * this list of conditions and the following disclaimer in the documentation + * and/or other materials provided with the distribution. + * + * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND + * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED + * WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE + * DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR + * ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES + * (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; + * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND + * ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT + * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS + * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. + */ + +#define ENTRY_DEFAULT_TAGS \ + tag: "em" "+ font_style=Oblique"; \ + tag: "b" "+ font_weight=Bold"; \ + tag: "link" "+ color=#800 underline=on underline_color=#8008"; \ + tag: "hilight" "+ font_weight=Bold"; + +#define ENTRY_SINGLELINE_TAGS \ + tag: "br" ""; \ + tag: "em" "+ font_style=Oblique"; \ + tag: "b" "+ font_weight=Bold"; \ + tag: "link" "+ color=#800 underline=on underline_color=#8008"; \ + tag: "hilight" "+ font_weight=Bold"; + +#define ENTRY_PREEDIT_TAGS \ + tag: "preedit" "+ underline=on underline_color="ENTRY_PREEDIT_UNDERLINE_COLOR_INC; \ + tag: "preedit_sel" "+ backing=on backing_color="ENTRY_PREEDIT_BACKGROUND_COLOR_INC" color="ENTRY_PREEDIT_TEXT_COLOR_INC" underline=on underline_color="ENTRY_PREEDIT_TEXT_COLOR_INC; \ + tag: "preedit_highlight" "+ backing=on backing_color="ENTRY_PREEDIT_HIGHLIGHT_BACKGROUND_COLOR_INC" underline=on underline_color="ENTRY_PREEDIT_TEXT_COLOR_INC; \ + tag: "preedit_sub1" "+ backing=on backing_color="ENTRY_PREEDIT_SUB1_COLOR_INC" underline=on underline_color="ENTRY_PREEDIT_UNDERLINE_COLOR_INC; \ + tag: "preedit_sub2" "+ backing=on backing_color="ENTRY_PREEDIT_SUB2_COLOR_INC" underline=on underline_color="ENTRY_PREEDIT_UNDERLINE_COLOR_INC; \ + tag: "preedit_sub3" "+ backing=on backing_color="ENTRY_PREEDIT_SUB3_COLOR_INC" underline=on underline_color="ENTRY_PREEDIT_UNDERLINE_COLOR_INC; \ + tag: "preedit_sub4" "+ backing=on backing_color="ENTRY_PREEDIT_SUB4_COLOR_INC" underline=on underline_color="ENTRY_PREEDIT_UNDERLINE_COLOR_INC; + +styles { + style { "entry_textblock_style"; + base: "font=Tizen:weight=Light font_size="ENTRY_FONT_SIZE_INC" color=#fff left_margin="ENTRY_LEFT_RIGHT_MARGIN_INC" right_margin="ENTRY_LEFT_RIGHT_MARGIN_INC" wrap=mixed text_class=entry color_class=entry/default/text_edit"; + ENTRY_DEFAULT_TAGS + ENTRY_PREEDIT_TAGS + } + style { "entry_textblock_focused_style"; + base: "font=Tizen:weight=Light font_size="ENTRY_FONT_SIZE_INC" color=#fff left_margin="ENTRY_LEFT_RIGHT_MARGIN_INC" right_margin="ENTRY_LEFT_RIGHT_MARGIN_INC" wrap=mixed text_class=entry color_class=entry/default/text_edit_focused"; + ENTRY_DEFAULT_TAGS + ENTRY_PREEDIT_TAGS + } + style { "entry_textblock_disabled_style"; + base: "font=Tizen:weight=Light font_size="ENTRY_FONT_SIZE_INC" color=#fff left_margin="ENTRY_LEFT_RIGHT_MARGIN_INC" right_margin="ENTRY_LEFT_RIGHT_MARGIN_INC" wrap=mixed text_class=entry color_class=entry/default/text_edit_disabled"; + ENTRY_DEFAULT_TAGS + ENTRY_PREEDIT_TAGS + } + style { "entry_textblock_guide_style"; + base: "font=Tizen:weight=Light font_size="ENTRY_FONT_SIZE_INC" color=#fff left_margin="ENTRY_LEFT_RIGHT_MARGIN_INC" right_margin="ENTRY_LEFT_RIGHT_MARGIN_INC" wrap=mixed text_class=entry color_class=entry/default/text_guide"; + ENTRY_DEFAULT_TAGS + } + style { "entry_textblock_guide_focused_style"; + base: "font=Tizen:weight=Light font_size="ENTRY_FONT_SIZE_INC" color=#fff left_margin="ENTRY_LEFT_RIGHT_MARGIN_INC" right_margin="ENTRY_LEFT_RIGHT_MARGIN_INC" wrap=mixed text_class=entry color_class=entry/default/text_guide_focused"; + ENTRY_DEFAULT_TAGS + } + style { "entry_textblock_guide_disabled_style"; + base: "font=Tizen:weight=Light font_size="ENTRY_FONT_SIZE_INC" color=#fff left_margin="ENTRY_LEFT_RIGHT_MARGIN_INC" right_margin="ENTRY_LEFT_RIGHT_MARGIN_INC" wrap=mixed text_class=entry color_class=entry/default/text_guide_disabled"; + ENTRY_DEFAULT_TAGS + } + style { "entry_textblock_char_wrap_style"; + base: "font=Tizen:weight=Light font_size="ENTRY_FONT_SIZE_INC" color=#fff left_margin="ENTRY_LEFT_RIGHT_MARGIN_INC" right_margin="ENTRY_LEFT_RIGHT_MARGIN_INC" wrap=char text_class=entry color_class=entry/default/text_edit"; + ENTRY_DEFAULT_TAGS + ENTRY_PREEDIT_TAGS + } + style { "entry_textblock_char_wrap_focused_style"; + base: "font=Tizen:weight=Light font_size="ENTRY_FONT_SIZE_INC" color=#fff left_margin="ENTRY_LEFT_RIGHT_MARGIN_INC" right_margin="ENTRY_LEFT_RIGHT_MARGIN_INC" wrap=char text_class=entry color_class=entry/default/text_edit_focused"; + ENTRY_DEFAULT_TAGS + ENTRY_PREEDIT_TAGS + } + style { "entry_textblock_char_wrap_disabled_style"; + base: "font=Tizen:weight=Light font_size="ENTRY_FONT_SIZE_INC" color=#fff left_margin="ENTRY_LEFT_RIGHT_MARGIN_INC" right_margin="ENTRY_LEFT_RIGHT_MARGIN_INC" wrap=char text_class=entry color_class=entry/default/text_edit_disabled"; + ENTRY_DEFAULT_TAGS + ENTRY_PREEDIT_TAGS + } + style { "entry_textblock_char_wrap_guide_style"; + base: "font=Tizen:weight=Light font_size="ENTRY_FONT_SIZE_INC" color=#fff left_margin="ENTRY_LEFT_RIGHT_MARGIN_INC" right_margin="ENTRY_LEFT_RIGHT_MARGIN_INC" wrap=char text_class=entry color_class=entry/default/text_guide"; + ENTRY_DEFAULT_TAGS + } + style { "entry_textblock_char_wrap_guide_focused_style"; + base: "font=Tizen:weight=Light font_size="ENTRY_FONT_SIZE_INC" color=#fff left_margin="ENTRY_LEFT_RIGHT_MARGIN_INC" right_margin="ENTRY_LEFT_RIGHT_MARGIN_INC" wrap=char text_class=entry color_class=entry/default/text_guide_focused"; + ENTRY_DEFAULT_TAGS + } + style { "entry_textblock_char_wrap_guide_disabled_style"; + base: "font=Tizen:weight=Light font_size="ENTRY_FONT_SIZE_INC" color=#fff left_margin="ENTRY_LEFT_RIGHT_MARGIN_INC" right_margin="ENTRY_LEFT_RIGHT_MARGIN_INC" wrap=char text_class=entry color_class=entry/default/text_guide_disabled"; + ENTRY_DEFAULT_TAGS + } + style { "entry_single_textblock_style"; + base: "font=Tizen:weight=Light font_size="ENTRY_FONT_SIZE_INC" color=#fff left_margin="ENTRY_LEFT_RIGHT_MARGIN_INC" right_margin="ENTRY_LEFT_RIGHT_MARGIN_INC" wrap=none text_class=entry color_class=entry/default/text_edit"; + ENTRY_SINGLELINE_TAGS + ENTRY_PREEDIT_TAGS + } + style { "entry_single_textblock_focused_style"; + base: "font=Tizen:weight=Light font_size="ENTRY_FONT_SIZE_INC" color=#fff left_margin="ENTRY_LEFT_RIGHT_MARGIN_INC" right_margin="ENTRY_LEFT_RIGHT_MARGIN_INC" wrap=none text_class=entry color_class=entry/default/text_edit_focused"; + ENTRY_SINGLELINE_TAGS + ENTRY_PREEDIT_TAGS + } + style { "entry_single_textblock_disabled_style"; + base: "font=Tizen:weight=Light font_size="ENTRY_FONT_SIZE_INC" color=#fff left_margin="ENTRY_LEFT_RIGHT_MARGIN_INC" right_margin="ENTRY_LEFT_RIGHT_MARGIN_INC" wrap=none text_class=entry color_class=entry/default/text_edit_disabled"; + ENTRY_SINGLELINE_TAGS + ENTRY_PREEDIT_TAGS + } + style { "entry_single_textblock_guide_style"; + base: "font=Tizen:weight=Light font_size="ENTRY_FONT_SIZE_INC" color=#fff left_margin="ENTRY_LEFT_RIGHT_MARGIN_INC" right_margin="ENTRY_LEFT_RIGHT_MARGIN_INC" wrap=none text_class=entry color_class=entry/default/text_guide"; + ENTRY_SINGLELINE_TAGS + } + style { "entry_single_textblock_guide_focused_style"; + base: "font=Tizen:weight=Light font_size="ENTRY_FONT_SIZE_INC" color=#fff left_margin="ENTRY_LEFT_RIGHT_MARGIN_INC" right_margin="ENTRY_LEFT_RIGHT_MARGIN_INC" wrap=none text_class=entry color_class=entry/default/text_guide_focused"; + ENTRY_SINGLELINE_TAGS + } + style { "entry_single_textblock_guide_disabled_style"; + base: "font=Tizen:weight=Light font_size="ENTRY_FONT_SIZE_INC" color=#fff left_margin="ENTRY_LEFT_RIGHT_MARGIN_INC" right_margin="ENTRY_LEFT_RIGHT_MARGIN_INC" wrap=none text_class=entry color_class=entry/default/text_guide_disabled"; + ENTRY_SINGLELINE_TAGS + } +} + +group { "elm/entry/event/default"; + inherit_only: 1; + parts { + rect { "event"; + mouse; + repeat; + desc { "default"; + color: 0 0 0 0; + } + desc { "disabled"; + inherit: "default"; + hid; + } + } + } + programs { + program { "clicked"; + signal: "mouse,clicked,1"; + source: "event"; + after: "on_clicked"; + } + program { "load"; + signal: "load"; + source: ""; + after: "on_load"; + } + program { "disabled"; + signal: "elm,state,disabled"; + source: "elm"; + action: STATE_SET "disabled"; + target: "event"; + after: "on_disabled"; + } + program { "enabled"; + signal: "elm,state,disabled"; + source: "elm"; + action: STATE_SET "default"; + target: "event"; + after: "on_enabled"; + } + program { "focus"; + signal: "elm,action,focus"; + source: "elm"; + after: "on_focus"; + } + program { "unfocus"; + signal: "elm,action,unfocus"; + source: "elm"; + after: "on_unfocus"; + } + program { "disabled_guide"; + signal: "elm,guide,disabled"; + source: "elm"; + after: "on_disabled_guide"; + } + program { "enabled_guide"; + signal: "elm,guide,enabled"; + source: "elm"; + after: "on_enabled_guide"; + } + } +} + +group { "elm/entry/base/template"; + inherit_only: 1; + data.item: "default_font_size" ENTRY_FONT_SIZE_INC; + data.item: "focus_highlight" "on"; + data.item: context_menu_orientation "horizontal"; + parts { + rect { "bg"; + nomouse; + desc { "default"; + color_class: "entry/default/bg"; + } + } + textblock { "elm.guide"; + nomouse; + scale; + desc { "default"; + rel.to: "elm.text"; + text.style: "entry_textblock_guide_style"; + } + desc { "focused"; + inherit: "default"; + text.style: "entry_textblock_guide_focused_style"; + } + desc { "disabled"; + inherit: "default"; + text.style: "entry_textblock_guide_disabled_style"; + } + desc { "hidden"; + inherit: "default"; + hid; + } + } + textblock { "elm.text"; + mouse; + scale; + entry_mode: EDITABLE; + select_mode: EXPLICIT; + cursor_mode: BEFORE; + multiline: 1; + source: "elm/entry/selection/default"; // selection under + source4: "elm/entry/cursor/default"; // cursorover + source5: "elm/entry/anchor/default"; // anchor under + desc { "default"; + text.style: "entry_textblock_style"; + } + desc { "focused"; + inherit: "default"; + text.style: "entry_textblock_focused_style"; + } + desc { "disabled"; + inherit: "default"; + text.style: "entry_textblock_disabled_style"; + } + } + } + inherit: "elm/entry/event/default"; + script { + public focused = 0; + public disabled = 0; + public guide_disabled = 0; + } + programs { + program { "on_load"; + action: FOCUS_SET; + target: "elm.text"; + } + program { "on_clicked"; + action: RUN_PLUGIN "touch_sound"; + } + program { "on_focus"; + script { + set_int(focused, 1); + if (get_int(disabled) == 0) { + set_state(PART:"elm.text", "focused", 0.0); + if (get_int(guide_disabled) == 0) + set_state(PART:"elm.guide", "focused", 0.0); + } + } + } + program { "on_unfocus"; + script { + set_int(focused, 0); + if (get_int(disabled) == 0) { + set_state(PART:"elm.text", "default", 0.0); + if (get_int(guide_disabled) == 0) + set_state(PART:"elm.guide", "default", 0.0); + } + } + } + program { "on_disabled"; + script { + set_int(disabled, 1); + set_state(PART:"elm.text", "disabled", 0.0); + if (get_int(guide_disabled) == 0) + set_state(PART:"elm.guide", "disabled", 0.0); + } + } + program { "on_enabled"; + script { + set_int(disabled, 0); + if (get_int(focused)) + set_state(PART:"elm.text", "focused", 0.0); + else + set_state(PART:"elm.text", "default", 0.0); + if (get_int(guide_disabled) == 0) { + if (get_int(focused)) + set_state(PART:"elm.guide", "focused", 0.0); + else + set_state(PART:"elm.guide", "default", 0.0); + } + } + } + program { "on_disabled_guide"; + script { + set_int(guide_disabled, 1); + set_state(PART:"elm.guide", "hidden", 0.0); + } + } + program { "on_enabled_guide"; + script { + set_int(guide_disabled, 0); + if (get_int(disabled)) + set_state(PART:"elm.guide", "disabled", 0.0); + else if (get_int(focused)) + set_state(PART:"elm.guide", "focused", 0.0); + else + set_state(PART:"elm.guide", "default", 0.0); + } + } + } +} + +group { "elm/entry/cursor/event/default"; + inherit_only: 1; + programs { + program { "selection_start"; + signal: "selection,start"; + source: "elm.text"; + after: "on_selection_start"; + } + program { "selection_cleared"; + signal: "selection,cleared"; + source: "elm.text"; + after: "on_selection_cleared"; + } + program { "focus"; + signal: "elm,action,focus"; + source: "elm"; + after: "on_focus"; + } + program { "unfocus"; + signal: "elm,action,unfocus"; + source: "elm"; + after: "on_unfocus"; + } + program { "show_cursor"; + signal: "elm,action,show,cursor"; + source: "elm"; + after: "on_show_cursor"; + } + } +} + +group { "elm/entry/cursor/template"; + inherit: "elm/entry/cursor/event/default"; + inherit_only: 1; + parts { + rect { "cursor"; + clip: "clipper"; + desc { "default"; + hid; + } + desc { "visible"; + inherit: "default"; + vis; + } + } + rect { "clipper"; + desc { "default"; + } + desc { "hidden"; + inherit: "default"; + hid; + } + } + } + programs { + program { "on_selection_start"; + action: STATE_SET "hidden"; + target: "clipper"; + } + program { "on_selection_cleared"; + action: STATE_SET "default"; + target: "clipper"; + } + program { "on_focus"; + action: ACTION_STOP; + target: "cursor_visible"; + target: "cursor_hidden"; + target: "cursor_visible_timer"; + target: "cursor_hidden_timer"; + after: "cursor_visible"; + } + program { "on_unfocus"; + action: ACTION_STOP; + target: "cursor_visible"; + target: "cursor_hidden"; + target: "cursor_visible_timer"; + target: "cursor_hidden_timer"; + after: "cursor_hidden_stop"; + } + program { "on_show_cursor"; + action: ACTION_STOP; + target: "cursor_visible"; + target: "cursor_hidden"; + target: "cursor_visible_timer"; + target: "cursor_hidden_timer"; + after: "cursor_visible"; + } + program { "cursor_hidden_stop"; + action: STATE_SET "default"; + target: "cursor"; + } + program { "cursor_visible"; + action: STATE_SET "visible"; + target: "cursor"; + after: "cursor_visible_timer"; + } + program { "cursor_hidden"; + action: STATE_SET "default"; + target: "cursor"; + after: "cursor_hidden_timer"; + } + program { "cursor_visible_timer"; + in: 0.6 0.0; + after: "cursor_hidden"; + } + program { "cursor_hidden_timer"; + in: 0.6 0.0; + after: "cursor_visible"; + } + } +} + +group { "elm/entry/cursor/default"; + inherit: "elm/entry/cursor/template"; + parts { + rect { "cursor"; + nomouse; + scale; + clip: "clipper"; + desc { "default"; + min: ENTRY_CURSOR_SIZE_INC; + color_class: "entry/default/cursor"; + hid; + } + desc { "visible"; + inherit: "default"; + vis; + } + } + rect { "clipper"; + desc { "default"; + rel.to: "cursor"; + fixed: 1 1; + } + desc { "hidden"; + inherit: "default"; + hid; + } + } + } +} + +group { "elm/entry/base/default"; + inherit: "elm/entry/base/template"; + alias: "elm/entry/base-mixedwrap/default"; + parts { + textblock { "elm.guide"; + nomouse; + scale; + desc { "default"; + rel.to: "elm.text"; + text { + style: "entry_textblock_guide_style"; + min: 0 1; + align: 0.0 0.0; + } + } + desc { "focused"; + inherit: "default"; + text.style: "entry_textblock_guide_focused_style"; + } + desc { "disabled"; + inherit: "default"; + text.style: "entry_textblock_guide_disabled_style"; + } + desc { "hidden"; + inherit: "default"; + hid; + } + } + textblock { "elm.text"; + mouse; + scale; + entry_mode: EDITABLE; + select_mode: EXPLICIT; + cursor_mode: BEFORE; + multiline: 1; + source: "elm/entry/selection/default"; // selection under + source4: "elm/entry/cursor/default"; // cursorover + source5: "elm/entry/anchor/default"; // anchor under + desc { "default"; + fixed: 1 0; + text { + style: "entry_textblock_style"; + min: 0 1; + align: 0.0 0.0; + } + } + desc { "focused"; + inherit: "default"; + text { + style: "entry_textblock_focused_style"; + min: 0 1; + } + } + desc { "disabled"; + inherit: "default"; + text { + style: "entry_textblock_disabled_style"; + min: 0 1; + } + } + } + } +} + +group { "elm/entry/base-charwrap/default"; + alias: "elm/entry/base/char_wrap"; + inherit: "elm/entry/base/template"; + parts { + textblock { "elm.guide"; + nomouse; + scale; + desc { "default"; + rel.to: "elm.text"; + text { + style: "entry_textblock_char_wrap_guide_style"; + min: 0 1; + align: 0.0 0.0; + } + } + desc { "focused"; + inherit: "default"; + text.style: "entry_textblock_char_wrap_guide_focused_style"; + } + desc { "disabled"; + inherit: "default"; + text.style: "entry_textblock_char_wrap_guide_disabled_style"; + } + desc { "hidden"; + inherit: "default"; + hid; + } + } + textblock { "elm.text"; + mouse; + scale; + entry_mode: EDITABLE; + select_mode: EXPLICIT; + cursor_mode: BEFORE; + multiline: 1; + source: "elm/entry/selection/default"; // selection under + source4: "elm/entry/cursor/default"; // cursorover + source5: "elm/entry/anchor/default"; // anchor under + desc { "default"; + fixed: 1 0; + text { + style: "entry_textblock_char_wrap_style"; + min: 0 1; + align: 0.0 0.0; + } + } + desc { "focused"; + inherit: "default"; + text { + style: "entry_textblock_char_wrap_focused_style"; + min: 0 1; + } + } + desc { "disabled"; + inherit: "default"; + text { + style: "entry_textblock_char_wrap_disabled_style"; + min: 0 1; + } + } + } + } +} + +group { "elm/entry/base-nowrap/default"; + inherit: "elm/entry/base/template"; + parts { + textblock { "elm.guide"; + nomouse; + scale; + desc { "default"; + rel.to: "elm.text"; + text { + style: "entry_textblock_guide_style"; + min: 0 1; + align: 0.0 0.0; + } + } + desc { "focused"; + inherit: "default"; + text.style: "entry_textblock_guide_focused_style"; + } + desc { "disabled"; + inherit: "default"; + text.style: "entry_textblock_guide_disabled_style"; + } + desc { "hidden"; + inherit: "default"; + hid; + } + } + textblock { "elm.text"; + mouse; + scale; + entry_mode: EDITABLE; + select_mode: EXPLICIT; + cursor_mode: BEFORE; + multiline: 1; + source: "elm/entry/selection/default"; // selection under + source4: "elm/entry/cursor/default"; // cursorover + source5: "elm/entry/anchor/default"; // anchor under + desc { "default"; + text { + style: "entry_textblock_style"; + min: 1 1; + align: 0.0 0.0; + } + } + desc { "focused"; + inherit: "default"; + text { + style: "entry_textblock_focused_style"; + min: 1 1; + } + } + desc { "disabled"; + inherit: "default"; + text { + style: "entry_textblock_disabled_style"; + min: 0 1; + } + } + } + } +} + +group { "elm/entry/base-single/default"; + inherit: "elm/entry/base/template"; + parts { + textblock { "elm.guide"; + nomouse; + scale; + desc { "default"; + fixed: 1 1; + rel.to: "elm.text"; + text { + style: "entry_single_textblock_guide_style"; + min: 0 1; + max: 0 0; + align: 0.0 0.5; + } + } + desc { "focused"; + inherit: "default"; + text.style: "entry_single_textblock_guide_focused_style"; + } + desc { "disabled"; + inherit: "default"; + text.style: "entry_single_textblock_guide_disabled_style"; + } + desc { "hidden"; + inherit: "default"; + hid; + } + } + textblock { "elm.text"; + mouse; + scale; + entry_mode: EDITABLE; + select_mode: EXPLICIT; + cursor_mode: BEFORE; + multiline: 0; + source: "elm/entry/selection/default"; // selection under + source4: "elm/entry/cursor/default"; // cursorover + source5: "elm/entry/anchor/default"; // anchor under + desc { "default"; + text { + style: "entry_single_textblock_style"; + min: 1 1; + max: 0 0; + align: 0.0 0.5; + } + } + desc { "focused"; + inherit: "default"; + text.style: "entry_single_textblock_focused_style"; + } + desc { "disabled"; + inherit: "default"; + text.style: "entry_single_textblock_disabled_style"; + } + } + } +} + +group { "elm/entry/base-single-noedit/default"; + inherit: "elm/entry/base/template"; + alias: "elm/entry/base-single-noedit/vcenter_align"; + parts { + textblock { "elm.guide"; + nomouse; + scale; + desc { "default"; + fixed: 1 1; + rel.to: "elm.text"; + text { + style: "entry_single_textblock_guide_style"; + min: 0 1; + max: 0 1; + } + } + desc { "focused"; + inherit: "default"; + text.style: "entry_single_textblock_guide_focused_style"; + } + desc { "disabled"; + inherit: "default"; + text.style: "entry_single_textblock_guide_disabled_style"; + } + desc { "hidden"; + inherit: "default"; + hid; + } + } + textblock { "elm.text"; + mouse; + scale; + entry_mode: PLAIN; + select_mode: EXPLICIT; + cursor_mode: BEFORE; + multiline: 0; + source: "elm/entry/selection/default"; // selection under + source5: "elm/entry/anchor/default"; // anchor under + desc { "default"; + text { + style: "entry_single_textblock_style"; + min: 1 1; + max: 0 1; + } + } + desc { "focused"; + inherit: "default"; + text.style: "entry_single_textblock_focused_style"; + } + desc { "disabled"; + inherit: "default"; + text.style: "entry_single_textblock_disabled_style"; + } + } + } +} + +group { "elm/entry/base-noedit/default"; + inherit: "elm/entry/base/template"; + parts { + textblock { "elm.guide"; + nomouse; + scale; + desc { "default"; + rel.to: "elm.text"; + text { + style: "entry_textblock_guide_style"; + min: 0 1; + align: 0.0 0.0; + } + } + desc { "focused"; + inherit: "default"; + text.style: "entry_textblock_guide_focused_style"; + } + desc { "disabled"; + inherit: "default"; + text.style: "entry_textblock_guide_disabled_style"; + } + desc { "hidden"; + inherit: "default"; + hid; + } + } + textblock { "elm.text"; + mouse; + scale; + entry_mode: PLAIN; + select_mode: EXPLICIT; + cursor_mode: BEFORE; + multiline: 1; + source: "elm/entry/selection/default"; // selection under + source5: "elm/entry/anchor/default"; // anchor under + desc { "default"; + fixed: 1 0; + text { + style: "entry_textblock_style"; + min: 0 1; + align: 0.0 0.0; + } + } + desc { "focused"; + inherit: "default"; + text.style: "entry_textblock_focused_style"; + } + desc { "disabled"; + inherit: "default"; + text.style: "entry_textblock_disabled_style"; + } + } + } +} + +group { "elm/entry/base-noedit-charwrap/default"; + inherit: "elm/entry/base/template"; + parts { + textblock { "elm.guide"; + nomouse; + scale; + desc { "default"; + rel.to: "elm.text"; + text { + style: "entry_textblock_char_wrap_guide_style"; + min: 0 1; + align: 0.0 0.0; + } + } + desc { "focused"; + inherit: "default"; + text.style: "entry_textblock_char_wrap_guide_focused_style"; + } + desc { "disabled"; + inherit: "default"; + text.style: "entry_textblock_char_wrap_guide_disabled_style"; + } + desc { "hidden"; + inherit: "default"; + hid; + } + } + textblock { "elm.text"; + mouse; + scale; + entry_mode: PLAIN; + select_mode: EXPLICIT; + cursor_mode: BEFORE; + multiline: 1; + source: "elm/entry/selection/default"; // selection under + source5: "elm/entry/anchor/default"; // anchor under + desc { "default"; + fixed: 1 0; + text { + style: "entry_textblock_char_wrap_style"; + min: 0 1; + align: 0.0 0.0; + } + } + desc { "focused"; + inherit: "default"; + text.style: "entry_textblock_char_wrap_focused_style"; + } + desc { "disabled"; + inherit: "default"; + text.style: "entry_textblock_char_wrap_disabled_style"; + } + } + } +} + +group { "elm/entry/base-noedit-mixedwrap/default"; + inherit: "elm/entry/base/template"; + parts { + part { "elm.guide"; + type: TEXTBLOCK; + nomouse; + scale; + desc { "default"; + rel.to: "elm.text"; + text { + style: "entry_textblock_guide_style"; + min: 0 1; + align: 0.0 0.0; + } + } + desc { "focused"; + inherit: "default"; + text.style: "entry_textblock_guide_focused_style"; + } + desc { "disabled"; + inherit: "default"; + text.style: "entry_textblock_guide_disabled_style"; + } + desc { "hidden"; + inherit: "default"; + hid; + } + } + textblock { "elm.text"; + mouse; + scale; + entry_mode: PLAIN; + select_mode: EXPLICIT; + cursor_mode: BEFORE; + multiline: 1; + source: "elm/entry/selection/default"; // selection under + source5: "elm/entry/anchor/default"; // anchor under + desc { "default"; + fixed: 1 0; + text { + style: "entry_textblock_style"; + min: 0 1; + align: 0.0 0.0; + } + } + desc { "focused"; + inherit: "default"; + text.style: "entry_textblock_focused_style"; + } + desc { "disabled"; + inherit: "default"; + text.style: "entry_textblock_disabled_style"; + } + } + } +} + +group { "elm/entry/base-nowrap-noedit/default"; + inherit: "elm/entry/base/template"; + parts { + textblock { "elm.guide"; + type: TEXTBLOCK; + nomouse; + scale; + desc { "default"; + rel.to: "elm.text"; + text { + style: "entry_textblock_guide_style"; + min: 0 1; + align: 0.0 0.0; + } + } + desc { "focused"; + inherit: "default"; + text.style: "entry_textblock_guide_focused_style"; + } + desc { "disabled"; + inherit: "default"; + text.style: "entry_textblock_guide_disabled_style"; + } + desc { "hidden"; + inherit: "default"; + hid; + } + } + textblock { "elm.text"; + mouse; + scale; + entry_mode: PLAIN; + select_mode: EXPLICIT; + cursor_mode: BEFORE; + multiline: 1; + source: "elm/entry/selection/default"; // selection under + source5: "elm/entry/anchor/default"; // anchor under + desc { "default"; + text { + style: "entry_textblock_style"; + min: 1 1; + align: 0.0 0.0; + } + } + desc { "focused"; + inherit: "default"; + text.style: "entry_textblock_focused_style"; + } + desc { "disabled"; + inherit: "default"; + text.style: "entry_textblock_disabled_style"; + } + } + } +} + +group { "elm/entry/base-password/default"; + inherit: "elm/entry/base/template"; + parts { + textblock { "elm.guide"; + nomouse; + scale; + desc { "default"; + fixed: 1 1; + rel.to: "elm.text"; + text { + style: "entry_single_textblock_guide_style"; + min: 0 1; + max: 0 1; + } + } + desc { "focused"; + inherit: "default"; + text.style: "entry_single_textblock_guide_focused_style"; + } + desc { "disabled"; + inherit: "default"; + text.style: "entry_single_textblock_guide_disabled_style"; + } + desc { "hidden"; + inherit: "default"; + hid; + } + } + textblock { "elm.text"; + mouse; + scale; + entry_mode: PASSWORD; + select_mode: EXPLICIT; + cursor_mode: BEFORE; + multiline: 0; + source: "elm/entry/selection/default"; // selection under + source4: "elm/entry/cursor/default"; // cursorover + source5: "elm/entry/anchor/default"; // anchor under + desc { "default"; + text { + style: "entry_single_textblock_style"; + repch: "•"; + min: 1 1; + max: 0 1; + } + } + desc { "focused"; + inherit: "default"; + text.style: "entry_single_textblock_focused_style"; + } + desc { "disabled"; + inherit: "default"; + text.style: "entry_single_textblock_disabled_style"; + } + } + } +} + +group { "elm/entry/selection/default"; + parts { + rect { "bg"; + scale; + nomouse; + desc { "default"; + color: 0 221 255 153; + } + } + } +} + +group { "elm/entry/anchor/default"; + parts { + spacer { "bg"; + desc { "default"; } + } + } +} diff --git a/ElmSharp/theme/ivi/widgets/genlist.edc b/ElmSharp/theme/ivi/widgets/genlist.edc new file mode 100644 index 0000000..64399f6 --- /dev/null +++ b/ElmSharp/theme/ivi/widgets/genlist.edc @@ -0,0 +1,208 @@ +/* + * Copyright (c) 2010 Samsung Electronics Co., Ltd All Rights Reserved + * + * BSD 2-Clause License (http://www.opensource.org/licenses/bsd-license.php) + * + * Redistribution and use in source and binary forms, with or without + * modification, are permitted provided that the following conditions are met: + * + * 1. Redistributions of source code must retain the above copyright notice, this + * list of conditions and the following disclaimer. + * 2. Redistributions in binary form must reproduce the above copyright notice, + * this list of conditions and the following disclaimer in the documentation + * and/or other materials provided with the distribution. + * + * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND + * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED + * WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE + * DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR + * ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES + * (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; + * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND + * ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT + * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS + * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. + */ + +#define LIST_PROGRAM_SOUND \ + program { name: "play_sound"; \ + signal: "elm,state,clicked"; \ + source: "elm"; \ + script { \ + run_program(PROGRAM:"touch_sound"); \ + } \ + } \ + program { name: "touch_sound"; \ + action: RUN_PLUGIN "touch_sound"; \ + } + +group { "elm/genlist/item/event/default" + inherit_only: 1; + parts { + rect { "event"; nomouse; repeat; scale; + desc { "default"; + color: 0 0 0 0; + rel.to: "base"; + } + desc { "disabled"; + inherit: "default"; + hid; + } + } + } + programs { + /* Program for enabled event */ + program { "enabled"; + signal: "elm,state,enabled"; + source: "elm"; + action: STATE_SET "default"; + target: "event"; + after: "on_enabled"; + } + /* Program for disabled event */ + program { "disabled"; + signal: "elm,state,disabled"; + source: "elm"; + action: STATE_SET "disabled"; + target: "event"; + after: "on_disabled"; + } + program { "enable_event_pass"; + signal: "elm,event,pass,enabled"; + source: "elm"; + script { + set_mouse_events(PART:"event", 0); + } + } + program { "disable_event_pass"; + signal: "elm,event,pass,disabled"; + source:"elm"; + script { + set_mouse_events(PART:"event", 1); + } + } + program { "enable_event_repeat"; + signal: "elm,event,repeat,enabled"; + source: "elm"; + script { + set_repeat_events(PART:"event", 1); + } + } + program { "disable_event_repeat"; + signal: "elm,event,repeat,disabled"; + source:"elm"; + script { + set_repeat_events(PART:"event", 0); + } + } + } +} + +group { "elm/genlist/item/full/default"; + alias: "elm/genlist/item_compress/full/default"; + alias: "elm/genlist/tree/full/default"; + alias: "elm/genlist/tree_compress/full/default"; + inherit: "elm/genlist/item/event/default"; + + data.item: "banded_bg_area" "elm.swallow.bg"; + data.item: "contents" "elm.swallow.content"; + + parts { + spacer { "base"; scale; + desc { "default"; + } + } + + swallow { "elm.swallow.bg"; scale; + desc { "default"; + rel.to: "base"; + } + } + rect { "bg"; scale; + desc { "default"; + rel.to: "elm.swallow.bg"; + color_class: "genlist_item/full/bg"; + } + desc { "pressed"; inherit: "default"; + color_class: "genlist_item/full/bg"; + } + desc { "disabled"; inherit: "default"; + color_class: "genlist_item/full/bg"; + } + } + swallow { "elm.swallow.content"; scale; + desc { "default"; + rel1 { to: "bg"; relative: 0.0 0.0; } + rel2 { to: "bg"; relative: 1.0 1.0; } + } + } + rect { "elm.bottomline"; scale; + desc { "default"; + vis; + min: 0 LIST_BOTTOMLINE_HEIGHT; + max: -1 LIST_BOTTOMLINE_HEIGHT; + align: 0.5 0.0; + fixed: 0 1; + rel1.relative: 0.0 0.0; + rel2.relative: 1.0 0.0; + color_class: "genlist_item/full/bottomline"; + } + desc { "hidden"; inherit: "default"; + hid; + } + } + rect { "event"; + after: "elm.bottomline"; + desc { "default"; + rel.to: "base"; + } + desc { "disabled"; + inherit: "default"; + hid; + } + } + } + programs { + LIST_PROGRAM_SOUND + program { + signal: "elm,state,elm.swallow.bg,visible"; + source: "elm"; + action: STATE_SET "hidden"; + target: "elm.bottomline"; + } + program { + signal: "elm,state,elm.swallow.bg,hidden"; + source: "elm"; + action: STATE_SET "default"; + target: "elm.bottomline"; + } + program { "default"; + signal: "elm,state,default"; + source: "elm"; + action: STATE_SET "default"; + target: "bg"; + target: "elm.bottomline"; + target: "event"; + } + program { "pressed"; + signal: "elm,state,selected"; + source: "elm"; + action: STATE_SET "pressed"; + target: "bg"; + } + program { "unpressed"; + signal: "elm,state,unselected"; + source: "elm"; + action: STATE_SET "default"; + target: "bg"; + } + program { "on_enabled"; + action: STATE_SET "default"; + target: "bg"; + } + program { "on_disabled"; + action: STATE_SET "disabled"; + target: "bg"; + } + } +} diff --git a/ElmSharp/theme/ivi/widgets/label.edc b/ElmSharp/theme/ivi/widgets/label.edc new file mode 100644 index 0000000..5b11efd --- /dev/null +++ b/ElmSharp/theme/ivi/widgets/label.edc @@ -0,0 +1,722 @@ +/* + * Copyright (c) 2010 Samsung Electronics Co., Ltd All Rights Reserved + * + * BSD 2-Clause License (http://www.opensource.org/licenses/bsd-license.php) + * + * Redistribution and use in source and binary forms, with or without + * modification, are permitted provided that the following conditions are met: + * + * 1. Redistributions of source code must retain the above copyright notice, this + * list of conditions and the following disclaimer. + * 2. Redistributions in binary form must reproduce the above copyright notice, + * this list of conditions and the following disclaimer in the documentation + * and/or other materials provided with the distribution. + * + * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND + * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED + * WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE + * DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR + * ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES + * (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; + * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND + * ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT + * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS + * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. + */ + +#define SLIDE_SPEED_WEIGHT 0.5 +#define SLIDE_TEXT_GAP 60 +#define SLIDE_TEXT_CHAR_GAP " " //60 (6 spaces) +#define SLIDE_TEXT_MAX_LENGTH (2*(1024+6)) + +styles { + style { "textblock_style"; + base: "font=Tizen:weight=Normal font_size="LABEL_FONT_SIZE_INC" color=#FFF color_class=label/default/text text_class=label"; + tag: "br" "\n"; + tag: "ps" "ps"; + tag: "hilight" "+ font_weight=Bold"; + tag: "b" "+ font_weight=Bold"; + tag: "tab" "\t"; + } + style { "textblock_charwrap_style"; + base: "font=Tizen:weight=Normal font_size="LABEL_FONT_SIZE_INC" color=#FFF color_class=label/default/text text_class=label"; + tag: "br" "\n"; + tag: "ps" "ps"; + tag: "hilight" "+ font_weight=Bold"; + tag: "b" "+ font_weight=Bold"; + tag: "tab" "\t"; + } + style { "textblock_style_marker"; + base: "font=Tizen:weight=Bold font_size=14 align=center color=#FFF wrap=word color_class=label/default/text text_class=tizen"; + tag: "br" "\n"; + tag: "ps" "ps"; + tag: "hilight" "+ font_weight=Bold"; + tag: "b" "+ font_weight=Bold"; + tag: "tab" "\t"; + } +} + +group { "elm/label/event/default"; + inherit_only: 1; + programs { + program { "start_slide"; + source: "elm"; + signal: "elm,state,slide,start"; + after: "on_start_slide"; + } + program { "stop_slide"; + source: "elm"; + signal: "elm,state,slide,stop"; + after: "on_stop_slide"; + } + } +} + +group { "elm/label/base/template"; + inherit: "elm/label/event/default"; + inherit_only: 1; + parts { + rect { "bg"; + desc { "default"; + color_class: "label/default/bg"; + } + } + rect { "clipper"; + desc { "default"; + } + } + textblock { "elm.text"; + scale; + clip: "clipper"; + desc { "default"; + text.style: "textblock_style"; + } + } + } + programs { + program { "on_start_slide"; + } + program { "on_stop_slide"; + } + } +} + +group { "elm/label/base/default"; + inherit: "elm/label/base/template"; + parts { + textblock { "elm.text"; + scale; + clip: "clipper"; + desc { "default"; + text { + style: "textblock_style"; + min: 0 1; + align: 0.0 0.0; + } + } + } + } +} + +/* default label doesn't use it */ +group { "elm/label/base_wrap/default"; + inherit: "elm/label/base/template"; + parts { + textblock { "elm.text"; + scale; + multiline: 1; + desc { "default"; + text { + style: "textblock_style"; + min: 0 1; + align: 0.0 0.0; + } + } + desc { "charwrap_mode"; + text { + style: "textblock_charwrap_style"; + min: 0 1; + align: 0.0 0.0; + } + } + } + } + programs { + program { "default"; + signal: "elm,state,default"; + source: "elm"; + action: STATE_SET "default"; + target: "elm.text"; + } + program { "charwrap"; + signal: "elm,state,charwrap"; + source: "elm"; + action: STATE_SET "charwrap_mode"; + target: "elm.text"; + } + } +} + +/* default label doesn't use it */ +group { "elm/label/base_wrap_ellipsis/default"; + inherit: "elm/label/base/template"; + parts { + textblock { "elm.text"; + scale; + multiline: 1; + desc { "default"; + fixed: 0 1; + text { + style: "textblock_style"; + min: 0 1; + align: 0.0 0.0; + } + } + desc { "charwrap_mode"; + fixed: 0 1; + text { + style: "textblock_charwrap_style"; + min: 0 1; + align: 0.0 0.0; + } + } + } + } + programs { + program { "default"; + signal: "elm,state,default"; + source: "elm"; + action: STATE_SET "default"; + target: "elm.text"; + } + program { "charwrap"; + signal: "elm,state,charwrap"; + source: "elm"; + action: STATE_SET "charwrap_mode"; + target: "elm.text"; + } + } +} + +group { "elm/label/base/slide_long"; + inherit: "elm/label/base/template"; + script { + public g_duration = 0, g_stopslide, g_timer_id, g_anim_id; + + public message(Msg_Type:type, id, ...) { + if (type == MSG_FLOAT_SET) { + new Float:duration; + duration = getfarg(2); + if (id == 0) + set_float(g_duration, duration); + else + set_float(g_duration, duration / LABEL_FONT_SIZE_INC * SLIDE_SPEED_WEIGHT); + } + } + public slide_to_end_anim(val, Float:pos) { + new stopflag; + new id; + stopflag = get_int(g_stopslide); + if (stopflag == 1) return; + set_tween_state(PART:"elm.text", pos, "slide_begin", 0.0, "slide_end", 0.0); + if (pos >= 1.0) { + id = timer(0.5, "slide_to_begin", 1); + set_int(g_timer_id, id); + } + } + public slide_to_end() { + new stopflag; + new id; + new Float:duration; + stopflag = get_int(g_stopslide); + if (stopflag == 1) return; + duration = get_float(g_duration); + id = anim(duration, "slide_to_end_anim", 1); + set_int(g_anim_id, id); + } + public slide_to_begin() { + new stopflag; + new id; + stopflag = get_int(g_stopslide); + if (stopflag == 1) return; + set_state(PART:"elm.text", "slide_begin", 0.0); + id = timer(0.5, "slide_to_end", 1); + set_int(g_timer_id, id); + } + public start_slide() { + set_int(g_stopslide, 0); + set_state(PART:"elm.text", "slide_begin", 0.0); + slide_to_end(); + } + public stop_slide() { + new id; + set_int(g_stopslide, 1); + id = get_int(g_anim_id); + cancel_anim(id); + id = get_int(g_timer_id); + cancel_timer(id); + set_state(PART:"elm.text", "default", 0.0); + } + } + parts { + rect { "bg"; + desc { "default"; + color_class: "label/slide_long/bg"; + } + } + textblock { "elm.text"; + scale; + clip: "clipper"; + desc { "default"; + align: 0.0 0.0; + text { + style: "textblock_style"; + min: 0 1; + align: 0.0 0.0; + } + } + desc { "slide_end"; + inherit: "default"; + rel2.relative: 0.0 1.0; + align: 1.0 0.0; + text { + style: "textblock_style"; + min: 1 1; + align: 0.0 0.0; + } + } + desc { "slide_begin"; + inherit: "default"; + rel1.relative: 1.0 0.0; + text { + style: "textblock_style"; + min: 1 1; + align: 0.0 0.0; + } + } + } + } + programs { + program { "on_start_slide"; + script { + start_slide(); + } + } + program { "on_stop_slide"; + script { + stop_slide(); + } + } + } +} + +group { "elm/label/base/slide_roll"; + inherit: "elm/label/base/template"; + script { + public g_duration = 0; + public g_stopslide = 0; + public g_timer_id = 0; + public g_anim_id = 0; + public g_tb_w = 0; + public g_tb_h = LABEL_FONT_SIZE_INC; + public org_text = 0; + public message(Msg_Type:type, id, ...) { + if (type == MSG_FLOAT_SET) { + new Float:duration; + duration = getfarg(2); + if (id == 0) + set_float(g_duration, duration); + else + set_float(g_duration, duration / get_int(g_tb_h) * SLIDE_SPEED_WEIGHT); + } + } + public get_tb_width() { + new x, y, w, h; + set_state(PART:"elm.text", "no_ellipsis", 0.0); + get_geometry(PART:"elm.text", x, y, w, h); + set_int(g_tb_w, w); + set_int(g_tb_h, h); + set_state(PART:"clipper_elm.text", "default", 0.0); + get_geometry(PART:"clipper_elm.text", x, y, w, h); + set_int(org_text, w); + } + public slide_to_end_anim(val, Float:pos) { + if (get_int(g_stopslide)) return; + set_tween_state(PART:"elm.text.slide", pos*0.5, "slide_begin", 0.0, "slide_end", 0.0); + if (pos >= 1.0) { + set_int(g_timer_id, timer(1.5, "start_slide", 0)); + } + } + public slide_to_end() { + if (get_int(g_stopslide)) return; + set_int(g_anim_id, anim(get_float(g_duration), "slide_to_end_anim", 0)); + } + public start_slide(val) { + new Float:len; + set_int(g_stopslide, 0); + get_tb_width(); + if (!get_float(g_duration)) { + len = get_int(g_tb_w); + set_float(g_duration, len / get_int(g_tb_h) * SLIDE_SPEED_WEIGHT); + } + if(get_int(g_tb_w) > get_int(org_text)) { + run_program(PROGRAM:"slide_text_set"); + set_state(PART:"elm.text.slide", "slide_begin", 0.0); + set_state(PART:"clipper_elm.text", "hide", 0.0); + set_state(PART:"clipper_elm.text.slide", "show", 0.0); + slide_to_end(); + } + } + public stop_slide() { + new slide_start_timer; + new slide_anim_id; + set_int(g_stopslide, 1); + set_float(g_duration, 0); + slide_start_timer = get_int(g_timer_id); + if (slide_start_timer) { + cancel_timer(slide_start_timer); + set_int(g_timer_id, 0); + } + slide_anim_id = get_int(g_anim_id); + if (slide_anim_id) { + cancel_anim(slide_anim_id); + set_int(g_anim_id, 0); + } + set_text(PART:"elm.text.slide", ""); + set_state(PART:"elm.text", "default", 0.0); + set_state(PART:"elm.text.slide", "default", 0.0); + set_state(PART:"clipper_elm.text", "default", 0.0); + set_state(PART:"clipper_elm.text.slide", "default", 0.0); + } + } + parts { + rect { "bg"; + desc { "default"; + color_class: "label/slide_roll/bg"; + } + } + rect { "clipper_elm.text"; + nomouse; + clip: "clipper"; + desc { "default"; + } + desc { "hide"; + inherit: "default"; + hid; + } + } + textblock { "elm.text"; + scale; + clip: "clipper_elm.text"; + desc { "default"; + align: 0.0 0.5; + text { + style: "textblock_style"; + min: 0 1; + } + } + desc { "no_ellipsis"; + inherit: "default"; + text.min: 1 1; + } + } + rect { "clipper_elm.text.slide"; + nomouse; + clip: "clipper"; + desc { "default"; + hid; + } + desc { "show"; + inherit: "default"; + vis; + } + } + spacer { "slide_text_gap"; + scale; + desc { "default"; + fixed: 1 0; + min: SLIDE_TEXT_GAP 0; + max: SLIDE_TEXT_GAP -1; + align: 1.0 0.5; + rel2.relative: 0.0 1.0; + } + } + textblock { "elm.text.slide"; + scale; + clip: "clipper_elm.text.slide"; + desc { "default"; + align: 0.0 0.5; + text { + style: "textblock_style"; + min: 0 1; + } + } + desc { "slide_begin"; + inherit: "default"; + text.min: 1 1; + rel2.relative: 0.0 1.0; + } + desc { "slide_end"; + inherit: "default"; + align: 1.0 0.5; + text.min: 1 1; + text.align: 1.0 0.5; + rel.to: "slide_text_gap"; + } + } + } + programs { + program { "slide_text_set"; + script { + new buf[1024]; + new buffer[SLIDE_TEXT_MAX_LENGTH]; + get_text(PART:"elm.text", buf, 1024); + snprintf(buffer, SLIDE_TEXT_MAX_LENGTH, "%s", buf); + strcat(buffer, SLIDE_TEXT_CHAR_GAP); + strcat(buffer, buf); + strcat(buffer, SLIDE_TEXT_CHAR_GAP); + set_text(PART:"elm.text.slide", buffer); + } + } + program { "on_start_slide"; + script { + run_program(PROGRAM:"stop_slide"); + set_int(g_timer_id, timer(1.5, "start_slide", 0)); + } + } + program { "on_stop_slide"; + script { + stop_slide(); + } + } + } +} + +group { "elm/label/base/slide_short"; + inherit: "elm/label/base/template"; + script { + public g_duration = 0, g_stopslide, g_timer_id, g_anim_id; + + public message(Msg_Type:type, id, ...) { + if (type == MSG_FLOAT_SET) { + new Float:duration; + duration = getfarg(2); + if (id == 0) + set_float(g_duration, duration); + else + set_float(g_duration, duration / LABEL_FONT_SIZE_INC * SLIDE_SPEED_WEIGHT); + } + } + public slide_to_end_anim(val, Float:pos) { + new stopflag; + new id; + stopflag = get_int(g_stopslide); + if (stopflag == 1) return; + set_tween_state(PART:"elm.text", pos, "slide_begin", 0.0, "slide_end", 0.0); + if (pos >= 1.0) { + id = timer(0.5, "slide_to_begin", 1); + set_int(g_timer_id, id); + } + } + public slide_to_end() { + new stopflag; + new id; + new Float:duration; + stopflag = get_int(g_stopslide); + if (stopflag == 1) return; + duration = get_float(g_duration); + id = anim(duration, "slide_to_end_anim", 1); + set_int(g_anim_id, id); + } + public slide_to_begin() { + new stopflag; + new id; + stopflag = get_int(g_stopslide); + if (stopflag == 1) return; + set_state(PART:"elm.text", "slide_begin", 0.0); + id = timer(0.5, "slide_to_end", 1); + set_int(g_timer_id, id); + } + public start_slide() { + set_int(g_stopslide, 0); + set_state(PART:"elm.text", "slide_begin", 0.0); + slide_to_end(); + } + public stop_slide() { + new id; + set_int(g_stopslide, 1); + id = get_int(g_anim_id); + cancel_anim(id); + id = get_int(g_timer_id); + cancel_timer(id); + set_state(PART:"elm.text", "default", 0.0); + } + } + parts { + rect { "bg"; + desc { "default"; + color_class: "label/slide_short/bg"; + } + } + textblock { "elm.text"; + scale; + clip: "clipper"; + desc { "default"; + align: 0.0 0.0; + text { + style: "textblock_style"; + min: 0 1; + align: 0.0 0.0; + } + } + desc { "slide_end"; + inherit: "default"; + rel1.relative: 1.0 0.0; + align: 1.0 0.0; + text { + style: "textblock_style"; + min: 1 1; + align: 0.0 0.0; + } + } + desc { "slide_begin"; + inherit: "default"; + rel2.relative: 0.0 1.0; + align: 0.0 0.0; + text { + style: "textblock_style"; + min: 1 1; + align: 0.0 0.0; + } + } + } + } + programs { + program { "on_start_slide"; + script { + start_slide(); + } + } + program { "on_stop_slide"; + script { + stop_slide(); + } + } + } +} + +group { "elm/label/base/slide_bounce"; + inherit: "elm/label/base/template"; + script { + public g_duration = 0, g_stopslide, g_timer_id, g_anim_id; + + public message(Msg_Type:type, id, ...) { + if (type == MSG_FLOAT_SET) { + new Float:duration; + duration = getfarg(2); + if (id == 0) + set_float(g_duration, duration); + else + set_float(g_duration, duration / LABEL_FONT_SIZE_INC * SLIDE_SPEED_WEIGHT); + } + } + public slide_to_end_anim(val, Float:pos) { + new stopflag; + new id; + stopflag = get_int(g_stopslide); + if (stopflag == 1) return; + set_tween_state(PART:"elm.text", pos, "slide_begin", 0.0, "slide_end", 0.0); + if (pos >= 1.0) { + id = timer(0.5, "slide_to_begin", 1); + set_int(g_timer_id, id); + } + } + public slide_to_end() { + new stopflag; + new id; + new Float:duration; + stopflag = get_int(g_stopslide); + if (stopflag == 1) return; + duration = get_float(g_duration); + id = anim(duration, "slide_to_end_anim", 1); + set_int(g_anim_id, id); + } + public slide_to_begin_anim(val, Float:pos) { + new stopflag; + new id; + stopflag = get_int(g_stopslide); + if (stopflag == 1) return; + set_tween_state(PART:"elm.text", pos, "slide_end", 0.0, "slide_begin", 0.0); + if (pos >= 1.0) { + id = timer(0.5, "slide_to_end", 1); + set_int(g_timer_id, id); + } + } + public slide_to_begin() { + new stopflag; + new id; + new Float:duration; + stopflag = get_int(g_stopslide); + if (stopflag == 1) return; + duration = get_float(g_duration); + id = anim(duration, "slide_to_begin_anim", 1); + set_int(g_anim_id, id); + } + public start_slide() { + set_int(g_stopslide, 0); + set_state(PART:"elm.text", "slide_begin", 0.0); + slide_to_end(); + } + public stop_slide() { + new id; + set_int(g_stopslide, 1); + id = get_int(g_anim_id); + cancel_anim(id); + id = get_int(g_timer_id); + cancel_timer(id); + set_state(PART:"elm.text", "default", 0.0); + } + } + parts { + rect { "bg"; + desc { "default"; + color_class: "label/slide_bounce/bg"; + } + } + textblock { "elm.text"; + scale; + clip: "clipper"; + desc { "default"; + align: 0.0 0.0; + text { + style: "textblock_style"; + min: 0 1; + align: 0.0 0.0; + } + } + desc { "slide_end"; + inherit: "default"; + rel1.relative: 1.0 0.0; + align: 1.0 0.0; + text.min: 1 1; + } + desc { "slide_begin"; + inherit: "default"; + rel2.relative: 0.0 1.0; + text.min: 1 1; + } + } + } + programs { + program { "on_start_slide"; + script { + start_slide(); + } + } + program { "on_stop_slide"; + script { + stop_slide(); + } + } + } +} diff --git a/ElmSharp/theme/ivi/widgets/layout.edc b/ElmSharp/theme/ivi/widgets/layout.edc new file mode 100644 index 0000000..4268a9f --- /dev/null +++ b/ElmSharp/theme/ivi/widgets/layout.edc @@ -0,0 +1,40 @@ +/* + * Copyright (c) 2010 Samsung Electronics Co., Ltd All Rights Reserved + * + * BSD 2-Clause License (http://www.opensource.org/licenses/bsd-license.php) + * + * Redistribution and use in source and binary forms, with or without + * modification, are permitted provided that the following conditions are met: + * + * 1. Redistributions of source code must retain the above copyright notice, this + * list of conditions and the following disclaimer. + * 2. Redistributions in binary form must reproduce the above copyright notice, + * this list of conditions and the following disclaimer in the documentation + * and/or other materials provided with the distribution. + * + * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND + * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED + * WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE + * DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR + * ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES + * (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; + * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND + * ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT + * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS + * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. + */ + +group { "elm/layout/background/default"; + parts { + rect { "bg"; + scale; + desc { "default"; + color_class: "layout/background/bg"; + } + } + swallow { "elm.swallow.content"; + scale; + desc { "default"; } + } + } +} diff --git a/ElmSharp/theme/ivi/widgets/radio.edc b/ElmSharp/theme/ivi/widgets/radio.edc new file mode 100644 index 0000000..9ddf30f --- /dev/null +++ b/ElmSharp/theme/ivi/widgets/radio.edc @@ -0,0 +1,559 @@ +/* + * Copyright (c) 2015 Samsung Electronics Co., Ltd All Rights Reserved + * + * BSD 2-Clause License (http://www.opensource.org/licenses/bsd-license.php) + * + * Redistribution and use in source and binary forms, with or without + * modification, are permitted provided that the following conditions are met: + * + * 1. Redistributions of source code must retain the above copyright notice, this + * list of conditions and the following disclaimer. + * 2. Redistributions in binary form must reproduce the above copyright notice, + * this list of conditions and the following disclaimer in the documentation + * and/or other materials provided with the distribution. + * + * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND + * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED + * WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE + * DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR + * ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES + * (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; + * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND + * ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT + * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS + * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. + */ +#define STYLE_TAGS \ + tag: "br" "\n";\ + tag: "ps" "ps";\ + tag: "tab" "\t";\ + tag: "b" "+ font_weight=Bold"; + +styles{ + style { name: "radio_default"; + base: "color=#000000FF font=Tizen:weight=Light font_size=40 text_class=tizen ellipsis=1.0"; + STYLE_TAGS + } + style { name: "radio_default_dim"; + base: "color=#000000A3 font=Tizen:weight=Light font_size=40 text_class=tizen ellipsis=1.0"; + STYLE_TAGS + } + style { name: "radio_default_press"; + base: "color=#000000FF font=Tizen:weight=Light font_size=40 text_class=tizen ellipsis=1.0"; + STYLE_TAGS + } +} +#undef STYLE_TAGS + +group { "elm/radio/event/default"; + inherit_only: 1; + parts { + rect { "event"; + mouse; + desc { "default"; + color: 0 0 0 0 ; + rel.to: "base"; + } + desc { "disabled"; + inherit: "default"; + hid; + } + } + } + programs { + program { "clicked"; + signal: "mouse,clicked,1"; + source: "event"; + action: SIGNAL_EMIT "elm,action,click" ""; + after: "on_clicked"; + } + program { "pressed"; + signal: "mouse,down,1*"; + source: "event"; + action: SIGNAL_EMIT "elm,action,press" ""; + after: "on_pressed"; + } + program { "unpressed"; + signal: "mouse,up,1"; + source: "event"; + action: SIGNAL_EMIT "elm,action,unpress" ""; + after: "on_unpressed"; + } + program { "set_radio"; + signal: "elm,state,radio,on"; + source: "elm"; + after: "on_set_radio"; + } + program { "unset_radio"; + signal: "elm,state,radio,off"; + source: "elm"; + after: "on_unset_radio"; + } + program { "disabled"; + signal: "elm,state,disabled"; + source: "elm"; + after: "on_disabled"; + } + program { "enabled"; + signal: "elm,state,enabled"; + source: "elm"; + after: "on_enabled"; + } + program { "enable_event_pass"; + signal: "elm,event,pass,enabled"; + source: "elm"; + script { + set_mouse_events(PART:"event", 0); + } + } + program { "disable_event_pass"; + signal: "elm,event,pass,disabled"; + source: "elm"; + script { + set_mouse_events(PART:"event", 1); + } + } + program { "enable_event_repeat"; + signal: "elm,event,repeat,enabled"; + source: "elm"; + script { + set_repeat_events(PART:"event", 1); + } + } + program { "disable_event_repeat"; + signal: "elm,event,repeat,disabled"; + source: "elm"; + script { + set_repeat_events(PART:"event", 0); + } + } + } +} +group { "elm/radio/base/template"; + parts { + spacer { "base"; + desc { "default"; + } + } + } + inherit: "elm/radio/event/default"; + programs { + program { "on_clicked"; + } + program { "on_pressed"; + } + program { "on_unpressed"; + } + program { "on_disabled"; + } + program { "on_enabled"; + } + program { "on_set_radio"; + } + program { "on_unset_radio"; + } + } +} +group { "elm/radio/base/default"; + images{ + vector: core_radio_stroke.svg; + vector: core_radio_icon.svg; + vector: core_radio_bg_01.svg; + vector: core_radio_bg_02.svg; + vector: core_radio_white_bg.svg; + } + nomouse; + target_group: "vector_group" "clipper_bg_vector" "clipper_icon" "clipper_icon_inner" "clipper_icon_outer" "clipper_icon_stroke"; + parts { + spacer { "base"; + scale; + desc { "default"; + min: RADIO_DEFAULT_SIZE_INC; + } + } + //bg shape + vector { "bg_vector"; + scale; + clip: "clipper_bg_vector"; + desc { "default"; + image.normal: "core_radio_white_bg.svg"; + min: RADIO_DEFAULT_SIZE_INC; + rel1.relative: 0 0.5; + rel2.relative: 0 0.5; + align: 0 0.5; + fixed: 1 1; + } + } + rect { "clipper_bg_vector"; + desc { "default"; + color_class: "radio/default/bg"; + } + desc { "on"; + color_class: "radio/default/bg_border_on"; + } + desc { "off"; + inherit: "default"; + } + desc { "disabled_on"; + color_class: "radio/default/bg_border_on_disabled"; + } + desc { "disabled_off"; + color_class: "radio/default/bg_disabled"; + } + } + vector { "icon"; + scale; + clip: "clipper_icon"; + desc { "default"; + image.normal: "core_radio_icon.svg"; + rel1.to: "bg_vector"; + rel2.to: "bg_vector"; + } + } + rect { "clipper_icon"; + desc { "default"; + color: 250 250 250 0; + } + desc { "on"; + color_class: "radio/default/bg_on" ; + } + desc { "off"; + inherit: "default"; + } + desc { "disabled_off"; + inherit: "default"; + } + desc { "disabled_on"; + color_class: "radio/default/bg_on_disabled" ; + } + } + vector { "icon_inner"; + scale; + clip: "clipper_icon_inner"; + desc { "default"; + image.normal: "core_radio_bg_01.svg"; + rel.to: "bg_vector"; + } + } + rect { "clipper_icon_inner"; + desc { "default"; + rel1.relative: 0.5 0.5; + rel2.relative: 0.5 0.5; + rel.to: "bg_vector"; + } + desc { "on"; + rel.to: "bg_vector"; + color_class: "radio/default/icon"; + } + desc { "off"; + inherit: "default"; + } + desc { "disabled_off"; + inherit: "default"; + } + desc { "disabled_on"; + rel.to: "bg_vector"; + color_class: "radio/default/icon_disabled"; + } + } + vector { "icon_outer"; + scale; + clip: "clipper_icon_outer"; + desc { "default"; + image.normal: "core_radio_bg_02.svg"; + rel1.to: "bg_vector"; + rel2.to: "bg_vector"; + } + } + rect { "clipper_icon_outer"; + desc { "default"; + color: 61 185 204 0; + } + desc { "on"; + color_class: "radio/default/icon"; + } + desc { "off"; + inherit: "default"; + } + desc { "disabled_off"; + inherit: "default"; + } + desc { "disabled_on"; + color_class: "radio/default/icon_disabled"; + } + } + vector { "icon_stroke"; + scale; + clip: "clipper_icon_stroke"; + desc { "default"; + image.normal: "core_radio_stroke.svg"; + rel1.to: "bg_vector"; + rel2.to: "bg_vector"; + } + } + rect { "clipper_icon_stroke"; + desc { "default"; + color_class: "radio/default/stroke"; + } + desc { "on"; + color: 61 185 204 0; + } + desc { "off"; + inherit: "default"; + } + desc { "disabled_off"; + color_class: "radio/default/stroke_disabled"; + } + desc { "disabled_on"; + inherit: "on"; + } + } + spacer { "padding_before_text"; + scale; + desc { "default"; + align: 0.0 0.5; + min: 0 0; + rel1 { + to: "bg_vector"; + relative: 1.0 0.0; + } + rel2 { + to: "bg_vector"; + relative: 1.0 1.0; + } + } + desc { "visible"; + inherit: "default" 0.0; + min: RADIO_PAD_BEFORE_TEXT_INC; + fixed: 1 1; + } + } + textblock { "elm.text"; + scale; + desc { "default"; + hid; + fixed: 0 1; + rel1 { + relative: 1.0 0.5; + to_x: "padding_before_text"; + } + rel2 { + relative: 1.0 0.5; + } + align: 0.0 0.5; + text { + style: "radio_default"; + min: 0 0; + } + } + desc { "visible"; + inherit: "default" 0.0; + vis; + text.min: 0 1; + } + desc { "disabled"; + inherit: "default" 0.0; + vis; + text { + style: "radio_default_dim"; + min: 0 1; + } + } + desc { "pressed"; + inherit: "default" 0.0; + vis; + text { + style: "radio_default_press"; + min: 0 1; + } + } + } + } + inherit: "elm/radio/event/default"; + script { + public radio_state; + public disabled; + public text; + public animate = 0; + } + programs { + program { "on_clicked"; + script { + if (get_int(disabled) == 1) return; + emit("elm,action,radio,toggle", ""); + run_program(PROGRAM:"touch_sound"); + } + } + program { "on_pressed"; + script { + if (get_int(disabled) == 1) return; + if (get_int(text) == 1) { + set_state(PART:"elm.text", "pressed", 0.0); + } + } + } + program { "on_unpressed"; + script { + if (get_int(disabled) == 1) return; + if (get_int(radio_state) == 1) { + run_program(PROGRAM:"toggle_on_without_effect"); + }else { + run_program(PROGRAM:"toggle_off_without_effect"); + } + if (get_int(text) == 1) { + set_state(PART:"elm.text", "visible", 0.0); + } + } + } + program { "on_disabled"; + script { + set_int(disabled, 1); + if (get_int(radio_state) == 1) { + run_program(PROGRAM:"toggle_disabled_on_without_effect"); + }else { + run_program(PROGRAM:"toggle_disabled_off_without_effect"); + } + if (get_int(text) == 1) { + set_state(PART:"elm.text", "disabled", 0.0); + } + } + } + program { "on_enabled"; + script { + set_int(disabled, 0); + if (get_int(radio_state) == 1) { + run_program(PROGRAM:"toggle_on_without_effect"); + } else { + run_program(PROGRAM:"toggle_off_without_effect"); + } + if (get_int(text) == 1) { + set_state(PART:"elm.text", "visible", 0.0); + } + } + } + program { "on_set_radio"; + script { + if (get_int(disabled) == 1) { + if (get_int(animate) == 0) { + run_program(PROGRAM:"toggle_disabled_on_without_effect"); + } else { + run_program(PROGRAM:"toggle_disabled_on_with_effect"); + } + }else { + if (get_int(animate) == 0) { + run_program(PROGRAM:"toggle_on_without_effect"); + emit("elm,radio,state,toggle", "tizen_vg"); + } else { + run_program(PROGRAM:"toggle_on_with_effect"); + emit("elm,radio,action,toggle", "tizen_vg"); + } + } + set_int(animate, 0); + set_int(radio_state, 1); + } + } + program { "on_unset_radio"; + script { + if (get_int(disabled) == 1) { + if (get_int(animate) == 0) { + run_program(PROGRAM:"toggle_disabled_off_without_effect"); + } else { + run_program(PROGRAM:"toggle_disabled_off_with_effect"); + } + }else { + if (get_int(animate) == 0) { + run_program(PROGRAM:"toggle_off_without_effect"); + emit("elm,radio,state,toggle", "tizen_vg"); + } else { + run_program(PROGRAM:"toggle_off_with_effect"); + emit("elm,radio,action,toggle", "tizen_vg"); + } + } + set_int(animate, 0); + set_int(radio_state, 0); + } + } + program { "touch_sound"; + action: RUN_PLUGIN "touch_sound"; + } + program { "activate_animate_radio"; + signal: "elm,activate,radio,on"; + source: "elm"; + script { + set_int(animate, 1); + } + } + program { "deactivate_animate_radio"; + signal: "elm,activate,radio,off"; + source: "elm"; + script { + set_int(animate, 1); + } + } + program { "toggle_on_with_effect"; + action: STATE_SET "on"; + transition: DECELERATE 0.3; + target_groups: "vector_group"; + after: "finished_animation"; + } + program { "toggle_off_with_effect"; + action: STATE_SET "default"; + target_groups: "vector_group"; + transition: DECELERATE 0.3; + after: "finished_animation"; + } + program { "toggle_disabled_on_with_effect"; + action: STATE_SET "disabled_on"; + target_groups: "vector_group"; + transition: DECELERATE 0.3; + after: "finished_animation"; + } + program { "toggle_disabled_off_with_effect"; + action: STATE_SET "disabled_off"; + target_groups: "vector_group"; + transition: DECELERATE 0.3; + after: "finished_animation"; + } + program { "toggle_on_without_effect"; + action: STATE_SET "on"; + target_groups: "vector_group"; + } + program { "toggle_off_without_effect"; + action: STATE_SET "default"; + target_groups: "vector_group"; + } + program { "toggle_disabled_on_without_effect"; + action: STATE_SET "disabled_on"; + target_groups: "vector_group"; + } + program { "toggle_disabled_off_without_effect"; + action: STATE_SET "disabled_off"; + target_groups: "vector_group"; + } + program { "finished_animation"; + action: SIGNAL_EMIT "animation,finished" ""; + } + program { "visible_text"; + signal: "elm,state,text,visible"; + source: "elm"; + script { + set_int(text, 1); + set_state(PART:"padding_before_text", "visible", 0.0); + if (get_int(disabled) == 1) { + set_state(PART:"elm.text", "disabled", 0.0); + }else { + set_state(PART:"elm.text", "visible", 0.0); + } + } + } + program { "hidden_text"; + signal: "elm,state,text,hidden"; + source: "elm"; + script { + set_int(text, 0); + set_state(PART:"padding_before_text", "default", 0.0); + set_state(PART:"elm.text", "default", 0.0); + } + } + } +} -- 2.7.4 From dfabf1f8019a5fdbcf3c4d25eff194579f1507a6 Mon Sep 17 00:00:00 2001 From: JEONGHYUN YUN Date: Mon, 16 Jan 2017 20:26:39 +0900 Subject: [PATCH 15/16] Remove elm-sharp theme Change-Id: I7cee094e7199f9fec72a24d348d3931fd41bd060 Signed-off-by: JEONGHYUN YUN --- ElmSharp/ElmSharp/Elementary.cs | 2 +- ElmSharp/theme/common/HD-inc.edc | 77 - .../theme/common/HD/images/Assist_Views/README | 1 - .../common/HD/images/Navigation_elements/README | 1 - .../User_Input_Elements/core_radio_bg_01.svg | 8 - .../User_Input_Elements/core_radio_bg_02.svg | 9 - .../images/User_Input_Elements/core_radio_icon.svg | 7 - .../User_Input_Elements/core_radio_stroke.svg | 8 - .../User_Input_Elements/core_radio_white_bg.svg | 8 - ElmSharp/theme/common/color_classes.edc | 101 - ElmSharp/theme/common/elm-sharp-theme-common.edc | 93 - ElmSharp/theme/common/widgets/colorselector.edc | 91 - ElmSharp/theme/common/widgets/entry.edc | 1077 ------- ElmSharp/theme/common/widgets/label.edc | 722 ----- ElmSharp/theme/common/widgets/layout.edc | 40 - ElmSharp/theme/common/widgets/radio.edc | 559 ---- ElmSharp/theme/ivi/HD-inc.edc | 81 - ElmSharp/theme/ivi/HD/images/Assist_Views/README | 1 - .../theme/ivi/HD/images/Navigation_elements/README | 1 - .../User_Input_Elements/core_radio_bg_01.svg | 8 - .../User_Input_Elements/core_radio_bg_02.svg | 9 - .../images/User_Input_Elements/core_radio_icon.svg | 7 - .../User_Input_Elements/core_radio_stroke.svg | 8 - .../User_Input_Elements/core_radio_white_bg.svg | 8 - ElmSharp/theme/ivi/color_classes.edc | 101 - ElmSharp/theme/ivi/elm-sharp-theme-ivi.edc | 94 - ElmSharp/theme/ivi/widgets/colorselector.edc | 91 - ElmSharp/theme/ivi/widgets/entry.edc | 1077 ------- ElmSharp/theme/ivi/widgets/genlist.edc | 208 -- ElmSharp/theme/ivi/widgets/label.edc | 722 ----- ElmSharp/theme/ivi/widgets/layout.edc | 40 - ElmSharp/theme/ivi/widgets/radio.edc | 559 ---- ElmSharp/theme/mobile/HD-inc.edc | 81 - .../theme/mobile/HD/images/Assist_Views/README | 1 - .../mobile/HD/images/Navigation_elements/README | 1 - .../User_Input_Elements/core_radio_bg_01.svg | 8 - .../User_Input_Elements/core_radio_bg_02.svg | 9 - .../images/User_Input_Elements/core_radio_icon.svg | 7 - .../User_Input_Elements/core_radio_stroke.svg | 8 - .../User_Input_Elements/core_radio_white_bg.svg | 8 - ElmSharp/theme/mobile/color_classes.edc | 101 - ElmSharp/theme/mobile/elm-sharp-theme-mobile.edc | 94 - ElmSharp/theme/mobile/widgets/colorselector.edc | 91 - ElmSharp/theme/mobile/widgets/entry.edc | 1077 ------- ElmSharp/theme/mobile/widgets/genlist.edc | 208 -- ElmSharp/theme/mobile/widgets/label.edc | 722 ----- ElmSharp/theme/mobile/widgets/layout.edc | 40 - ElmSharp/theme/mobile/widgets/radio.edc | 559 ---- ElmSharp/theme/tv/HD-inc.edc | 322 --- .../Assist_Views/core_icon_badge_container.#.png | Bin 1745 -> 0 bytes .../images/Navigation_elements/core_icon_back.png | Bin 1214 -> 0 bytes ...core_index_fastscroll_rollover_line_focus.#.png | Bin 2906 -> 0 bytes .../core_index_scroll_bar_h.#.png | Bin 1422 -> 0 bytes .../core_index_scroll_bar_v.#.png | Bin 1434 -> 0 bytes .../core_index_scroll_handler_h_01.png | Bin 972 -> 0 bytes .../core_index_scroll_handler_h_02.png | Bin 972 -> 0 bytes .../core_index_scroll_handler_v_01.png | Bin 1000 -> 0 bytes .../core_index_scroll_handler_v_02.png | Bin 1000 -> 0 bytes .../core_index_scroll_popup_bg.png | Bin 3720 -> 0 bytes .../Navigation_elements/core_navi_press.#.png | Bin 1297 -> 0 bytes .../Navigation_elements/core_navigation_bar_bg.png | Bin 1511 -> 0 bytes .../core_navigation_bar_icon_arrow.png | Bin 1311 -> 0 bytes .../core_page_indicator_off.png | Bin 1024 -> 0 bytes .../core_page_indicator_off_ef.png | Bin 1114 -> 0 bytes .../Navigation_elements/core_page_indicator_on.png | Bin 1026 -> 0 bytes .../core_page_indicator_on_ef.png | Bin 1114 -> 0 bytes .../Navigation_elements/core_scroll_bar_h.#.png | Bin 1069 -> 0 bytes .../core_scroll_bar_h_tab.#.png | Bin 2828 -> 0 bytes .../Navigation_elements/core_scroll_bar_v.#.png | Bin 1093 -> 0 bytes .../Navigation_elements/core_tab_selectbar.#.png | Bin 993 -> 0 bytes .../core_icon_picker_arrow_left.png | Bin 1432 -> 0 bytes .../core_icon_picker_arrow_right.png | Bin 1417 -> 0 bytes .../User_Input_Elements/core_toggle_bg_gray.svg | 7 - .../User_Input_Elements/core_toggle_bg_green.svg | 7 - .../User_Input_Elements/core_toggle_icon_off.svg | 8 - .../User_Input_Elements/core_toggle_icon_on.svg | 7 - ElmSharp/theme/tv/HD/images/bt_bases.png | Bin 587 -> 0 bytes ElmSharp/theme/tv/HD/images/btn_text_foc.png | Bin 248 -> 0 bytes ElmSharp/theme/tv/HD/images/btn_text_nor.png | Bin 248 -> 0 bytes ElmSharp/theme/tv/HD/images/checkbox_check_foc.png | Bin 365 -> 0 bytes ElmSharp/theme/tv/HD/images/checkbox_check_nor.png | Bin 373 -> 0 bytes .../theme/tv/HD/images/checkbox_uncheck_foc.png | Bin 212 -> 0 bytes .../theme/tv/HD/images/checkbox_uncheck_nor.png | Bin 249 -> 0 bytes .../theme/tv/HD/images/content_innershadow.png | Bin 162 -> 0 bytes .../tv/HD/images/core_icon_picker_arrow_down.png | Bin 1340 -> 0 bytes .../tv/HD/images/core_icon_picker_arrow_up.png | Bin 1358 -> 0 bytes .../theme/tv/HD/images/core_press_bottom_left.svg | 7 - .../theme/tv/HD/images/core_press_bottom_right.svg | 7 - ElmSharp/theme/tv/HD/images/core_press_center.svg | 7 - .../theme/tv/HD/images/core_press_top_left.svg | 7 - .../theme/tv/HD/images/core_press_top_right.svg | 7 - ElmSharp/theme/tv/HD/images/core_theme_bg_01.png | Bin 6894 -> 0 bytes ElmSharp/theme/tv/HD/images/elipse_114.png | Bin 1553 -> 0 bytes .../theme/tv/HD/images/ico_default_video_180.png | Bin 1031 -> 0 bytes .../theme/tv/HD/images/ico_dropdown_menu_check.png | Bin 228 -> 0 bytes .../tv/HD/images/ico_dropdown_menu_open_arrow.png | Bin 167 -> 0 bytes ElmSharp/theme/tv/HD/images/ico_folder.png | Bin 1367 -> 0 bytes ElmSharp/theme/tv/HD/images/ico_search.png | Bin 667 -> 0 bytes .../tv/HD/images/modal_banner_type_shadow.png | Bin 124 -> 0 bytes .../theme/tv/HD/images/modal_dialogs_banner_bg.png | Bin 863 -> 0 bytes ElmSharp/theme/tv/HD/images/modal_dialogs_bg.png | Bin 863 -> 0 bytes ElmSharp/theme/tv/HD/images/popover_arrow.png | Bin 167 -> 0 bytes ElmSharp/theme/tv/HD/images/progress_wheel.png | Bin 1182 -> 0 bytes .../theme/tv/HD/images/progressbar_thumb_foc.png | Bin 434 -> 0 bytes .../theme/tv/HD/images/progressbar_thumb_nor.png | Bin 876 -> 0 bytes .../tv/HD/images/progressbar_thumb_stroke_foc.png | Bin 602 -> 0 bytes ElmSharp/theme/tv/HD/images/radiobtn_off_foc.png | Bin 466 -> 0 bytes ElmSharp/theme/tv/HD/images/radiobtn_off_nor.png | Bin 577 -> 0 bytes ElmSharp/theme/tv/HD/images/radiobtn_on_foc.png | Bin 750 -> 0 bytes ElmSharp/theme/tv/HD/images/radiobtn_on_nor.png | Bin 750 -> 0 bytes .../theme/tv/HD/images/round_rectangle_4X4.png | Bin 130 -> 0 bytes .../tv/HD/images/round_rectangle_4X4_bottom.png | Bin 107 -> 0 bytes .../theme/tv/HD/images/round_rectangle_4X4_top.png | Bin 106 -> 0 bytes .../theme/tv/HD/images/round_rectangle_8X8_top.png | Bin 150 -> 0 bytes .../theme/tv/HD/images/scrollbar_horizontal.png | Bin 127 -> 0 bytes .../theme/tv/HD/images/scrollbar_mask_bottom.png | Bin 111 -> 0 bytes ElmSharp/theme/tv/HD/images/scrollbar_mask_top.png | Bin 112 -> 0 bytes ElmSharp/theme/tv/HD/images/scrollbar_vertical.png | Bin 134 -> 0 bytes .../theme/tv/HD/images/search_searchbar_bg_foc.png | Bin 173 -> 0 bytes .../theme/tv/HD/images/search_searchbar_bg_nor.png | Bin 133 -> 0 bytes .../tv/HD/images/search_searchbar_small_bg_foc.png | Bin 90 -> 0 bytes .../tv/HD/images/search_searchbar_small_bg_nor.png | Bin 78 -> 0 bytes ElmSharp/theme/tv/HD/images/slider_thumb_fill.png | Bin 347 -> 0 bytes .../theme/tv/HD/images/slider_thumb_stroke.png | Bin 881 -> 0 bytes .../theme/tv/HD/images/spincontrol_arrow_down.png | Bin 263 -> 0 bytes .../theme/tv/HD/images/spincontrol_arrow_up.png | Bin 248 -> 0 bytes .../theme/tv/HD/images/tooltip-edge-bottom-tip.png | Bin 203 -> 0 bytes .../theme/tv/HD/images/tooltip-edge-top-tip.png | Bin 154 -> 0 bytes ElmSharp/theme/tv/HD/images/tooltip_arrow.png | Bin 203 -> 0 bytes ElmSharp/theme/tv/HD/images/tooltip_arrow_up.png | Bin 154 -> 0 bytes ElmSharp/theme/tv/HD/images/tooltip_bg.png | Bin 259 -> 0 bytes ElmSharp/theme/tv/color_classes.edc | 691 ----- ElmSharp/theme/tv/common.edc | 44 - ElmSharp/theme/tv/elm-sharp-theme-tv.edc | 83 - ElmSharp/theme/tv/macros.edc | 375 --- ElmSharp/theme/tv/widgets/button.edc | 2012 ------------- ElmSharp/theme/tv/widgets/check.edc | 967 ------- ElmSharp/theme/tv/widgets/ctxpopup.edc | 626 ---- ElmSharp/theme/tv/widgets/datetime.edc | 778 ----- ElmSharp/theme/tv/widgets/entry.edc | 1710 ----------- ElmSharp/theme/tv/widgets/gengrid.edc | 1144 -------- ElmSharp/theme/tv/widgets/genlist.edc | 1596 ----------- ElmSharp/theme/tv/widgets/genlist_common.edc | 307 -- ElmSharp/theme/tv/widgets/hover.edc | 587 ---- ElmSharp/theme/tv/widgets/hoversel.edc | 1003 ------- ElmSharp/theme/tv/widgets/index.edc | 680 ----- ElmSharp/theme/tv/widgets/layout.edc | 165 -- ElmSharp/theme/tv/widgets/list.edc | 445 --- ElmSharp/theme/tv/widgets/naviframe.edc | 945 ------- ElmSharp/theme/tv/widgets/popup.edc | 563 ---- ElmSharp/theme/tv/widgets/progressbar.edc | 903 ------ ElmSharp/theme/tv/widgets/radio.edc | 348 --- ElmSharp/theme/tv/widgets/scroller.edc | 702 ----- ElmSharp/theme/tv/widgets/slider.edc | 940 ------ ElmSharp/theme/tv/widgets/spinner.edc | 990 ------- ElmSharp/theme/tv/widgets/toolbar.edc | 2987 -------------------- ElmSharp/theme/tv/widgets/tooltip.edc | 292 -- packaging/elm-sharp.spec | 13 +- 158 files changed, 2 insertions(+), 31114 deletions(-) delete mode 100644 ElmSharp/theme/common/HD-inc.edc delete mode 100644 ElmSharp/theme/common/HD/images/Assist_Views/README delete mode 100644 ElmSharp/theme/common/HD/images/Navigation_elements/README delete mode 100755 ElmSharp/theme/common/HD/images/User_Input_Elements/core_radio_bg_01.svg delete mode 100755 ElmSharp/theme/common/HD/images/User_Input_Elements/core_radio_bg_02.svg delete mode 100755 ElmSharp/theme/common/HD/images/User_Input_Elements/core_radio_icon.svg delete mode 100755 ElmSharp/theme/common/HD/images/User_Input_Elements/core_radio_stroke.svg delete mode 100755 ElmSharp/theme/common/HD/images/User_Input_Elements/core_radio_white_bg.svg delete mode 100644 ElmSharp/theme/common/color_classes.edc delete mode 100644 ElmSharp/theme/common/elm-sharp-theme-common.edc delete mode 100644 ElmSharp/theme/common/widgets/colorselector.edc delete mode 100644 ElmSharp/theme/common/widgets/entry.edc delete mode 100644 ElmSharp/theme/common/widgets/label.edc delete mode 100644 ElmSharp/theme/common/widgets/layout.edc delete mode 100644 ElmSharp/theme/common/widgets/radio.edc delete mode 100644 ElmSharp/theme/ivi/HD-inc.edc delete mode 100644 ElmSharp/theme/ivi/HD/images/Assist_Views/README delete mode 100644 ElmSharp/theme/ivi/HD/images/Navigation_elements/README delete mode 100755 ElmSharp/theme/ivi/HD/images/User_Input_Elements/core_radio_bg_01.svg delete mode 100755 ElmSharp/theme/ivi/HD/images/User_Input_Elements/core_radio_bg_02.svg delete mode 100755 ElmSharp/theme/ivi/HD/images/User_Input_Elements/core_radio_icon.svg delete mode 100755 ElmSharp/theme/ivi/HD/images/User_Input_Elements/core_radio_stroke.svg delete mode 100755 ElmSharp/theme/ivi/HD/images/User_Input_Elements/core_radio_white_bg.svg delete mode 100644 ElmSharp/theme/ivi/color_classes.edc delete mode 100644 ElmSharp/theme/ivi/elm-sharp-theme-ivi.edc delete mode 100644 ElmSharp/theme/ivi/widgets/colorselector.edc delete mode 100644 ElmSharp/theme/ivi/widgets/entry.edc delete mode 100644 ElmSharp/theme/ivi/widgets/genlist.edc delete mode 100644 ElmSharp/theme/ivi/widgets/label.edc delete mode 100644 ElmSharp/theme/ivi/widgets/layout.edc delete mode 100644 ElmSharp/theme/ivi/widgets/radio.edc delete mode 100644 ElmSharp/theme/mobile/HD-inc.edc delete mode 100644 ElmSharp/theme/mobile/HD/images/Assist_Views/README delete mode 100644 ElmSharp/theme/mobile/HD/images/Navigation_elements/README delete mode 100755 ElmSharp/theme/mobile/HD/images/User_Input_Elements/core_radio_bg_01.svg delete mode 100755 ElmSharp/theme/mobile/HD/images/User_Input_Elements/core_radio_bg_02.svg delete mode 100755 ElmSharp/theme/mobile/HD/images/User_Input_Elements/core_radio_icon.svg delete mode 100755 ElmSharp/theme/mobile/HD/images/User_Input_Elements/core_radio_stroke.svg delete mode 100755 ElmSharp/theme/mobile/HD/images/User_Input_Elements/core_radio_white_bg.svg delete mode 100644 ElmSharp/theme/mobile/color_classes.edc delete mode 100644 ElmSharp/theme/mobile/elm-sharp-theme-mobile.edc delete mode 100644 ElmSharp/theme/mobile/widgets/colorselector.edc delete mode 100644 ElmSharp/theme/mobile/widgets/entry.edc delete mode 100644 ElmSharp/theme/mobile/widgets/genlist.edc delete mode 100644 ElmSharp/theme/mobile/widgets/label.edc delete mode 100644 ElmSharp/theme/mobile/widgets/layout.edc delete mode 100644 ElmSharp/theme/mobile/widgets/radio.edc delete mode 100644 ElmSharp/theme/tv/HD-inc.edc delete mode 100644 ElmSharp/theme/tv/HD/images/Assist_Views/core_icon_badge_container.#.png delete mode 100644 ElmSharp/theme/tv/HD/images/Navigation_elements/core_icon_back.png delete mode 100755 ElmSharp/theme/tv/HD/images/Navigation_elements/core_index_fastscroll_rollover_line_focus.#.png delete mode 100644 ElmSharp/theme/tv/HD/images/Navigation_elements/core_index_scroll_bar_h.#.png delete mode 100644 ElmSharp/theme/tv/HD/images/Navigation_elements/core_index_scroll_bar_v.#.png delete mode 100644 ElmSharp/theme/tv/HD/images/Navigation_elements/core_index_scroll_handler_h_01.png delete mode 100644 ElmSharp/theme/tv/HD/images/Navigation_elements/core_index_scroll_handler_h_02.png delete mode 100644 ElmSharp/theme/tv/HD/images/Navigation_elements/core_index_scroll_handler_v_01.png delete mode 100644 ElmSharp/theme/tv/HD/images/Navigation_elements/core_index_scroll_handler_v_02.png delete mode 100755 ElmSharp/theme/tv/HD/images/Navigation_elements/core_index_scroll_popup_bg.png delete mode 100755 ElmSharp/theme/tv/HD/images/Navigation_elements/core_navi_press.#.png delete mode 100644 ElmSharp/theme/tv/HD/images/Navigation_elements/core_navigation_bar_bg.png delete mode 100644 ElmSharp/theme/tv/HD/images/Navigation_elements/core_navigation_bar_icon_arrow.png delete mode 100755 ElmSharp/theme/tv/HD/images/Navigation_elements/core_page_indicator_off.png delete mode 100755 ElmSharp/theme/tv/HD/images/Navigation_elements/core_page_indicator_off_ef.png delete mode 100755 ElmSharp/theme/tv/HD/images/Navigation_elements/core_page_indicator_on.png delete mode 100755 ElmSharp/theme/tv/HD/images/Navigation_elements/core_page_indicator_on_ef.png delete mode 100644 ElmSharp/theme/tv/HD/images/Navigation_elements/core_scroll_bar_h.#.png delete mode 100644 ElmSharp/theme/tv/HD/images/Navigation_elements/core_scroll_bar_h_tab.#.png delete mode 100644 ElmSharp/theme/tv/HD/images/Navigation_elements/core_scroll_bar_v.#.png delete mode 100755 ElmSharp/theme/tv/HD/images/Navigation_elements/core_tab_selectbar.#.png delete mode 100644 ElmSharp/theme/tv/HD/images/User_Input_Elements/core_icon_picker_arrow_left.png delete mode 100644 ElmSharp/theme/tv/HD/images/User_Input_Elements/core_icon_picker_arrow_right.png delete mode 100755 ElmSharp/theme/tv/HD/images/User_Input_Elements/core_toggle_bg_gray.svg delete mode 100755 ElmSharp/theme/tv/HD/images/User_Input_Elements/core_toggle_bg_green.svg delete mode 100755 ElmSharp/theme/tv/HD/images/User_Input_Elements/core_toggle_icon_off.svg delete mode 100755 ElmSharp/theme/tv/HD/images/User_Input_Elements/core_toggle_icon_on.svg delete mode 100644 ElmSharp/theme/tv/HD/images/bt_bases.png delete mode 100644 ElmSharp/theme/tv/HD/images/btn_text_foc.png delete mode 100644 ElmSharp/theme/tv/HD/images/btn_text_nor.png delete mode 100755 ElmSharp/theme/tv/HD/images/checkbox_check_foc.png delete mode 100755 ElmSharp/theme/tv/HD/images/checkbox_check_nor.png delete mode 100755 ElmSharp/theme/tv/HD/images/checkbox_uncheck_foc.png delete mode 100755 ElmSharp/theme/tv/HD/images/checkbox_uncheck_nor.png delete mode 100755 ElmSharp/theme/tv/HD/images/content_innershadow.png delete mode 100755 ElmSharp/theme/tv/HD/images/core_icon_picker_arrow_down.png delete mode 100755 ElmSharp/theme/tv/HD/images/core_icon_picker_arrow_up.png delete mode 100755 ElmSharp/theme/tv/HD/images/core_press_bottom_left.svg delete mode 100755 ElmSharp/theme/tv/HD/images/core_press_bottom_right.svg delete mode 100755 ElmSharp/theme/tv/HD/images/core_press_center.svg delete mode 100755 ElmSharp/theme/tv/HD/images/core_press_top_left.svg delete mode 100755 ElmSharp/theme/tv/HD/images/core_press_top_right.svg delete mode 100644 ElmSharp/theme/tv/HD/images/core_theme_bg_01.png delete mode 100644 ElmSharp/theme/tv/HD/images/elipse_114.png delete mode 100755 ElmSharp/theme/tv/HD/images/ico_default_video_180.png delete mode 100644 ElmSharp/theme/tv/HD/images/ico_dropdown_menu_check.png delete mode 100755 ElmSharp/theme/tv/HD/images/ico_dropdown_menu_open_arrow.png delete mode 100755 ElmSharp/theme/tv/HD/images/ico_folder.png delete mode 100644 ElmSharp/theme/tv/HD/images/ico_search.png delete mode 100644 ElmSharp/theme/tv/HD/images/modal_banner_type_shadow.png delete mode 100644 ElmSharp/theme/tv/HD/images/modal_dialogs_banner_bg.png delete mode 100644 ElmSharp/theme/tv/HD/images/modal_dialogs_bg.png delete mode 100755 ElmSharp/theme/tv/HD/images/popover_arrow.png delete mode 100644 ElmSharp/theme/tv/HD/images/progress_wheel.png delete mode 100755 ElmSharp/theme/tv/HD/images/progressbar_thumb_foc.png delete mode 100755 ElmSharp/theme/tv/HD/images/progressbar_thumb_nor.png delete mode 100755 ElmSharp/theme/tv/HD/images/progressbar_thumb_stroke_foc.png delete mode 100755 ElmSharp/theme/tv/HD/images/radiobtn_off_foc.png delete mode 100755 ElmSharp/theme/tv/HD/images/radiobtn_off_nor.png delete mode 100755 ElmSharp/theme/tv/HD/images/radiobtn_on_foc.png delete mode 100755 ElmSharp/theme/tv/HD/images/radiobtn_on_nor.png delete mode 100644 ElmSharp/theme/tv/HD/images/round_rectangle_4X4.png delete mode 100755 ElmSharp/theme/tv/HD/images/round_rectangle_4X4_bottom.png delete mode 100755 ElmSharp/theme/tv/HD/images/round_rectangle_4X4_top.png delete mode 100644 ElmSharp/theme/tv/HD/images/round_rectangle_8X8_top.png delete mode 100755 ElmSharp/theme/tv/HD/images/scrollbar_horizontal.png delete mode 100755 ElmSharp/theme/tv/HD/images/scrollbar_mask_bottom.png delete mode 100755 ElmSharp/theme/tv/HD/images/scrollbar_mask_top.png delete mode 100755 ElmSharp/theme/tv/HD/images/scrollbar_vertical.png delete mode 100644 ElmSharp/theme/tv/HD/images/search_searchbar_bg_foc.png delete mode 100644 ElmSharp/theme/tv/HD/images/search_searchbar_bg_nor.png delete mode 100644 ElmSharp/theme/tv/HD/images/search_searchbar_small_bg_foc.png delete mode 100644 ElmSharp/theme/tv/HD/images/search_searchbar_small_bg_nor.png delete mode 100755 ElmSharp/theme/tv/HD/images/slider_thumb_fill.png delete mode 100755 ElmSharp/theme/tv/HD/images/slider_thumb_stroke.png delete mode 100755 ElmSharp/theme/tv/HD/images/spincontrol_arrow_down.png delete mode 100755 ElmSharp/theme/tv/HD/images/spincontrol_arrow_up.png delete mode 100755 ElmSharp/theme/tv/HD/images/tooltip-edge-bottom-tip.png delete mode 100755 ElmSharp/theme/tv/HD/images/tooltip-edge-top-tip.png delete mode 100755 ElmSharp/theme/tv/HD/images/tooltip_arrow.png delete mode 100755 ElmSharp/theme/tv/HD/images/tooltip_arrow_up.png delete mode 100755 ElmSharp/theme/tv/HD/images/tooltip_bg.png delete mode 100644 ElmSharp/theme/tv/color_classes.edc delete mode 100644 ElmSharp/theme/tv/common.edc delete mode 100644 ElmSharp/theme/tv/elm-sharp-theme-tv.edc delete mode 100644 ElmSharp/theme/tv/macros.edc delete mode 100644 ElmSharp/theme/tv/widgets/button.edc delete mode 100644 ElmSharp/theme/tv/widgets/check.edc delete mode 100644 ElmSharp/theme/tv/widgets/ctxpopup.edc delete mode 100644 ElmSharp/theme/tv/widgets/datetime.edc delete mode 100644 ElmSharp/theme/tv/widgets/entry.edc delete mode 100644 ElmSharp/theme/tv/widgets/gengrid.edc delete mode 100644 ElmSharp/theme/tv/widgets/genlist.edc delete mode 100644 ElmSharp/theme/tv/widgets/genlist_common.edc delete mode 100644 ElmSharp/theme/tv/widgets/hover.edc delete mode 100644 ElmSharp/theme/tv/widgets/hoversel.edc delete mode 100644 ElmSharp/theme/tv/widgets/index.edc delete mode 100644 ElmSharp/theme/tv/widgets/layout.edc delete mode 100644 ElmSharp/theme/tv/widgets/list.edc delete mode 100644 ElmSharp/theme/tv/widgets/naviframe.edc delete mode 100644 ElmSharp/theme/tv/widgets/popup.edc delete mode 100644 ElmSharp/theme/tv/widgets/progressbar.edc delete mode 100644 ElmSharp/theme/tv/widgets/radio.edc delete mode 100644 ElmSharp/theme/tv/widgets/scroller.edc delete mode 100644 ElmSharp/theme/tv/widgets/slider.edc delete mode 100644 ElmSharp/theme/tv/widgets/spinner.edc delete mode 100644 ElmSharp/theme/tv/widgets/toolbar.edc delete mode 100644 ElmSharp/theme/tv/widgets/tooltip.edc diff --git a/ElmSharp/ElmSharp/Elementary.cs b/ElmSharp/ElmSharp/Elementary.cs index 42ba886..f35fce3 100644 --- a/ElmSharp/ElmSharp/Elementary.cs +++ b/ElmSharp/ElmSharp/Elementary.cs @@ -21,7 +21,7 @@ namespace ElmSharp { public static class Elementary { - private static readonly string _themeFilePath = "/usr/share/edje/elm-sharp/elm-sharp-theme.edj"; + private static readonly string _themeFilePath = "/usr/share/elm-sharp/elm-sharp-theme.edj"; public static void Initialize() { diff --git a/ElmSharp/theme/common/HD-inc.edc b/ElmSharp/theme/common/HD-inc.edc deleted file mode 100644 index c3266bd..0000000 --- a/ElmSharp/theme/common/HD-inc.edc +++ /dev/null @@ -1,77 +0,0 @@ -/* - * Copyright (c) 2015 Samsung Electronics Co., Ltd All Rights Reserved - * - * BSD 2-Clause License (http://www.opensource.org/licenses/bsd-license.php) - * - * Redistribution and use in source and binary forms, with or without - * modification, are permitted provided that the following conditions are met: - * - * 1. Redistributions of source code must retain the above copyright notice, this - * list of conditions and the following disclaimer. - * 2. Redistributions in binary form must reproduce the above copyright notice, - * this list of conditions and the following disclaimer in the documentation - * and/or other materials provided with the distribution. - * - * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND - * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED - * WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE - * DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR - * ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES - * (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; - * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND - * ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT - * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS - * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. - */ - -//****************************************************************************// -// This file defines the width, height (not color!) for each widgets -// We can define different INC file by Resolution (HD, qHD, WVGA, HVGA) -// -// ************* Naming Rule ************ // -// {WIDGET}_{GROUP}_{PART}_{STATE}_{TYPE} -// WIDGET: NAVIFRAME, LIST, DATETIME, POPUP, etc. -// GROUP: INDEX -// PART: TEXT, ICON, BG, PADDING, DIVIDER, ICON, etc. -// STATE: LEFT, RIGHT, TOP, BOTTOM, MIN, MAX, -// TYPE: HEIGHT, WIDTH, SIZE -// e.g. LIST_PADDING_LEFT_HEIGHT -//****************************************************************************// - -#define BASE_SCALE_INC 2.6 - -//****************************************************************************// -// Colorselector -//****************************************************************************// -#define COLORSELECTOR_PALETTE_COLORPLANE_HEIGHT_INC 238 -#define COLORSELECTOR_PALETTE_COLORPLANE_WIDTH_INC 678 -#define COLORSELECTOR_PORTRAIT_HOR_PAD_COLORPLANE_INC "8" -#define COLORSELECTOR_PORTRAIT_VER_PAD_COLORPLANE_INC "8" -#define COLORSELECTOR_TOPBOTTOM_PAD_COLORPLANE_INC 24 - -//****************************************************************************// -// Entry -//****************************************************************************// -#define ENTRY_PREEDIT_BACKGROUND_COLOR_INC "#000000" -#define ENTRY_PREEDIT_HIGHLIGHT_BACKGROUND_COLOR_INC "#8bd8ff99" -#define ENTRY_PREEDIT_TEXT_COLOR_INC "#FAFAFA" -#define ENTRY_PREEDIT_UNDERLINE_COLOR_INC "#000000" -#define ENTRY_PREEDIT_SUB1_COLOR_INC "#2EA8E1" -#define ENTRY_PREEDIT_SUB2_COLOR_INC "#9962C3" -#define ENTRY_PREEDIT_SUB3_COLOR_INC "#76DE37" -#define ENTRY_PREEDIT_SUB4_COLOR_INC "#999999" -#define ENTRY_LEFT_RIGHT_MARGIN_INC 5 -#define ENTRY_FONT_SIZE_INC 40 -#define ENTRY_CURSOR_SIZE_INC 3 0 - -//****************************************************************************// -// Label -//****************************************************************************// -#define LABEL_FONT_SIZE_INC 24 - -//****************************************************************************// -// RADIO -//****************************************************************************// -#define RADIO_DEFAULT_SIZE_INC 50 50 -#define RADIO_PAD_BEFORE_TEXT_INC 32 0 - diff --git a/ElmSharp/theme/common/HD/images/Assist_Views/README b/ElmSharp/theme/common/HD/images/Assist_Views/README deleted file mode 100644 index 1746a11..0000000 --- a/ElmSharp/theme/common/HD/images/Assist_Views/README +++ /dev/null @@ -1 +0,0 @@ -This is reserved directory for mobile images. Please delete this file when any file is added. diff --git a/ElmSharp/theme/common/HD/images/Navigation_elements/README b/ElmSharp/theme/common/HD/images/Navigation_elements/README deleted file mode 100644 index f267efa..0000000 --- a/ElmSharp/theme/common/HD/images/Navigation_elements/README +++ /dev/null @@ -1 +0,0 @@ -This is reserved space for mobile images. Please erase this file if any image is added. diff --git a/ElmSharp/theme/common/HD/images/User_Input_Elements/core_radio_bg_01.svg b/ElmSharp/theme/common/HD/images/User_Input_Elements/core_radio_bg_01.svg deleted file mode 100755 index a903fc2..0000000 --- a/ElmSharp/theme/common/HD/images/User_Input_Elements/core_radio_bg_01.svg +++ /dev/null @@ -1,8 +0,0 @@ - - - - - - diff --git a/ElmSharp/theme/common/HD/images/User_Input_Elements/core_radio_bg_02.svg b/ElmSharp/theme/common/HD/images/User_Input_Elements/core_radio_bg_02.svg deleted file mode 100755 index 4bf9638..0000000 --- a/ElmSharp/theme/common/HD/images/User_Input_Elements/core_radio_bg_02.svg +++ /dev/null @@ -1,9 +0,0 @@ - - - - - - diff --git a/ElmSharp/theme/common/HD/images/User_Input_Elements/core_radio_icon.svg b/ElmSharp/theme/common/HD/images/User_Input_Elements/core_radio_icon.svg deleted file mode 100755 index 3170adc..0000000 --- a/ElmSharp/theme/common/HD/images/User_Input_Elements/core_radio_icon.svg +++ /dev/null @@ -1,7 +0,0 @@ - - - - - - diff --git a/ElmSharp/theme/common/HD/images/User_Input_Elements/core_radio_stroke.svg b/ElmSharp/theme/common/HD/images/User_Input_Elements/core_radio_stroke.svg deleted file mode 100755 index 9a8fdab..0000000 --- a/ElmSharp/theme/common/HD/images/User_Input_Elements/core_radio_stroke.svg +++ /dev/null @@ -1,8 +0,0 @@ - - - - - - diff --git a/ElmSharp/theme/common/HD/images/User_Input_Elements/core_radio_white_bg.svg b/ElmSharp/theme/common/HD/images/User_Input_Elements/core_radio_white_bg.svg deleted file mode 100755 index 054a779..0000000 --- a/ElmSharp/theme/common/HD/images/User_Input_Elements/core_radio_white_bg.svg +++ /dev/null @@ -1,8 +0,0 @@ - - - - - - diff --git a/ElmSharp/theme/common/color_classes.edc b/ElmSharp/theme/common/color_classes.edc deleted file mode 100644 index d10c93b..0000000 --- a/ElmSharp/theme/common/color_classes.edc +++ /dev/null @@ -1,101 +0,0 @@ -color_classes { - /* - * Layout - */ - color_class { - name: "layout/background/bg"; - color: 0 0 0 0; - } - /* - * Colorselector - */ - color_class { - name: "colorselector/default/bg"; - color: 250 250 250 255; - } - /* - * Entry - */ - color_class { "entry/default/text_edit"; - color: 0 0 0 255; - } - color_class { "entry/default/text_edit_focused"; - color: 0 0 0 255; - } - color_class { "entry/default/text_edit_disabled"; - color: 0 0 0 110; - } - color_class { "entry/default/text_guide"; - color: 0 0 0 145; - } - color_class { "entry/default/text_guide_focused"; - color: 0 0 0 145; - } - color_class { "entry/default/text_guide_disabled"; - color: 0 0 0 110; - } - color_class { - name: "entry/default/bg"; - color: 0 0 0 0; - } - color_class { "entry/default/cursor"; - color: 0 184 230 110; - } - /* - * Label - */ - color_class { - name: "label/default/bg"; - color: 0 0 0 0; - } - color_class { - name: "label/slide_long/bg"; - color: 0 0 0 0; - } - color_class { - name: "label/slide_short/bg"; - color: 0 0 0 0; - } - color_class { - name: "label/slide_roll/bg"; - color: 0 0 0 0; - } - color_class { - name: "label/slide_bounce/bg"; - color: 0 0 0 0; - } - - /* - * Radio - */ - color_class { "radio/default/icon"; - color: 61 185 204 255; - } - color_class { "radio/default/bg"; - color: 250 250 250 51; - } - color_class { "radio/default/icon_disabled"; - color: 61 185 204 77; - } - color_class { "radio/default/bg_disabled"; - color: 250 250 250 38; - } - color_class { "radio/default/bg_border_on"; - color: 250 250 250 77; - } - color_class { "radio/default/bg_border_on_disabled"; - color: 250 250 250 38; - } - color_class { "radio/default/stroke"; - color: 61 185 204 255; - } - color_class { "radio/default/stroke_disabled"; - color: 61 185 204 77; - } - color_class { "radio/default/bg_on"; - color: 250 250 250 255; - } - color_class { "radio/default/bg_on_disabled"; - color: 250 250 250 255; - } -} diff --git a/ElmSharp/theme/common/elm-sharp-theme-common.edc b/ElmSharp/theme/common/elm-sharp-theme-common.edc deleted file mode 100644 index d9baad4..0000000 --- a/ElmSharp/theme/common/elm-sharp-theme-common.edc +++ /dev/null @@ -1,93 +0,0 @@ -/* - * Copyright (c) 2015 Samsung Electronics Co., Ltd All Rights Reserved - * - * BSD 2-Clause License (http://www.opensource.org/licenses/bsd-license.php) - * - * Redistribution and use in source and binary forms, with or without - * modification, are permitted provided that the following conditions are met: - * - * 1. Redistributions of source code must retain the above copyright notice, this - * list of conditions and the following disclaimer. - * 2. Redistributions in binary form must reproduce the above copyright notice, - * this list of conditions and the following disclaimer in the documentation - * and/or other materials provided with the distribution. - * - * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND - * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED - * WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE - * DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR - * ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES - * (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; - * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND - * ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT - * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS - * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. - */ - -// LICENSE NOTE: -// This file (and only this one) is licenses under public-domain. The reason -// is that this is meant to serve as a template for making your own themes and -// Elementary's LGPL license is not intended to follow. The images used do come -// under LGPL, but this file specifically for the structure of your theme is -// public-domain. This means you can take, use, re-license and otherwise -// have zero restrictions on using this file as a base for your theme. - -//****************************************************************************************// -// This is theme body including all widget bodys -// Define shared descriptions (e.g. sound samples, color classes, textblock styles) in here -// Do not define size(width, height) in here!!!! -//****************************************************************************************// - -// Include INC (e.g. HD-inc.edc, HVGA-inc.edc for each resolution) file -#include "HD-inc.edc" - -externals { - external: "elm"; -} - -// BUILD_FIX: Add version to edc as 110. -data.item: "version" "110"; -// - -collections { - base_scale: BASE_SCALE_INC; - plugins { - plugin { - name: "touch_sound"; - source: "feedback"; - param: "FEEDBACK_TYPE_SOUND FEEDBACK_PATTERN_TAP"; // FEEDBACK_TYPE_SOUND, FEEDBACK_PATTERN_TOUCH_TAP - - /* 2014.06.11 updated from libsvi(feedback) - Above plugin will run below external function: - int feedback_play_type(feedback_type_e type, feedback_pattern_e pattern); - - param1: feedback_type_e - FEEDBACK_TYPE_NONE = 0, - FEEDBACK_TYPE_SOUND = 1, - FEEDBACK_TYPE_VIBRATION, - FEEDBACK_TYPE_LED, - FEEDBACK_TYPE_END - - * param2 enumeration: - FEEDBACK_PATTERN_TAP = 0, - FEEDBACK_PATTERN_SIP, - FEEDBACK_PATTERN_SIP_BACKSPACE, - FEEDBACK_PATTERN_SIP_FUNCTION, - FEEDBACK_PATTERN_SIP_FJKEY, - ... - - * For more information please refer libsvi. - */ - } - } - -#include "color_classes.edc" - -#include "widgets/colorselector.edc" -#include "widgets/entry.edc" -#include "widgets/label.edc" -#include "widgets/radio.edc" -#include "widgets/layout.edc" - -} - diff --git a/ElmSharp/theme/common/widgets/colorselector.edc b/ElmSharp/theme/common/widgets/colorselector.edc deleted file mode 100644 index 4ac5725..0000000 --- a/ElmSharp/theme/common/widgets/colorselector.edc +++ /dev/null @@ -1,91 +0,0 @@ -/* - * Copyright (c) 2010 Samsung Electronics Co., Ltd All Rights Reserved - * - * BSD 2-Clause License (http://www.opensource.org/licenses/bsd-license.php) - * - * Redistribution and use in source and binary forms, with or without - * modification, are permitted provided that the following conditions are met: - * - * 1. Redistributions of source code must retain the above copyright notice, this - * list of conditions and the following disclaimer. - * 2. Redistributions in binary form must reproduce the above copyright notice, - * this list of conditions and the following disclaimer in the documentation - * and/or other materials provided with the distribution. - * - * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND - * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED - * WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE - * DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR - * ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES - * (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; - * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND - * ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT - * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS - * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. - */ - -group { "elm/colorselector/palette/colorplane"; - alias: "elm/colorselector/palette/default"; - data.item: "horizontal_pad" COLORSELECTOR_PORTRAIT_HOR_PAD_COLORPLANE_INC; - data.item: "vertical_pad" COLORSELECTOR_PORTRAIT_VER_PAD_COLORPLANE_INC; - - parts { - spacer { "base"; - scale; - desc { "default"; - min: COLORSELECTOR_PALETTE_COLORPLANE_WIDTH_INC COLORSELECTOR_PALETTE_COLORPLANE_HEIGHT_INC; - max: -1 -1; - } - } - rect { "bg"; - nomouse; - desc { "default"; - rel.to: "base"; - color_class: "colorselector/default/bg"; - } - } - spacer { "padding_top"; - scale; - desc { "default"; - min: 0 COLORSELECTOR_TOPBOTTOM_PAD_COLORPLANE_INC; - fixed: 0 1; - rel1 { - relative: 0.0 0.0; - to: "base"; - } - rel2 { - relative: 1.0 0.0; - to: "base"; - } - align: 0.0 0.0; - } - } - swallow { "palette"; - scale; - mouse; - desc { state: "default"; - align: 0.5 0.0; - fixed: 0 1; - rel1 { - relative: 0.0 1.0; - to_y: "padding_top"; - } - rel2.to_y: "padding_top"; - } - } - spacer { "padding_palette"; - scale; - desc { "default"; - min: 0 COLORSELECTOR_TOPBOTTOM_PAD_COLORPLANE_INC; - fixed: 0 1; - rel1 { - relative: 0.0 1.0; - to: "palette"; - } - rel2.to: "palette"; - align: 0.0 0.0; - } - } - } -} - diff --git a/ElmSharp/theme/common/widgets/entry.edc b/ElmSharp/theme/common/widgets/entry.edc deleted file mode 100644 index 41f240f..0000000 --- a/ElmSharp/theme/common/widgets/entry.edc +++ /dev/null @@ -1,1077 +0,0 @@ -/* - * Copyright (c) 2010 Samsung Electronics Co., Ltd All Rights Reserved - * - * BSD 2-Clause License (http://www.opensource.org/licenses/bsd-license.php) - * - * Redistribution and use in source and binary forms, with or without - * modification, are permitted provided that the following conditions are met: - * - * 1. Redistributions of source code must retain the above copyright notice, this - * list of conditions and the following disclaimer. - * 2. Redistributions in binary form must reproduce the above copyright notice, - * this list of conditions and the following disclaimer in the documentation - * and/or other materials provided with the distribution. - * - * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND - * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED - * WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE - * DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR - * ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES - * (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; - * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND - * ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT - * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS - * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. - */ - -#define ENTRY_DEFAULT_TAGS \ - tag: "em" "+ font_style=Oblique"; \ - tag: "b" "+ font_weight=Bold"; \ - tag: "link" "+ color=#800 underline=on underline_color=#8008"; \ - tag: "hilight" "+ font_weight=Bold"; - -#define ENTRY_SINGLELINE_TAGS \ - tag: "br" ""; \ - tag: "em" "+ font_style=Oblique"; \ - tag: "b" "+ font_weight=Bold"; \ - tag: "link" "+ color=#800 underline=on underline_color=#8008"; \ - tag: "hilight" "+ font_weight=Bold"; - -#define ENTRY_PREEDIT_TAGS \ - tag: "preedit" "+ underline=on underline_color="ENTRY_PREEDIT_UNDERLINE_COLOR_INC; \ - tag: "preedit_sel" "+ backing=on backing_color="ENTRY_PREEDIT_BACKGROUND_COLOR_INC" color="ENTRY_PREEDIT_TEXT_COLOR_INC" underline=on underline_color="ENTRY_PREEDIT_TEXT_COLOR_INC; \ - tag: "preedit_highlight" "+ backing=on backing_color="ENTRY_PREEDIT_HIGHLIGHT_BACKGROUND_COLOR_INC" underline=on underline_color="ENTRY_PREEDIT_TEXT_COLOR_INC; \ - tag: "preedit_sub1" "+ backing=on backing_color="ENTRY_PREEDIT_SUB1_COLOR_INC" underline=on underline_color="ENTRY_PREEDIT_UNDERLINE_COLOR_INC; \ - tag: "preedit_sub2" "+ backing=on backing_color="ENTRY_PREEDIT_SUB2_COLOR_INC" underline=on underline_color="ENTRY_PREEDIT_UNDERLINE_COLOR_INC; \ - tag: "preedit_sub3" "+ backing=on backing_color="ENTRY_PREEDIT_SUB3_COLOR_INC" underline=on underline_color="ENTRY_PREEDIT_UNDERLINE_COLOR_INC; \ - tag: "preedit_sub4" "+ backing=on backing_color="ENTRY_PREEDIT_SUB4_COLOR_INC" underline=on underline_color="ENTRY_PREEDIT_UNDERLINE_COLOR_INC; - -styles { - style { "entry_textblock_style"; - base: "font=Tizen:weight=Light font_size="ENTRY_FONT_SIZE_INC" color=#fff left_margin="ENTRY_LEFT_RIGHT_MARGIN_INC" right_margin="ENTRY_LEFT_RIGHT_MARGIN_INC" wrap=mixed text_class=entry color_class=entry/default/text_edit"; - ENTRY_DEFAULT_TAGS - ENTRY_PREEDIT_TAGS - } - style { "entry_textblock_focused_style"; - base: "font=Tizen:weight=Light font_size="ENTRY_FONT_SIZE_INC" color=#fff left_margin="ENTRY_LEFT_RIGHT_MARGIN_INC" right_margin="ENTRY_LEFT_RIGHT_MARGIN_INC" wrap=mixed text_class=entry color_class=entry/default/text_edit_focused"; - ENTRY_DEFAULT_TAGS - ENTRY_PREEDIT_TAGS - } - style { "entry_textblock_disabled_style"; - base: "font=Tizen:weight=Light font_size="ENTRY_FONT_SIZE_INC" color=#fff left_margin="ENTRY_LEFT_RIGHT_MARGIN_INC" right_margin="ENTRY_LEFT_RIGHT_MARGIN_INC" wrap=mixed text_class=entry color_class=entry/default/text_edit_disabled"; - ENTRY_DEFAULT_TAGS - ENTRY_PREEDIT_TAGS - } - style { "entry_textblock_guide_style"; - base: "font=Tizen:weight=Light font_size="ENTRY_FONT_SIZE_INC" color=#fff left_margin="ENTRY_LEFT_RIGHT_MARGIN_INC" right_margin="ENTRY_LEFT_RIGHT_MARGIN_INC" wrap=mixed text_class=entry color_class=entry/default/text_guide"; - ENTRY_DEFAULT_TAGS - } - style { "entry_textblock_guide_focused_style"; - base: "font=Tizen:weight=Light font_size="ENTRY_FONT_SIZE_INC" color=#fff left_margin="ENTRY_LEFT_RIGHT_MARGIN_INC" right_margin="ENTRY_LEFT_RIGHT_MARGIN_INC" wrap=mixed text_class=entry color_class=entry/default/text_guide_focused"; - ENTRY_DEFAULT_TAGS - } - style { "entry_textblock_guide_disabled_style"; - base: "font=Tizen:weight=Light font_size="ENTRY_FONT_SIZE_INC" color=#fff left_margin="ENTRY_LEFT_RIGHT_MARGIN_INC" right_margin="ENTRY_LEFT_RIGHT_MARGIN_INC" wrap=mixed text_class=entry color_class=entry/default/text_guide_disabled"; - ENTRY_DEFAULT_TAGS - } - style { "entry_textblock_char_wrap_style"; - base: "font=Tizen:weight=Light font_size="ENTRY_FONT_SIZE_INC" color=#fff left_margin="ENTRY_LEFT_RIGHT_MARGIN_INC" right_margin="ENTRY_LEFT_RIGHT_MARGIN_INC" wrap=char text_class=entry color_class=entry/default/text_edit"; - ENTRY_DEFAULT_TAGS - ENTRY_PREEDIT_TAGS - } - style { "entry_textblock_char_wrap_focused_style"; - base: "font=Tizen:weight=Light font_size="ENTRY_FONT_SIZE_INC" color=#fff left_margin="ENTRY_LEFT_RIGHT_MARGIN_INC" right_margin="ENTRY_LEFT_RIGHT_MARGIN_INC" wrap=char text_class=entry color_class=entry/default/text_edit_focused"; - ENTRY_DEFAULT_TAGS - ENTRY_PREEDIT_TAGS - } - style { "entry_textblock_char_wrap_disabled_style"; - base: "font=Tizen:weight=Light font_size="ENTRY_FONT_SIZE_INC" color=#fff left_margin="ENTRY_LEFT_RIGHT_MARGIN_INC" right_margin="ENTRY_LEFT_RIGHT_MARGIN_INC" wrap=char text_class=entry color_class=entry/default/text_edit_disabled"; - ENTRY_DEFAULT_TAGS - ENTRY_PREEDIT_TAGS - } - style { "entry_textblock_char_wrap_guide_style"; - base: "font=Tizen:weight=Light font_size="ENTRY_FONT_SIZE_INC" color=#fff left_margin="ENTRY_LEFT_RIGHT_MARGIN_INC" right_margin="ENTRY_LEFT_RIGHT_MARGIN_INC" wrap=char text_class=entry color_class=entry/default/text_guide"; - ENTRY_DEFAULT_TAGS - } - style { "entry_textblock_char_wrap_guide_focused_style"; - base: "font=Tizen:weight=Light font_size="ENTRY_FONT_SIZE_INC" color=#fff left_margin="ENTRY_LEFT_RIGHT_MARGIN_INC" right_margin="ENTRY_LEFT_RIGHT_MARGIN_INC" wrap=char text_class=entry color_class=entry/default/text_guide_focused"; - ENTRY_DEFAULT_TAGS - } - style { "entry_textblock_char_wrap_guide_disabled_style"; - base: "font=Tizen:weight=Light font_size="ENTRY_FONT_SIZE_INC" color=#fff left_margin="ENTRY_LEFT_RIGHT_MARGIN_INC" right_margin="ENTRY_LEFT_RIGHT_MARGIN_INC" wrap=char text_class=entry color_class=entry/default/text_guide_disabled"; - ENTRY_DEFAULT_TAGS - } - style { "entry_single_textblock_style"; - base: "font=Tizen:weight=Light font_size="ENTRY_FONT_SIZE_INC" color=#fff left_margin="ENTRY_LEFT_RIGHT_MARGIN_INC" right_margin="ENTRY_LEFT_RIGHT_MARGIN_INC" wrap=none text_class=entry color_class=entry/default/text_edit"; - ENTRY_SINGLELINE_TAGS - ENTRY_PREEDIT_TAGS - } - style { "entry_single_textblock_focused_style"; - base: "font=Tizen:weight=Light font_size="ENTRY_FONT_SIZE_INC" color=#fff left_margin="ENTRY_LEFT_RIGHT_MARGIN_INC" right_margin="ENTRY_LEFT_RIGHT_MARGIN_INC" wrap=none text_class=entry color_class=entry/default/text_edit_focused"; - ENTRY_SINGLELINE_TAGS - ENTRY_PREEDIT_TAGS - } - style { "entry_single_textblock_disabled_style"; - base: "font=Tizen:weight=Light font_size="ENTRY_FONT_SIZE_INC" color=#fff left_margin="ENTRY_LEFT_RIGHT_MARGIN_INC" right_margin="ENTRY_LEFT_RIGHT_MARGIN_INC" wrap=none text_class=entry color_class=entry/default/text_edit_disabled"; - ENTRY_SINGLELINE_TAGS - ENTRY_PREEDIT_TAGS - } - style { "entry_single_textblock_guide_style"; - base: "font=Tizen:weight=Light font_size="ENTRY_FONT_SIZE_INC" color=#fff left_margin="ENTRY_LEFT_RIGHT_MARGIN_INC" right_margin="ENTRY_LEFT_RIGHT_MARGIN_INC" wrap=none text_class=entry color_class=entry/default/text_guide"; - ENTRY_SINGLELINE_TAGS - } - style { "entry_single_textblock_guide_focused_style"; - base: "font=Tizen:weight=Light font_size="ENTRY_FONT_SIZE_INC" color=#fff left_margin="ENTRY_LEFT_RIGHT_MARGIN_INC" right_margin="ENTRY_LEFT_RIGHT_MARGIN_INC" wrap=none text_class=entry color_class=entry/default/text_guide_focused"; - ENTRY_SINGLELINE_TAGS - } - style { "entry_single_textblock_guide_disabled_style"; - base: "font=Tizen:weight=Light font_size="ENTRY_FONT_SIZE_INC" color=#fff left_margin="ENTRY_LEFT_RIGHT_MARGIN_INC" right_margin="ENTRY_LEFT_RIGHT_MARGIN_INC" wrap=none text_class=entry color_class=entry/default/text_guide_disabled"; - ENTRY_SINGLELINE_TAGS - } -} - -group { "elm/entry/event/default"; - inherit_only: 1; - parts { - rect { "event"; - mouse; - repeat; - desc { "default"; - color: 0 0 0 0; - } - desc { "disabled"; - inherit: "default"; - hid; - } - } - } - programs { - program { "clicked"; - signal: "mouse,clicked,1"; - source: "event"; - after: "on_clicked"; - } - program { "load"; - signal: "load"; - source: ""; - after: "on_load"; - } - program { "disabled"; - signal: "elm,state,disabled"; - source: "elm"; - action: STATE_SET "disabled"; - target: "event"; - after: "on_disabled"; - } - program { "enabled"; - signal: "elm,state,disabled"; - source: "elm"; - action: STATE_SET "default"; - target: "event"; - after: "on_enabled"; - } - program { "focus"; - signal: "elm,action,focus"; - source: "elm"; - after: "on_focus"; - } - program { "unfocus"; - signal: "elm,action,unfocus"; - source: "elm"; - after: "on_unfocus"; - } - program { "disabled_guide"; - signal: "elm,guide,disabled"; - source: "elm"; - after: "on_disabled_guide"; - } - program { "enabled_guide"; - signal: "elm,guide,enabled"; - source: "elm"; - after: "on_enabled_guide"; - } - } -} - -group { "elm/entry/base/template"; - inherit_only: 1; - data.item: "default_font_size" ENTRY_FONT_SIZE_INC; - data.item: "focus_highlight" "on"; - data.item: context_menu_orientation "horizontal"; - parts { - rect { "bg"; - nomouse; - desc { "default"; - color_class: "entry/default/bg"; - } - } - textblock { "elm.guide"; - nomouse; - scale; - desc { "default"; - rel.to: "elm.text"; - text.style: "entry_textblock_guide_style"; - } - desc { "focused"; - inherit: "default"; - text.style: "entry_textblock_guide_focused_style"; - } - desc { "disabled"; - inherit: "default"; - text.style: "entry_textblock_guide_disabled_style"; - } - desc { "hidden"; - inherit: "default"; - hid; - } - } - textblock { "elm.text"; - mouse; - scale; - entry_mode: EDITABLE; - select_mode: EXPLICIT; - cursor_mode: BEFORE; - multiline: 1; - source: "elm/entry/selection/default"; // selection under - source4: "elm/entry/cursor/default"; // cursorover - source5: "elm/entry/anchor/default"; // anchor under - desc { "default"; - text.style: "entry_textblock_style"; - } - desc { "focused"; - inherit: "default"; - text.style: "entry_textblock_focused_style"; - } - desc { "disabled"; - inherit: "default"; - text.style: "entry_textblock_disabled_style"; - } - } - } - inherit: "elm/entry/event/default"; - script { - public focused = 0; - public disabled = 0; - public guide_disabled = 0; - } - programs { - program { "on_load"; - action: FOCUS_SET; - target: "elm.text"; - } - program { "on_clicked"; - action: RUN_PLUGIN "touch_sound"; - } - program { "on_focus"; - script { - set_int(focused, 1); - if (get_int(disabled) == 0) { - set_state(PART:"elm.text", "focused", 0.0); - if (get_int(guide_disabled) == 0) - set_state(PART:"elm.guide", "focused", 0.0); - } - } - } - program { "on_unfocus"; - script { - set_int(focused, 0); - if (get_int(disabled) == 0) { - set_state(PART:"elm.text", "default", 0.0); - if (get_int(guide_disabled) == 0) - set_state(PART:"elm.guide", "default", 0.0); - } - } - } - program { "on_disabled"; - script { - set_int(disabled, 1); - set_state(PART:"elm.text", "disabled", 0.0); - if (get_int(guide_disabled) == 0) - set_state(PART:"elm.guide", "disabled", 0.0); - } - } - program { "on_enabled"; - script { - set_int(disabled, 0); - if (get_int(focused)) - set_state(PART:"elm.text", "focused", 0.0); - else - set_state(PART:"elm.text", "default", 0.0); - if (get_int(guide_disabled) == 0) { - if (get_int(focused)) - set_state(PART:"elm.guide", "focused", 0.0); - else - set_state(PART:"elm.guide", "default", 0.0); - } - } - } - program { "on_disabled_guide"; - script { - set_int(guide_disabled, 1); - set_state(PART:"elm.guide", "hidden", 0.0); - } - } - program { "on_enabled_guide"; - script { - set_int(guide_disabled, 0); - if (get_int(disabled)) - set_state(PART:"elm.guide", "disabled", 0.0); - else if (get_int(focused)) - set_state(PART:"elm.guide", "focused", 0.0); - else - set_state(PART:"elm.guide", "default", 0.0); - } - } - } -} - -group { "elm/entry/cursor/event/default"; - inherit_only: 1; - programs { - program { "selection_start"; - signal: "selection,start"; - source: "elm.text"; - after: "on_selection_start"; - } - program { "selection_cleared"; - signal: "selection,cleared"; - source: "elm.text"; - after: "on_selection_cleared"; - } - program { "focus"; - signal: "elm,action,focus"; - source: "elm"; - after: "on_focus"; - } - program { "unfocus"; - signal: "elm,action,unfocus"; - source: "elm"; - after: "on_unfocus"; - } - program { "show_cursor"; - signal: "elm,action,show,cursor"; - source: "elm"; - after: "on_show_cursor"; - } - } -} - -group { "elm/entry/cursor/template"; - inherit: "elm/entry/cursor/event/default"; - inherit_only: 1; - parts { - rect { "cursor"; - clip: "clipper"; - desc { "default"; - hid; - } - desc { "visible"; - inherit: "default"; - vis; - } - } - rect { "clipper"; - desc { "default"; - } - desc { "hidden"; - inherit: "default"; - hid; - } - } - } - programs { - program { "on_selection_start"; - action: STATE_SET "hidden"; - target: "clipper"; - } - program { "on_selection_cleared"; - action: STATE_SET "default"; - target: "clipper"; - } - program { "on_focus"; - action: ACTION_STOP; - target: "cursor_visible"; - target: "cursor_hidden"; - target: "cursor_visible_timer"; - target: "cursor_hidden_timer"; - after: "cursor_visible"; - } - program { "on_unfocus"; - action: ACTION_STOP; - target: "cursor_visible"; - target: "cursor_hidden"; - target: "cursor_visible_timer"; - target: "cursor_hidden_timer"; - after: "cursor_hidden_stop"; - } - program { "on_show_cursor"; - action: ACTION_STOP; - target: "cursor_visible"; - target: "cursor_hidden"; - target: "cursor_visible_timer"; - target: "cursor_hidden_timer"; - after: "cursor_visible"; - } - program { "cursor_hidden_stop"; - action: STATE_SET "default"; - target: "cursor"; - } - program { "cursor_visible"; - action: STATE_SET "visible"; - target: "cursor"; - after: "cursor_visible_timer"; - } - program { "cursor_hidden"; - action: STATE_SET "default"; - target: "cursor"; - after: "cursor_hidden_timer"; - } - program { "cursor_visible_timer"; - in: 0.6 0.0; - after: "cursor_hidden"; - } - program { "cursor_hidden_timer"; - in: 0.6 0.0; - after: "cursor_visible"; - } - } -} - -group { "elm/entry/cursor/default"; - inherit: "elm/entry/cursor/template"; - parts { - rect { "cursor"; - nomouse; - scale; - clip: "clipper"; - desc { "default"; - min: ENTRY_CURSOR_SIZE_INC; - color_class: "entry/default/cursor"; - hid; - } - desc { "visible"; - inherit: "default"; - vis; - } - } - rect { "clipper"; - desc { "default"; - rel.to: "cursor"; - fixed: 1 1; - } - desc { "hidden"; - inherit: "default"; - hid; - } - } - } -} - -group { "elm/entry/base/default"; - inherit: "elm/entry/base/template"; - alias: "elm/entry/base-mixedwrap/default"; - parts { - textblock { "elm.guide"; - nomouse; - scale; - desc { "default"; - rel.to: "elm.text"; - text { - style: "entry_textblock_guide_style"; - min: 0 1; - align: 0.0 0.0; - } - } - desc { "focused"; - inherit: "default"; - text.style: "entry_textblock_guide_focused_style"; - } - desc { "disabled"; - inherit: "default"; - text.style: "entry_textblock_guide_disabled_style"; - } - desc { "hidden"; - inherit: "default"; - hid; - } - } - textblock { "elm.text"; - mouse; - scale; - entry_mode: EDITABLE; - select_mode: EXPLICIT; - cursor_mode: BEFORE; - multiline: 1; - source: "elm/entry/selection/default"; // selection under - source4: "elm/entry/cursor/default"; // cursorover - source5: "elm/entry/anchor/default"; // anchor under - desc { "default"; - fixed: 1 0; - text { - style: "entry_textblock_style"; - min: 0 1; - align: 0.0 0.0; - } - } - desc { "focused"; - inherit: "default"; - text { - style: "entry_textblock_focused_style"; - min: 0 1; - } - } - desc { "disabled"; - inherit: "default"; - text { - style: "entry_textblock_disabled_style"; - min: 0 1; - } - } - } - } -} - -group { "elm/entry/base-charwrap/default"; - alias: "elm/entry/base/char_wrap"; - inherit: "elm/entry/base/template"; - parts { - textblock { "elm.guide"; - nomouse; - scale; - desc { "default"; - rel.to: "elm.text"; - text { - style: "entry_textblock_char_wrap_guide_style"; - min: 0 1; - align: 0.0 0.0; - } - } - desc { "focused"; - inherit: "default"; - text.style: "entry_textblock_char_wrap_guide_focused_style"; - } - desc { "disabled"; - inherit: "default"; - text.style: "entry_textblock_char_wrap_guide_disabled_style"; - } - desc { "hidden"; - inherit: "default"; - hid; - } - } - textblock { "elm.text"; - mouse; - scale; - entry_mode: EDITABLE; - select_mode: EXPLICIT; - cursor_mode: BEFORE; - multiline: 1; - source: "elm/entry/selection/default"; // selection under - source4: "elm/entry/cursor/default"; // cursorover - source5: "elm/entry/anchor/default"; // anchor under - desc { "default"; - fixed: 1 0; - text { - style: "entry_textblock_char_wrap_style"; - min: 0 1; - align: 0.0 0.0; - } - } - desc { "focused"; - inherit: "default"; - text { - style: "entry_textblock_char_wrap_focused_style"; - min: 0 1; - } - } - desc { "disabled"; - inherit: "default"; - text { - style: "entry_textblock_char_wrap_disabled_style"; - min: 0 1; - } - } - } - } -} - -group { "elm/entry/base-nowrap/default"; - inherit: "elm/entry/base/template"; - parts { - textblock { "elm.guide"; - nomouse; - scale; - desc { "default"; - rel.to: "elm.text"; - text { - style: "entry_textblock_guide_style"; - min: 0 1; - align: 0.0 0.0; - } - } - desc { "focused"; - inherit: "default"; - text.style: "entry_textblock_guide_focused_style"; - } - desc { "disabled"; - inherit: "default"; - text.style: "entry_textblock_guide_disabled_style"; - } - desc { "hidden"; - inherit: "default"; - hid; - } - } - textblock { "elm.text"; - mouse; - scale; - entry_mode: EDITABLE; - select_mode: EXPLICIT; - cursor_mode: BEFORE; - multiline: 1; - source: "elm/entry/selection/default"; // selection under - source4: "elm/entry/cursor/default"; // cursorover - source5: "elm/entry/anchor/default"; // anchor under - desc { "default"; - text { - style: "entry_textblock_style"; - min: 1 1; - align: 0.0 0.0; - } - } - desc { "focused"; - inherit: "default"; - text { - style: "entry_textblock_focused_style"; - min: 1 1; - } - } - desc { "disabled"; - inherit: "default"; - text { - style: "entry_textblock_disabled_style"; - min: 0 1; - } - } - } - } -} - -group { "elm/entry/base-single/default"; - inherit: "elm/entry/base/template"; - parts { - textblock { "elm.guide"; - nomouse; - scale; - desc { "default"; - fixed: 1 1; - rel.to: "elm.text"; - text { - style: "entry_single_textblock_guide_style"; - min: 0 1; - max: 0 0; - align: 0.0 0.5; - } - } - desc { "focused"; - inherit: "default"; - text.style: "entry_single_textblock_guide_focused_style"; - } - desc { "disabled"; - inherit: "default"; - text.style: "entry_single_textblock_guide_disabled_style"; - } - desc { "hidden"; - inherit: "default"; - hid; - } - } - textblock { "elm.text"; - mouse; - scale; - entry_mode: EDITABLE; - select_mode: EXPLICIT; - cursor_mode: BEFORE; - multiline: 0; - source: "elm/entry/selection/default"; // selection under - source4: "elm/entry/cursor/default"; // cursorover - source5: "elm/entry/anchor/default"; // anchor under - desc { "default"; - text { - style: "entry_single_textblock_style"; - min: 1 1; - max: 0 0; - align: 0.0 0.5; - } - } - desc { "focused"; - inherit: "default"; - text.style: "entry_single_textblock_focused_style"; - } - desc { "disabled"; - inherit: "default"; - text.style: "entry_single_textblock_disabled_style"; - } - } - } -} - -group { "elm/entry/base-single-noedit/default"; - inherit: "elm/entry/base/template"; - alias: "elm/entry/base-single-noedit/vcenter_align"; - parts { - textblock { "elm.guide"; - nomouse; - scale; - desc { "default"; - fixed: 1 1; - rel.to: "elm.text"; - text { - style: "entry_single_textblock_guide_style"; - min: 0 1; - max: 0 1; - } - } - desc { "focused"; - inherit: "default"; - text.style: "entry_single_textblock_guide_focused_style"; - } - desc { "disabled"; - inherit: "default"; - text.style: "entry_single_textblock_guide_disabled_style"; - } - desc { "hidden"; - inherit: "default"; - hid; - } - } - textblock { "elm.text"; - mouse; - scale; - entry_mode: PLAIN; - select_mode: EXPLICIT; - cursor_mode: BEFORE; - multiline: 0; - source: "elm/entry/selection/default"; // selection under - source5: "elm/entry/anchor/default"; // anchor under - desc { "default"; - text { - style: "entry_single_textblock_style"; - min: 1 1; - max: 0 1; - } - } - desc { "focused"; - inherit: "default"; - text.style: "entry_single_textblock_focused_style"; - } - desc { "disabled"; - inherit: "default"; - text.style: "entry_single_textblock_disabled_style"; - } - } - } -} - -group { "elm/entry/base-noedit/default"; - inherit: "elm/entry/base/template"; - parts { - textblock { "elm.guide"; - nomouse; - scale; - desc { "default"; - rel.to: "elm.text"; - text { - style: "entry_textblock_guide_style"; - min: 0 1; - align: 0.0 0.0; - } - } - desc { "focused"; - inherit: "default"; - text.style: "entry_textblock_guide_focused_style"; - } - desc { "disabled"; - inherit: "default"; - text.style: "entry_textblock_guide_disabled_style"; - } - desc { "hidden"; - inherit: "default"; - hid; - } - } - textblock { "elm.text"; - mouse; - scale; - entry_mode: PLAIN; - select_mode: EXPLICIT; - cursor_mode: BEFORE; - multiline: 1; - source: "elm/entry/selection/default"; // selection under - source5: "elm/entry/anchor/default"; // anchor under - desc { "default"; - fixed: 1 0; - text { - style: "entry_textblock_style"; - min: 0 1; - align: 0.0 0.0; - } - } - desc { "focused"; - inherit: "default"; - text.style: "entry_textblock_focused_style"; - } - desc { "disabled"; - inherit: "default"; - text.style: "entry_textblock_disabled_style"; - } - } - } -} - -group { "elm/entry/base-noedit-charwrap/default"; - inherit: "elm/entry/base/template"; - parts { - textblock { "elm.guide"; - nomouse; - scale; - desc { "default"; - rel.to: "elm.text"; - text { - style: "entry_textblock_char_wrap_guide_style"; - min: 0 1; - align: 0.0 0.0; - } - } - desc { "focused"; - inherit: "default"; - text.style: "entry_textblock_char_wrap_guide_focused_style"; - } - desc { "disabled"; - inherit: "default"; - text.style: "entry_textblock_char_wrap_guide_disabled_style"; - } - desc { "hidden"; - inherit: "default"; - hid; - } - } - textblock { "elm.text"; - mouse; - scale; - entry_mode: PLAIN; - select_mode: EXPLICIT; - cursor_mode: BEFORE; - multiline: 1; - source: "elm/entry/selection/default"; // selection under - source5: "elm/entry/anchor/default"; // anchor under - desc { "default"; - fixed: 1 0; - text { - style: "entry_textblock_char_wrap_style"; - min: 0 1; - align: 0.0 0.0; - } - } - desc { "focused"; - inherit: "default"; - text.style: "entry_textblock_char_wrap_focused_style"; - } - desc { "disabled"; - inherit: "default"; - text.style: "entry_textblock_char_wrap_disabled_style"; - } - } - } -} - -group { "elm/entry/base-noedit-mixedwrap/default"; - inherit: "elm/entry/base/template"; - parts { - part { "elm.guide"; - type: TEXTBLOCK; - nomouse; - scale; - desc { "default"; - rel.to: "elm.text"; - text { - style: "entry_textblock_guide_style"; - min: 0 1; - align: 0.0 0.0; - } - } - desc { "focused"; - inherit: "default"; - text.style: "entry_textblock_guide_focused_style"; - } - desc { "disabled"; - inherit: "default"; - text.style: "entry_textblock_guide_disabled_style"; - } - desc { "hidden"; - inherit: "default"; - hid; - } - } - textblock { "elm.text"; - mouse; - scale; - entry_mode: PLAIN; - select_mode: EXPLICIT; - cursor_mode: BEFORE; - multiline: 1; - source: "elm/entry/selection/default"; // selection under - source5: "elm/entry/anchor/default"; // anchor under - desc { "default"; - fixed: 1 0; - text { - style: "entry_textblock_style"; - min: 0 1; - align: 0.0 0.0; - } - } - desc { "focused"; - inherit: "default"; - text.style: "entry_textblock_focused_style"; - } - desc { "disabled"; - inherit: "default"; - text.style: "entry_textblock_disabled_style"; - } - } - } -} - -group { "elm/entry/base-nowrap-noedit/default"; - inherit: "elm/entry/base/template"; - parts { - textblock { "elm.guide"; - type: TEXTBLOCK; - nomouse; - scale; - desc { "default"; - rel.to: "elm.text"; - text { - style: "entry_textblock_guide_style"; - min: 0 1; - align: 0.0 0.0; - } - } - desc { "focused"; - inherit: "default"; - text.style: "entry_textblock_guide_focused_style"; - } - desc { "disabled"; - inherit: "default"; - text.style: "entry_textblock_guide_disabled_style"; - } - desc { "hidden"; - inherit: "default"; - hid; - } - } - textblock { "elm.text"; - mouse; - scale; - entry_mode: PLAIN; - select_mode: EXPLICIT; - cursor_mode: BEFORE; - multiline: 1; - source: "elm/entry/selection/default"; // selection under - source5: "elm/entry/anchor/default"; // anchor under - desc { "default"; - text { - style: "entry_textblock_style"; - min: 1 1; - align: 0.0 0.0; - } - } - desc { "focused"; - inherit: "default"; - text.style: "entry_textblock_focused_style"; - } - desc { "disabled"; - inherit: "default"; - text.style: "entry_textblock_disabled_style"; - } - } - } -} - -group { "elm/entry/base-password/default"; - inherit: "elm/entry/base/template"; - parts { - textblock { "elm.guide"; - nomouse; - scale; - desc { "default"; - fixed: 1 1; - rel.to: "elm.text"; - text { - style: "entry_single_textblock_guide_style"; - min: 0 1; - max: 0 1; - } - } - desc { "focused"; - inherit: "default"; - text.style: "entry_single_textblock_guide_focused_style"; - } - desc { "disabled"; - inherit: "default"; - text.style: "entry_single_textblock_guide_disabled_style"; - } - desc { "hidden"; - inherit: "default"; - hid; - } - } - textblock { "elm.text"; - mouse; - scale; - entry_mode: PASSWORD; - select_mode: EXPLICIT; - cursor_mode: BEFORE; - multiline: 0; - source: "elm/entry/selection/default"; // selection under - source4: "elm/entry/cursor/default"; // cursorover - source5: "elm/entry/anchor/default"; // anchor under - desc { "default"; - text { - style: "entry_single_textblock_style"; - repch: "•"; - min: 1 1; - max: 0 1; - } - } - desc { "focused"; - inherit: "default"; - text.style: "entry_single_textblock_focused_style"; - } - desc { "disabled"; - inherit: "default"; - text.style: "entry_single_textblock_disabled_style"; - } - } - } -} - -group { "elm/entry/selection/default"; - parts { - rect { "bg"; - scale; - nomouse; - desc { "default"; - color: 0 221 255 153; - } - } - } -} - -group { "elm/entry/anchor/default"; - parts { - spacer { "bg"; - desc { "default"; } - } - } -} diff --git a/ElmSharp/theme/common/widgets/label.edc b/ElmSharp/theme/common/widgets/label.edc deleted file mode 100644 index 5b11efd..0000000 --- a/ElmSharp/theme/common/widgets/label.edc +++ /dev/null @@ -1,722 +0,0 @@ -/* - * Copyright (c) 2010 Samsung Electronics Co., Ltd All Rights Reserved - * - * BSD 2-Clause License (http://www.opensource.org/licenses/bsd-license.php) - * - * Redistribution and use in source and binary forms, with or without - * modification, are permitted provided that the following conditions are met: - * - * 1. Redistributions of source code must retain the above copyright notice, this - * list of conditions and the following disclaimer. - * 2. Redistributions in binary form must reproduce the above copyright notice, - * this list of conditions and the following disclaimer in the documentation - * and/or other materials provided with the distribution. - * - * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND - * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED - * WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE - * DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR - * ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES - * (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; - * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND - * ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT - * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS - * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. - */ - -#define SLIDE_SPEED_WEIGHT 0.5 -#define SLIDE_TEXT_GAP 60 -#define SLIDE_TEXT_CHAR_GAP " " //60 (6 spaces) -#define SLIDE_TEXT_MAX_LENGTH (2*(1024+6)) - -styles { - style { "textblock_style"; - base: "font=Tizen:weight=Normal font_size="LABEL_FONT_SIZE_INC" color=#FFF color_class=label/default/text text_class=label"; - tag: "br" "\n"; - tag: "ps" "ps"; - tag: "hilight" "+ font_weight=Bold"; - tag: "b" "+ font_weight=Bold"; - tag: "tab" "\t"; - } - style { "textblock_charwrap_style"; - base: "font=Tizen:weight=Normal font_size="LABEL_FONT_SIZE_INC" color=#FFF color_class=label/default/text text_class=label"; - tag: "br" "\n"; - tag: "ps" "ps"; - tag: "hilight" "+ font_weight=Bold"; - tag: "b" "+ font_weight=Bold"; - tag: "tab" "\t"; - } - style { "textblock_style_marker"; - base: "font=Tizen:weight=Bold font_size=14 align=center color=#FFF wrap=word color_class=label/default/text text_class=tizen"; - tag: "br" "\n"; - tag: "ps" "ps"; - tag: "hilight" "+ font_weight=Bold"; - tag: "b" "+ font_weight=Bold"; - tag: "tab" "\t"; - } -} - -group { "elm/label/event/default"; - inherit_only: 1; - programs { - program { "start_slide"; - source: "elm"; - signal: "elm,state,slide,start"; - after: "on_start_slide"; - } - program { "stop_slide"; - source: "elm"; - signal: "elm,state,slide,stop"; - after: "on_stop_slide"; - } - } -} - -group { "elm/label/base/template"; - inherit: "elm/label/event/default"; - inherit_only: 1; - parts { - rect { "bg"; - desc { "default"; - color_class: "label/default/bg"; - } - } - rect { "clipper"; - desc { "default"; - } - } - textblock { "elm.text"; - scale; - clip: "clipper"; - desc { "default"; - text.style: "textblock_style"; - } - } - } - programs { - program { "on_start_slide"; - } - program { "on_stop_slide"; - } - } -} - -group { "elm/label/base/default"; - inherit: "elm/label/base/template"; - parts { - textblock { "elm.text"; - scale; - clip: "clipper"; - desc { "default"; - text { - style: "textblock_style"; - min: 0 1; - align: 0.0 0.0; - } - } - } - } -} - -/* default label doesn't use it */ -group { "elm/label/base_wrap/default"; - inherit: "elm/label/base/template"; - parts { - textblock { "elm.text"; - scale; - multiline: 1; - desc { "default"; - text { - style: "textblock_style"; - min: 0 1; - align: 0.0 0.0; - } - } - desc { "charwrap_mode"; - text { - style: "textblock_charwrap_style"; - min: 0 1; - align: 0.0 0.0; - } - } - } - } - programs { - program { "default"; - signal: "elm,state,default"; - source: "elm"; - action: STATE_SET "default"; - target: "elm.text"; - } - program { "charwrap"; - signal: "elm,state,charwrap"; - source: "elm"; - action: STATE_SET "charwrap_mode"; - target: "elm.text"; - } - } -} - -/* default label doesn't use it */ -group { "elm/label/base_wrap_ellipsis/default"; - inherit: "elm/label/base/template"; - parts { - textblock { "elm.text"; - scale; - multiline: 1; - desc { "default"; - fixed: 0 1; - text { - style: "textblock_style"; - min: 0 1; - align: 0.0 0.0; - } - } - desc { "charwrap_mode"; - fixed: 0 1; - text { - style: "textblock_charwrap_style"; - min: 0 1; - align: 0.0 0.0; - } - } - } - } - programs { - program { "default"; - signal: "elm,state,default"; - source: "elm"; - action: STATE_SET "default"; - target: "elm.text"; - } - program { "charwrap"; - signal: "elm,state,charwrap"; - source: "elm"; - action: STATE_SET "charwrap_mode"; - target: "elm.text"; - } - } -} - -group { "elm/label/base/slide_long"; - inherit: "elm/label/base/template"; - script { - public g_duration = 0, g_stopslide, g_timer_id, g_anim_id; - - public message(Msg_Type:type, id, ...) { - if (type == MSG_FLOAT_SET) { - new Float:duration; - duration = getfarg(2); - if (id == 0) - set_float(g_duration, duration); - else - set_float(g_duration, duration / LABEL_FONT_SIZE_INC * SLIDE_SPEED_WEIGHT); - } - } - public slide_to_end_anim(val, Float:pos) { - new stopflag; - new id; - stopflag = get_int(g_stopslide); - if (stopflag == 1) return; - set_tween_state(PART:"elm.text", pos, "slide_begin", 0.0, "slide_end", 0.0); - if (pos >= 1.0) { - id = timer(0.5, "slide_to_begin", 1); - set_int(g_timer_id, id); - } - } - public slide_to_end() { - new stopflag; - new id; - new Float:duration; - stopflag = get_int(g_stopslide); - if (stopflag == 1) return; - duration = get_float(g_duration); - id = anim(duration, "slide_to_end_anim", 1); - set_int(g_anim_id, id); - } - public slide_to_begin() { - new stopflag; - new id; - stopflag = get_int(g_stopslide); - if (stopflag == 1) return; - set_state(PART:"elm.text", "slide_begin", 0.0); - id = timer(0.5, "slide_to_end", 1); - set_int(g_timer_id, id); - } - public start_slide() { - set_int(g_stopslide, 0); - set_state(PART:"elm.text", "slide_begin", 0.0); - slide_to_end(); - } - public stop_slide() { - new id; - set_int(g_stopslide, 1); - id = get_int(g_anim_id); - cancel_anim(id); - id = get_int(g_timer_id); - cancel_timer(id); - set_state(PART:"elm.text", "default", 0.0); - } - } - parts { - rect { "bg"; - desc { "default"; - color_class: "label/slide_long/bg"; - } - } - textblock { "elm.text"; - scale; - clip: "clipper"; - desc { "default"; - align: 0.0 0.0; - text { - style: "textblock_style"; - min: 0 1; - align: 0.0 0.0; - } - } - desc { "slide_end"; - inherit: "default"; - rel2.relative: 0.0 1.0; - align: 1.0 0.0; - text { - style: "textblock_style"; - min: 1 1; - align: 0.0 0.0; - } - } - desc { "slide_begin"; - inherit: "default"; - rel1.relative: 1.0 0.0; - text { - style: "textblock_style"; - min: 1 1; - align: 0.0 0.0; - } - } - } - } - programs { - program { "on_start_slide"; - script { - start_slide(); - } - } - program { "on_stop_slide"; - script { - stop_slide(); - } - } - } -} - -group { "elm/label/base/slide_roll"; - inherit: "elm/label/base/template"; - script { - public g_duration = 0; - public g_stopslide = 0; - public g_timer_id = 0; - public g_anim_id = 0; - public g_tb_w = 0; - public g_tb_h = LABEL_FONT_SIZE_INC; - public org_text = 0; - public message(Msg_Type:type, id, ...) { - if (type == MSG_FLOAT_SET) { - new Float:duration; - duration = getfarg(2); - if (id == 0) - set_float(g_duration, duration); - else - set_float(g_duration, duration / get_int(g_tb_h) * SLIDE_SPEED_WEIGHT); - } - } - public get_tb_width() { - new x, y, w, h; - set_state(PART:"elm.text", "no_ellipsis", 0.0); - get_geometry(PART:"elm.text", x, y, w, h); - set_int(g_tb_w, w); - set_int(g_tb_h, h); - set_state(PART:"clipper_elm.text", "default", 0.0); - get_geometry(PART:"clipper_elm.text", x, y, w, h); - set_int(org_text, w); - } - public slide_to_end_anim(val, Float:pos) { - if (get_int(g_stopslide)) return; - set_tween_state(PART:"elm.text.slide", pos*0.5, "slide_begin", 0.0, "slide_end", 0.0); - if (pos >= 1.0) { - set_int(g_timer_id, timer(1.5, "start_slide", 0)); - } - } - public slide_to_end() { - if (get_int(g_stopslide)) return; - set_int(g_anim_id, anim(get_float(g_duration), "slide_to_end_anim", 0)); - } - public start_slide(val) { - new Float:len; - set_int(g_stopslide, 0); - get_tb_width(); - if (!get_float(g_duration)) { - len = get_int(g_tb_w); - set_float(g_duration, len / get_int(g_tb_h) * SLIDE_SPEED_WEIGHT); - } - if(get_int(g_tb_w) > get_int(org_text)) { - run_program(PROGRAM:"slide_text_set"); - set_state(PART:"elm.text.slide", "slide_begin", 0.0); - set_state(PART:"clipper_elm.text", "hide", 0.0); - set_state(PART:"clipper_elm.text.slide", "show", 0.0); - slide_to_end(); - } - } - public stop_slide() { - new slide_start_timer; - new slide_anim_id; - set_int(g_stopslide, 1); - set_float(g_duration, 0); - slide_start_timer = get_int(g_timer_id); - if (slide_start_timer) { - cancel_timer(slide_start_timer); - set_int(g_timer_id, 0); - } - slide_anim_id = get_int(g_anim_id); - if (slide_anim_id) { - cancel_anim(slide_anim_id); - set_int(g_anim_id, 0); - } - set_text(PART:"elm.text.slide", ""); - set_state(PART:"elm.text", "default", 0.0); - set_state(PART:"elm.text.slide", "default", 0.0); - set_state(PART:"clipper_elm.text", "default", 0.0); - set_state(PART:"clipper_elm.text.slide", "default", 0.0); - } - } - parts { - rect { "bg"; - desc { "default"; - color_class: "label/slide_roll/bg"; - } - } - rect { "clipper_elm.text"; - nomouse; - clip: "clipper"; - desc { "default"; - } - desc { "hide"; - inherit: "default"; - hid; - } - } - textblock { "elm.text"; - scale; - clip: "clipper_elm.text"; - desc { "default"; - align: 0.0 0.5; - text { - style: "textblock_style"; - min: 0 1; - } - } - desc { "no_ellipsis"; - inherit: "default"; - text.min: 1 1; - } - } - rect { "clipper_elm.text.slide"; - nomouse; - clip: "clipper"; - desc { "default"; - hid; - } - desc { "show"; - inherit: "default"; - vis; - } - } - spacer { "slide_text_gap"; - scale; - desc { "default"; - fixed: 1 0; - min: SLIDE_TEXT_GAP 0; - max: SLIDE_TEXT_GAP -1; - align: 1.0 0.5; - rel2.relative: 0.0 1.0; - } - } - textblock { "elm.text.slide"; - scale; - clip: "clipper_elm.text.slide"; - desc { "default"; - align: 0.0 0.5; - text { - style: "textblock_style"; - min: 0 1; - } - } - desc { "slide_begin"; - inherit: "default"; - text.min: 1 1; - rel2.relative: 0.0 1.0; - } - desc { "slide_end"; - inherit: "default"; - align: 1.0 0.5; - text.min: 1 1; - text.align: 1.0 0.5; - rel.to: "slide_text_gap"; - } - } - } - programs { - program { "slide_text_set"; - script { - new buf[1024]; - new buffer[SLIDE_TEXT_MAX_LENGTH]; - get_text(PART:"elm.text", buf, 1024); - snprintf(buffer, SLIDE_TEXT_MAX_LENGTH, "%s", buf); - strcat(buffer, SLIDE_TEXT_CHAR_GAP); - strcat(buffer, buf); - strcat(buffer, SLIDE_TEXT_CHAR_GAP); - set_text(PART:"elm.text.slide", buffer); - } - } - program { "on_start_slide"; - script { - run_program(PROGRAM:"stop_slide"); - set_int(g_timer_id, timer(1.5, "start_slide", 0)); - } - } - program { "on_stop_slide"; - script { - stop_slide(); - } - } - } -} - -group { "elm/label/base/slide_short"; - inherit: "elm/label/base/template"; - script { - public g_duration = 0, g_stopslide, g_timer_id, g_anim_id; - - public message(Msg_Type:type, id, ...) { - if (type == MSG_FLOAT_SET) { - new Float:duration; - duration = getfarg(2); - if (id == 0) - set_float(g_duration, duration); - else - set_float(g_duration, duration / LABEL_FONT_SIZE_INC * SLIDE_SPEED_WEIGHT); - } - } - public slide_to_end_anim(val, Float:pos) { - new stopflag; - new id; - stopflag = get_int(g_stopslide); - if (stopflag == 1) return; - set_tween_state(PART:"elm.text", pos, "slide_begin", 0.0, "slide_end", 0.0); - if (pos >= 1.0) { - id = timer(0.5, "slide_to_begin", 1); - set_int(g_timer_id, id); - } - } - public slide_to_end() { - new stopflag; - new id; - new Float:duration; - stopflag = get_int(g_stopslide); - if (stopflag == 1) return; - duration = get_float(g_duration); - id = anim(duration, "slide_to_end_anim", 1); - set_int(g_anim_id, id); - } - public slide_to_begin() { - new stopflag; - new id; - stopflag = get_int(g_stopslide); - if (stopflag == 1) return; - set_state(PART:"elm.text", "slide_begin", 0.0); - id = timer(0.5, "slide_to_end", 1); - set_int(g_timer_id, id); - } - public start_slide() { - set_int(g_stopslide, 0); - set_state(PART:"elm.text", "slide_begin", 0.0); - slide_to_end(); - } - public stop_slide() { - new id; - set_int(g_stopslide, 1); - id = get_int(g_anim_id); - cancel_anim(id); - id = get_int(g_timer_id); - cancel_timer(id); - set_state(PART:"elm.text", "default", 0.0); - } - } - parts { - rect { "bg"; - desc { "default"; - color_class: "label/slide_short/bg"; - } - } - textblock { "elm.text"; - scale; - clip: "clipper"; - desc { "default"; - align: 0.0 0.0; - text { - style: "textblock_style"; - min: 0 1; - align: 0.0 0.0; - } - } - desc { "slide_end"; - inherit: "default"; - rel1.relative: 1.0 0.0; - align: 1.0 0.0; - text { - style: "textblock_style"; - min: 1 1; - align: 0.0 0.0; - } - } - desc { "slide_begin"; - inherit: "default"; - rel2.relative: 0.0 1.0; - align: 0.0 0.0; - text { - style: "textblock_style"; - min: 1 1; - align: 0.0 0.0; - } - } - } - } - programs { - program { "on_start_slide"; - script { - start_slide(); - } - } - program { "on_stop_slide"; - script { - stop_slide(); - } - } - } -} - -group { "elm/label/base/slide_bounce"; - inherit: "elm/label/base/template"; - script { - public g_duration = 0, g_stopslide, g_timer_id, g_anim_id; - - public message(Msg_Type:type, id, ...) { - if (type == MSG_FLOAT_SET) { - new Float:duration; - duration = getfarg(2); - if (id == 0) - set_float(g_duration, duration); - else - set_float(g_duration, duration / LABEL_FONT_SIZE_INC * SLIDE_SPEED_WEIGHT); - } - } - public slide_to_end_anim(val, Float:pos) { - new stopflag; - new id; - stopflag = get_int(g_stopslide); - if (stopflag == 1) return; - set_tween_state(PART:"elm.text", pos, "slide_begin", 0.0, "slide_end", 0.0); - if (pos >= 1.0) { - id = timer(0.5, "slide_to_begin", 1); - set_int(g_timer_id, id); - } - } - public slide_to_end() { - new stopflag; - new id; - new Float:duration; - stopflag = get_int(g_stopslide); - if (stopflag == 1) return; - duration = get_float(g_duration); - id = anim(duration, "slide_to_end_anim", 1); - set_int(g_anim_id, id); - } - public slide_to_begin_anim(val, Float:pos) { - new stopflag; - new id; - stopflag = get_int(g_stopslide); - if (stopflag == 1) return; - set_tween_state(PART:"elm.text", pos, "slide_end", 0.0, "slide_begin", 0.0); - if (pos >= 1.0) { - id = timer(0.5, "slide_to_end", 1); - set_int(g_timer_id, id); - } - } - public slide_to_begin() { - new stopflag; - new id; - new Float:duration; - stopflag = get_int(g_stopslide); - if (stopflag == 1) return; - duration = get_float(g_duration); - id = anim(duration, "slide_to_begin_anim", 1); - set_int(g_anim_id, id); - } - public start_slide() { - set_int(g_stopslide, 0); - set_state(PART:"elm.text", "slide_begin", 0.0); - slide_to_end(); - } - public stop_slide() { - new id; - set_int(g_stopslide, 1); - id = get_int(g_anim_id); - cancel_anim(id); - id = get_int(g_timer_id); - cancel_timer(id); - set_state(PART:"elm.text", "default", 0.0); - } - } - parts { - rect { "bg"; - desc { "default"; - color_class: "label/slide_bounce/bg"; - } - } - textblock { "elm.text"; - scale; - clip: "clipper"; - desc { "default"; - align: 0.0 0.0; - text { - style: "textblock_style"; - min: 0 1; - align: 0.0 0.0; - } - } - desc { "slide_end"; - inherit: "default"; - rel1.relative: 1.0 0.0; - align: 1.0 0.0; - text.min: 1 1; - } - desc { "slide_begin"; - inherit: "default"; - rel2.relative: 0.0 1.0; - text.min: 1 1; - } - } - } - programs { - program { "on_start_slide"; - script { - start_slide(); - } - } - program { "on_stop_slide"; - script { - stop_slide(); - } - } - } -} diff --git a/ElmSharp/theme/common/widgets/layout.edc b/ElmSharp/theme/common/widgets/layout.edc deleted file mode 100644 index 4268a9f..0000000 --- a/ElmSharp/theme/common/widgets/layout.edc +++ /dev/null @@ -1,40 +0,0 @@ -/* - * Copyright (c) 2010 Samsung Electronics Co., Ltd All Rights Reserved - * - * BSD 2-Clause License (http://www.opensource.org/licenses/bsd-license.php) - * - * Redistribution and use in source and binary forms, with or without - * modification, are permitted provided that the following conditions are met: - * - * 1. Redistributions of source code must retain the above copyright notice, this - * list of conditions and the following disclaimer. - * 2. Redistributions in binary form must reproduce the above copyright notice, - * this list of conditions and the following disclaimer in the documentation - * and/or other materials provided with the distribution. - * - * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND - * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED - * WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE - * DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR - * ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES - * (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; - * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND - * ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT - * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS - * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. - */ - -group { "elm/layout/background/default"; - parts { - rect { "bg"; - scale; - desc { "default"; - color_class: "layout/background/bg"; - } - } - swallow { "elm.swallow.content"; - scale; - desc { "default"; } - } - } -} diff --git a/ElmSharp/theme/common/widgets/radio.edc b/ElmSharp/theme/common/widgets/radio.edc deleted file mode 100644 index 9ddf30f..0000000 --- a/ElmSharp/theme/common/widgets/radio.edc +++ /dev/null @@ -1,559 +0,0 @@ -/* - * Copyright (c) 2015 Samsung Electronics Co., Ltd All Rights Reserved - * - * BSD 2-Clause License (http://www.opensource.org/licenses/bsd-license.php) - * - * Redistribution and use in source and binary forms, with or without - * modification, are permitted provided that the following conditions are met: - * - * 1. Redistributions of source code must retain the above copyright notice, this - * list of conditions and the following disclaimer. - * 2. Redistributions in binary form must reproduce the above copyright notice, - * this list of conditions and the following disclaimer in the documentation - * and/or other materials provided with the distribution. - * - * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND - * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED - * WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE - * DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR - * ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES - * (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; - * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND - * ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT - * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS - * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. - */ -#define STYLE_TAGS \ - tag: "br" "\n";\ - tag: "ps" "ps";\ - tag: "tab" "\t";\ - tag: "b" "+ font_weight=Bold"; - -styles{ - style { name: "radio_default"; - base: "color=#000000FF font=Tizen:weight=Light font_size=40 text_class=tizen ellipsis=1.0"; - STYLE_TAGS - } - style { name: "radio_default_dim"; - base: "color=#000000A3 font=Tizen:weight=Light font_size=40 text_class=tizen ellipsis=1.0"; - STYLE_TAGS - } - style { name: "radio_default_press"; - base: "color=#000000FF font=Tizen:weight=Light font_size=40 text_class=tizen ellipsis=1.0"; - STYLE_TAGS - } -} -#undef STYLE_TAGS - -group { "elm/radio/event/default"; - inherit_only: 1; - parts { - rect { "event"; - mouse; - desc { "default"; - color: 0 0 0 0 ; - rel.to: "base"; - } - desc { "disabled"; - inherit: "default"; - hid; - } - } - } - programs { - program { "clicked"; - signal: "mouse,clicked,1"; - source: "event"; - action: SIGNAL_EMIT "elm,action,click" ""; - after: "on_clicked"; - } - program { "pressed"; - signal: "mouse,down,1*"; - source: "event"; - action: SIGNAL_EMIT "elm,action,press" ""; - after: "on_pressed"; - } - program { "unpressed"; - signal: "mouse,up,1"; - source: "event"; - action: SIGNAL_EMIT "elm,action,unpress" ""; - after: "on_unpressed"; - } - program { "set_radio"; - signal: "elm,state,radio,on"; - source: "elm"; - after: "on_set_radio"; - } - program { "unset_radio"; - signal: "elm,state,radio,off"; - source: "elm"; - after: "on_unset_radio"; - } - program { "disabled"; - signal: "elm,state,disabled"; - source: "elm"; - after: "on_disabled"; - } - program { "enabled"; - signal: "elm,state,enabled"; - source: "elm"; - after: "on_enabled"; - } - program { "enable_event_pass"; - signal: "elm,event,pass,enabled"; - source: "elm"; - script { - set_mouse_events(PART:"event", 0); - } - } - program { "disable_event_pass"; - signal: "elm,event,pass,disabled"; - source: "elm"; - script { - set_mouse_events(PART:"event", 1); - } - } - program { "enable_event_repeat"; - signal: "elm,event,repeat,enabled"; - source: "elm"; - script { - set_repeat_events(PART:"event", 1); - } - } - program { "disable_event_repeat"; - signal: "elm,event,repeat,disabled"; - source: "elm"; - script { - set_repeat_events(PART:"event", 0); - } - } - } -} -group { "elm/radio/base/template"; - parts { - spacer { "base"; - desc { "default"; - } - } - } - inherit: "elm/radio/event/default"; - programs { - program { "on_clicked"; - } - program { "on_pressed"; - } - program { "on_unpressed"; - } - program { "on_disabled"; - } - program { "on_enabled"; - } - program { "on_set_radio"; - } - program { "on_unset_radio"; - } - } -} -group { "elm/radio/base/default"; - images{ - vector: core_radio_stroke.svg; - vector: core_radio_icon.svg; - vector: core_radio_bg_01.svg; - vector: core_radio_bg_02.svg; - vector: core_radio_white_bg.svg; - } - nomouse; - target_group: "vector_group" "clipper_bg_vector" "clipper_icon" "clipper_icon_inner" "clipper_icon_outer" "clipper_icon_stroke"; - parts { - spacer { "base"; - scale; - desc { "default"; - min: RADIO_DEFAULT_SIZE_INC; - } - } - //bg shape - vector { "bg_vector"; - scale; - clip: "clipper_bg_vector"; - desc { "default"; - image.normal: "core_radio_white_bg.svg"; - min: RADIO_DEFAULT_SIZE_INC; - rel1.relative: 0 0.5; - rel2.relative: 0 0.5; - align: 0 0.5; - fixed: 1 1; - } - } - rect { "clipper_bg_vector"; - desc { "default"; - color_class: "radio/default/bg"; - } - desc { "on"; - color_class: "radio/default/bg_border_on"; - } - desc { "off"; - inherit: "default"; - } - desc { "disabled_on"; - color_class: "radio/default/bg_border_on_disabled"; - } - desc { "disabled_off"; - color_class: "radio/default/bg_disabled"; - } - } - vector { "icon"; - scale; - clip: "clipper_icon"; - desc { "default"; - image.normal: "core_radio_icon.svg"; - rel1.to: "bg_vector"; - rel2.to: "bg_vector"; - } - } - rect { "clipper_icon"; - desc { "default"; - color: 250 250 250 0; - } - desc { "on"; - color_class: "radio/default/bg_on" ; - } - desc { "off"; - inherit: "default"; - } - desc { "disabled_off"; - inherit: "default"; - } - desc { "disabled_on"; - color_class: "radio/default/bg_on_disabled" ; - } - } - vector { "icon_inner"; - scale; - clip: "clipper_icon_inner"; - desc { "default"; - image.normal: "core_radio_bg_01.svg"; - rel.to: "bg_vector"; - } - } - rect { "clipper_icon_inner"; - desc { "default"; - rel1.relative: 0.5 0.5; - rel2.relative: 0.5 0.5; - rel.to: "bg_vector"; - } - desc { "on"; - rel.to: "bg_vector"; - color_class: "radio/default/icon"; - } - desc { "off"; - inherit: "default"; - } - desc { "disabled_off"; - inherit: "default"; - } - desc { "disabled_on"; - rel.to: "bg_vector"; - color_class: "radio/default/icon_disabled"; - } - } - vector { "icon_outer"; - scale; - clip: "clipper_icon_outer"; - desc { "default"; - image.normal: "core_radio_bg_02.svg"; - rel1.to: "bg_vector"; - rel2.to: "bg_vector"; - } - } - rect { "clipper_icon_outer"; - desc { "default"; - color: 61 185 204 0; - } - desc { "on"; - color_class: "radio/default/icon"; - } - desc { "off"; - inherit: "default"; - } - desc { "disabled_off"; - inherit: "default"; - } - desc { "disabled_on"; - color_class: "radio/default/icon_disabled"; - } - } - vector { "icon_stroke"; - scale; - clip: "clipper_icon_stroke"; - desc { "default"; - image.normal: "core_radio_stroke.svg"; - rel1.to: "bg_vector"; - rel2.to: "bg_vector"; - } - } - rect { "clipper_icon_stroke"; - desc { "default"; - color_class: "radio/default/stroke"; - } - desc { "on"; - color: 61 185 204 0; - } - desc { "off"; - inherit: "default"; - } - desc { "disabled_off"; - color_class: "radio/default/stroke_disabled"; - } - desc { "disabled_on"; - inherit: "on"; - } - } - spacer { "padding_before_text"; - scale; - desc { "default"; - align: 0.0 0.5; - min: 0 0; - rel1 { - to: "bg_vector"; - relative: 1.0 0.0; - } - rel2 { - to: "bg_vector"; - relative: 1.0 1.0; - } - } - desc { "visible"; - inherit: "default" 0.0; - min: RADIO_PAD_BEFORE_TEXT_INC; - fixed: 1 1; - } - } - textblock { "elm.text"; - scale; - desc { "default"; - hid; - fixed: 0 1; - rel1 { - relative: 1.0 0.5; - to_x: "padding_before_text"; - } - rel2 { - relative: 1.0 0.5; - } - align: 0.0 0.5; - text { - style: "radio_default"; - min: 0 0; - } - } - desc { "visible"; - inherit: "default" 0.0; - vis; - text.min: 0 1; - } - desc { "disabled"; - inherit: "default" 0.0; - vis; - text { - style: "radio_default_dim"; - min: 0 1; - } - } - desc { "pressed"; - inherit: "default" 0.0; - vis; - text { - style: "radio_default_press"; - min: 0 1; - } - } - } - } - inherit: "elm/radio/event/default"; - script { - public radio_state; - public disabled; - public text; - public animate = 0; - } - programs { - program { "on_clicked"; - script { - if (get_int(disabled) == 1) return; - emit("elm,action,radio,toggle", ""); - run_program(PROGRAM:"touch_sound"); - } - } - program { "on_pressed"; - script { - if (get_int(disabled) == 1) return; - if (get_int(text) == 1) { - set_state(PART:"elm.text", "pressed", 0.0); - } - } - } - program { "on_unpressed"; - script { - if (get_int(disabled) == 1) return; - if (get_int(radio_state) == 1) { - run_program(PROGRAM:"toggle_on_without_effect"); - }else { - run_program(PROGRAM:"toggle_off_without_effect"); - } - if (get_int(text) == 1) { - set_state(PART:"elm.text", "visible", 0.0); - } - } - } - program { "on_disabled"; - script { - set_int(disabled, 1); - if (get_int(radio_state) == 1) { - run_program(PROGRAM:"toggle_disabled_on_without_effect"); - }else { - run_program(PROGRAM:"toggle_disabled_off_without_effect"); - } - if (get_int(text) == 1) { - set_state(PART:"elm.text", "disabled", 0.0); - } - } - } - program { "on_enabled"; - script { - set_int(disabled, 0); - if (get_int(radio_state) == 1) { - run_program(PROGRAM:"toggle_on_without_effect"); - } else { - run_program(PROGRAM:"toggle_off_without_effect"); - } - if (get_int(text) == 1) { - set_state(PART:"elm.text", "visible", 0.0); - } - } - } - program { "on_set_radio"; - script { - if (get_int(disabled) == 1) { - if (get_int(animate) == 0) { - run_program(PROGRAM:"toggle_disabled_on_without_effect"); - } else { - run_program(PROGRAM:"toggle_disabled_on_with_effect"); - } - }else { - if (get_int(animate) == 0) { - run_program(PROGRAM:"toggle_on_without_effect"); - emit("elm,radio,state,toggle", "tizen_vg"); - } else { - run_program(PROGRAM:"toggle_on_with_effect"); - emit("elm,radio,action,toggle", "tizen_vg"); - } - } - set_int(animate, 0); - set_int(radio_state, 1); - } - } - program { "on_unset_radio"; - script { - if (get_int(disabled) == 1) { - if (get_int(animate) == 0) { - run_program(PROGRAM:"toggle_disabled_off_without_effect"); - } else { - run_program(PROGRAM:"toggle_disabled_off_with_effect"); - } - }else { - if (get_int(animate) == 0) { - run_program(PROGRAM:"toggle_off_without_effect"); - emit("elm,radio,state,toggle", "tizen_vg"); - } else { - run_program(PROGRAM:"toggle_off_with_effect"); - emit("elm,radio,action,toggle", "tizen_vg"); - } - } - set_int(animate, 0); - set_int(radio_state, 0); - } - } - program { "touch_sound"; - action: RUN_PLUGIN "touch_sound"; - } - program { "activate_animate_radio"; - signal: "elm,activate,radio,on"; - source: "elm"; - script { - set_int(animate, 1); - } - } - program { "deactivate_animate_radio"; - signal: "elm,activate,radio,off"; - source: "elm"; - script { - set_int(animate, 1); - } - } - program { "toggle_on_with_effect"; - action: STATE_SET "on"; - transition: DECELERATE 0.3; - target_groups: "vector_group"; - after: "finished_animation"; - } - program { "toggle_off_with_effect"; - action: STATE_SET "default"; - target_groups: "vector_group"; - transition: DECELERATE 0.3; - after: "finished_animation"; - } - program { "toggle_disabled_on_with_effect"; - action: STATE_SET "disabled_on"; - target_groups: "vector_group"; - transition: DECELERATE 0.3; - after: "finished_animation"; - } - program { "toggle_disabled_off_with_effect"; - action: STATE_SET "disabled_off"; - target_groups: "vector_group"; - transition: DECELERATE 0.3; - after: "finished_animation"; - } - program { "toggle_on_without_effect"; - action: STATE_SET "on"; - target_groups: "vector_group"; - } - program { "toggle_off_without_effect"; - action: STATE_SET "default"; - target_groups: "vector_group"; - } - program { "toggle_disabled_on_without_effect"; - action: STATE_SET "disabled_on"; - target_groups: "vector_group"; - } - program { "toggle_disabled_off_without_effect"; - action: STATE_SET "disabled_off"; - target_groups: "vector_group"; - } - program { "finished_animation"; - action: SIGNAL_EMIT "animation,finished" ""; - } - program { "visible_text"; - signal: "elm,state,text,visible"; - source: "elm"; - script { - set_int(text, 1); - set_state(PART:"padding_before_text", "visible", 0.0); - if (get_int(disabled) == 1) { - set_state(PART:"elm.text", "disabled", 0.0); - }else { - set_state(PART:"elm.text", "visible", 0.0); - } - } - } - program { "hidden_text"; - signal: "elm,state,text,hidden"; - source: "elm"; - script { - set_int(text, 0); - set_state(PART:"padding_before_text", "default", 0.0); - set_state(PART:"elm.text", "default", 0.0); - } - } - } -} diff --git a/ElmSharp/theme/ivi/HD-inc.edc b/ElmSharp/theme/ivi/HD-inc.edc deleted file mode 100644 index 4af4422..0000000 --- a/ElmSharp/theme/ivi/HD-inc.edc +++ /dev/null @@ -1,81 +0,0 @@ -/* - * Copyright (c) 2015 Samsung Electronics Co., Ltd All Rights Reserved - * - * BSD 2-Clause License (http://www.opensource.org/licenses/bsd-license.php) - * - * Redistribution and use in source and binary forms, with or without - * modification, are permitted provided that the following conditions are met: - * - * 1. Redistributions of source code must retain the above copyright notice, this - * list of conditions and the following disclaimer. - * 2. Redistributions in binary form must reproduce the above copyright notice, - * this list of conditions and the following disclaimer in the documentation - * and/or other materials provided with the distribution. - * - * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND - * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED - * WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE - * DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR - * ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES - * (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; - * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND - * ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT - * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS - * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. - */ - -//****************************************************************************// -// This file defines the width, height (not color!) for each widgets -// We can define different INC file by Resolution (HD, qHD, WVGA, HVGA) -// -// ************* Naming Rule ************ // -// {WIDGET}_{GROUP}_{PART}_{STATE}_{TYPE} -// WIDGET: NAVIFRAME, LIST, DATETIME, POPUP, etc. -// GROUP: INDEX -// PART: TEXT, ICON, BG, PADDING, DIVIDER, ICON, etc. -// STATE: LEFT, RIGHT, TOP, BOTTOM, MIN, MAX, -// TYPE: HEIGHT, WIDTH, SIZE -// e.g. LIST_PADDING_LEFT_HEIGHT -//****************************************************************************// - -#define BASE_SCALE_INC 2.6 - -//****************************************************************************// -// Colorselector -//****************************************************************************// -#define COLORSELECTOR_PALETTE_COLORPLANE_HEIGHT_INC 238 -#define COLORSELECTOR_PALETTE_COLORPLANE_WIDTH_INC 678 -#define COLORSELECTOR_PORTRAIT_HOR_PAD_COLORPLANE_INC "8" -#define COLORSELECTOR_PORTRAIT_VER_PAD_COLORPLANE_INC "8" -#define COLORSELECTOR_TOPBOTTOM_PAD_COLORPLANE_INC 24 - -//****************************************************************************// -// Entry -//****************************************************************************// -#define ENTRY_PREEDIT_BACKGROUND_COLOR_INC "#000000" -#define ENTRY_PREEDIT_HIGHLIGHT_BACKGROUND_COLOR_INC "#8bd8ff99" -#define ENTRY_PREEDIT_TEXT_COLOR_INC "#FAFAFA" -#define ENTRY_PREEDIT_UNDERLINE_COLOR_INC "#000000" -#define ENTRY_PREEDIT_SUB1_COLOR_INC "#2EA8E1" -#define ENTRY_PREEDIT_SUB2_COLOR_INC "#9962C3" -#define ENTRY_PREEDIT_SUB3_COLOR_INC "#76DE37" -#define ENTRY_PREEDIT_SUB4_COLOR_INC "#999999" -#define ENTRY_LEFT_RIGHT_MARGIN_INC 5 -#define ENTRY_FONT_SIZE_INC 40 -#define ENTRY_CURSOR_SIZE_INC 3 0 - -//****************************************************************************// -// Label -//****************************************************************************// -#define LABEL_FONT_SIZE_INC 24 - -//****************************************************************************// -// RADIO -//****************************************************************************// -#define RADIO_DEFAULT_SIZE_INC 50 50 -#define RADIO_PAD_BEFORE_TEXT_INC 32 0 - -//****************************************************************************// -// GENLIST -//****************************************************************************// -#define LIST_BOTTOMLINE_HEIGHT 2 diff --git a/ElmSharp/theme/ivi/HD/images/Assist_Views/README b/ElmSharp/theme/ivi/HD/images/Assist_Views/README deleted file mode 100644 index 1746a11..0000000 --- a/ElmSharp/theme/ivi/HD/images/Assist_Views/README +++ /dev/null @@ -1 +0,0 @@ -This is reserved directory for mobile images. Please delete this file when any file is added. diff --git a/ElmSharp/theme/ivi/HD/images/Navigation_elements/README b/ElmSharp/theme/ivi/HD/images/Navigation_elements/README deleted file mode 100644 index f267efa..0000000 --- a/ElmSharp/theme/ivi/HD/images/Navigation_elements/README +++ /dev/null @@ -1 +0,0 @@ -This is reserved space for mobile images. Please erase this file if any image is added. diff --git a/ElmSharp/theme/ivi/HD/images/User_Input_Elements/core_radio_bg_01.svg b/ElmSharp/theme/ivi/HD/images/User_Input_Elements/core_radio_bg_01.svg deleted file mode 100755 index a903fc2..0000000 --- a/ElmSharp/theme/ivi/HD/images/User_Input_Elements/core_radio_bg_01.svg +++ /dev/null @@ -1,8 +0,0 @@ - - - - - - diff --git a/ElmSharp/theme/ivi/HD/images/User_Input_Elements/core_radio_bg_02.svg b/ElmSharp/theme/ivi/HD/images/User_Input_Elements/core_radio_bg_02.svg deleted file mode 100755 index 4bf9638..0000000 --- a/ElmSharp/theme/ivi/HD/images/User_Input_Elements/core_radio_bg_02.svg +++ /dev/null @@ -1,9 +0,0 @@ - - - - - - diff --git a/ElmSharp/theme/ivi/HD/images/User_Input_Elements/core_radio_icon.svg b/ElmSharp/theme/ivi/HD/images/User_Input_Elements/core_radio_icon.svg deleted file mode 100755 index 3170adc..0000000 --- a/ElmSharp/theme/ivi/HD/images/User_Input_Elements/core_radio_icon.svg +++ /dev/null @@ -1,7 +0,0 @@ - - - - - - diff --git a/ElmSharp/theme/ivi/HD/images/User_Input_Elements/core_radio_stroke.svg b/ElmSharp/theme/ivi/HD/images/User_Input_Elements/core_radio_stroke.svg deleted file mode 100755 index 9a8fdab..0000000 --- a/ElmSharp/theme/ivi/HD/images/User_Input_Elements/core_radio_stroke.svg +++ /dev/null @@ -1,8 +0,0 @@ - - - - - - diff --git a/ElmSharp/theme/ivi/HD/images/User_Input_Elements/core_radio_white_bg.svg b/ElmSharp/theme/ivi/HD/images/User_Input_Elements/core_radio_white_bg.svg deleted file mode 100755 index 054a779..0000000 --- a/ElmSharp/theme/ivi/HD/images/User_Input_Elements/core_radio_white_bg.svg +++ /dev/null @@ -1,8 +0,0 @@ - - - - - - diff --git a/ElmSharp/theme/ivi/color_classes.edc b/ElmSharp/theme/ivi/color_classes.edc deleted file mode 100644 index d10c93b..0000000 --- a/ElmSharp/theme/ivi/color_classes.edc +++ /dev/null @@ -1,101 +0,0 @@ -color_classes { - /* - * Layout - */ - color_class { - name: "layout/background/bg"; - color: 0 0 0 0; - } - /* - * Colorselector - */ - color_class { - name: "colorselector/default/bg"; - color: 250 250 250 255; - } - /* - * Entry - */ - color_class { "entry/default/text_edit"; - color: 0 0 0 255; - } - color_class { "entry/default/text_edit_focused"; - color: 0 0 0 255; - } - color_class { "entry/default/text_edit_disabled"; - color: 0 0 0 110; - } - color_class { "entry/default/text_guide"; - color: 0 0 0 145; - } - color_class { "entry/default/text_guide_focused"; - color: 0 0 0 145; - } - color_class { "entry/default/text_guide_disabled"; - color: 0 0 0 110; - } - color_class { - name: "entry/default/bg"; - color: 0 0 0 0; - } - color_class { "entry/default/cursor"; - color: 0 184 230 110; - } - /* - * Label - */ - color_class { - name: "label/default/bg"; - color: 0 0 0 0; - } - color_class { - name: "label/slide_long/bg"; - color: 0 0 0 0; - } - color_class { - name: "label/slide_short/bg"; - color: 0 0 0 0; - } - color_class { - name: "label/slide_roll/bg"; - color: 0 0 0 0; - } - color_class { - name: "label/slide_bounce/bg"; - color: 0 0 0 0; - } - - /* - * Radio - */ - color_class { "radio/default/icon"; - color: 61 185 204 255; - } - color_class { "radio/default/bg"; - color: 250 250 250 51; - } - color_class { "radio/default/icon_disabled"; - color: 61 185 204 77; - } - color_class { "radio/default/bg_disabled"; - color: 250 250 250 38; - } - color_class { "radio/default/bg_border_on"; - color: 250 250 250 77; - } - color_class { "radio/default/bg_border_on_disabled"; - color: 250 250 250 38; - } - color_class { "radio/default/stroke"; - color: 61 185 204 255; - } - color_class { "radio/default/stroke_disabled"; - color: 61 185 204 77; - } - color_class { "radio/default/bg_on"; - color: 250 250 250 255; - } - color_class { "radio/default/bg_on_disabled"; - color: 250 250 250 255; - } -} diff --git a/ElmSharp/theme/ivi/elm-sharp-theme-ivi.edc b/ElmSharp/theme/ivi/elm-sharp-theme-ivi.edc deleted file mode 100644 index b4f11b9..0000000 --- a/ElmSharp/theme/ivi/elm-sharp-theme-ivi.edc +++ /dev/null @@ -1,94 +0,0 @@ -/* - * Copyright (c) 2015 Samsung Electronics Co., Ltd All Rights Reserved - * - * BSD 2-Clause License (http://www.opensource.org/licenses/bsd-license.php) - * - * Redistribution and use in source and binary forms, with or without - * modification, are permitted provided that the following conditions are met: - * - * 1. Redistributions of source code must retain the above copyright notice, this - * list of conditions and the following disclaimer. - * 2. Redistributions in binary form must reproduce the above copyright notice, - * this list of conditions and the following disclaimer in the documentation - * and/or other materials provided with the distribution. - * - * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND - * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED - * WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE - * DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR - * ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES - * (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; - * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND - * ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT - * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS - * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. - */ - -// LICENSE NOTE: -// This file (and only this one) is licenses under public-domain. The reason -// is that this is meant to serve as a template for making your own themes and -// Elementary's LGPL license is not intended to follow. The images used do come -// under LGPL, but this file specifically for the structure of your theme is -// public-domain. This means you can take, use, re-license and otherwise -// have zero restrictions on using this file as a base for your theme. - -//****************************************************************************************// -// This is theme body including all widget bodys -// Define shared descriptions (e.g. sound samples, color classes, textblock styles) in here -// Do not define size(width, height) in here!!!! -//****************************************************************************************// - -// Include INC (e.g. HD-inc.edc, HVGA-inc.edc for each resolution) file -#include "HD-inc.edc" - -externals { - external: "elm"; -} - -// BUILD_FIX: Add version to edc as 110. -data.item: "version" "110"; -// - -collections { - base_scale: BASE_SCALE_INC; - plugins { - plugin { - name: "touch_sound"; - source: "feedback"; - param: "FEEDBACK_TYPE_SOUND FEEDBACK_PATTERN_TAP"; // FEEDBACK_TYPE_SOUND, FEEDBACK_PATTERN_TOUCH_TAP - - /* 2014.06.11 updated from libsvi(feedback) - Above plugin will run below external function: - int feedback_play_type(feedback_type_e type, feedback_pattern_e pattern); - - param1: feedback_type_e - FEEDBACK_TYPE_NONE = 0, - FEEDBACK_TYPE_SOUND = 1, - FEEDBACK_TYPE_VIBRATION, - FEEDBACK_TYPE_LED, - FEEDBACK_TYPE_END - - * param2 enumeration: - FEEDBACK_PATTERN_TAP = 0, - FEEDBACK_PATTERN_SIP, - FEEDBACK_PATTERN_SIP_BACKSPACE, - FEEDBACK_PATTERN_SIP_FUNCTION, - FEEDBACK_PATTERN_SIP_FJKEY, - ... - - * For more information please refer libsvi. - */ - } - } - -#include "color_classes.edc" - -#include "widgets/colorselector.edc" -#include "widgets/entry.edc" -#include "widgets/genlist.edc" -#include "widgets/label.edc" -#include "widgets/radio.edc" -#include "widgets/layout.edc" - -} - diff --git a/ElmSharp/theme/ivi/widgets/colorselector.edc b/ElmSharp/theme/ivi/widgets/colorselector.edc deleted file mode 100644 index 4ac5725..0000000 --- a/ElmSharp/theme/ivi/widgets/colorselector.edc +++ /dev/null @@ -1,91 +0,0 @@ -/* - * Copyright (c) 2010 Samsung Electronics Co., Ltd All Rights Reserved - * - * BSD 2-Clause License (http://www.opensource.org/licenses/bsd-license.php) - * - * Redistribution and use in source and binary forms, with or without - * modification, are permitted provided that the following conditions are met: - * - * 1. Redistributions of source code must retain the above copyright notice, this - * list of conditions and the following disclaimer. - * 2. Redistributions in binary form must reproduce the above copyright notice, - * this list of conditions and the following disclaimer in the documentation - * and/or other materials provided with the distribution. - * - * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND - * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED - * WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE - * DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR - * ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES - * (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; - * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND - * ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT - * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS - * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. - */ - -group { "elm/colorselector/palette/colorplane"; - alias: "elm/colorselector/palette/default"; - data.item: "horizontal_pad" COLORSELECTOR_PORTRAIT_HOR_PAD_COLORPLANE_INC; - data.item: "vertical_pad" COLORSELECTOR_PORTRAIT_VER_PAD_COLORPLANE_INC; - - parts { - spacer { "base"; - scale; - desc { "default"; - min: COLORSELECTOR_PALETTE_COLORPLANE_WIDTH_INC COLORSELECTOR_PALETTE_COLORPLANE_HEIGHT_INC; - max: -1 -1; - } - } - rect { "bg"; - nomouse; - desc { "default"; - rel.to: "base"; - color_class: "colorselector/default/bg"; - } - } - spacer { "padding_top"; - scale; - desc { "default"; - min: 0 COLORSELECTOR_TOPBOTTOM_PAD_COLORPLANE_INC; - fixed: 0 1; - rel1 { - relative: 0.0 0.0; - to: "base"; - } - rel2 { - relative: 1.0 0.0; - to: "base"; - } - align: 0.0 0.0; - } - } - swallow { "palette"; - scale; - mouse; - desc { state: "default"; - align: 0.5 0.0; - fixed: 0 1; - rel1 { - relative: 0.0 1.0; - to_y: "padding_top"; - } - rel2.to_y: "padding_top"; - } - } - spacer { "padding_palette"; - scale; - desc { "default"; - min: 0 COLORSELECTOR_TOPBOTTOM_PAD_COLORPLANE_INC; - fixed: 0 1; - rel1 { - relative: 0.0 1.0; - to: "palette"; - } - rel2.to: "palette"; - align: 0.0 0.0; - } - } - } -} - diff --git a/ElmSharp/theme/ivi/widgets/entry.edc b/ElmSharp/theme/ivi/widgets/entry.edc deleted file mode 100644 index 41f240f..0000000 --- a/ElmSharp/theme/ivi/widgets/entry.edc +++ /dev/null @@ -1,1077 +0,0 @@ -/* - * Copyright (c) 2010 Samsung Electronics Co., Ltd All Rights Reserved - * - * BSD 2-Clause License (http://www.opensource.org/licenses/bsd-license.php) - * - * Redistribution and use in source and binary forms, with or without - * modification, are permitted provided that the following conditions are met: - * - * 1. Redistributions of source code must retain the above copyright notice, this - * list of conditions and the following disclaimer. - * 2. Redistributions in binary form must reproduce the above copyright notice, - * this list of conditions and the following disclaimer in the documentation - * and/or other materials provided with the distribution. - * - * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND - * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED - * WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE - * DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR - * ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES - * (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; - * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND - * ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT - * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS - * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. - */ - -#define ENTRY_DEFAULT_TAGS \ - tag: "em" "+ font_style=Oblique"; \ - tag: "b" "+ font_weight=Bold"; \ - tag: "link" "+ color=#800 underline=on underline_color=#8008"; \ - tag: "hilight" "+ font_weight=Bold"; - -#define ENTRY_SINGLELINE_TAGS \ - tag: "br" ""; \ - tag: "em" "+ font_style=Oblique"; \ - tag: "b" "+ font_weight=Bold"; \ - tag: "link" "+ color=#800 underline=on underline_color=#8008"; \ - tag: "hilight" "+ font_weight=Bold"; - -#define ENTRY_PREEDIT_TAGS \ - tag: "preedit" "+ underline=on underline_color="ENTRY_PREEDIT_UNDERLINE_COLOR_INC; \ - tag: "preedit_sel" "+ backing=on backing_color="ENTRY_PREEDIT_BACKGROUND_COLOR_INC" color="ENTRY_PREEDIT_TEXT_COLOR_INC" underline=on underline_color="ENTRY_PREEDIT_TEXT_COLOR_INC; \ - tag: "preedit_highlight" "+ backing=on backing_color="ENTRY_PREEDIT_HIGHLIGHT_BACKGROUND_COLOR_INC" underline=on underline_color="ENTRY_PREEDIT_TEXT_COLOR_INC; \ - tag: "preedit_sub1" "+ backing=on backing_color="ENTRY_PREEDIT_SUB1_COLOR_INC" underline=on underline_color="ENTRY_PREEDIT_UNDERLINE_COLOR_INC; \ - tag: "preedit_sub2" "+ backing=on backing_color="ENTRY_PREEDIT_SUB2_COLOR_INC" underline=on underline_color="ENTRY_PREEDIT_UNDERLINE_COLOR_INC; \ - tag: "preedit_sub3" "+ backing=on backing_color="ENTRY_PREEDIT_SUB3_COLOR_INC" underline=on underline_color="ENTRY_PREEDIT_UNDERLINE_COLOR_INC; \ - tag: "preedit_sub4" "+ backing=on backing_color="ENTRY_PREEDIT_SUB4_COLOR_INC" underline=on underline_color="ENTRY_PREEDIT_UNDERLINE_COLOR_INC; - -styles { - style { "entry_textblock_style"; - base: "font=Tizen:weight=Light font_size="ENTRY_FONT_SIZE_INC" color=#fff left_margin="ENTRY_LEFT_RIGHT_MARGIN_INC" right_margin="ENTRY_LEFT_RIGHT_MARGIN_INC" wrap=mixed text_class=entry color_class=entry/default/text_edit"; - ENTRY_DEFAULT_TAGS - ENTRY_PREEDIT_TAGS - } - style { "entry_textblock_focused_style"; - base: "font=Tizen:weight=Light font_size="ENTRY_FONT_SIZE_INC" color=#fff left_margin="ENTRY_LEFT_RIGHT_MARGIN_INC" right_margin="ENTRY_LEFT_RIGHT_MARGIN_INC" wrap=mixed text_class=entry color_class=entry/default/text_edit_focused"; - ENTRY_DEFAULT_TAGS - ENTRY_PREEDIT_TAGS - } - style { "entry_textblock_disabled_style"; - base: "font=Tizen:weight=Light font_size="ENTRY_FONT_SIZE_INC" color=#fff left_margin="ENTRY_LEFT_RIGHT_MARGIN_INC" right_margin="ENTRY_LEFT_RIGHT_MARGIN_INC" wrap=mixed text_class=entry color_class=entry/default/text_edit_disabled"; - ENTRY_DEFAULT_TAGS - ENTRY_PREEDIT_TAGS - } - style { "entry_textblock_guide_style"; - base: "font=Tizen:weight=Light font_size="ENTRY_FONT_SIZE_INC" color=#fff left_margin="ENTRY_LEFT_RIGHT_MARGIN_INC" right_margin="ENTRY_LEFT_RIGHT_MARGIN_INC" wrap=mixed text_class=entry color_class=entry/default/text_guide"; - ENTRY_DEFAULT_TAGS - } - style { "entry_textblock_guide_focused_style"; - base: "font=Tizen:weight=Light font_size="ENTRY_FONT_SIZE_INC" color=#fff left_margin="ENTRY_LEFT_RIGHT_MARGIN_INC" right_margin="ENTRY_LEFT_RIGHT_MARGIN_INC" wrap=mixed text_class=entry color_class=entry/default/text_guide_focused"; - ENTRY_DEFAULT_TAGS - } - style { "entry_textblock_guide_disabled_style"; - base: "font=Tizen:weight=Light font_size="ENTRY_FONT_SIZE_INC" color=#fff left_margin="ENTRY_LEFT_RIGHT_MARGIN_INC" right_margin="ENTRY_LEFT_RIGHT_MARGIN_INC" wrap=mixed text_class=entry color_class=entry/default/text_guide_disabled"; - ENTRY_DEFAULT_TAGS - } - style { "entry_textblock_char_wrap_style"; - base: "font=Tizen:weight=Light font_size="ENTRY_FONT_SIZE_INC" color=#fff left_margin="ENTRY_LEFT_RIGHT_MARGIN_INC" right_margin="ENTRY_LEFT_RIGHT_MARGIN_INC" wrap=char text_class=entry color_class=entry/default/text_edit"; - ENTRY_DEFAULT_TAGS - ENTRY_PREEDIT_TAGS - } - style { "entry_textblock_char_wrap_focused_style"; - base: "font=Tizen:weight=Light font_size="ENTRY_FONT_SIZE_INC" color=#fff left_margin="ENTRY_LEFT_RIGHT_MARGIN_INC" right_margin="ENTRY_LEFT_RIGHT_MARGIN_INC" wrap=char text_class=entry color_class=entry/default/text_edit_focused"; - ENTRY_DEFAULT_TAGS - ENTRY_PREEDIT_TAGS - } - style { "entry_textblock_char_wrap_disabled_style"; - base: "font=Tizen:weight=Light font_size="ENTRY_FONT_SIZE_INC" color=#fff left_margin="ENTRY_LEFT_RIGHT_MARGIN_INC" right_margin="ENTRY_LEFT_RIGHT_MARGIN_INC" wrap=char text_class=entry color_class=entry/default/text_edit_disabled"; - ENTRY_DEFAULT_TAGS - ENTRY_PREEDIT_TAGS - } - style { "entry_textblock_char_wrap_guide_style"; - base: "font=Tizen:weight=Light font_size="ENTRY_FONT_SIZE_INC" color=#fff left_margin="ENTRY_LEFT_RIGHT_MARGIN_INC" right_margin="ENTRY_LEFT_RIGHT_MARGIN_INC" wrap=char text_class=entry color_class=entry/default/text_guide"; - ENTRY_DEFAULT_TAGS - } - style { "entry_textblock_char_wrap_guide_focused_style"; - base: "font=Tizen:weight=Light font_size="ENTRY_FONT_SIZE_INC" color=#fff left_margin="ENTRY_LEFT_RIGHT_MARGIN_INC" right_margin="ENTRY_LEFT_RIGHT_MARGIN_INC" wrap=char text_class=entry color_class=entry/default/text_guide_focused"; - ENTRY_DEFAULT_TAGS - } - style { "entry_textblock_char_wrap_guide_disabled_style"; - base: "font=Tizen:weight=Light font_size="ENTRY_FONT_SIZE_INC" color=#fff left_margin="ENTRY_LEFT_RIGHT_MARGIN_INC" right_margin="ENTRY_LEFT_RIGHT_MARGIN_INC" wrap=char text_class=entry color_class=entry/default/text_guide_disabled"; - ENTRY_DEFAULT_TAGS - } - style { "entry_single_textblock_style"; - base: "font=Tizen:weight=Light font_size="ENTRY_FONT_SIZE_INC" color=#fff left_margin="ENTRY_LEFT_RIGHT_MARGIN_INC" right_margin="ENTRY_LEFT_RIGHT_MARGIN_INC" wrap=none text_class=entry color_class=entry/default/text_edit"; - ENTRY_SINGLELINE_TAGS - ENTRY_PREEDIT_TAGS - } - style { "entry_single_textblock_focused_style"; - base: "font=Tizen:weight=Light font_size="ENTRY_FONT_SIZE_INC" color=#fff left_margin="ENTRY_LEFT_RIGHT_MARGIN_INC" right_margin="ENTRY_LEFT_RIGHT_MARGIN_INC" wrap=none text_class=entry color_class=entry/default/text_edit_focused"; - ENTRY_SINGLELINE_TAGS - ENTRY_PREEDIT_TAGS - } - style { "entry_single_textblock_disabled_style"; - base: "font=Tizen:weight=Light font_size="ENTRY_FONT_SIZE_INC" color=#fff left_margin="ENTRY_LEFT_RIGHT_MARGIN_INC" right_margin="ENTRY_LEFT_RIGHT_MARGIN_INC" wrap=none text_class=entry color_class=entry/default/text_edit_disabled"; - ENTRY_SINGLELINE_TAGS - ENTRY_PREEDIT_TAGS - } - style { "entry_single_textblock_guide_style"; - base: "font=Tizen:weight=Light font_size="ENTRY_FONT_SIZE_INC" color=#fff left_margin="ENTRY_LEFT_RIGHT_MARGIN_INC" right_margin="ENTRY_LEFT_RIGHT_MARGIN_INC" wrap=none text_class=entry color_class=entry/default/text_guide"; - ENTRY_SINGLELINE_TAGS - } - style { "entry_single_textblock_guide_focused_style"; - base: "font=Tizen:weight=Light font_size="ENTRY_FONT_SIZE_INC" color=#fff left_margin="ENTRY_LEFT_RIGHT_MARGIN_INC" right_margin="ENTRY_LEFT_RIGHT_MARGIN_INC" wrap=none text_class=entry color_class=entry/default/text_guide_focused"; - ENTRY_SINGLELINE_TAGS - } - style { "entry_single_textblock_guide_disabled_style"; - base: "font=Tizen:weight=Light font_size="ENTRY_FONT_SIZE_INC" color=#fff left_margin="ENTRY_LEFT_RIGHT_MARGIN_INC" right_margin="ENTRY_LEFT_RIGHT_MARGIN_INC" wrap=none text_class=entry color_class=entry/default/text_guide_disabled"; - ENTRY_SINGLELINE_TAGS - } -} - -group { "elm/entry/event/default"; - inherit_only: 1; - parts { - rect { "event"; - mouse; - repeat; - desc { "default"; - color: 0 0 0 0; - } - desc { "disabled"; - inherit: "default"; - hid; - } - } - } - programs { - program { "clicked"; - signal: "mouse,clicked,1"; - source: "event"; - after: "on_clicked"; - } - program { "load"; - signal: "load"; - source: ""; - after: "on_load"; - } - program { "disabled"; - signal: "elm,state,disabled"; - source: "elm"; - action: STATE_SET "disabled"; - target: "event"; - after: "on_disabled"; - } - program { "enabled"; - signal: "elm,state,disabled"; - source: "elm"; - action: STATE_SET "default"; - target: "event"; - after: "on_enabled"; - } - program { "focus"; - signal: "elm,action,focus"; - source: "elm"; - after: "on_focus"; - } - program { "unfocus"; - signal: "elm,action,unfocus"; - source: "elm"; - after: "on_unfocus"; - } - program { "disabled_guide"; - signal: "elm,guide,disabled"; - source: "elm"; - after: "on_disabled_guide"; - } - program { "enabled_guide"; - signal: "elm,guide,enabled"; - source: "elm"; - after: "on_enabled_guide"; - } - } -} - -group { "elm/entry/base/template"; - inherit_only: 1; - data.item: "default_font_size" ENTRY_FONT_SIZE_INC; - data.item: "focus_highlight" "on"; - data.item: context_menu_orientation "horizontal"; - parts { - rect { "bg"; - nomouse; - desc { "default"; - color_class: "entry/default/bg"; - } - } - textblock { "elm.guide"; - nomouse; - scale; - desc { "default"; - rel.to: "elm.text"; - text.style: "entry_textblock_guide_style"; - } - desc { "focused"; - inherit: "default"; - text.style: "entry_textblock_guide_focused_style"; - } - desc { "disabled"; - inherit: "default"; - text.style: "entry_textblock_guide_disabled_style"; - } - desc { "hidden"; - inherit: "default"; - hid; - } - } - textblock { "elm.text"; - mouse; - scale; - entry_mode: EDITABLE; - select_mode: EXPLICIT; - cursor_mode: BEFORE; - multiline: 1; - source: "elm/entry/selection/default"; // selection under - source4: "elm/entry/cursor/default"; // cursorover - source5: "elm/entry/anchor/default"; // anchor under - desc { "default"; - text.style: "entry_textblock_style"; - } - desc { "focused"; - inherit: "default"; - text.style: "entry_textblock_focused_style"; - } - desc { "disabled"; - inherit: "default"; - text.style: "entry_textblock_disabled_style"; - } - } - } - inherit: "elm/entry/event/default"; - script { - public focused = 0; - public disabled = 0; - public guide_disabled = 0; - } - programs { - program { "on_load"; - action: FOCUS_SET; - target: "elm.text"; - } - program { "on_clicked"; - action: RUN_PLUGIN "touch_sound"; - } - program { "on_focus"; - script { - set_int(focused, 1); - if (get_int(disabled) == 0) { - set_state(PART:"elm.text", "focused", 0.0); - if (get_int(guide_disabled) == 0) - set_state(PART:"elm.guide", "focused", 0.0); - } - } - } - program { "on_unfocus"; - script { - set_int(focused, 0); - if (get_int(disabled) == 0) { - set_state(PART:"elm.text", "default", 0.0); - if (get_int(guide_disabled) == 0) - set_state(PART:"elm.guide", "default", 0.0); - } - } - } - program { "on_disabled"; - script { - set_int(disabled, 1); - set_state(PART:"elm.text", "disabled", 0.0); - if (get_int(guide_disabled) == 0) - set_state(PART:"elm.guide", "disabled", 0.0); - } - } - program { "on_enabled"; - script { - set_int(disabled, 0); - if (get_int(focused)) - set_state(PART:"elm.text", "focused", 0.0); - else - set_state(PART:"elm.text", "default", 0.0); - if (get_int(guide_disabled) == 0) { - if (get_int(focused)) - set_state(PART:"elm.guide", "focused", 0.0); - else - set_state(PART:"elm.guide", "default", 0.0); - } - } - } - program { "on_disabled_guide"; - script { - set_int(guide_disabled, 1); - set_state(PART:"elm.guide", "hidden", 0.0); - } - } - program { "on_enabled_guide"; - script { - set_int(guide_disabled, 0); - if (get_int(disabled)) - set_state(PART:"elm.guide", "disabled", 0.0); - else if (get_int(focused)) - set_state(PART:"elm.guide", "focused", 0.0); - else - set_state(PART:"elm.guide", "default", 0.0); - } - } - } -} - -group { "elm/entry/cursor/event/default"; - inherit_only: 1; - programs { - program { "selection_start"; - signal: "selection,start"; - source: "elm.text"; - after: "on_selection_start"; - } - program { "selection_cleared"; - signal: "selection,cleared"; - source: "elm.text"; - after: "on_selection_cleared"; - } - program { "focus"; - signal: "elm,action,focus"; - source: "elm"; - after: "on_focus"; - } - program { "unfocus"; - signal: "elm,action,unfocus"; - source: "elm"; - after: "on_unfocus"; - } - program { "show_cursor"; - signal: "elm,action,show,cursor"; - source: "elm"; - after: "on_show_cursor"; - } - } -} - -group { "elm/entry/cursor/template"; - inherit: "elm/entry/cursor/event/default"; - inherit_only: 1; - parts { - rect { "cursor"; - clip: "clipper"; - desc { "default"; - hid; - } - desc { "visible"; - inherit: "default"; - vis; - } - } - rect { "clipper"; - desc { "default"; - } - desc { "hidden"; - inherit: "default"; - hid; - } - } - } - programs { - program { "on_selection_start"; - action: STATE_SET "hidden"; - target: "clipper"; - } - program { "on_selection_cleared"; - action: STATE_SET "default"; - target: "clipper"; - } - program { "on_focus"; - action: ACTION_STOP; - target: "cursor_visible"; - target: "cursor_hidden"; - target: "cursor_visible_timer"; - target: "cursor_hidden_timer"; - after: "cursor_visible"; - } - program { "on_unfocus"; - action: ACTION_STOP; - target: "cursor_visible"; - target: "cursor_hidden"; - target: "cursor_visible_timer"; - target: "cursor_hidden_timer"; - after: "cursor_hidden_stop"; - } - program { "on_show_cursor"; - action: ACTION_STOP; - target: "cursor_visible"; - target: "cursor_hidden"; - target: "cursor_visible_timer"; - target: "cursor_hidden_timer"; - after: "cursor_visible"; - } - program { "cursor_hidden_stop"; - action: STATE_SET "default"; - target: "cursor"; - } - program { "cursor_visible"; - action: STATE_SET "visible"; - target: "cursor"; - after: "cursor_visible_timer"; - } - program { "cursor_hidden"; - action: STATE_SET "default"; - target: "cursor"; - after: "cursor_hidden_timer"; - } - program { "cursor_visible_timer"; - in: 0.6 0.0; - after: "cursor_hidden"; - } - program { "cursor_hidden_timer"; - in: 0.6 0.0; - after: "cursor_visible"; - } - } -} - -group { "elm/entry/cursor/default"; - inherit: "elm/entry/cursor/template"; - parts { - rect { "cursor"; - nomouse; - scale; - clip: "clipper"; - desc { "default"; - min: ENTRY_CURSOR_SIZE_INC; - color_class: "entry/default/cursor"; - hid; - } - desc { "visible"; - inherit: "default"; - vis; - } - } - rect { "clipper"; - desc { "default"; - rel.to: "cursor"; - fixed: 1 1; - } - desc { "hidden"; - inherit: "default"; - hid; - } - } - } -} - -group { "elm/entry/base/default"; - inherit: "elm/entry/base/template"; - alias: "elm/entry/base-mixedwrap/default"; - parts { - textblock { "elm.guide"; - nomouse; - scale; - desc { "default"; - rel.to: "elm.text"; - text { - style: "entry_textblock_guide_style"; - min: 0 1; - align: 0.0 0.0; - } - } - desc { "focused"; - inherit: "default"; - text.style: "entry_textblock_guide_focused_style"; - } - desc { "disabled"; - inherit: "default"; - text.style: "entry_textblock_guide_disabled_style"; - } - desc { "hidden"; - inherit: "default"; - hid; - } - } - textblock { "elm.text"; - mouse; - scale; - entry_mode: EDITABLE; - select_mode: EXPLICIT; - cursor_mode: BEFORE; - multiline: 1; - source: "elm/entry/selection/default"; // selection under - source4: "elm/entry/cursor/default"; // cursorover - source5: "elm/entry/anchor/default"; // anchor under - desc { "default"; - fixed: 1 0; - text { - style: "entry_textblock_style"; - min: 0 1; - align: 0.0 0.0; - } - } - desc { "focused"; - inherit: "default"; - text { - style: "entry_textblock_focused_style"; - min: 0 1; - } - } - desc { "disabled"; - inherit: "default"; - text { - style: "entry_textblock_disabled_style"; - min: 0 1; - } - } - } - } -} - -group { "elm/entry/base-charwrap/default"; - alias: "elm/entry/base/char_wrap"; - inherit: "elm/entry/base/template"; - parts { - textblock { "elm.guide"; - nomouse; - scale; - desc { "default"; - rel.to: "elm.text"; - text { - style: "entry_textblock_char_wrap_guide_style"; - min: 0 1; - align: 0.0 0.0; - } - } - desc { "focused"; - inherit: "default"; - text.style: "entry_textblock_char_wrap_guide_focused_style"; - } - desc { "disabled"; - inherit: "default"; - text.style: "entry_textblock_char_wrap_guide_disabled_style"; - } - desc { "hidden"; - inherit: "default"; - hid; - } - } - textblock { "elm.text"; - mouse; - scale; - entry_mode: EDITABLE; - select_mode: EXPLICIT; - cursor_mode: BEFORE; - multiline: 1; - source: "elm/entry/selection/default"; // selection under - source4: "elm/entry/cursor/default"; // cursorover - source5: "elm/entry/anchor/default"; // anchor under - desc { "default"; - fixed: 1 0; - text { - style: "entry_textblock_char_wrap_style"; - min: 0 1; - align: 0.0 0.0; - } - } - desc { "focused"; - inherit: "default"; - text { - style: "entry_textblock_char_wrap_focused_style"; - min: 0 1; - } - } - desc { "disabled"; - inherit: "default"; - text { - style: "entry_textblock_char_wrap_disabled_style"; - min: 0 1; - } - } - } - } -} - -group { "elm/entry/base-nowrap/default"; - inherit: "elm/entry/base/template"; - parts { - textblock { "elm.guide"; - nomouse; - scale; - desc { "default"; - rel.to: "elm.text"; - text { - style: "entry_textblock_guide_style"; - min: 0 1; - align: 0.0 0.0; - } - } - desc { "focused"; - inherit: "default"; - text.style: "entry_textblock_guide_focused_style"; - } - desc { "disabled"; - inherit: "default"; - text.style: "entry_textblock_guide_disabled_style"; - } - desc { "hidden"; - inherit: "default"; - hid; - } - } - textblock { "elm.text"; - mouse; - scale; - entry_mode: EDITABLE; - select_mode: EXPLICIT; - cursor_mode: BEFORE; - multiline: 1; - source: "elm/entry/selection/default"; // selection under - source4: "elm/entry/cursor/default"; // cursorover - source5: "elm/entry/anchor/default"; // anchor under - desc { "default"; - text { - style: "entry_textblock_style"; - min: 1 1; - align: 0.0 0.0; - } - } - desc { "focused"; - inherit: "default"; - text { - style: "entry_textblock_focused_style"; - min: 1 1; - } - } - desc { "disabled"; - inherit: "default"; - text { - style: "entry_textblock_disabled_style"; - min: 0 1; - } - } - } - } -} - -group { "elm/entry/base-single/default"; - inherit: "elm/entry/base/template"; - parts { - textblock { "elm.guide"; - nomouse; - scale; - desc { "default"; - fixed: 1 1; - rel.to: "elm.text"; - text { - style: "entry_single_textblock_guide_style"; - min: 0 1; - max: 0 0; - align: 0.0 0.5; - } - } - desc { "focused"; - inherit: "default"; - text.style: "entry_single_textblock_guide_focused_style"; - } - desc { "disabled"; - inherit: "default"; - text.style: "entry_single_textblock_guide_disabled_style"; - } - desc { "hidden"; - inherit: "default"; - hid; - } - } - textblock { "elm.text"; - mouse; - scale; - entry_mode: EDITABLE; - select_mode: EXPLICIT; - cursor_mode: BEFORE; - multiline: 0; - source: "elm/entry/selection/default"; // selection under - source4: "elm/entry/cursor/default"; // cursorover - source5: "elm/entry/anchor/default"; // anchor under - desc { "default"; - text { - style: "entry_single_textblock_style"; - min: 1 1; - max: 0 0; - align: 0.0 0.5; - } - } - desc { "focused"; - inherit: "default"; - text.style: "entry_single_textblock_focused_style"; - } - desc { "disabled"; - inherit: "default"; - text.style: "entry_single_textblock_disabled_style"; - } - } - } -} - -group { "elm/entry/base-single-noedit/default"; - inherit: "elm/entry/base/template"; - alias: "elm/entry/base-single-noedit/vcenter_align"; - parts { - textblock { "elm.guide"; - nomouse; - scale; - desc { "default"; - fixed: 1 1; - rel.to: "elm.text"; - text { - style: "entry_single_textblock_guide_style"; - min: 0 1; - max: 0 1; - } - } - desc { "focused"; - inherit: "default"; - text.style: "entry_single_textblock_guide_focused_style"; - } - desc { "disabled"; - inherit: "default"; - text.style: "entry_single_textblock_guide_disabled_style"; - } - desc { "hidden"; - inherit: "default"; - hid; - } - } - textblock { "elm.text"; - mouse; - scale; - entry_mode: PLAIN; - select_mode: EXPLICIT; - cursor_mode: BEFORE; - multiline: 0; - source: "elm/entry/selection/default"; // selection under - source5: "elm/entry/anchor/default"; // anchor under - desc { "default"; - text { - style: "entry_single_textblock_style"; - min: 1 1; - max: 0 1; - } - } - desc { "focused"; - inherit: "default"; - text.style: "entry_single_textblock_focused_style"; - } - desc { "disabled"; - inherit: "default"; - text.style: "entry_single_textblock_disabled_style"; - } - } - } -} - -group { "elm/entry/base-noedit/default"; - inherit: "elm/entry/base/template"; - parts { - textblock { "elm.guide"; - nomouse; - scale; - desc { "default"; - rel.to: "elm.text"; - text { - style: "entry_textblock_guide_style"; - min: 0 1; - align: 0.0 0.0; - } - } - desc { "focused"; - inherit: "default"; - text.style: "entry_textblock_guide_focused_style"; - } - desc { "disabled"; - inherit: "default"; - text.style: "entry_textblock_guide_disabled_style"; - } - desc { "hidden"; - inherit: "default"; - hid; - } - } - textblock { "elm.text"; - mouse; - scale; - entry_mode: PLAIN; - select_mode: EXPLICIT; - cursor_mode: BEFORE; - multiline: 1; - source: "elm/entry/selection/default"; // selection under - source5: "elm/entry/anchor/default"; // anchor under - desc { "default"; - fixed: 1 0; - text { - style: "entry_textblock_style"; - min: 0 1; - align: 0.0 0.0; - } - } - desc { "focused"; - inherit: "default"; - text.style: "entry_textblock_focused_style"; - } - desc { "disabled"; - inherit: "default"; - text.style: "entry_textblock_disabled_style"; - } - } - } -} - -group { "elm/entry/base-noedit-charwrap/default"; - inherit: "elm/entry/base/template"; - parts { - textblock { "elm.guide"; - nomouse; - scale; - desc { "default"; - rel.to: "elm.text"; - text { - style: "entry_textblock_char_wrap_guide_style"; - min: 0 1; - align: 0.0 0.0; - } - } - desc { "focused"; - inherit: "default"; - text.style: "entry_textblock_char_wrap_guide_focused_style"; - } - desc { "disabled"; - inherit: "default"; - text.style: "entry_textblock_char_wrap_guide_disabled_style"; - } - desc { "hidden"; - inherit: "default"; - hid; - } - } - textblock { "elm.text"; - mouse; - scale; - entry_mode: PLAIN; - select_mode: EXPLICIT; - cursor_mode: BEFORE; - multiline: 1; - source: "elm/entry/selection/default"; // selection under - source5: "elm/entry/anchor/default"; // anchor under - desc { "default"; - fixed: 1 0; - text { - style: "entry_textblock_char_wrap_style"; - min: 0 1; - align: 0.0 0.0; - } - } - desc { "focused"; - inherit: "default"; - text.style: "entry_textblock_char_wrap_focused_style"; - } - desc { "disabled"; - inherit: "default"; - text.style: "entry_textblock_char_wrap_disabled_style"; - } - } - } -} - -group { "elm/entry/base-noedit-mixedwrap/default"; - inherit: "elm/entry/base/template"; - parts { - part { "elm.guide"; - type: TEXTBLOCK; - nomouse; - scale; - desc { "default"; - rel.to: "elm.text"; - text { - style: "entry_textblock_guide_style"; - min: 0 1; - align: 0.0 0.0; - } - } - desc { "focused"; - inherit: "default"; - text.style: "entry_textblock_guide_focused_style"; - } - desc { "disabled"; - inherit: "default"; - text.style: "entry_textblock_guide_disabled_style"; - } - desc { "hidden"; - inherit: "default"; - hid; - } - } - textblock { "elm.text"; - mouse; - scale; - entry_mode: PLAIN; - select_mode: EXPLICIT; - cursor_mode: BEFORE; - multiline: 1; - source: "elm/entry/selection/default"; // selection under - source5: "elm/entry/anchor/default"; // anchor under - desc { "default"; - fixed: 1 0; - text { - style: "entry_textblock_style"; - min: 0 1; - align: 0.0 0.0; - } - } - desc { "focused"; - inherit: "default"; - text.style: "entry_textblock_focused_style"; - } - desc { "disabled"; - inherit: "default"; - text.style: "entry_textblock_disabled_style"; - } - } - } -} - -group { "elm/entry/base-nowrap-noedit/default"; - inherit: "elm/entry/base/template"; - parts { - textblock { "elm.guide"; - type: TEXTBLOCK; - nomouse; - scale; - desc { "default"; - rel.to: "elm.text"; - text { - style: "entry_textblock_guide_style"; - min: 0 1; - align: 0.0 0.0; - } - } - desc { "focused"; - inherit: "default"; - text.style: "entry_textblock_guide_focused_style"; - } - desc { "disabled"; - inherit: "default"; - text.style: "entry_textblock_guide_disabled_style"; - } - desc { "hidden"; - inherit: "default"; - hid; - } - } - textblock { "elm.text"; - mouse; - scale; - entry_mode: PLAIN; - select_mode: EXPLICIT; - cursor_mode: BEFORE; - multiline: 1; - source: "elm/entry/selection/default"; // selection under - source5: "elm/entry/anchor/default"; // anchor under - desc { "default"; - text { - style: "entry_textblock_style"; - min: 1 1; - align: 0.0 0.0; - } - } - desc { "focused"; - inherit: "default"; - text.style: "entry_textblock_focused_style"; - } - desc { "disabled"; - inherit: "default"; - text.style: "entry_textblock_disabled_style"; - } - } - } -} - -group { "elm/entry/base-password/default"; - inherit: "elm/entry/base/template"; - parts { - textblock { "elm.guide"; - nomouse; - scale; - desc { "default"; - fixed: 1 1; - rel.to: "elm.text"; - text { - style: "entry_single_textblock_guide_style"; - min: 0 1; - max: 0 1; - } - } - desc { "focused"; - inherit: "default"; - text.style: "entry_single_textblock_guide_focused_style"; - } - desc { "disabled"; - inherit: "default"; - text.style: "entry_single_textblock_guide_disabled_style"; - } - desc { "hidden"; - inherit: "default"; - hid; - } - } - textblock { "elm.text"; - mouse; - scale; - entry_mode: PASSWORD; - select_mode: EXPLICIT; - cursor_mode: BEFORE; - multiline: 0; - source: "elm/entry/selection/default"; // selection under - source4: "elm/entry/cursor/default"; // cursorover - source5: "elm/entry/anchor/default"; // anchor under - desc { "default"; - text { - style: "entry_single_textblock_style"; - repch: "•"; - min: 1 1; - max: 0 1; - } - } - desc { "focused"; - inherit: "default"; - text.style: "entry_single_textblock_focused_style"; - } - desc { "disabled"; - inherit: "default"; - text.style: "entry_single_textblock_disabled_style"; - } - } - } -} - -group { "elm/entry/selection/default"; - parts { - rect { "bg"; - scale; - nomouse; - desc { "default"; - color: 0 221 255 153; - } - } - } -} - -group { "elm/entry/anchor/default"; - parts { - spacer { "bg"; - desc { "default"; } - } - } -} diff --git a/ElmSharp/theme/ivi/widgets/genlist.edc b/ElmSharp/theme/ivi/widgets/genlist.edc deleted file mode 100644 index 64399f6..0000000 --- a/ElmSharp/theme/ivi/widgets/genlist.edc +++ /dev/null @@ -1,208 +0,0 @@ -/* - * Copyright (c) 2010 Samsung Electronics Co., Ltd All Rights Reserved - * - * BSD 2-Clause License (http://www.opensource.org/licenses/bsd-license.php) - * - * Redistribution and use in source and binary forms, with or without - * modification, are permitted provided that the following conditions are met: - * - * 1. Redistributions of source code must retain the above copyright notice, this - * list of conditions and the following disclaimer. - * 2. Redistributions in binary form must reproduce the above copyright notice, - * this list of conditions and the following disclaimer in the documentation - * and/or other materials provided with the distribution. - * - * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND - * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED - * WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE - * DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR - * ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES - * (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; - * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND - * ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT - * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS - * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. - */ - -#define LIST_PROGRAM_SOUND \ - program { name: "play_sound"; \ - signal: "elm,state,clicked"; \ - source: "elm"; \ - script { \ - run_program(PROGRAM:"touch_sound"); \ - } \ - } \ - program { name: "touch_sound"; \ - action: RUN_PLUGIN "touch_sound"; \ - } - -group { "elm/genlist/item/event/default" - inherit_only: 1; - parts { - rect { "event"; nomouse; repeat; scale; - desc { "default"; - color: 0 0 0 0; - rel.to: "base"; - } - desc { "disabled"; - inherit: "default"; - hid; - } - } - } - programs { - /* Program for enabled event */ - program { "enabled"; - signal: "elm,state,enabled"; - source: "elm"; - action: STATE_SET "default"; - target: "event"; - after: "on_enabled"; - } - /* Program for disabled event */ - program { "disabled"; - signal: "elm,state,disabled"; - source: "elm"; - action: STATE_SET "disabled"; - target: "event"; - after: "on_disabled"; - } - program { "enable_event_pass"; - signal: "elm,event,pass,enabled"; - source: "elm"; - script { - set_mouse_events(PART:"event", 0); - } - } - program { "disable_event_pass"; - signal: "elm,event,pass,disabled"; - source:"elm"; - script { - set_mouse_events(PART:"event", 1); - } - } - program { "enable_event_repeat"; - signal: "elm,event,repeat,enabled"; - source: "elm"; - script { - set_repeat_events(PART:"event", 1); - } - } - program { "disable_event_repeat"; - signal: "elm,event,repeat,disabled"; - source:"elm"; - script { - set_repeat_events(PART:"event", 0); - } - } - } -} - -group { "elm/genlist/item/full/default"; - alias: "elm/genlist/item_compress/full/default"; - alias: "elm/genlist/tree/full/default"; - alias: "elm/genlist/tree_compress/full/default"; - inherit: "elm/genlist/item/event/default"; - - data.item: "banded_bg_area" "elm.swallow.bg"; - data.item: "contents" "elm.swallow.content"; - - parts { - spacer { "base"; scale; - desc { "default"; - } - } - - swallow { "elm.swallow.bg"; scale; - desc { "default"; - rel.to: "base"; - } - } - rect { "bg"; scale; - desc { "default"; - rel.to: "elm.swallow.bg"; - color_class: "genlist_item/full/bg"; - } - desc { "pressed"; inherit: "default"; - color_class: "genlist_item/full/bg"; - } - desc { "disabled"; inherit: "default"; - color_class: "genlist_item/full/bg"; - } - } - swallow { "elm.swallow.content"; scale; - desc { "default"; - rel1 { to: "bg"; relative: 0.0 0.0; } - rel2 { to: "bg"; relative: 1.0 1.0; } - } - } - rect { "elm.bottomline"; scale; - desc { "default"; - vis; - min: 0 LIST_BOTTOMLINE_HEIGHT; - max: -1 LIST_BOTTOMLINE_HEIGHT; - align: 0.5 0.0; - fixed: 0 1; - rel1.relative: 0.0 0.0; - rel2.relative: 1.0 0.0; - color_class: "genlist_item/full/bottomline"; - } - desc { "hidden"; inherit: "default"; - hid; - } - } - rect { "event"; - after: "elm.bottomline"; - desc { "default"; - rel.to: "base"; - } - desc { "disabled"; - inherit: "default"; - hid; - } - } - } - programs { - LIST_PROGRAM_SOUND - program { - signal: "elm,state,elm.swallow.bg,visible"; - source: "elm"; - action: STATE_SET "hidden"; - target: "elm.bottomline"; - } - program { - signal: "elm,state,elm.swallow.bg,hidden"; - source: "elm"; - action: STATE_SET "default"; - target: "elm.bottomline"; - } - program { "default"; - signal: "elm,state,default"; - source: "elm"; - action: STATE_SET "default"; - target: "bg"; - target: "elm.bottomline"; - target: "event"; - } - program { "pressed"; - signal: "elm,state,selected"; - source: "elm"; - action: STATE_SET "pressed"; - target: "bg"; - } - program { "unpressed"; - signal: "elm,state,unselected"; - source: "elm"; - action: STATE_SET "default"; - target: "bg"; - } - program { "on_enabled"; - action: STATE_SET "default"; - target: "bg"; - } - program { "on_disabled"; - action: STATE_SET "disabled"; - target: "bg"; - } - } -} diff --git a/ElmSharp/theme/ivi/widgets/label.edc b/ElmSharp/theme/ivi/widgets/label.edc deleted file mode 100644 index 5b11efd..0000000 --- a/ElmSharp/theme/ivi/widgets/label.edc +++ /dev/null @@ -1,722 +0,0 @@ -/* - * Copyright (c) 2010 Samsung Electronics Co., Ltd All Rights Reserved - * - * BSD 2-Clause License (http://www.opensource.org/licenses/bsd-license.php) - * - * Redistribution and use in source and binary forms, with or without - * modification, are permitted provided that the following conditions are met: - * - * 1. Redistributions of source code must retain the above copyright notice, this - * list of conditions and the following disclaimer. - * 2. Redistributions in binary form must reproduce the above copyright notice, - * this list of conditions and the following disclaimer in the documentation - * and/or other materials provided with the distribution. - * - * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND - * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED - * WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE - * DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR - * ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES - * (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; - * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND - * ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT - * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS - * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. - */ - -#define SLIDE_SPEED_WEIGHT 0.5 -#define SLIDE_TEXT_GAP 60 -#define SLIDE_TEXT_CHAR_GAP " " //60 (6 spaces) -#define SLIDE_TEXT_MAX_LENGTH (2*(1024+6)) - -styles { - style { "textblock_style"; - base: "font=Tizen:weight=Normal font_size="LABEL_FONT_SIZE_INC" color=#FFF color_class=label/default/text text_class=label"; - tag: "br" "\n"; - tag: "ps" "ps"; - tag: "hilight" "+ font_weight=Bold"; - tag: "b" "+ font_weight=Bold"; - tag: "tab" "\t"; - } - style { "textblock_charwrap_style"; - base: "font=Tizen:weight=Normal font_size="LABEL_FONT_SIZE_INC" color=#FFF color_class=label/default/text text_class=label"; - tag: "br" "\n"; - tag: "ps" "ps"; - tag: "hilight" "+ font_weight=Bold"; - tag: "b" "+ font_weight=Bold"; - tag: "tab" "\t"; - } - style { "textblock_style_marker"; - base: "font=Tizen:weight=Bold font_size=14 align=center color=#FFF wrap=word color_class=label/default/text text_class=tizen"; - tag: "br" "\n"; - tag: "ps" "ps"; - tag: "hilight" "+ font_weight=Bold"; - tag: "b" "+ font_weight=Bold"; - tag: "tab" "\t"; - } -} - -group { "elm/label/event/default"; - inherit_only: 1; - programs { - program { "start_slide"; - source: "elm"; - signal: "elm,state,slide,start"; - after: "on_start_slide"; - } - program { "stop_slide"; - source: "elm"; - signal: "elm,state,slide,stop"; - after: "on_stop_slide"; - } - } -} - -group { "elm/label/base/template"; - inherit: "elm/label/event/default"; - inherit_only: 1; - parts { - rect { "bg"; - desc { "default"; - color_class: "label/default/bg"; - } - } - rect { "clipper"; - desc { "default"; - } - } - textblock { "elm.text"; - scale; - clip: "clipper"; - desc { "default"; - text.style: "textblock_style"; - } - } - } - programs { - program { "on_start_slide"; - } - program { "on_stop_slide"; - } - } -} - -group { "elm/label/base/default"; - inherit: "elm/label/base/template"; - parts { - textblock { "elm.text"; - scale; - clip: "clipper"; - desc { "default"; - text { - style: "textblock_style"; - min: 0 1; - align: 0.0 0.0; - } - } - } - } -} - -/* default label doesn't use it */ -group { "elm/label/base_wrap/default"; - inherit: "elm/label/base/template"; - parts { - textblock { "elm.text"; - scale; - multiline: 1; - desc { "default"; - text { - style: "textblock_style"; - min: 0 1; - align: 0.0 0.0; - } - } - desc { "charwrap_mode"; - text { - style: "textblock_charwrap_style"; - min: 0 1; - align: 0.0 0.0; - } - } - } - } - programs { - program { "default"; - signal: "elm,state,default"; - source: "elm"; - action: STATE_SET "default"; - target: "elm.text"; - } - program { "charwrap"; - signal: "elm,state,charwrap"; - source: "elm"; - action: STATE_SET "charwrap_mode"; - target: "elm.text"; - } - } -} - -/* default label doesn't use it */ -group { "elm/label/base_wrap_ellipsis/default"; - inherit: "elm/label/base/template"; - parts { - textblock { "elm.text"; - scale; - multiline: 1; - desc { "default"; - fixed: 0 1; - text { - style: "textblock_style"; - min: 0 1; - align: 0.0 0.0; - } - } - desc { "charwrap_mode"; - fixed: 0 1; - text { - style: "textblock_charwrap_style"; - min: 0 1; - align: 0.0 0.0; - } - } - } - } - programs { - program { "default"; - signal: "elm,state,default"; - source: "elm"; - action: STATE_SET "default"; - target: "elm.text"; - } - program { "charwrap"; - signal: "elm,state,charwrap"; - source: "elm"; - action: STATE_SET "charwrap_mode"; - target: "elm.text"; - } - } -} - -group { "elm/label/base/slide_long"; - inherit: "elm/label/base/template"; - script { - public g_duration = 0, g_stopslide, g_timer_id, g_anim_id; - - public message(Msg_Type:type, id, ...) { - if (type == MSG_FLOAT_SET) { - new Float:duration; - duration = getfarg(2); - if (id == 0) - set_float(g_duration, duration); - else - set_float(g_duration, duration / LABEL_FONT_SIZE_INC * SLIDE_SPEED_WEIGHT); - } - } - public slide_to_end_anim(val, Float:pos) { - new stopflag; - new id; - stopflag = get_int(g_stopslide); - if (stopflag == 1) return; - set_tween_state(PART:"elm.text", pos, "slide_begin", 0.0, "slide_end", 0.0); - if (pos >= 1.0) { - id = timer(0.5, "slide_to_begin", 1); - set_int(g_timer_id, id); - } - } - public slide_to_end() { - new stopflag; - new id; - new Float:duration; - stopflag = get_int(g_stopslide); - if (stopflag == 1) return; - duration = get_float(g_duration); - id = anim(duration, "slide_to_end_anim", 1); - set_int(g_anim_id, id); - } - public slide_to_begin() { - new stopflag; - new id; - stopflag = get_int(g_stopslide); - if (stopflag == 1) return; - set_state(PART:"elm.text", "slide_begin", 0.0); - id = timer(0.5, "slide_to_end", 1); - set_int(g_timer_id, id); - } - public start_slide() { - set_int(g_stopslide, 0); - set_state(PART:"elm.text", "slide_begin", 0.0); - slide_to_end(); - } - public stop_slide() { - new id; - set_int(g_stopslide, 1); - id = get_int(g_anim_id); - cancel_anim(id); - id = get_int(g_timer_id); - cancel_timer(id); - set_state(PART:"elm.text", "default", 0.0); - } - } - parts { - rect { "bg"; - desc { "default"; - color_class: "label/slide_long/bg"; - } - } - textblock { "elm.text"; - scale; - clip: "clipper"; - desc { "default"; - align: 0.0 0.0; - text { - style: "textblock_style"; - min: 0 1; - align: 0.0 0.0; - } - } - desc { "slide_end"; - inherit: "default"; - rel2.relative: 0.0 1.0; - align: 1.0 0.0; - text { - style: "textblock_style"; - min: 1 1; - align: 0.0 0.0; - } - } - desc { "slide_begin"; - inherit: "default"; - rel1.relative: 1.0 0.0; - text { - style: "textblock_style"; - min: 1 1; - align: 0.0 0.0; - } - } - } - } - programs { - program { "on_start_slide"; - script { - start_slide(); - } - } - program { "on_stop_slide"; - script { - stop_slide(); - } - } - } -} - -group { "elm/label/base/slide_roll"; - inherit: "elm/label/base/template"; - script { - public g_duration = 0; - public g_stopslide = 0; - public g_timer_id = 0; - public g_anim_id = 0; - public g_tb_w = 0; - public g_tb_h = LABEL_FONT_SIZE_INC; - public org_text = 0; - public message(Msg_Type:type, id, ...) { - if (type == MSG_FLOAT_SET) { - new Float:duration; - duration = getfarg(2); - if (id == 0) - set_float(g_duration, duration); - else - set_float(g_duration, duration / get_int(g_tb_h) * SLIDE_SPEED_WEIGHT); - } - } - public get_tb_width() { - new x, y, w, h; - set_state(PART:"elm.text", "no_ellipsis", 0.0); - get_geometry(PART:"elm.text", x, y, w, h); - set_int(g_tb_w, w); - set_int(g_tb_h, h); - set_state(PART:"clipper_elm.text", "default", 0.0); - get_geometry(PART:"clipper_elm.text", x, y, w, h); - set_int(org_text, w); - } - public slide_to_end_anim(val, Float:pos) { - if (get_int(g_stopslide)) return; - set_tween_state(PART:"elm.text.slide", pos*0.5, "slide_begin", 0.0, "slide_end", 0.0); - if (pos >= 1.0) { - set_int(g_timer_id, timer(1.5, "start_slide", 0)); - } - } - public slide_to_end() { - if (get_int(g_stopslide)) return; - set_int(g_anim_id, anim(get_float(g_duration), "slide_to_end_anim", 0)); - } - public start_slide(val) { - new Float:len; - set_int(g_stopslide, 0); - get_tb_width(); - if (!get_float(g_duration)) { - len = get_int(g_tb_w); - set_float(g_duration, len / get_int(g_tb_h) * SLIDE_SPEED_WEIGHT); - } - if(get_int(g_tb_w) > get_int(org_text)) { - run_program(PROGRAM:"slide_text_set"); - set_state(PART:"elm.text.slide", "slide_begin", 0.0); - set_state(PART:"clipper_elm.text", "hide", 0.0); - set_state(PART:"clipper_elm.text.slide", "show", 0.0); - slide_to_end(); - } - } - public stop_slide() { - new slide_start_timer; - new slide_anim_id; - set_int(g_stopslide, 1); - set_float(g_duration, 0); - slide_start_timer = get_int(g_timer_id); - if (slide_start_timer) { - cancel_timer(slide_start_timer); - set_int(g_timer_id, 0); - } - slide_anim_id = get_int(g_anim_id); - if (slide_anim_id) { - cancel_anim(slide_anim_id); - set_int(g_anim_id, 0); - } - set_text(PART:"elm.text.slide", ""); - set_state(PART:"elm.text", "default", 0.0); - set_state(PART:"elm.text.slide", "default", 0.0); - set_state(PART:"clipper_elm.text", "default", 0.0); - set_state(PART:"clipper_elm.text.slide", "default", 0.0); - } - } - parts { - rect { "bg"; - desc { "default"; - color_class: "label/slide_roll/bg"; - } - } - rect { "clipper_elm.text"; - nomouse; - clip: "clipper"; - desc { "default"; - } - desc { "hide"; - inherit: "default"; - hid; - } - } - textblock { "elm.text"; - scale; - clip: "clipper_elm.text"; - desc { "default"; - align: 0.0 0.5; - text { - style: "textblock_style"; - min: 0 1; - } - } - desc { "no_ellipsis"; - inherit: "default"; - text.min: 1 1; - } - } - rect { "clipper_elm.text.slide"; - nomouse; - clip: "clipper"; - desc { "default"; - hid; - } - desc { "show"; - inherit: "default"; - vis; - } - } - spacer { "slide_text_gap"; - scale; - desc { "default"; - fixed: 1 0; - min: SLIDE_TEXT_GAP 0; - max: SLIDE_TEXT_GAP -1; - align: 1.0 0.5; - rel2.relative: 0.0 1.0; - } - } - textblock { "elm.text.slide"; - scale; - clip: "clipper_elm.text.slide"; - desc { "default"; - align: 0.0 0.5; - text { - style: "textblock_style"; - min: 0 1; - } - } - desc { "slide_begin"; - inherit: "default"; - text.min: 1 1; - rel2.relative: 0.0 1.0; - } - desc { "slide_end"; - inherit: "default"; - align: 1.0 0.5; - text.min: 1 1; - text.align: 1.0 0.5; - rel.to: "slide_text_gap"; - } - } - } - programs { - program { "slide_text_set"; - script { - new buf[1024]; - new buffer[SLIDE_TEXT_MAX_LENGTH]; - get_text(PART:"elm.text", buf, 1024); - snprintf(buffer, SLIDE_TEXT_MAX_LENGTH, "%s", buf); - strcat(buffer, SLIDE_TEXT_CHAR_GAP); - strcat(buffer, buf); - strcat(buffer, SLIDE_TEXT_CHAR_GAP); - set_text(PART:"elm.text.slide", buffer); - } - } - program { "on_start_slide"; - script { - run_program(PROGRAM:"stop_slide"); - set_int(g_timer_id, timer(1.5, "start_slide", 0)); - } - } - program { "on_stop_slide"; - script { - stop_slide(); - } - } - } -} - -group { "elm/label/base/slide_short"; - inherit: "elm/label/base/template"; - script { - public g_duration = 0, g_stopslide, g_timer_id, g_anim_id; - - public message(Msg_Type:type, id, ...) { - if (type == MSG_FLOAT_SET) { - new Float:duration; - duration = getfarg(2); - if (id == 0) - set_float(g_duration, duration); - else - set_float(g_duration, duration / LABEL_FONT_SIZE_INC * SLIDE_SPEED_WEIGHT); - } - } - public slide_to_end_anim(val, Float:pos) { - new stopflag; - new id; - stopflag = get_int(g_stopslide); - if (stopflag == 1) return; - set_tween_state(PART:"elm.text", pos, "slide_begin", 0.0, "slide_end", 0.0); - if (pos >= 1.0) { - id = timer(0.5, "slide_to_begin", 1); - set_int(g_timer_id, id); - } - } - public slide_to_end() { - new stopflag; - new id; - new Float:duration; - stopflag = get_int(g_stopslide); - if (stopflag == 1) return; - duration = get_float(g_duration); - id = anim(duration, "slide_to_end_anim", 1); - set_int(g_anim_id, id); - } - public slide_to_begin() { - new stopflag; - new id; - stopflag = get_int(g_stopslide); - if (stopflag == 1) return; - set_state(PART:"elm.text", "slide_begin", 0.0); - id = timer(0.5, "slide_to_end", 1); - set_int(g_timer_id, id); - } - public start_slide() { - set_int(g_stopslide, 0); - set_state(PART:"elm.text", "slide_begin", 0.0); - slide_to_end(); - } - public stop_slide() { - new id; - set_int(g_stopslide, 1); - id = get_int(g_anim_id); - cancel_anim(id); - id = get_int(g_timer_id); - cancel_timer(id); - set_state(PART:"elm.text", "default", 0.0); - } - } - parts { - rect { "bg"; - desc { "default"; - color_class: "label/slide_short/bg"; - } - } - textblock { "elm.text"; - scale; - clip: "clipper"; - desc { "default"; - align: 0.0 0.0; - text { - style: "textblock_style"; - min: 0 1; - align: 0.0 0.0; - } - } - desc { "slide_end"; - inherit: "default"; - rel1.relative: 1.0 0.0; - align: 1.0 0.0; - text { - style: "textblock_style"; - min: 1 1; - align: 0.0 0.0; - } - } - desc { "slide_begin"; - inherit: "default"; - rel2.relative: 0.0 1.0; - align: 0.0 0.0; - text { - style: "textblock_style"; - min: 1 1; - align: 0.0 0.0; - } - } - } - } - programs { - program { "on_start_slide"; - script { - start_slide(); - } - } - program { "on_stop_slide"; - script { - stop_slide(); - } - } - } -} - -group { "elm/label/base/slide_bounce"; - inherit: "elm/label/base/template"; - script { - public g_duration = 0, g_stopslide, g_timer_id, g_anim_id; - - public message(Msg_Type:type, id, ...) { - if (type == MSG_FLOAT_SET) { - new Float:duration; - duration = getfarg(2); - if (id == 0) - set_float(g_duration, duration); - else - set_float(g_duration, duration / LABEL_FONT_SIZE_INC * SLIDE_SPEED_WEIGHT); - } - } - public slide_to_end_anim(val, Float:pos) { - new stopflag; - new id; - stopflag = get_int(g_stopslide); - if (stopflag == 1) return; - set_tween_state(PART:"elm.text", pos, "slide_begin", 0.0, "slide_end", 0.0); - if (pos >= 1.0) { - id = timer(0.5, "slide_to_begin", 1); - set_int(g_timer_id, id); - } - } - public slide_to_end() { - new stopflag; - new id; - new Float:duration; - stopflag = get_int(g_stopslide); - if (stopflag == 1) return; - duration = get_float(g_duration); - id = anim(duration, "slide_to_end_anim", 1); - set_int(g_anim_id, id); - } - public slide_to_begin_anim(val, Float:pos) { - new stopflag; - new id; - stopflag = get_int(g_stopslide); - if (stopflag == 1) return; - set_tween_state(PART:"elm.text", pos, "slide_end", 0.0, "slide_begin", 0.0); - if (pos >= 1.0) { - id = timer(0.5, "slide_to_end", 1); - set_int(g_timer_id, id); - } - } - public slide_to_begin() { - new stopflag; - new id; - new Float:duration; - stopflag = get_int(g_stopslide); - if (stopflag == 1) return; - duration = get_float(g_duration); - id = anim(duration, "slide_to_begin_anim", 1); - set_int(g_anim_id, id); - } - public start_slide() { - set_int(g_stopslide, 0); - set_state(PART:"elm.text", "slide_begin", 0.0); - slide_to_end(); - } - public stop_slide() { - new id; - set_int(g_stopslide, 1); - id = get_int(g_anim_id); - cancel_anim(id); - id = get_int(g_timer_id); - cancel_timer(id); - set_state(PART:"elm.text", "default", 0.0); - } - } - parts { - rect { "bg"; - desc { "default"; - color_class: "label/slide_bounce/bg"; - } - } - textblock { "elm.text"; - scale; - clip: "clipper"; - desc { "default"; - align: 0.0 0.0; - text { - style: "textblock_style"; - min: 0 1; - align: 0.0 0.0; - } - } - desc { "slide_end"; - inherit: "default"; - rel1.relative: 1.0 0.0; - align: 1.0 0.0; - text.min: 1 1; - } - desc { "slide_begin"; - inherit: "default"; - rel2.relative: 0.0 1.0; - text.min: 1 1; - } - } - } - programs { - program { "on_start_slide"; - script { - start_slide(); - } - } - program { "on_stop_slide"; - script { - stop_slide(); - } - } - } -} diff --git a/ElmSharp/theme/ivi/widgets/layout.edc b/ElmSharp/theme/ivi/widgets/layout.edc deleted file mode 100644 index 4268a9f..0000000 --- a/ElmSharp/theme/ivi/widgets/layout.edc +++ /dev/null @@ -1,40 +0,0 @@ -/* - * Copyright (c) 2010 Samsung Electronics Co., Ltd All Rights Reserved - * - * BSD 2-Clause License (http://www.opensource.org/licenses/bsd-license.php) - * - * Redistribution and use in source and binary forms, with or without - * modification, are permitted provided that the following conditions are met: - * - * 1. Redistributions of source code must retain the above copyright notice, this - * list of conditions and the following disclaimer. - * 2. Redistributions in binary form must reproduce the above copyright notice, - * this list of conditions and the following disclaimer in the documentation - * and/or other materials provided with the distribution. - * - * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND - * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED - * WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE - * DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR - * ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES - * (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; - * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND - * ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT - * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS - * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. - */ - -group { "elm/layout/background/default"; - parts { - rect { "bg"; - scale; - desc { "default"; - color_class: "layout/background/bg"; - } - } - swallow { "elm.swallow.content"; - scale; - desc { "default"; } - } - } -} diff --git a/ElmSharp/theme/ivi/widgets/radio.edc b/ElmSharp/theme/ivi/widgets/radio.edc deleted file mode 100644 index 9ddf30f..0000000 --- a/ElmSharp/theme/ivi/widgets/radio.edc +++ /dev/null @@ -1,559 +0,0 @@ -/* - * Copyright (c) 2015 Samsung Electronics Co., Ltd All Rights Reserved - * - * BSD 2-Clause License (http://www.opensource.org/licenses/bsd-license.php) - * - * Redistribution and use in source and binary forms, with or without - * modification, are permitted provided that the following conditions are met: - * - * 1. Redistributions of source code must retain the above copyright notice, this - * list of conditions and the following disclaimer. - * 2. Redistributions in binary form must reproduce the above copyright notice, - * this list of conditions and the following disclaimer in the documentation - * and/or other materials provided with the distribution. - * - * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND - * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED - * WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE - * DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR - * ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES - * (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; - * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND - * ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT - * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS - * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. - */ -#define STYLE_TAGS \ - tag: "br" "\n";\ - tag: "ps" "ps";\ - tag: "tab" "\t";\ - tag: "b" "+ font_weight=Bold"; - -styles{ - style { name: "radio_default"; - base: "color=#000000FF font=Tizen:weight=Light font_size=40 text_class=tizen ellipsis=1.0"; - STYLE_TAGS - } - style { name: "radio_default_dim"; - base: "color=#000000A3 font=Tizen:weight=Light font_size=40 text_class=tizen ellipsis=1.0"; - STYLE_TAGS - } - style { name: "radio_default_press"; - base: "color=#000000FF font=Tizen:weight=Light font_size=40 text_class=tizen ellipsis=1.0"; - STYLE_TAGS - } -} -#undef STYLE_TAGS - -group { "elm/radio/event/default"; - inherit_only: 1; - parts { - rect { "event"; - mouse; - desc { "default"; - color: 0 0 0 0 ; - rel.to: "base"; - } - desc { "disabled"; - inherit: "default"; - hid; - } - } - } - programs { - program { "clicked"; - signal: "mouse,clicked,1"; - source: "event"; - action: SIGNAL_EMIT "elm,action,click" ""; - after: "on_clicked"; - } - program { "pressed"; - signal: "mouse,down,1*"; - source: "event"; - action: SIGNAL_EMIT "elm,action,press" ""; - after: "on_pressed"; - } - program { "unpressed"; - signal: "mouse,up,1"; - source: "event"; - action: SIGNAL_EMIT "elm,action,unpress" ""; - after: "on_unpressed"; - } - program { "set_radio"; - signal: "elm,state,radio,on"; - source: "elm"; - after: "on_set_radio"; - } - program { "unset_radio"; - signal: "elm,state,radio,off"; - source: "elm"; - after: "on_unset_radio"; - } - program { "disabled"; - signal: "elm,state,disabled"; - source: "elm"; - after: "on_disabled"; - } - program { "enabled"; - signal: "elm,state,enabled"; - source: "elm"; - after: "on_enabled"; - } - program { "enable_event_pass"; - signal: "elm,event,pass,enabled"; - source: "elm"; - script { - set_mouse_events(PART:"event", 0); - } - } - program { "disable_event_pass"; - signal: "elm,event,pass,disabled"; - source: "elm"; - script { - set_mouse_events(PART:"event", 1); - } - } - program { "enable_event_repeat"; - signal: "elm,event,repeat,enabled"; - source: "elm"; - script { - set_repeat_events(PART:"event", 1); - } - } - program { "disable_event_repeat"; - signal: "elm,event,repeat,disabled"; - source: "elm"; - script { - set_repeat_events(PART:"event", 0); - } - } - } -} -group { "elm/radio/base/template"; - parts { - spacer { "base"; - desc { "default"; - } - } - } - inherit: "elm/radio/event/default"; - programs { - program { "on_clicked"; - } - program { "on_pressed"; - } - program { "on_unpressed"; - } - program { "on_disabled"; - } - program { "on_enabled"; - } - program { "on_set_radio"; - } - program { "on_unset_radio"; - } - } -} -group { "elm/radio/base/default"; - images{ - vector: core_radio_stroke.svg; - vector: core_radio_icon.svg; - vector: core_radio_bg_01.svg; - vector: core_radio_bg_02.svg; - vector: core_radio_white_bg.svg; - } - nomouse; - target_group: "vector_group" "clipper_bg_vector" "clipper_icon" "clipper_icon_inner" "clipper_icon_outer" "clipper_icon_stroke"; - parts { - spacer { "base"; - scale; - desc { "default"; - min: RADIO_DEFAULT_SIZE_INC; - } - } - //bg shape - vector { "bg_vector"; - scale; - clip: "clipper_bg_vector"; - desc { "default"; - image.normal: "core_radio_white_bg.svg"; - min: RADIO_DEFAULT_SIZE_INC; - rel1.relative: 0 0.5; - rel2.relative: 0 0.5; - align: 0 0.5; - fixed: 1 1; - } - } - rect { "clipper_bg_vector"; - desc { "default"; - color_class: "radio/default/bg"; - } - desc { "on"; - color_class: "radio/default/bg_border_on"; - } - desc { "off"; - inherit: "default"; - } - desc { "disabled_on"; - color_class: "radio/default/bg_border_on_disabled"; - } - desc { "disabled_off"; - color_class: "radio/default/bg_disabled"; - } - } - vector { "icon"; - scale; - clip: "clipper_icon"; - desc { "default"; - image.normal: "core_radio_icon.svg"; - rel1.to: "bg_vector"; - rel2.to: "bg_vector"; - } - } - rect { "clipper_icon"; - desc { "default"; - color: 250 250 250 0; - } - desc { "on"; - color_class: "radio/default/bg_on" ; - } - desc { "off"; - inherit: "default"; - } - desc { "disabled_off"; - inherit: "default"; - } - desc { "disabled_on"; - color_class: "radio/default/bg_on_disabled" ; - } - } - vector { "icon_inner"; - scale; - clip: "clipper_icon_inner"; - desc { "default"; - image.normal: "core_radio_bg_01.svg"; - rel.to: "bg_vector"; - } - } - rect { "clipper_icon_inner"; - desc { "default"; - rel1.relative: 0.5 0.5; - rel2.relative: 0.5 0.5; - rel.to: "bg_vector"; - } - desc { "on"; - rel.to: "bg_vector"; - color_class: "radio/default/icon"; - } - desc { "off"; - inherit: "default"; - } - desc { "disabled_off"; - inherit: "default"; - } - desc { "disabled_on"; - rel.to: "bg_vector"; - color_class: "radio/default/icon_disabled"; - } - } - vector { "icon_outer"; - scale; - clip: "clipper_icon_outer"; - desc { "default"; - image.normal: "core_radio_bg_02.svg"; - rel1.to: "bg_vector"; - rel2.to: "bg_vector"; - } - } - rect { "clipper_icon_outer"; - desc { "default"; - color: 61 185 204 0; - } - desc { "on"; - color_class: "radio/default/icon"; - } - desc { "off"; - inherit: "default"; - } - desc { "disabled_off"; - inherit: "default"; - } - desc { "disabled_on"; - color_class: "radio/default/icon_disabled"; - } - } - vector { "icon_stroke"; - scale; - clip: "clipper_icon_stroke"; - desc { "default"; - image.normal: "core_radio_stroke.svg"; - rel1.to: "bg_vector"; - rel2.to: "bg_vector"; - } - } - rect { "clipper_icon_stroke"; - desc { "default"; - color_class: "radio/default/stroke"; - } - desc { "on"; - color: 61 185 204 0; - } - desc { "off"; - inherit: "default"; - } - desc { "disabled_off"; - color_class: "radio/default/stroke_disabled"; - } - desc { "disabled_on"; - inherit: "on"; - } - } - spacer { "padding_before_text"; - scale; - desc { "default"; - align: 0.0 0.5; - min: 0 0; - rel1 { - to: "bg_vector"; - relative: 1.0 0.0; - } - rel2 { - to: "bg_vector"; - relative: 1.0 1.0; - } - } - desc { "visible"; - inherit: "default" 0.0; - min: RADIO_PAD_BEFORE_TEXT_INC; - fixed: 1 1; - } - } - textblock { "elm.text"; - scale; - desc { "default"; - hid; - fixed: 0 1; - rel1 { - relative: 1.0 0.5; - to_x: "padding_before_text"; - } - rel2 { - relative: 1.0 0.5; - } - align: 0.0 0.5; - text { - style: "radio_default"; - min: 0 0; - } - } - desc { "visible"; - inherit: "default" 0.0; - vis; - text.min: 0 1; - } - desc { "disabled"; - inherit: "default" 0.0; - vis; - text { - style: "radio_default_dim"; - min: 0 1; - } - } - desc { "pressed"; - inherit: "default" 0.0; - vis; - text { - style: "radio_default_press"; - min: 0 1; - } - } - } - } - inherit: "elm/radio/event/default"; - script { - public radio_state; - public disabled; - public text; - public animate = 0; - } - programs { - program { "on_clicked"; - script { - if (get_int(disabled) == 1) return; - emit("elm,action,radio,toggle", ""); - run_program(PROGRAM:"touch_sound"); - } - } - program { "on_pressed"; - script { - if (get_int(disabled) == 1) return; - if (get_int(text) == 1) { - set_state(PART:"elm.text", "pressed", 0.0); - } - } - } - program { "on_unpressed"; - script { - if (get_int(disabled) == 1) return; - if (get_int(radio_state) == 1) { - run_program(PROGRAM:"toggle_on_without_effect"); - }else { - run_program(PROGRAM:"toggle_off_without_effect"); - } - if (get_int(text) == 1) { - set_state(PART:"elm.text", "visible", 0.0); - } - } - } - program { "on_disabled"; - script { - set_int(disabled, 1); - if (get_int(radio_state) == 1) { - run_program(PROGRAM:"toggle_disabled_on_without_effect"); - }else { - run_program(PROGRAM:"toggle_disabled_off_without_effect"); - } - if (get_int(text) == 1) { - set_state(PART:"elm.text", "disabled", 0.0); - } - } - } - program { "on_enabled"; - script { - set_int(disabled, 0); - if (get_int(radio_state) == 1) { - run_program(PROGRAM:"toggle_on_without_effect"); - } else { - run_program(PROGRAM:"toggle_off_without_effect"); - } - if (get_int(text) == 1) { - set_state(PART:"elm.text", "visible", 0.0); - } - } - } - program { "on_set_radio"; - script { - if (get_int(disabled) == 1) { - if (get_int(animate) == 0) { - run_program(PROGRAM:"toggle_disabled_on_without_effect"); - } else { - run_program(PROGRAM:"toggle_disabled_on_with_effect"); - } - }else { - if (get_int(animate) == 0) { - run_program(PROGRAM:"toggle_on_without_effect"); - emit("elm,radio,state,toggle", "tizen_vg"); - } else { - run_program(PROGRAM:"toggle_on_with_effect"); - emit("elm,radio,action,toggle", "tizen_vg"); - } - } - set_int(animate, 0); - set_int(radio_state, 1); - } - } - program { "on_unset_radio"; - script { - if (get_int(disabled) == 1) { - if (get_int(animate) == 0) { - run_program(PROGRAM:"toggle_disabled_off_without_effect"); - } else { - run_program(PROGRAM:"toggle_disabled_off_with_effect"); - } - }else { - if (get_int(animate) == 0) { - run_program(PROGRAM:"toggle_off_without_effect"); - emit("elm,radio,state,toggle", "tizen_vg"); - } else { - run_program(PROGRAM:"toggle_off_with_effect"); - emit("elm,radio,action,toggle", "tizen_vg"); - } - } - set_int(animate, 0); - set_int(radio_state, 0); - } - } - program { "touch_sound"; - action: RUN_PLUGIN "touch_sound"; - } - program { "activate_animate_radio"; - signal: "elm,activate,radio,on"; - source: "elm"; - script { - set_int(animate, 1); - } - } - program { "deactivate_animate_radio"; - signal: "elm,activate,radio,off"; - source: "elm"; - script { - set_int(animate, 1); - } - } - program { "toggle_on_with_effect"; - action: STATE_SET "on"; - transition: DECELERATE 0.3; - target_groups: "vector_group"; - after: "finished_animation"; - } - program { "toggle_off_with_effect"; - action: STATE_SET "default"; - target_groups: "vector_group"; - transition: DECELERATE 0.3; - after: "finished_animation"; - } - program { "toggle_disabled_on_with_effect"; - action: STATE_SET "disabled_on"; - target_groups: "vector_group"; - transition: DECELERATE 0.3; - after: "finished_animation"; - } - program { "toggle_disabled_off_with_effect"; - action: STATE_SET "disabled_off"; - target_groups: "vector_group"; - transition: DECELERATE 0.3; - after: "finished_animation"; - } - program { "toggle_on_without_effect"; - action: STATE_SET "on"; - target_groups: "vector_group"; - } - program { "toggle_off_without_effect"; - action: STATE_SET "default"; - target_groups: "vector_group"; - } - program { "toggle_disabled_on_without_effect"; - action: STATE_SET "disabled_on"; - target_groups: "vector_group"; - } - program { "toggle_disabled_off_without_effect"; - action: STATE_SET "disabled_off"; - target_groups: "vector_group"; - } - program { "finished_animation"; - action: SIGNAL_EMIT "animation,finished" ""; - } - program { "visible_text"; - signal: "elm,state,text,visible"; - source: "elm"; - script { - set_int(text, 1); - set_state(PART:"padding_before_text", "visible", 0.0); - if (get_int(disabled) == 1) { - set_state(PART:"elm.text", "disabled", 0.0); - }else { - set_state(PART:"elm.text", "visible", 0.0); - } - } - } - program { "hidden_text"; - signal: "elm,state,text,hidden"; - source: "elm"; - script { - set_int(text, 0); - set_state(PART:"padding_before_text", "default", 0.0); - set_state(PART:"elm.text", "default", 0.0); - } - } - } -} diff --git a/ElmSharp/theme/mobile/HD-inc.edc b/ElmSharp/theme/mobile/HD-inc.edc deleted file mode 100644 index 4af4422..0000000 --- a/ElmSharp/theme/mobile/HD-inc.edc +++ /dev/null @@ -1,81 +0,0 @@ -/* - * Copyright (c) 2015 Samsung Electronics Co., Ltd All Rights Reserved - * - * BSD 2-Clause License (http://www.opensource.org/licenses/bsd-license.php) - * - * Redistribution and use in source and binary forms, with or without - * modification, are permitted provided that the following conditions are met: - * - * 1. Redistributions of source code must retain the above copyright notice, this - * list of conditions and the following disclaimer. - * 2. Redistributions in binary form must reproduce the above copyright notice, - * this list of conditions and the following disclaimer in the documentation - * and/or other materials provided with the distribution. - * - * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND - * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED - * WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE - * DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR - * ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES - * (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; - * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND - * ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT - * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS - * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. - */ - -//****************************************************************************// -// This file defines the width, height (not color!) for each widgets -// We can define different INC file by Resolution (HD, qHD, WVGA, HVGA) -// -// ************* Naming Rule ************ // -// {WIDGET}_{GROUP}_{PART}_{STATE}_{TYPE} -// WIDGET: NAVIFRAME, LIST, DATETIME, POPUP, etc. -// GROUP: INDEX -// PART: TEXT, ICON, BG, PADDING, DIVIDER, ICON, etc. -// STATE: LEFT, RIGHT, TOP, BOTTOM, MIN, MAX, -// TYPE: HEIGHT, WIDTH, SIZE -// e.g. LIST_PADDING_LEFT_HEIGHT -//****************************************************************************// - -#define BASE_SCALE_INC 2.6 - -//****************************************************************************// -// Colorselector -//****************************************************************************// -#define COLORSELECTOR_PALETTE_COLORPLANE_HEIGHT_INC 238 -#define COLORSELECTOR_PALETTE_COLORPLANE_WIDTH_INC 678 -#define COLORSELECTOR_PORTRAIT_HOR_PAD_COLORPLANE_INC "8" -#define COLORSELECTOR_PORTRAIT_VER_PAD_COLORPLANE_INC "8" -#define COLORSELECTOR_TOPBOTTOM_PAD_COLORPLANE_INC 24 - -//****************************************************************************// -// Entry -//****************************************************************************// -#define ENTRY_PREEDIT_BACKGROUND_COLOR_INC "#000000" -#define ENTRY_PREEDIT_HIGHLIGHT_BACKGROUND_COLOR_INC "#8bd8ff99" -#define ENTRY_PREEDIT_TEXT_COLOR_INC "#FAFAFA" -#define ENTRY_PREEDIT_UNDERLINE_COLOR_INC "#000000" -#define ENTRY_PREEDIT_SUB1_COLOR_INC "#2EA8E1" -#define ENTRY_PREEDIT_SUB2_COLOR_INC "#9962C3" -#define ENTRY_PREEDIT_SUB3_COLOR_INC "#76DE37" -#define ENTRY_PREEDIT_SUB4_COLOR_INC "#999999" -#define ENTRY_LEFT_RIGHT_MARGIN_INC 5 -#define ENTRY_FONT_SIZE_INC 40 -#define ENTRY_CURSOR_SIZE_INC 3 0 - -//****************************************************************************// -// Label -//****************************************************************************// -#define LABEL_FONT_SIZE_INC 24 - -//****************************************************************************// -// RADIO -//****************************************************************************// -#define RADIO_DEFAULT_SIZE_INC 50 50 -#define RADIO_PAD_BEFORE_TEXT_INC 32 0 - -//****************************************************************************// -// GENLIST -//****************************************************************************// -#define LIST_BOTTOMLINE_HEIGHT 2 diff --git a/ElmSharp/theme/mobile/HD/images/Assist_Views/README b/ElmSharp/theme/mobile/HD/images/Assist_Views/README deleted file mode 100644 index 1746a11..0000000 --- a/ElmSharp/theme/mobile/HD/images/Assist_Views/README +++ /dev/null @@ -1 +0,0 @@ -This is reserved directory for mobile images. Please delete this file when any file is added. diff --git a/ElmSharp/theme/mobile/HD/images/Navigation_elements/README b/ElmSharp/theme/mobile/HD/images/Navigation_elements/README deleted file mode 100644 index f267efa..0000000 --- a/ElmSharp/theme/mobile/HD/images/Navigation_elements/README +++ /dev/null @@ -1 +0,0 @@ -This is reserved space for mobile images. Please erase this file if any image is added. diff --git a/ElmSharp/theme/mobile/HD/images/User_Input_Elements/core_radio_bg_01.svg b/ElmSharp/theme/mobile/HD/images/User_Input_Elements/core_radio_bg_01.svg deleted file mode 100755 index a903fc2..0000000 --- a/ElmSharp/theme/mobile/HD/images/User_Input_Elements/core_radio_bg_01.svg +++ /dev/null @@ -1,8 +0,0 @@ - - - - - - diff --git a/ElmSharp/theme/mobile/HD/images/User_Input_Elements/core_radio_bg_02.svg b/ElmSharp/theme/mobile/HD/images/User_Input_Elements/core_radio_bg_02.svg deleted file mode 100755 index 4bf9638..0000000 --- a/ElmSharp/theme/mobile/HD/images/User_Input_Elements/core_radio_bg_02.svg +++ /dev/null @@ -1,9 +0,0 @@ - - - - - - diff --git a/ElmSharp/theme/mobile/HD/images/User_Input_Elements/core_radio_icon.svg b/ElmSharp/theme/mobile/HD/images/User_Input_Elements/core_radio_icon.svg deleted file mode 100755 index 3170adc..0000000 --- a/ElmSharp/theme/mobile/HD/images/User_Input_Elements/core_radio_icon.svg +++ /dev/null @@ -1,7 +0,0 @@ - - - - - - diff --git a/ElmSharp/theme/mobile/HD/images/User_Input_Elements/core_radio_stroke.svg b/ElmSharp/theme/mobile/HD/images/User_Input_Elements/core_radio_stroke.svg deleted file mode 100755 index 9a8fdab..0000000 --- a/ElmSharp/theme/mobile/HD/images/User_Input_Elements/core_radio_stroke.svg +++ /dev/null @@ -1,8 +0,0 @@ - - - - - - diff --git a/ElmSharp/theme/mobile/HD/images/User_Input_Elements/core_radio_white_bg.svg b/ElmSharp/theme/mobile/HD/images/User_Input_Elements/core_radio_white_bg.svg deleted file mode 100755 index 054a779..0000000 --- a/ElmSharp/theme/mobile/HD/images/User_Input_Elements/core_radio_white_bg.svg +++ /dev/null @@ -1,8 +0,0 @@ - - - - - - diff --git a/ElmSharp/theme/mobile/color_classes.edc b/ElmSharp/theme/mobile/color_classes.edc deleted file mode 100644 index d10c93b..0000000 --- a/ElmSharp/theme/mobile/color_classes.edc +++ /dev/null @@ -1,101 +0,0 @@ -color_classes { - /* - * Layout - */ - color_class { - name: "layout/background/bg"; - color: 0 0 0 0; - } - /* - * Colorselector - */ - color_class { - name: "colorselector/default/bg"; - color: 250 250 250 255; - } - /* - * Entry - */ - color_class { "entry/default/text_edit"; - color: 0 0 0 255; - } - color_class { "entry/default/text_edit_focused"; - color: 0 0 0 255; - } - color_class { "entry/default/text_edit_disabled"; - color: 0 0 0 110; - } - color_class { "entry/default/text_guide"; - color: 0 0 0 145; - } - color_class { "entry/default/text_guide_focused"; - color: 0 0 0 145; - } - color_class { "entry/default/text_guide_disabled"; - color: 0 0 0 110; - } - color_class { - name: "entry/default/bg"; - color: 0 0 0 0; - } - color_class { "entry/default/cursor"; - color: 0 184 230 110; - } - /* - * Label - */ - color_class { - name: "label/default/bg"; - color: 0 0 0 0; - } - color_class { - name: "label/slide_long/bg"; - color: 0 0 0 0; - } - color_class { - name: "label/slide_short/bg"; - color: 0 0 0 0; - } - color_class { - name: "label/slide_roll/bg"; - color: 0 0 0 0; - } - color_class { - name: "label/slide_bounce/bg"; - color: 0 0 0 0; - } - - /* - * Radio - */ - color_class { "radio/default/icon"; - color: 61 185 204 255; - } - color_class { "radio/default/bg"; - color: 250 250 250 51; - } - color_class { "radio/default/icon_disabled"; - color: 61 185 204 77; - } - color_class { "radio/default/bg_disabled"; - color: 250 250 250 38; - } - color_class { "radio/default/bg_border_on"; - color: 250 250 250 77; - } - color_class { "radio/default/bg_border_on_disabled"; - color: 250 250 250 38; - } - color_class { "radio/default/stroke"; - color: 61 185 204 255; - } - color_class { "radio/default/stroke_disabled"; - color: 61 185 204 77; - } - color_class { "radio/default/bg_on"; - color: 250 250 250 255; - } - color_class { "radio/default/bg_on_disabled"; - color: 250 250 250 255; - } -} diff --git a/ElmSharp/theme/mobile/elm-sharp-theme-mobile.edc b/ElmSharp/theme/mobile/elm-sharp-theme-mobile.edc deleted file mode 100644 index b4f11b9..0000000 --- a/ElmSharp/theme/mobile/elm-sharp-theme-mobile.edc +++ /dev/null @@ -1,94 +0,0 @@ -/* - * Copyright (c) 2015 Samsung Electronics Co., Ltd All Rights Reserved - * - * BSD 2-Clause License (http://www.opensource.org/licenses/bsd-license.php) - * - * Redistribution and use in source and binary forms, with or without - * modification, are permitted provided that the following conditions are met: - * - * 1. Redistributions of source code must retain the above copyright notice, this - * list of conditions and the following disclaimer. - * 2. Redistributions in binary form must reproduce the above copyright notice, - * this list of conditions and the following disclaimer in the documentation - * and/or other materials provided with the distribution. - * - * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND - * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED - * WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE - * DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR - * ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES - * (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; - * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND - * ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT - * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS - * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. - */ - -// LICENSE NOTE: -// This file (and only this one) is licenses under public-domain. The reason -// is that this is meant to serve as a template for making your own themes and -// Elementary's LGPL license is not intended to follow. The images used do come -// under LGPL, but this file specifically for the structure of your theme is -// public-domain. This means you can take, use, re-license and otherwise -// have zero restrictions on using this file as a base for your theme. - -//****************************************************************************************// -// This is theme body including all widget bodys -// Define shared descriptions (e.g. sound samples, color classes, textblock styles) in here -// Do not define size(width, height) in here!!!! -//****************************************************************************************// - -// Include INC (e.g. HD-inc.edc, HVGA-inc.edc for each resolution) file -#include "HD-inc.edc" - -externals { - external: "elm"; -} - -// BUILD_FIX: Add version to edc as 110. -data.item: "version" "110"; -// - -collections { - base_scale: BASE_SCALE_INC; - plugins { - plugin { - name: "touch_sound"; - source: "feedback"; - param: "FEEDBACK_TYPE_SOUND FEEDBACK_PATTERN_TAP"; // FEEDBACK_TYPE_SOUND, FEEDBACK_PATTERN_TOUCH_TAP - - /* 2014.06.11 updated from libsvi(feedback) - Above plugin will run below external function: - int feedback_play_type(feedback_type_e type, feedback_pattern_e pattern); - - param1: feedback_type_e - FEEDBACK_TYPE_NONE = 0, - FEEDBACK_TYPE_SOUND = 1, - FEEDBACK_TYPE_VIBRATION, - FEEDBACK_TYPE_LED, - FEEDBACK_TYPE_END - - * param2 enumeration: - FEEDBACK_PATTERN_TAP = 0, - FEEDBACK_PATTERN_SIP, - FEEDBACK_PATTERN_SIP_BACKSPACE, - FEEDBACK_PATTERN_SIP_FUNCTION, - FEEDBACK_PATTERN_SIP_FJKEY, - ... - - * For more information please refer libsvi. - */ - } - } - -#include "color_classes.edc" - -#include "widgets/colorselector.edc" -#include "widgets/entry.edc" -#include "widgets/genlist.edc" -#include "widgets/label.edc" -#include "widgets/radio.edc" -#include "widgets/layout.edc" - -} - diff --git a/ElmSharp/theme/mobile/widgets/colorselector.edc b/ElmSharp/theme/mobile/widgets/colorselector.edc deleted file mode 100644 index 4ac5725..0000000 --- a/ElmSharp/theme/mobile/widgets/colorselector.edc +++ /dev/null @@ -1,91 +0,0 @@ -/* - * Copyright (c) 2010 Samsung Electronics Co., Ltd All Rights Reserved - * - * BSD 2-Clause License (http://www.opensource.org/licenses/bsd-license.php) - * - * Redistribution and use in source and binary forms, with or without - * modification, are permitted provided that the following conditions are met: - * - * 1. Redistributions of source code must retain the above copyright notice, this - * list of conditions and the following disclaimer. - * 2. Redistributions in binary form must reproduce the above copyright notice, - * this list of conditions and the following disclaimer in the documentation - * and/or other materials provided with the distribution. - * - * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND - * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED - * WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE - * DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR - * ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES - * (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; - * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND - * ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT - * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS - * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. - */ - -group { "elm/colorselector/palette/colorplane"; - alias: "elm/colorselector/palette/default"; - data.item: "horizontal_pad" COLORSELECTOR_PORTRAIT_HOR_PAD_COLORPLANE_INC; - data.item: "vertical_pad" COLORSELECTOR_PORTRAIT_VER_PAD_COLORPLANE_INC; - - parts { - spacer { "base"; - scale; - desc { "default"; - min: COLORSELECTOR_PALETTE_COLORPLANE_WIDTH_INC COLORSELECTOR_PALETTE_COLORPLANE_HEIGHT_INC; - max: -1 -1; - } - } - rect { "bg"; - nomouse; - desc { "default"; - rel.to: "base"; - color_class: "colorselector/default/bg"; - } - } - spacer { "padding_top"; - scale; - desc { "default"; - min: 0 COLORSELECTOR_TOPBOTTOM_PAD_COLORPLANE_INC; - fixed: 0 1; - rel1 { - relative: 0.0 0.0; - to: "base"; - } - rel2 { - relative: 1.0 0.0; - to: "base"; - } - align: 0.0 0.0; - } - } - swallow { "palette"; - scale; - mouse; - desc { state: "default"; - align: 0.5 0.0; - fixed: 0 1; - rel1 { - relative: 0.0 1.0; - to_y: "padding_top"; - } - rel2.to_y: "padding_top"; - } - } - spacer { "padding_palette"; - scale; - desc { "default"; - min: 0 COLORSELECTOR_TOPBOTTOM_PAD_COLORPLANE_INC; - fixed: 0 1; - rel1 { - relative: 0.0 1.0; - to: "palette"; - } - rel2.to: "palette"; - align: 0.0 0.0; - } - } - } -} - diff --git a/ElmSharp/theme/mobile/widgets/entry.edc b/ElmSharp/theme/mobile/widgets/entry.edc deleted file mode 100644 index 41f240f..0000000 --- a/ElmSharp/theme/mobile/widgets/entry.edc +++ /dev/null @@ -1,1077 +0,0 @@ -/* - * Copyright (c) 2010 Samsung Electronics Co., Ltd All Rights Reserved - * - * BSD 2-Clause License (http://www.opensource.org/licenses/bsd-license.php) - * - * Redistribution and use in source and binary forms, with or without - * modification, are permitted provided that the following conditions are met: - * - * 1. Redistributions of source code must retain the above copyright notice, this - * list of conditions and the following disclaimer. - * 2. Redistributions in binary form must reproduce the above copyright notice, - * this list of conditions and the following disclaimer in the documentation - * and/or other materials provided with the distribution. - * - * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND - * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED - * WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE - * DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR - * ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES - * (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; - * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND - * ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT - * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS - * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. - */ - -#define ENTRY_DEFAULT_TAGS \ - tag: "em" "+ font_style=Oblique"; \ - tag: "b" "+ font_weight=Bold"; \ - tag: "link" "+ color=#800 underline=on underline_color=#8008"; \ - tag: "hilight" "+ font_weight=Bold"; - -#define ENTRY_SINGLELINE_TAGS \ - tag: "br" ""; \ - tag: "em" "+ font_style=Oblique"; \ - tag: "b" "+ font_weight=Bold"; \ - tag: "link" "+ color=#800 underline=on underline_color=#8008"; \ - tag: "hilight" "+ font_weight=Bold"; - -#define ENTRY_PREEDIT_TAGS \ - tag: "preedit" "+ underline=on underline_color="ENTRY_PREEDIT_UNDERLINE_COLOR_INC; \ - tag: "preedit_sel" "+ backing=on backing_color="ENTRY_PREEDIT_BACKGROUND_COLOR_INC" color="ENTRY_PREEDIT_TEXT_COLOR_INC" underline=on underline_color="ENTRY_PREEDIT_TEXT_COLOR_INC; \ - tag: "preedit_highlight" "+ backing=on backing_color="ENTRY_PREEDIT_HIGHLIGHT_BACKGROUND_COLOR_INC" underline=on underline_color="ENTRY_PREEDIT_TEXT_COLOR_INC; \ - tag: "preedit_sub1" "+ backing=on backing_color="ENTRY_PREEDIT_SUB1_COLOR_INC" underline=on underline_color="ENTRY_PREEDIT_UNDERLINE_COLOR_INC; \ - tag: "preedit_sub2" "+ backing=on backing_color="ENTRY_PREEDIT_SUB2_COLOR_INC" underline=on underline_color="ENTRY_PREEDIT_UNDERLINE_COLOR_INC; \ - tag: "preedit_sub3" "+ backing=on backing_color="ENTRY_PREEDIT_SUB3_COLOR_INC" underline=on underline_color="ENTRY_PREEDIT_UNDERLINE_COLOR_INC; \ - tag: "preedit_sub4" "+ backing=on backing_color="ENTRY_PREEDIT_SUB4_COLOR_INC" underline=on underline_color="ENTRY_PREEDIT_UNDERLINE_COLOR_INC; - -styles { - style { "entry_textblock_style"; - base: "font=Tizen:weight=Light font_size="ENTRY_FONT_SIZE_INC" color=#fff left_margin="ENTRY_LEFT_RIGHT_MARGIN_INC" right_margin="ENTRY_LEFT_RIGHT_MARGIN_INC" wrap=mixed text_class=entry color_class=entry/default/text_edit"; - ENTRY_DEFAULT_TAGS - ENTRY_PREEDIT_TAGS - } - style { "entry_textblock_focused_style"; - base: "font=Tizen:weight=Light font_size="ENTRY_FONT_SIZE_INC" color=#fff left_margin="ENTRY_LEFT_RIGHT_MARGIN_INC" right_margin="ENTRY_LEFT_RIGHT_MARGIN_INC" wrap=mixed text_class=entry color_class=entry/default/text_edit_focused"; - ENTRY_DEFAULT_TAGS - ENTRY_PREEDIT_TAGS - } - style { "entry_textblock_disabled_style"; - base: "font=Tizen:weight=Light font_size="ENTRY_FONT_SIZE_INC" color=#fff left_margin="ENTRY_LEFT_RIGHT_MARGIN_INC" right_margin="ENTRY_LEFT_RIGHT_MARGIN_INC" wrap=mixed text_class=entry color_class=entry/default/text_edit_disabled"; - ENTRY_DEFAULT_TAGS - ENTRY_PREEDIT_TAGS - } - style { "entry_textblock_guide_style"; - base: "font=Tizen:weight=Light font_size="ENTRY_FONT_SIZE_INC" color=#fff left_margin="ENTRY_LEFT_RIGHT_MARGIN_INC" right_margin="ENTRY_LEFT_RIGHT_MARGIN_INC" wrap=mixed text_class=entry color_class=entry/default/text_guide"; - ENTRY_DEFAULT_TAGS - } - style { "entry_textblock_guide_focused_style"; - base: "font=Tizen:weight=Light font_size="ENTRY_FONT_SIZE_INC" color=#fff left_margin="ENTRY_LEFT_RIGHT_MARGIN_INC" right_margin="ENTRY_LEFT_RIGHT_MARGIN_INC" wrap=mixed text_class=entry color_class=entry/default/text_guide_focused"; - ENTRY_DEFAULT_TAGS - } - style { "entry_textblock_guide_disabled_style"; - base: "font=Tizen:weight=Light font_size="ENTRY_FONT_SIZE_INC" color=#fff left_margin="ENTRY_LEFT_RIGHT_MARGIN_INC" right_margin="ENTRY_LEFT_RIGHT_MARGIN_INC" wrap=mixed text_class=entry color_class=entry/default/text_guide_disabled"; - ENTRY_DEFAULT_TAGS - } - style { "entry_textblock_char_wrap_style"; - base: "font=Tizen:weight=Light font_size="ENTRY_FONT_SIZE_INC" color=#fff left_margin="ENTRY_LEFT_RIGHT_MARGIN_INC" right_margin="ENTRY_LEFT_RIGHT_MARGIN_INC" wrap=char text_class=entry color_class=entry/default/text_edit"; - ENTRY_DEFAULT_TAGS - ENTRY_PREEDIT_TAGS - } - style { "entry_textblock_char_wrap_focused_style"; - base: "font=Tizen:weight=Light font_size="ENTRY_FONT_SIZE_INC" color=#fff left_margin="ENTRY_LEFT_RIGHT_MARGIN_INC" right_margin="ENTRY_LEFT_RIGHT_MARGIN_INC" wrap=char text_class=entry color_class=entry/default/text_edit_focused"; - ENTRY_DEFAULT_TAGS - ENTRY_PREEDIT_TAGS - } - style { "entry_textblock_char_wrap_disabled_style"; - base: "font=Tizen:weight=Light font_size="ENTRY_FONT_SIZE_INC" color=#fff left_margin="ENTRY_LEFT_RIGHT_MARGIN_INC" right_margin="ENTRY_LEFT_RIGHT_MARGIN_INC" wrap=char text_class=entry color_class=entry/default/text_edit_disabled"; - ENTRY_DEFAULT_TAGS - ENTRY_PREEDIT_TAGS - } - style { "entry_textblock_char_wrap_guide_style"; - base: "font=Tizen:weight=Light font_size="ENTRY_FONT_SIZE_INC" color=#fff left_margin="ENTRY_LEFT_RIGHT_MARGIN_INC" right_margin="ENTRY_LEFT_RIGHT_MARGIN_INC" wrap=char text_class=entry color_class=entry/default/text_guide"; - ENTRY_DEFAULT_TAGS - } - style { "entry_textblock_char_wrap_guide_focused_style"; - base: "font=Tizen:weight=Light font_size="ENTRY_FONT_SIZE_INC" color=#fff left_margin="ENTRY_LEFT_RIGHT_MARGIN_INC" right_margin="ENTRY_LEFT_RIGHT_MARGIN_INC" wrap=char text_class=entry color_class=entry/default/text_guide_focused"; - ENTRY_DEFAULT_TAGS - } - style { "entry_textblock_char_wrap_guide_disabled_style"; - base: "font=Tizen:weight=Light font_size="ENTRY_FONT_SIZE_INC" color=#fff left_margin="ENTRY_LEFT_RIGHT_MARGIN_INC" right_margin="ENTRY_LEFT_RIGHT_MARGIN_INC" wrap=char text_class=entry color_class=entry/default/text_guide_disabled"; - ENTRY_DEFAULT_TAGS - } - style { "entry_single_textblock_style"; - base: "font=Tizen:weight=Light font_size="ENTRY_FONT_SIZE_INC" color=#fff left_margin="ENTRY_LEFT_RIGHT_MARGIN_INC" right_margin="ENTRY_LEFT_RIGHT_MARGIN_INC" wrap=none text_class=entry color_class=entry/default/text_edit"; - ENTRY_SINGLELINE_TAGS - ENTRY_PREEDIT_TAGS - } - style { "entry_single_textblock_focused_style"; - base: "font=Tizen:weight=Light font_size="ENTRY_FONT_SIZE_INC" color=#fff left_margin="ENTRY_LEFT_RIGHT_MARGIN_INC" right_margin="ENTRY_LEFT_RIGHT_MARGIN_INC" wrap=none text_class=entry color_class=entry/default/text_edit_focused"; - ENTRY_SINGLELINE_TAGS - ENTRY_PREEDIT_TAGS - } - style { "entry_single_textblock_disabled_style"; - base: "font=Tizen:weight=Light font_size="ENTRY_FONT_SIZE_INC" color=#fff left_margin="ENTRY_LEFT_RIGHT_MARGIN_INC" right_margin="ENTRY_LEFT_RIGHT_MARGIN_INC" wrap=none text_class=entry color_class=entry/default/text_edit_disabled"; - ENTRY_SINGLELINE_TAGS - ENTRY_PREEDIT_TAGS - } - style { "entry_single_textblock_guide_style"; - base: "font=Tizen:weight=Light font_size="ENTRY_FONT_SIZE_INC" color=#fff left_margin="ENTRY_LEFT_RIGHT_MARGIN_INC" right_margin="ENTRY_LEFT_RIGHT_MARGIN_INC" wrap=none text_class=entry color_class=entry/default/text_guide"; - ENTRY_SINGLELINE_TAGS - } - style { "entry_single_textblock_guide_focused_style"; - base: "font=Tizen:weight=Light font_size="ENTRY_FONT_SIZE_INC" color=#fff left_margin="ENTRY_LEFT_RIGHT_MARGIN_INC" right_margin="ENTRY_LEFT_RIGHT_MARGIN_INC" wrap=none text_class=entry color_class=entry/default/text_guide_focused"; - ENTRY_SINGLELINE_TAGS - } - style { "entry_single_textblock_guide_disabled_style"; - base: "font=Tizen:weight=Light font_size="ENTRY_FONT_SIZE_INC" color=#fff left_margin="ENTRY_LEFT_RIGHT_MARGIN_INC" right_margin="ENTRY_LEFT_RIGHT_MARGIN_INC" wrap=none text_class=entry color_class=entry/default/text_guide_disabled"; - ENTRY_SINGLELINE_TAGS - } -} - -group { "elm/entry/event/default"; - inherit_only: 1; - parts { - rect { "event"; - mouse; - repeat; - desc { "default"; - color: 0 0 0 0; - } - desc { "disabled"; - inherit: "default"; - hid; - } - } - } - programs { - program { "clicked"; - signal: "mouse,clicked,1"; - source: "event"; - after: "on_clicked"; - } - program { "load"; - signal: "load"; - source: ""; - after: "on_load"; - } - program { "disabled"; - signal: "elm,state,disabled"; - source: "elm"; - action: STATE_SET "disabled"; - target: "event"; - after: "on_disabled"; - } - program { "enabled"; - signal: "elm,state,disabled"; - source: "elm"; - action: STATE_SET "default"; - target: "event"; - after: "on_enabled"; - } - program { "focus"; - signal: "elm,action,focus"; - source: "elm"; - after: "on_focus"; - } - program { "unfocus"; - signal: "elm,action,unfocus"; - source: "elm"; - after: "on_unfocus"; - } - program { "disabled_guide"; - signal: "elm,guide,disabled"; - source: "elm"; - after: "on_disabled_guide"; - } - program { "enabled_guide"; - signal: "elm,guide,enabled"; - source: "elm"; - after: "on_enabled_guide"; - } - } -} - -group { "elm/entry/base/template"; - inherit_only: 1; - data.item: "default_font_size" ENTRY_FONT_SIZE_INC; - data.item: "focus_highlight" "on"; - data.item: context_menu_orientation "horizontal"; - parts { - rect { "bg"; - nomouse; - desc { "default"; - color_class: "entry/default/bg"; - } - } - textblock { "elm.guide"; - nomouse; - scale; - desc { "default"; - rel.to: "elm.text"; - text.style: "entry_textblock_guide_style"; - } - desc { "focused"; - inherit: "default"; - text.style: "entry_textblock_guide_focused_style"; - } - desc { "disabled"; - inherit: "default"; - text.style: "entry_textblock_guide_disabled_style"; - } - desc { "hidden"; - inherit: "default"; - hid; - } - } - textblock { "elm.text"; - mouse; - scale; - entry_mode: EDITABLE; - select_mode: EXPLICIT; - cursor_mode: BEFORE; - multiline: 1; - source: "elm/entry/selection/default"; // selection under - source4: "elm/entry/cursor/default"; // cursorover - source5: "elm/entry/anchor/default"; // anchor under - desc { "default"; - text.style: "entry_textblock_style"; - } - desc { "focused"; - inherit: "default"; - text.style: "entry_textblock_focused_style"; - } - desc { "disabled"; - inherit: "default"; - text.style: "entry_textblock_disabled_style"; - } - } - } - inherit: "elm/entry/event/default"; - script { - public focused = 0; - public disabled = 0; - public guide_disabled = 0; - } - programs { - program { "on_load"; - action: FOCUS_SET; - target: "elm.text"; - } - program { "on_clicked"; - action: RUN_PLUGIN "touch_sound"; - } - program { "on_focus"; - script { - set_int(focused, 1); - if (get_int(disabled) == 0) { - set_state(PART:"elm.text", "focused", 0.0); - if (get_int(guide_disabled) == 0) - set_state(PART:"elm.guide", "focused", 0.0); - } - } - } - program { "on_unfocus"; - script { - set_int(focused, 0); - if (get_int(disabled) == 0) { - set_state(PART:"elm.text", "default", 0.0); - if (get_int(guide_disabled) == 0) - set_state(PART:"elm.guide", "default", 0.0); - } - } - } - program { "on_disabled"; - script { - set_int(disabled, 1); - set_state(PART:"elm.text", "disabled", 0.0); - if (get_int(guide_disabled) == 0) - set_state(PART:"elm.guide", "disabled", 0.0); - } - } - program { "on_enabled"; - script { - set_int(disabled, 0); - if (get_int(focused)) - set_state(PART:"elm.text", "focused", 0.0); - else - set_state(PART:"elm.text", "default", 0.0); - if (get_int(guide_disabled) == 0) { - if (get_int(focused)) - set_state(PART:"elm.guide", "focused", 0.0); - else - set_state(PART:"elm.guide", "default", 0.0); - } - } - } - program { "on_disabled_guide"; - script { - set_int(guide_disabled, 1); - set_state(PART:"elm.guide", "hidden", 0.0); - } - } - program { "on_enabled_guide"; - script { - set_int(guide_disabled, 0); - if (get_int(disabled)) - set_state(PART:"elm.guide", "disabled", 0.0); - else if (get_int(focused)) - set_state(PART:"elm.guide", "focused", 0.0); - else - set_state(PART:"elm.guide", "default", 0.0); - } - } - } -} - -group { "elm/entry/cursor/event/default"; - inherit_only: 1; - programs { - program { "selection_start"; - signal: "selection,start"; - source: "elm.text"; - after: "on_selection_start"; - } - program { "selection_cleared"; - signal: "selection,cleared"; - source: "elm.text"; - after: "on_selection_cleared"; - } - program { "focus"; - signal: "elm,action,focus"; - source: "elm"; - after: "on_focus"; - } - program { "unfocus"; - signal: "elm,action,unfocus"; - source: "elm"; - after: "on_unfocus"; - } - program { "show_cursor"; - signal: "elm,action,show,cursor"; - source: "elm"; - after: "on_show_cursor"; - } - } -} - -group { "elm/entry/cursor/template"; - inherit: "elm/entry/cursor/event/default"; - inherit_only: 1; - parts { - rect { "cursor"; - clip: "clipper"; - desc { "default"; - hid; - } - desc { "visible"; - inherit: "default"; - vis; - } - } - rect { "clipper"; - desc { "default"; - } - desc { "hidden"; - inherit: "default"; - hid; - } - } - } - programs { - program { "on_selection_start"; - action: STATE_SET "hidden"; - target: "clipper"; - } - program { "on_selection_cleared"; - action: STATE_SET "default"; - target: "clipper"; - } - program { "on_focus"; - action: ACTION_STOP; - target: "cursor_visible"; - target: "cursor_hidden"; - target: "cursor_visible_timer"; - target: "cursor_hidden_timer"; - after: "cursor_visible"; - } - program { "on_unfocus"; - action: ACTION_STOP; - target: "cursor_visible"; - target: "cursor_hidden"; - target: "cursor_visible_timer"; - target: "cursor_hidden_timer"; - after: "cursor_hidden_stop"; - } - program { "on_show_cursor"; - action: ACTION_STOP; - target: "cursor_visible"; - target: "cursor_hidden"; - target: "cursor_visible_timer"; - target: "cursor_hidden_timer"; - after: "cursor_visible"; - } - program { "cursor_hidden_stop"; - action: STATE_SET "default"; - target: "cursor"; - } - program { "cursor_visible"; - action: STATE_SET "visible"; - target: "cursor"; - after: "cursor_visible_timer"; - } - program { "cursor_hidden"; - action: STATE_SET "default"; - target: "cursor"; - after: "cursor_hidden_timer"; - } - program { "cursor_visible_timer"; - in: 0.6 0.0; - after: "cursor_hidden"; - } - program { "cursor_hidden_timer"; - in: 0.6 0.0; - after: "cursor_visible"; - } - } -} - -group { "elm/entry/cursor/default"; - inherit: "elm/entry/cursor/template"; - parts { - rect { "cursor"; - nomouse; - scale; - clip: "clipper"; - desc { "default"; - min: ENTRY_CURSOR_SIZE_INC; - color_class: "entry/default/cursor"; - hid; - } - desc { "visible"; - inherit: "default"; - vis; - } - } - rect { "clipper"; - desc { "default"; - rel.to: "cursor"; - fixed: 1 1; - } - desc { "hidden"; - inherit: "default"; - hid; - } - } - } -} - -group { "elm/entry/base/default"; - inherit: "elm/entry/base/template"; - alias: "elm/entry/base-mixedwrap/default"; - parts { - textblock { "elm.guide"; - nomouse; - scale; - desc { "default"; - rel.to: "elm.text"; - text { - style: "entry_textblock_guide_style"; - min: 0 1; - align: 0.0 0.0; - } - } - desc { "focused"; - inherit: "default"; - text.style: "entry_textblock_guide_focused_style"; - } - desc { "disabled"; - inherit: "default"; - text.style: "entry_textblock_guide_disabled_style"; - } - desc { "hidden"; - inherit: "default"; - hid; - } - } - textblock { "elm.text"; - mouse; - scale; - entry_mode: EDITABLE; - select_mode: EXPLICIT; - cursor_mode: BEFORE; - multiline: 1; - source: "elm/entry/selection/default"; // selection under - source4: "elm/entry/cursor/default"; // cursorover - source5: "elm/entry/anchor/default"; // anchor under - desc { "default"; - fixed: 1 0; - text { - style: "entry_textblock_style"; - min: 0 1; - align: 0.0 0.0; - } - } - desc { "focused"; - inherit: "default"; - text { - style: "entry_textblock_focused_style"; - min: 0 1; - } - } - desc { "disabled"; - inherit: "default"; - text { - style: "entry_textblock_disabled_style"; - min: 0 1; - } - } - } - } -} - -group { "elm/entry/base-charwrap/default"; - alias: "elm/entry/base/char_wrap"; - inherit: "elm/entry/base/template"; - parts { - textblock { "elm.guide"; - nomouse; - scale; - desc { "default"; - rel.to: "elm.text"; - text { - style: "entry_textblock_char_wrap_guide_style"; - min: 0 1; - align: 0.0 0.0; - } - } - desc { "focused"; - inherit: "default"; - text.style: "entry_textblock_char_wrap_guide_focused_style"; - } - desc { "disabled"; - inherit: "default"; - text.style: "entry_textblock_char_wrap_guide_disabled_style"; - } - desc { "hidden"; - inherit: "default"; - hid; - } - } - textblock { "elm.text"; - mouse; - scale; - entry_mode: EDITABLE; - select_mode: EXPLICIT; - cursor_mode: BEFORE; - multiline: 1; - source: "elm/entry/selection/default"; // selection under - source4: "elm/entry/cursor/default"; // cursorover - source5: "elm/entry/anchor/default"; // anchor under - desc { "default"; - fixed: 1 0; - text { - style: "entry_textblock_char_wrap_style"; - min: 0 1; - align: 0.0 0.0; - } - } - desc { "focused"; - inherit: "default"; - text { - style: "entry_textblock_char_wrap_focused_style"; - min: 0 1; - } - } - desc { "disabled"; - inherit: "default"; - text { - style: "entry_textblock_char_wrap_disabled_style"; - min: 0 1; - } - } - } - } -} - -group { "elm/entry/base-nowrap/default"; - inherit: "elm/entry/base/template"; - parts { - textblock { "elm.guide"; - nomouse; - scale; - desc { "default"; - rel.to: "elm.text"; - text { - style: "entry_textblock_guide_style"; - min: 0 1; - align: 0.0 0.0; - } - } - desc { "focused"; - inherit: "default"; - text.style: "entry_textblock_guide_focused_style"; - } - desc { "disabled"; - inherit: "default"; - text.style: "entry_textblock_guide_disabled_style"; - } - desc { "hidden"; - inherit: "default"; - hid; - } - } - textblock { "elm.text"; - mouse; - scale; - entry_mode: EDITABLE; - select_mode: EXPLICIT; - cursor_mode: BEFORE; - multiline: 1; - source: "elm/entry/selection/default"; // selection under - source4: "elm/entry/cursor/default"; // cursorover - source5: "elm/entry/anchor/default"; // anchor under - desc { "default"; - text { - style: "entry_textblock_style"; - min: 1 1; - align: 0.0 0.0; - } - } - desc { "focused"; - inherit: "default"; - text { - style: "entry_textblock_focused_style"; - min: 1 1; - } - } - desc { "disabled"; - inherit: "default"; - text { - style: "entry_textblock_disabled_style"; - min: 0 1; - } - } - } - } -} - -group { "elm/entry/base-single/default"; - inherit: "elm/entry/base/template"; - parts { - textblock { "elm.guide"; - nomouse; - scale; - desc { "default"; - fixed: 1 1; - rel.to: "elm.text"; - text { - style: "entry_single_textblock_guide_style"; - min: 0 1; - max: 0 0; - align: 0.0 0.5; - } - } - desc { "focused"; - inherit: "default"; - text.style: "entry_single_textblock_guide_focused_style"; - } - desc { "disabled"; - inherit: "default"; - text.style: "entry_single_textblock_guide_disabled_style"; - } - desc { "hidden"; - inherit: "default"; - hid; - } - } - textblock { "elm.text"; - mouse; - scale; - entry_mode: EDITABLE; - select_mode: EXPLICIT; - cursor_mode: BEFORE; - multiline: 0; - source: "elm/entry/selection/default"; // selection under - source4: "elm/entry/cursor/default"; // cursorover - source5: "elm/entry/anchor/default"; // anchor under - desc { "default"; - text { - style: "entry_single_textblock_style"; - min: 1 1; - max: 0 0; - align: 0.0 0.5; - } - } - desc { "focused"; - inherit: "default"; - text.style: "entry_single_textblock_focused_style"; - } - desc { "disabled"; - inherit: "default"; - text.style: "entry_single_textblock_disabled_style"; - } - } - } -} - -group { "elm/entry/base-single-noedit/default"; - inherit: "elm/entry/base/template"; - alias: "elm/entry/base-single-noedit/vcenter_align"; - parts { - textblock { "elm.guide"; - nomouse; - scale; - desc { "default"; - fixed: 1 1; - rel.to: "elm.text"; - text { - style: "entry_single_textblock_guide_style"; - min: 0 1; - max: 0 1; - } - } - desc { "focused"; - inherit: "default"; - text.style: "entry_single_textblock_guide_focused_style"; - } - desc { "disabled"; - inherit: "default"; - text.style: "entry_single_textblock_guide_disabled_style"; - } - desc { "hidden"; - inherit: "default"; - hid; - } - } - textblock { "elm.text"; - mouse; - scale; - entry_mode: PLAIN; - select_mode: EXPLICIT; - cursor_mode: BEFORE; - multiline: 0; - source: "elm/entry/selection/default"; // selection under - source5: "elm/entry/anchor/default"; // anchor under - desc { "default"; - text { - style: "entry_single_textblock_style"; - min: 1 1; - max: 0 1; - } - } - desc { "focused"; - inherit: "default"; - text.style: "entry_single_textblock_focused_style"; - } - desc { "disabled"; - inherit: "default"; - text.style: "entry_single_textblock_disabled_style"; - } - } - } -} - -group { "elm/entry/base-noedit/default"; - inherit: "elm/entry/base/template"; - parts { - textblock { "elm.guide"; - nomouse; - scale; - desc { "default"; - rel.to: "elm.text"; - text { - style: "entry_textblock_guide_style"; - min: 0 1; - align: 0.0 0.0; - } - } - desc { "focused"; - inherit: "default"; - text.style: "entry_textblock_guide_focused_style"; - } - desc { "disabled"; - inherit: "default"; - text.style: "entry_textblock_guide_disabled_style"; - } - desc { "hidden"; - inherit: "default"; - hid; - } - } - textblock { "elm.text"; - mouse; - scale; - entry_mode: PLAIN; - select_mode: EXPLICIT; - cursor_mode: BEFORE; - multiline: 1; - source: "elm/entry/selection/default"; // selection under - source5: "elm/entry/anchor/default"; // anchor under - desc { "default"; - fixed: 1 0; - text { - style: "entry_textblock_style"; - min: 0 1; - align: 0.0 0.0; - } - } - desc { "focused"; - inherit: "default"; - text.style: "entry_textblock_focused_style"; - } - desc { "disabled"; - inherit: "default"; - text.style: "entry_textblock_disabled_style"; - } - } - } -} - -group { "elm/entry/base-noedit-charwrap/default"; - inherit: "elm/entry/base/template"; - parts { - textblock { "elm.guide"; - nomouse; - scale; - desc { "default"; - rel.to: "elm.text"; - text { - style: "entry_textblock_char_wrap_guide_style"; - min: 0 1; - align: 0.0 0.0; - } - } - desc { "focused"; - inherit: "default"; - text.style: "entry_textblock_char_wrap_guide_focused_style"; - } - desc { "disabled"; - inherit: "default"; - text.style: "entry_textblock_char_wrap_guide_disabled_style"; - } - desc { "hidden"; - inherit: "default"; - hid; - } - } - textblock { "elm.text"; - mouse; - scale; - entry_mode: PLAIN; - select_mode: EXPLICIT; - cursor_mode: BEFORE; - multiline: 1; - source: "elm/entry/selection/default"; // selection under - source5: "elm/entry/anchor/default"; // anchor under - desc { "default"; - fixed: 1 0; - text { - style: "entry_textblock_char_wrap_style"; - min: 0 1; - align: 0.0 0.0; - } - } - desc { "focused"; - inherit: "default"; - text.style: "entry_textblock_char_wrap_focused_style"; - } - desc { "disabled"; - inherit: "default"; - text.style: "entry_textblock_char_wrap_disabled_style"; - } - } - } -} - -group { "elm/entry/base-noedit-mixedwrap/default"; - inherit: "elm/entry/base/template"; - parts { - part { "elm.guide"; - type: TEXTBLOCK; - nomouse; - scale; - desc { "default"; - rel.to: "elm.text"; - text { - style: "entry_textblock_guide_style"; - min: 0 1; - align: 0.0 0.0; - } - } - desc { "focused"; - inherit: "default"; - text.style: "entry_textblock_guide_focused_style"; - } - desc { "disabled"; - inherit: "default"; - text.style: "entry_textblock_guide_disabled_style"; - } - desc { "hidden"; - inherit: "default"; - hid; - } - } - textblock { "elm.text"; - mouse; - scale; - entry_mode: PLAIN; - select_mode: EXPLICIT; - cursor_mode: BEFORE; - multiline: 1; - source: "elm/entry/selection/default"; // selection under - source5: "elm/entry/anchor/default"; // anchor under - desc { "default"; - fixed: 1 0; - text { - style: "entry_textblock_style"; - min: 0 1; - align: 0.0 0.0; - } - } - desc { "focused"; - inherit: "default"; - text.style: "entry_textblock_focused_style"; - } - desc { "disabled"; - inherit: "default"; - text.style: "entry_textblock_disabled_style"; - } - } - } -} - -group { "elm/entry/base-nowrap-noedit/default"; - inherit: "elm/entry/base/template"; - parts { - textblock { "elm.guide"; - type: TEXTBLOCK; - nomouse; - scale; - desc { "default"; - rel.to: "elm.text"; - text { - style: "entry_textblock_guide_style"; - min: 0 1; - align: 0.0 0.0; - } - } - desc { "focused"; - inherit: "default"; - text.style: "entry_textblock_guide_focused_style"; - } - desc { "disabled"; - inherit: "default"; - text.style: "entry_textblock_guide_disabled_style"; - } - desc { "hidden"; - inherit: "default"; - hid; - } - } - textblock { "elm.text"; - mouse; - scale; - entry_mode: PLAIN; - select_mode: EXPLICIT; - cursor_mode: BEFORE; - multiline: 1; - source: "elm/entry/selection/default"; // selection under - source5: "elm/entry/anchor/default"; // anchor under - desc { "default"; - text { - style: "entry_textblock_style"; - min: 1 1; - align: 0.0 0.0; - } - } - desc { "focused"; - inherit: "default"; - text.style: "entry_textblock_focused_style"; - } - desc { "disabled"; - inherit: "default"; - text.style: "entry_textblock_disabled_style"; - } - } - } -} - -group { "elm/entry/base-password/default"; - inherit: "elm/entry/base/template"; - parts { - textblock { "elm.guide"; - nomouse; - scale; - desc { "default"; - fixed: 1 1; - rel.to: "elm.text"; - text { - style: "entry_single_textblock_guide_style"; - min: 0 1; - max: 0 1; - } - } - desc { "focused"; - inherit: "default"; - text.style: "entry_single_textblock_guide_focused_style"; - } - desc { "disabled"; - inherit: "default"; - text.style: "entry_single_textblock_guide_disabled_style"; - } - desc { "hidden"; - inherit: "default"; - hid; - } - } - textblock { "elm.text"; - mouse; - scale; - entry_mode: PASSWORD; - select_mode: EXPLICIT; - cursor_mode: BEFORE; - multiline: 0; - source: "elm/entry/selection/default"; // selection under - source4: "elm/entry/cursor/default"; // cursorover - source5: "elm/entry/anchor/default"; // anchor under - desc { "default"; - text { - style: "entry_single_textblock_style"; - repch: "•"; - min: 1 1; - max: 0 1; - } - } - desc { "focused"; - inherit: "default"; - text.style: "entry_single_textblock_focused_style"; - } - desc { "disabled"; - inherit: "default"; - text.style: "entry_single_textblock_disabled_style"; - } - } - } -} - -group { "elm/entry/selection/default"; - parts { - rect { "bg"; - scale; - nomouse; - desc { "default"; - color: 0 221 255 153; - } - } - } -} - -group { "elm/entry/anchor/default"; - parts { - spacer { "bg"; - desc { "default"; } - } - } -} diff --git a/ElmSharp/theme/mobile/widgets/genlist.edc b/ElmSharp/theme/mobile/widgets/genlist.edc deleted file mode 100644 index 64399f6..0000000 --- a/ElmSharp/theme/mobile/widgets/genlist.edc +++ /dev/null @@ -1,208 +0,0 @@ -/* - * Copyright (c) 2010 Samsung Electronics Co., Ltd All Rights Reserved - * - * BSD 2-Clause License (http://www.opensource.org/licenses/bsd-license.php) - * - * Redistribution and use in source and binary forms, with or without - * modification, are permitted provided that the following conditions are met: - * - * 1. Redistributions of source code must retain the above copyright notice, this - * list of conditions and the following disclaimer. - * 2. Redistributions in binary form must reproduce the above copyright notice, - * this list of conditions and the following disclaimer in the documentation - * and/or other materials provided with the distribution. - * - * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND - * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED - * WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE - * DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR - * ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES - * (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; - * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND - * ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT - * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS - * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. - */ - -#define LIST_PROGRAM_SOUND \ - program { name: "play_sound"; \ - signal: "elm,state,clicked"; \ - source: "elm"; \ - script { \ - run_program(PROGRAM:"touch_sound"); \ - } \ - } \ - program { name: "touch_sound"; \ - action: RUN_PLUGIN "touch_sound"; \ - } - -group { "elm/genlist/item/event/default" - inherit_only: 1; - parts { - rect { "event"; nomouse; repeat; scale; - desc { "default"; - color: 0 0 0 0; - rel.to: "base"; - } - desc { "disabled"; - inherit: "default"; - hid; - } - } - } - programs { - /* Program for enabled event */ - program { "enabled"; - signal: "elm,state,enabled"; - source: "elm"; - action: STATE_SET "default"; - target: "event"; - after: "on_enabled"; - } - /* Program for disabled event */ - program { "disabled"; - signal: "elm,state,disabled"; - source: "elm"; - action: STATE_SET "disabled"; - target: "event"; - after: "on_disabled"; - } - program { "enable_event_pass"; - signal: "elm,event,pass,enabled"; - source: "elm"; - script { - set_mouse_events(PART:"event", 0); - } - } - program { "disable_event_pass"; - signal: "elm,event,pass,disabled"; - source:"elm"; - script { - set_mouse_events(PART:"event", 1); - } - } - program { "enable_event_repeat"; - signal: "elm,event,repeat,enabled"; - source: "elm"; - script { - set_repeat_events(PART:"event", 1); - } - } - program { "disable_event_repeat"; - signal: "elm,event,repeat,disabled"; - source:"elm"; - script { - set_repeat_events(PART:"event", 0); - } - } - } -} - -group { "elm/genlist/item/full/default"; - alias: "elm/genlist/item_compress/full/default"; - alias: "elm/genlist/tree/full/default"; - alias: "elm/genlist/tree_compress/full/default"; - inherit: "elm/genlist/item/event/default"; - - data.item: "banded_bg_area" "elm.swallow.bg"; - data.item: "contents" "elm.swallow.content"; - - parts { - spacer { "base"; scale; - desc { "default"; - } - } - - swallow { "elm.swallow.bg"; scale; - desc { "default"; - rel.to: "base"; - } - } - rect { "bg"; scale; - desc { "default"; - rel.to: "elm.swallow.bg"; - color_class: "genlist_item/full/bg"; - } - desc { "pressed"; inherit: "default"; - color_class: "genlist_item/full/bg"; - } - desc { "disabled"; inherit: "default"; - color_class: "genlist_item/full/bg"; - } - } - swallow { "elm.swallow.content"; scale; - desc { "default"; - rel1 { to: "bg"; relative: 0.0 0.0; } - rel2 { to: "bg"; relative: 1.0 1.0; } - } - } - rect { "elm.bottomline"; scale; - desc { "default"; - vis; - min: 0 LIST_BOTTOMLINE_HEIGHT; - max: -1 LIST_BOTTOMLINE_HEIGHT; - align: 0.5 0.0; - fixed: 0 1; - rel1.relative: 0.0 0.0; - rel2.relative: 1.0 0.0; - color_class: "genlist_item/full/bottomline"; - } - desc { "hidden"; inherit: "default"; - hid; - } - } - rect { "event"; - after: "elm.bottomline"; - desc { "default"; - rel.to: "base"; - } - desc { "disabled"; - inherit: "default"; - hid; - } - } - } - programs { - LIST_PROGRAM_SOUND - program { - signal: "elm,state,elm.swallow.bg,visible"; - source: "elm"; - action: STATE_SET "hidden"; - target: "elm.bottomline"; - } - program { - signal: "elm,state,elm.swallow.bg,hidden"; - source: "elm"; - action: STATE_SET "default"; - target: "elm.bottomline"; - } - program { "default"; - signal: "elm,state,default"; - source: "elm"; - action: STATE_SET "default"; - target: "bg"; - target: "elm.bottomline"; - target: "event"; - } - program { "pressed"; - signal: "elm,state,selected"; - source: "elm"; - action: STATE_SET "pressed"; - target: "bg"; - } - program { "unpressed"; - signal: "elm,state,unselected"; - source: "elm"; - action: STATE_SET "default"; - target: "bg"; - } - program { "on_enabled"; - action: STATE_SET "default"; - target: "bg"; - } - program { "on_disabled"; - action: STATE_SET "disabled"; - target: "bg"; - } - } -} diff --git a/ElmSharp/theme/mobile/widgets/label.edc b/ElmSharp/theme/mobile/widgets/label.edc deleted file mode 100644 index 5b11efd..0000000 --- a/ElmSharp/theme/mobile/widgets/label.edc +++ /dev/null @@ -1,722 +0,0 @@ -/* - * Copyright (c) 2010 Samsung Electronics Co., Ltd All Rights Reserved - * - * BSD 2-Clause License (http://www.opensource.org/licenses/bsd-license.php) - * - * Redistribution and use in source and binary forms, with or without - * modification, are permitted provided that the following conditions are met: - * - * 1. Redistributions of source code must retain the above copyright notice, this - * list of conditions and the following disclaimer. - * 2. Redistributions in binary form must reproduce the above copyright notice, - * this list of conditions and the following disclaimer in the documentation - * and/or other materials provided with the distribution. - * - * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND - * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED - * WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE - * DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR - * ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES - * (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; - * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND - * ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT - * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS - * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. - */ - -#define SLIDE_SPEED_WEIGHT 0.5 -#define SLIDE_TEXT_GAP 60 -#define SLIDE_TEXT_CHAR_GAP " " //60 (6 spaces) -#define SLIDE_TEXT_MAX_LENGTH (2*(1024+6)) - -styles { - style { "textblock_style"; - base: "font=Tizen:weight=Normal font_size="LABEL_FONT_SIZE_INC" color=#FFF color_class=label/default/text text_class=label"; - tag: "br" "\n"; - tag: "ps" "ps"; - tag: "hilight" "+ font_weight=Bold"; - tag: "b" "+ font_weight=Bold"; - tag: "tab" "\t"; - } - style { "textblock_charwrap_style"; - base: "font=Tizen:weight=Normal font_size="LABEL_FONT_SIZE_INC" color=#FFF color_class=label/default/text text_class=label"; - tag: "br" "\n"; - tag: "ps" "ps"; - tag: "hilight" "+ font_weight=Bold"; - tag: "b" "+ font_weight=Bold"; - tag: "tab" "\t"; - } - style { "textblock_style_marker"; - base: "font=Tizen:weight=Bold font_size=14 align=center color=#FFF wrap=word color_class=label/default/text text_class=tizen"; - tag: "br" "\n"; - tag: "ps" "ps"; - tag: "hilight" "+ font_weight=Bold"; - tag: "b" "+ font_weight=Bold"; - tag: "tab" "\t"; - } -} - -group { "elm/label/event/default"; - inherit_only: 1; - programs { - program { "start_slide"; - source: "elm"; - signal: "elm,state,slide,start"; - after: "on_start_slide"; - } - program { "stop_slide"; - source: "elm"; - signal: "elm,state,slide,stop"; - after: "on_stop_slide"; - } - } -} - -group { "elm/label/base/template"; - inherit: "elm/label/event/default"; - inherit_only: 1; - parts { - rect { "bg"; - desc { "default"; - color_class: "label/default/bg"; - } - } - rect { "clipper"; - desc { "default"; - } - } - textblock { "elm.text"; - scale; - clip: "clipper"; - desc { "default"; - text.style: "textblock_style"; - } - } - } - programs { - program { "on_start_slide"; - } - program { "on_stop_slide"; - } - } -} - -group { "elm/label/base/default"; - inherit: "elm/label/base/template"; - parts { - textblock { "elm.text"; - scale; - clip: "clipper"; - desc { "default"; - text { - style: "textblock_style"; - min: 0 1; - align: 0.0 0.0; - } - } - } - } -} - -/* default label doesn't use it */ -group { "elm/label/base_wrap/default"; - inherit: "elm/label/base/template"; - parts { - textblock { "elm.text"; - scale; - multiline: 1; - desc { "default"; - text { - style: "textblock_style"; - min: 0 1; - align: 0.0 0.0; - } - } - desc { "charwrap_mode"; - text { - style: "textblock_charwrap_style"; - min: 0 1; - align: 0.0 0.0; - } - } - } - } - programs { - program { "default"; - signal: "elm,state,default"; - source: "elm"; - action: STATE_SET "default"; - target: "elm.text"; - } - program { "charwrap"; - signal: "elm,state,charwrap"; - source: "elm"; - action: STATE_SET "charwrap_mode"; - target: "elm.text"; - } - } -} - -/* default label doesn't use it */ -group { "elm/label/base_wrap_ellipsis/default"; - inherit: "elm/label/base/template"; - parts { - textblock { "elm.text"; - scale; - multiline: 1; - desc { "default"; - fixed: 0 1; - text { - style: "textblock_style"; - min: 0 1; - align: 0.0 0.0; - } - } - desc { "charwrap_mode"; - fixed: 0 1; - text { - style: "textblock_charwrap_style"; - min: 0 1; - align: 0.0 0.0; - } - } - } - } - programs { - program { "default"; - signal: "elm,state,default"; - source: "elm"; - action: STATE_SET "default"; - target: "elm.text"; - } - program { "charwrap"; - signal: "elm,state,charwrap"; - source: "elm"; - action: STATE_SET "charwrap_mode"; - target: "elm.text"; - } - } -} - -group { "elm/label/base/slide_long"; - inherit: "elm/label/base/template"; - script { - public g_duration = 0, g_stopslide, g_timer_id, g_anim_id; - - public message(Msg_Type:type, id, ...) { - if (type == MSG_FLOAT_SET) { - new Float:duration; - duration = getfarg(2); - if (id == 0) - set_float(g_duration, duration); - else - set_float(g_duration, duration / LABEL_FONT_SIZE_INC * SLIDE_SPEED_WEIGHT); - } - } - public slide_to_end_anim(val, Float:pos) { - new stopflag; - new id; - stopflag = get_int(g_stopslide); - if (stopflag == 1) return; - set_tween_state(PART:"elm.text", pos, "slide_begin", 0.0, "slide_end", 0.0); - if (pos >= 1.0) { - id = timer(0.5, "slide_to_begin", 1); - set_int(g_timer_id, id); - } - } - public slide_to_end() { - new stopflag; - new id; - new Float:duration; - stopflag = get_int(g_stopslide); - if (stopflag == 1) return; - duration = get_float(g_duration); - id = anim(duration, "slide_to_end_anim", 1); - set_int(g_anim_id, id); - } - public slide_to_begin() { - new stopflag; - new id; - stopflag = get_int(g_stopslide); - if (stopflag == 1) return; - set_state(PART:"elm.text", "slide_begin", 0.0); - id = timer(0.5, "slide_to_end", 1); - set_int(g_timer_id, id); - } - public start_slide() { - set_int(g_stopslide, 0); - set_state(PART:"elm.text", "slide_begin", 0.0); - slide_to_end(); - } - public stop_slide() { - new id; - set_int(g_stopslide, 1); - id = get_int(g_anim_id); - cancel_anim(id); - id = get_int(g_timer_id); - cancel_timer(id); - set_state(PART:"elm.text", "default", 0.0); - } - } - parts { - rect { "bg"; - desc { "default"; - color_class: "label/slide_long/bg"; - } - } - textblock { "elm.text"; - scale; - clip: "clipper"; - desc { "default"; - align: 0.0 0.0; - text { - style: "textblock_style"; - min: 0 1; - align: 0.0 0.0; - } - } - desc { "slide_end"; - inherit: "default"; - rel2.relative: 0.0 1.0; - align: 1.0 0.0; - text { - style: "textblock_style"; - min: 1 1; - align: 0.0 0.0; - } - } - desc { "slide_begin"; - inherit: "default"; - rel1.relative: 1.0 0.0; - text { - style: "textblock_style"; - min: 1 1; - align: 0.0 0.0; - } - } - } - } - programs { - program { "on_start_slide"; - script { - start_slide(); - } - } - program { "on_stop_slide"; - script { - stop_slide(); - } - } - } -} - -group { "elm/label/base/slide_roll"; - inherit: "elm/label/base/template"; - script { - public g_duration = 0; - public g_stopslide = 0; - public g_timer_id = 0; - public g_anim_id = 0; - public g_tb_w = 0; - public g_tb_h = LABEL_FONT_SIZE_INC; - public org_text = 0; - public message(Msg_Type:type, id, ...) { - if (type == MSG_FLOAT_SET) { - new Float:duration; - duration = getfarg(2); - if (id == 0) - set_float(g_duration, duration); - else - set_float(g_duration, duration / get_int(g_tb_h) * SLIDE_SPEED_WEIGHT); - } - } - public get_tb_width() { - new x, y, w, h; - set_state(PART:"elm.text", "no_ellipsis", 0.0); - get_geometry(PART:"elm.text", x, y, w, h); - set_int(g_tb_w, w); - set_int(g_tb_h, h); - set_state(PART:"clipper_elm.text", "default", 0.0); - get_geometry(PART:"clipper_elm.text", x, y, w, h); - set_int(org_text, w); - } - public slide_to_end_anim(val, Float:pos) { - if (get_int(g_stopslide)) return; - set_tween_state(PART:"elm.text.slide", pos*0.5, "slide_begin", 0.0, "slide_end", 0.0); - if (pos >= 1.0) { - set_int(g_timer_id, timer(1.5, "start_slide", 0)); - } - } - public slide_to_end() { - if (get_int(g_stopslide)) return; - set_int(g_anim_id, anim(get_float(g_duration), "slide_to_end_anim", 0)); - } - public start_slide(val) { - new Float:len; - set_int(g_stopslide, 0); - get_tb_width(); - if (!get_float(g_duration)) { - len = get_int(g_tb_w); - set_float(g_duration, len / get_int(g_tb_h) * SLIDE_SPEED_WEIGHT); - } - if(get_int(g_tb_w) > get_int(org_text)) { - run_program(PROGRAM:"slide_text_set"); - set_state(PART:"elm.text.slide", "slide_begin", 0.0); - set_state(PART:"clipper_elm.text", "hide", 0.0); - set_state(PART:"clipper_elm.text.slide", "show", 0.0); - slide_to_end(); - } - } - public stop_slide() { - new slide_start_timer; - new slide_anim_id; - set_int(g_stopslide, 1); - set_float(g_duration, 0); - slide_start_timer = get_int(g_timer_id); - if (slide_start_timer) { - cancel_timer(slide_start_timer); - set_int(g_timer_id, 0); - } - slide_anim_id = get_int(g_anim_id); - if (slide_anim_id) { - cancel_anim(slide_anim_id); - set_int(g_anim_id, 0); - } - set_text(PART:"elm.text.slide", ""); - set_state(PART:"elm.text", "default", 0.0); - set_state(PART:"elm.text.slide", "default", 0.0); - set_state(PART:"clipper_elm.text", "default", 0.0); - set_state(PART:"clipper_elm.text.slide", "default", 0.0); - } - } - parts { - rect { "bg"; - desc { "default"; - color_class: "label/slide_roll/bg"; - } - } - rect { "clipper_elm.text"; - nomouse; - clip: "clipper"; - desc { "default"; - } - desc { "hide"; - inherit: "default"; - hid; - } - } - textblock { "elm.text"; - scale; - clip: "clipper_elm.text"; - desc { "default"; - align: 0.0 0.5; - text { - style: "textblock_style"; - min: 0 1; - } - } - desc { "no_ellipsis"; - inherit: "default"; - text.min: 1 1; - } - } - rect { "clipper_elm.text.slide"; - nomouse; - clip: "clipper"; - desc { "default"; - hid; - } - desc { "show"; - inherit: "default"; - vis; - } - } - spacer { "slide_text_gap"; - scale; - desc { "default"; - fixed: 1 0; - min: SLIDE_TEXT_GAP 0; - max: SLIDE_TEXT_GAP -1; - align: 1.0 0.5; - rel2.relative: 0.0 1.0; - } - } - textblock { "elm.text.slide"; - scale; - clip: "clipper_elm.text.slide"; - desc { "default"; - align: 0.0 0.5; - text { - style: "textblock_style"; - min: 0 1; - } - } - desc { "slide_begin"; - inherit: "default"; - text.min: 1 1; - rel2.relative: 0.0 1.0; - } - desc { "slide_end"; - inherit: "default"; - align: 1.0 0.5; - text.min: 1 1; - text.align: 1.0 0.5; - rel.to: "slide_text_gap"; - } - } - } - programs { - program { "slide_text_set"; - script { - new buf[1024]; - new buffer[SLIDE_TEXT_MAX_LENGTH]; - get_text(PART:"elm.text", buf, 1024); - snprintf(buffer, SLIDE_TEXT_MAX_LENGTH, "%s", buf); - strcat(buffer, SLIDE_TEXT_CHAR_GAP); - strcat(buffer, buf); - strcat(buffer, SLIDE_TEXT_CHAR_GAP); - set_text(PART:"elm.text.slide", buffer); - } - } - program { "on_start_slide"; - script { - run_program(PROGRAM:"stop_slide"); - set_int(g_timer_id, timer(1.5, "start_slide", 0)); - } - } - program { "on_stop_slide"; - script { - stop_slide(); - } - } - } -} - -group { "elm/label/base/slide_short"; - inherit: "elm/label/base/template"; - script { - public g_duration = 0, g_stopslide, g_timer_id, g_anim_id; - - public message(Msg_Type:type, id, ...) { - if (type == MSG_FLOAT_SET) { - new Float:duration; - duration = getfarg(2); - if (id == 0) - set_float(g_duration, duration); - else - set_float(g_duration, duration / LABEL_FONT_SIZE_INC * SLIDE_SPEED_WEIGHT); - } - } - public slide_to_end_anim(val, Float:pos) { - new stopflag; - new id; - stopflag = get_int(g_stopslide); - if (stopflag == 1) return; - set_tween_state(PART:"elm.text", pos, "slide_begin", 0.0, "slide_end", 0.0); - if (pos >= 1.0) { - id = timer(0.5, "slide_to_begin", 1); - set_int(g_timer_id, id); - } - } - public slide_to_end() { - new stopflag; - new id; - new Float:duration; - stopflag = get_int(g_stopslide); - if (stopflag == 1) return; - duration = get_float(g_duration); - id = anim(duration, "slide_to_end_anim", 1); - set_int(g_anim_id, id); - } - public slide_to_begin() { - new stopflag; - new id; - stopflag = get_int(g_stopslide); - if (stopflag == 1) return; - set_state(PART:"elm.text", "slide_begin", 0.0); - id = timer(0.5, "slide_to_end", 1); - set_int(g_timer_id, id); - } - public start_slide() { - set_int(g_stopslide, 0); - set_state(PART:"elm.text", "slide_begin", 0.0); - slide_to_end(); - } - public stop_slide() { - new id; - set_int(g_stopslide, 1); - id = get_int(g_anim_id); - cancel_anim(id); - id = get_int(g_timer_id); - cancel_timer(id); - set_state(PART:"elm.text", "default", 0.0); - } - } - parts { - rect { "bg"; - desc { "default"; - color_class: "label/slide_short/bg"; - } - } - textblock { "elm.text"; - scale; - clip: "clipper"; - desc { "default"; - align: 0.0 0.0; - text { - style: "textblock_style"; - min: 0 1; - align: 0.0 0.0; - } - } - desc { "slide_end"; - inherit: "default"; - rel1.relative: 1.0 0.0; - align: 1.0 0.0; - text { - style: "textblock_style"; - min: 1 1; - align: 0.0 0.0; - } - } - desc { "slide_begin"; - inherit: "default"; - rel2.relative: 0.0 1.0; - align: 0.0 0.0; - text { - style: "textblock_style"; - min: 1 1; - align: 0.0 0.0; - } - } - } - } - programs { - program { "on_start_slide"; - script { - start_slide(); - } - } - program { "on_stop_slide"; - script { - stop_slide(); - } - } - } -} - -group { "elm/label/base/slide_bounce"; - inherit: "elm/label/base/template"; - script { - public g_duration = 0, g_stopslide, g_timer_id, g_anim_id; - - public message(Msg_Type:type, id, ...) { - if (type == MSG_FLOAT_SET) { - new Float:duration; - duration = getfarg(2); - if (id == 0) - set_float(g_duration, duration); - else - set_float(g_duration, duration / LABEL_FONT_SIZE_INC * SLIDE_SPEED_WEIGHT); - } - } - public slide_to_end_anim(val, Float:pos) { - new stopflag; - new id; - stopflag = get_int(g_stopslide); - if (stopflag == 1) return; - set_tween_state(PART:"elm.text", pos, "slide_begin", 0.0, "slide_end", 0.0); - if (pos >= 1.0) { - id = timer(0.5, "slide_to_begin", 1); - set_int(g_timer_id, id); - } - } - public slide_to_end() { - new stopflag; - new id; - new Float:duration; - stopflag = get_int(g_stopslide); - if (stopflag == 1) return; - duration = get_float(g_duration); - id = anim(duration, "slide_to_end_anim", 1); - set_int(g_anim_id, id); - } - public slide_to_begin_anim(val, Float:pos) { - new stopflag; - new id; - stopflag = get_int(g_stopslide); - if (stopflag == 1) return; - set_tween_state(PART:"elm.text", pos, "slide_end", 0.0, "slide_begin", 0.0); - if (pos >= 1.0) { - id = timer(0.5, "slide_to_end", 1); - set_int(g_timer_id, id); - } - } - public slide_to_begin() { - new stopflag; - new id; - new Float:duration; - stopflag = get_int(g_stopslide); - if (stopflag == 1) return; - duration = get_float(g_duration); - id = anim(duration, "slide_to_begin_anim", 1); - set_int(g_anim_id, id); - } - public start_slide() { - set_int(g_stopslide, 0); - set_state(PART:"elm.text", "slide_begin", 0.0); - slide_to_end(); - } - public stop_slide() { - new id; - set_int(g_stopslide, 1); - id = get_int(g_anim_id); - cancel_anim(id); - id = get_int(g_timer_id); - cancel_timer(id); - set_state(PART:"elm.text", "default", 0.0); - } - } - parts { - rect { "bg"; - desc { "default"; - color_class: "label/slide_bounce/bg"; - } - } - textblock { "elm.text"; - scale; - clip: "clipper"; - desc { "default"; - align: 0.0 0.0; - text { - style: "textblock_style"; - min: 0 1; - align: 0.0 0.0; - } - } - desc { "slide_end"; - inherit: "default"; - rel1.relative: 1.0 0.0; - align: 1.0 0.0; - text.min: 1 1; - } - desc { "slide_begin"; - inherit: "default"; - rel2.relative: 0.0 1.0; - text.min: 1 1; - } - } - } - programs { - program { "on_start_slide"; - script { - start_slide(); - } - } - program { "on_stop_slide"; - script { - stop_slide(); - } - } - } -} diff --git a/ElmSharp/theme/mobile/widgets/layout.edc b/ElmSharp/theme/mobile/widgets/layout.edc deleted file mode 100644 index 4268a9f..0000000 --- a/ElmSharp/theme/mobile/widgets/layout.edc +++ /dev/null @@ -1,40 +0,0 @@ -/* - * Copyright (c) 2010 Samsung Electronics Co., Ltd All Rights Reserved - * - * BSD 2-Clause License (http://www.opensource.org/licenses/bsd-license.php) - * - * Redistribution and use in source and binary forms, with or without - * modification, are permitted provided that the following conditions are met: - * - * 1. Redistributions of source code must retain the above copyright notice, this - * list of conditions and the following disclaimer. - * 2. Redistributions in binary form must reproduce the above copyright notice, - * this list of conditions and the following disclaimer in the documentation - * and/or other materials provided with the distribution. - * - * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND - * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED - * WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE - * DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR - * ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES - * (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; - * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND - * ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT - * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS - * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. - */ - -group { "elm/layout/background/default"; - parts { - rect { "bg"; - scale; - desc { "default"; - color_class: "layout/background/bg"; - } - } - swallow { "elm.swallow.content"; - scale; - desc { "default"; } - } - } -} diff --git a/ElmSharp/theme/mobile/widgets/radio.edc b/ElmSharp/theme/mobile/widgets/radio.edc deleted file mode 100644 index 9ddf30f..0000000 --- a/ElmSharp/theme/mobile/widgets/radio.edc +++ /dev/null @@ -1,559 +0,0 @@ -/* - * Copyright (c) 2015 Samsung Electronics Co., Ltd All Rights Reserved - * - * BSD 2-Clause License (http://www.opensource.org/licenses/bsd-license.php) - * - * Redistribution and use in source and binary forms, with or without - * modification, are permitted provided that the following conditions are met: - * - * 1. Redistributions of source code must retain the above copyright notice, this - * list of conditions and the following disclaimer. - * 2. Redistributions in binary form must reproduce the above copyright notice, - * this list of conditions and the following disclaimer in the documentation - * and/or other materials provided with the distribution. - * - * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND - * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED - * WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE - * DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR - * ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES - * (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; - * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND - * ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT - * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS - * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. - */ -#define STYLE_TAGS \ - tag: "br" "\n";\ - tag: "ps" "ps";\ - tag: "tab" "\t";\ - tag: "b" "+ font_weight=Bold"; - -styles{ - style { name: "radio_default"; - base: "color=#000000FF font=Tizen:weight=Light font_size=40 text_class=tizen ellipsis=1.0"; - STYLE_TAGS - } - style { name: "radio_default_dim"; - base: "color=#000000A3 font=Tizen:weight=Light font_size=40 text_class=tizen ellipsis=1.0"; - STYLE_TAGS - } - style { name: "radio_default_press"; - base: "color=#000000FF font=Tizen:weight=Light font_size=40 text_class=tizen ellipsis=1.0"; - STYLE_TAGS - } -} -#undef STYLE_TAGS - -group { "elm/radio/event/default"; - inherit_only: 1; - parts { - rect { "event"; - mouse; - desc { "default"; - color: 0 0 0 0 ; - rel.to: "base"; - } - desc { "disabled"; - inherit: "default"; - hid; - } - } - } - programs { - program { "clicked"; - signal: "mouse,clicked,1"; - source: "event"; - action: SIGNAL_EMIT "elm,action,click" ""; - after: "on_clicked"; - } - program { "pressed"; - signal: "mouse,down,1*"; - source: "event"; - action: SIGNAL_EMIT "elm,action,press" ""; - after: "on_pressed"; - } - program { "unpressed"; - signal: "mouse,up,1"; - source: "event"; - action: SIGNAL_EMIT "elm,action,unpress" ""; - after: "on_unpressed"; - } - program { "set_radio"; - signal: "elm,state,radio,on"; - source: "elm"; - after: "on_set_radio"; - } - program { "unset_radio"; - signal: "elm,state,radio,off"; - source: "elm"; - after: "on_unset_radio"; - } - program { "disabled"; - signal: "elm,state,disabled"; - source: "elm"; - after: "on_disabled"; - } - program { "enabled"; - signal: "elm,state,enabled"; - source: "elm"; - after: "on_enabled"; - } - program { "enable_event_pass"; - signal: "elm,event,pass,enabled"; - source: "elm"; - script { - set_mouse_events(PART:"event", 0); - } - } - program { "disable_event_pass"; - signal: "elm,event,pass,disabled"; - source: "elm"; - script { - set_mouse_events(PART:"event", 1); - } - } - program { "enable_event_repeat"; - signal: "elm,event,repeat,enabled"; - source: "elm"; - script { - set_repeat_events(PART:"event", 1); - } - } - program { "disable_event_repeat"; - signal: "elm,event,repeat,disabled"; - source: "elm"; - script { - set_repeat_events(PART:"event", 0); - } - } - } -} -group { "elm/radio/base/template"; - parts { - spacer { "base"; - desc { "default"; - } - } - } - inherit: "elm/radio/event/default"; - programs { - program { "on_clicked"; - } - program { "on_pressed"; - } - program { "on_unpressed"; - } - program { "on_disabled"; - } - program { "on_enabled"; - } - program { "on_set_radio"; - } - program { "on_unset_radio"; - } - } -} -group { "elm/radio/base/default"; - images{ - vector: core_radio_stroke.svg; - vector: core_radio_icon.svg; - vector: core_radio_bg_01.svg; - vector: core_radio_bg_02.svg; - vector: core_radio_white_bg.svg; - } - nomouse; - target_group: "vector_group" "clipper_bg_vector" "clipper_icon" "clipper_icon_inner" "clipper_icon_outer" "clipper_icon_stroke"; - parts { - spacer { "base"; - scale; - desc { "default"; - min: RADIO_DEFAULT_SIZE_INC; - } - } - //bg shape - vector { "bg_vector"; - scale; - clip: "clipper_bg_vector"; - desc { "default"; - image.normal: "core_radio_white_bg.svg"; - min: RADIO_DEFAULT_SIZE_INC; - rel1.relative: 0 0.5; - rel2.relative: 0 0.5; - align: 0 0.5; - fixed: 1 1; - } - } - rect { "clipper_bg_vector"; - desc { "default"; - color_class: "radio/default/bg"; - } - desc { "on"; - color_class: "radio/default/bg_border_on"; - } - desc { "off"; - inherit: "default"; - } - desc { "disabled_on"; - color_class: "radio/default/bg_border_on_disabled"; - } - desc { "disabled_off"; - color_class: "radio/default/bg_disabled"; - } - } - vector { "icon"; - scale; - clip: "clipper_icon"; - desc { "default"; - image.normal: "core_radio_icon.svg"; - rel1.to: "bg_vector"; - rel2.to: "bg_vector"; - } - } - rect { "clipper_icon"; - desc { "default"; - color: 250 250 250 0; - } - desc { "on"; - color_class: "radio/default/bg_on" ; - } - desc { "off"; - inherit: "default"; - } - desc { "disabled_off"; - inherit: "default"; - } - desc { "disabled_on"; - color_class: "radio/default/bg_on_disabled" ; - } - } - vector { "icon_inner"; - scale; - clip: "clipper_icon_inner"; - desc { "default"; - image.normal: "core_radio_bg_01.svg"; - rel.to: "bg_vector"; - } - } - rect { "clipper_icon_inner"; - desc { "default"; - rel1.relative: 0.5 0.5; - rel2.relative: 0.5 0.5; - rel.to: "bg_vector"; - } - desc { "on"; - rel.to: "bg_vector"; - color_class: "radio/default/icon"; - } - desc { "off"; - inherit: "default"; - } - desc { "disabled_off"; - inherit: "default"; - } - desc { "disabled_on"; - rel.to: "bg_vector"; - color_class: "radio/default/icon_disabled"; - } - } - vector { "icon_outer"; - scale; - clip: "clipper_icon_outer"; - desc { "default"; - image.normal: "core_radio_bg_02.svg"; - rel1.to: "bg_vector"; - rel2.to: "bg_vector"; - } - } - rect { "clipper_icon_outer"; - desc { "default"; - color: 61 185 204 0; - } - desc { "on"; - color_class: "radio/default/icon"; - } - desc { "off"; - inherit: "default"; - } - desc { "disabled_off"; - inherit: "default"; - } - desc { "disabled_on"; - color_class: "radio/default/icon_disabled"; - } - } - vector { "icon_stroke"; - scale; - clip: "clipper_icon_stroke"; - desc { "default"; - image.normal: "core_radio_stroke.svg"; - rel1.to: "bg_vector"; - rel2.to: "bg_vector"; - } - } - rect { "clipper_icon_stroke"; - desc { "default"; - color_class: "radio/default/stroke"; - } - desc { "on"; - color: 61 185 204 0; - } - desc { "off"; - inherit: "default"; - } - desc { "disabled_off"; - color_class: "radio/default/stroke_disabled"; - } - desc { "disabled_on"; - inherit: "on"; - } - } - spacer { "padding_before_text"; - scale; - desc { "default"; - align: 0.0 0.5; - min: 0 0; - rel1 { - to: "bg_vector"; - relative: 1.0 0.0; - } - rel2 { - to: "bg_vector"; - relative: 1.0 1.0; - } - } - desc { "visible"; - inherit: "default" 0.0; - min: RADIO_PAD_BEFORE_TEXT_INC; - fixed: 1 1; - } - } - textblock { "elm.text"; - scale; - desc { "default"; - hid; - fixed: 0 1; - rel1 { - relative: 1.0 0.5; - to_x: "padding_before_text"; - } - rel2 { - relative: 1.0 0.5; - } - align: 0.0 0.5; - text { - style: "radio_default"; - min: 0 0; - } - } - desc { "visible"; - inherit: "default" 0.0; - vis; - text.min: 0 1; - } - desc { "disabled"; - inherit: "default" 0.0; - vis; - text { - style: "radio_default_dim"; - min: 0 1; - } - } - desc { "pressed"; - inherit: "default" 0.0; - vis; - text { - style: "radio_default_press"; - min: 0 1; - } - } - } - } - inherit: "elm/radio/event/default"; - script { - public radio_state; - public disabled; - public text; - public animate = 0; - } - programs { - program { "on_clicked"; - script { - if (get_int(disabled) == 1) return; - emit("elm,action,radio,toggle", ""); - run_program(PROGRAM:"touch_sound"); - } - } - program { "on_pressed"; - script { - if (get_int(disabled) == 1) return; - if (get_int(text) == 1) { - set_state(PART:"elm.text", "pressed", 0.0); - } - } - } - program { "on_unpressed"; - script { - if (get_int(disabled) == 1) return; - if (get_int(radio_state) == 1) { - run_program(PROGRAM:"toggle_on_without_effect"); - }else { - run_program(PROGRAM:"toggle_off_without_effect"); - } - if (get_int(text) == 1) { - set_state(PART:"elm.text", "visible", 0.0); - } - } - } - program { "on_disabled"; - script { - set_int(disabled, 1); - if (get_int(radio_state) == 1) { - run_program(PROGRAM:"toggle_disabled_on_without_effect"); - }else { - run_program(PROGRAM:"toggle_disabled_off_without_effect"); - } - if (get_int(text) == 1) { - set_state(PART:"elm.text", "disabled", 0.0); - } - } - } - program { "on_enabled"; - script { - set_int(disabled, 0); - if (get_int(radio_state) == 1) { - run_program(PROGRAM:"toggle_on_without_effect"); - } else { - run_program(PROGRAM:"toggle_off_without_effect"); - } - if (get_int(text) == 1) { - set_state(PART:"elm.text", "visible", 0.0); - } - } - } - program { "on_set_radio"; - script { - if (get_int(disabled) == 1) { - if (get_int(animate) == 0) { - run_program(PROGRAM:"toggle_disabled_on_without_effect"); - } else { - run_program(PROGRAM:"toggle_disabled_on_with_effect"); - } - }else { - if (get_int(animate) == 0) { - run_program(PROGRAM:"toggle_on_without_effect"); - emit("elm,radio,state,toggle", "tizen_vg"); - } else { - run_program(PROGRAM:"toggle_on_with_effect"); - emit("elm,radio,action,toggle", "tizen_vg"); - } - } - set_int(animate, 0); - set_int(radio_state, 1); - } - } - program { "on_unset_radio"; - script { - if (get_int(disabled) == 1) { - if (get_int(animate) == 0) { - run_program(PROGRAM:"toggle_disabled_off_without_effect"); - } else { - run_program(PROGRAM:"toggle_disabled_off_with_effect"); - } - }else { - if (get_int(animate) == 0) { - run_program(PROGRAM:"toggle_off_without_effect"); - emit("elm,radio,state,toggle", "tizen_vg"); - } else { - run_program(PROGRAM:"toggle_off_with_effect"); - emit("elm,radio,action,toggle", "tizen_vg"); - } - } - set_int(animate, 0); - set_int(radio_state, 0); - } - } - program { "touch_sound"; - action: RUN_PLUGIN "touch_sound"; - } - program { "activate_animate_radio"; - signal: "elm,activate,radio,on"; - source: "elm"; - script { - set_int(animate, 1); - } - } - program { "deactivate_animate_radio"; - signal: "elm,activate,radio,off"; - source: "elm"; - script { - set_int(animate, 1); - } - } - program { "toggle_on_with_effect"; - action: STATE_SET "on"; - transition: DECELERATE 0.3; - target_groups: "vector_group"; - after: "finished_animation"; - } - program { "toggle_off_with_effect"; - action: STATE_SET "default"; - target_groups: "vector_group"; - transition: DECELERATE 0.3; - after: "finished_animation"; - } - program { "toggle_disabled_on_with_effect"; - action: STATE_SET "disabled_on"; - target_groups: "vector_group"; - transition: DECELERATE 0.3; - after: "finished_animation"; - } - program { "toggle_disabled_off_with_effect"; - action: STATE_SET "disabled_off"; - target_groups: "vector_group"; - transition: DECELERATE 0.3; - after: "finished_animation"; - } - program { "toggle_on_without_effect"; - action: STATE_SET "on"; - target_groups: "vector_group"; - } - program { "toggle_off_without_effect"; - action: STATE_SET "default"; - target_groups: "vector_group"; - } - program { "toggle_disabled_on_without_effect"; - action: STATE_SET "disabled_on"; - target_groups: "vector_group"; - } - program { "toggle_disabled_off_without_effect"; - action: STATE_SET "disabled_off"; - target_groups: "vector_group"; - } - program { "finished_animation"; - action: SIGNAL_EMIT "animation,finished" ""; - } - program { "visible_text"; - signal: "elm,state,text,visible"; - source: "elm"; - script { - set_int(text, 1); - set_state(PART:"padding_before_text", "visible", 0.0); - if (get_int(disabled) == 1) { - set_state(PART:"elm.text", "disabled", 0.0); - }else { - set_state(PART:"elm.text", "visible", 0.0); - } - } - } - program { "hidden_text"; - signal: "elm,state,text,hidden"; - source: "elm"; - script { - set_int(text, 0); - set_state(PART:"padding_before_text", "default", 0.0); - set_state(PART:"elm.text", "default", 0.0); - } - } - } -} diff --git a/ElmSharp/theme/tv/HD-inc.edc b/ElmSharp/theme/tv/HD-inc.edc deleted file mode 100644 index 9cb95f2..0000000 --- a/ElmSharp/theme/tv/HD-inc.edc +++ /dev/null @@ -1,322 +0,0 @@ -/* - * Copyright (c) 2015 Samsung Electronics Co., Ltd All Rights Reserved - * - * BSD 2-Clause License (http://www.opensource.org/licenses/bsd-license.php) - * - * Redistribution and use in source and binary forms, with or without - * modification, are permitted provided that the following conditions are met: - * - * 1. Redistributions of source code must retain the above copyright notice, this - * list of conditions and the following disclaimer. - * 2. Redistributions in binary form must reproduce the above copyright notice, - * this list of conditions and the following disclaimer in the documentation - * and/or other materials provided with the distribution. - * - * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND - * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED - * WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE - * DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR - * ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES - * (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; - * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND - * ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT - * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS - * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. - */ - -//****************************************************************************// -// This file defines the width, height (not color!) for each widgets -// We can define different INC file by Resolution (HD, qHD, WVGA, HVGA) -// -// ************* Naming Rule ************ // -// {WIDGET}_{GROUP}_{PART}_{STATE}_{TYPE} -// WIDGET: NAVIFRAME, LIST, DATETIME, POPUP, etc. -// GROUP: INDEX -// PART: TEXT, ICON, BG, PADDING, DIVIDER, ICON, etc. -// STATE: LEFT, RIGHT, TOP, BOTTOM, MIN, MAX, -// TYPE: HEIGHT, WIDTH, SIZE -// e.g. LIST_PADDING_LEFT_HEIGHT -//****************************************************************************// - -#define BASE_SCALE_INC 2.0 - -//****************************************************************************// -// Button -//****************************************************************************// -#define BUTTON_DEFAULT_PAD_SIZE 20 70 -#define BUTTON_DEFAULT_MIN_SIZE 196 70 -#define BUTTON_DEFAULT_FONT_SIZE 28 -#define BUTTON_TEXT_PAD_SIZE 20 45 -#define BUTTON_TEXT_MIN_SIZE 147 45 -#define BUTTON_TEXT_FONT_SIZE 28 -#define BUTTON_BORDER 4 4 4 4 - -#define BUTTON_NAVIFRAME_BACK_BUTTON_SIZE_INC 80 80 -#define BUTTON_NAVIFRAME_BACK_BUTTON_EFFECT_MAX_SIZE_INC 80 80 -#define BUTTON_NAVIFRAME_BACK_CORNER_RADIUS 10 - -//****************************************************************************// -// Check -//****************************************************************************// -#define CHECK_ONOFF_SIZE_INC 72 72 -#define CHECK_ONOFF_ICON_SIZE_INC 32 32 -#define CHECK_PAD_BEFORE_TEXT_INC 32 0 - -//****************************************************************************// -// Genlist -//****************************************************************************// -// Tizen 2.4 -#define GENLIST_ITEM_1LINE_HEIGHT_INC 120 -#define GENLIST_ITEM_2LINE_HEIGHT_INC 144 -#define GENLIST_ITEM_LR_PADDING_INC 32 -#define GENLIST_ITEM_TOP_PADDING_INC 23 -#define GENLIST_ITEM_BOTTOM_PADDING_INC 24 // including bottom line -#define GENLIST_ITEM_TYPE_BA_PADDING_INC 32 -#define GENLIST_ITEM_TYPE_DC_PADDING_INC 32 -#define GENLIST_ITEM_TYPE_AD_PADDING_INC 32 -#define GENLIST_ITEM_MAIN_LINE_HEIGHT_INC 54 -#define GENLIST_ITEM_MAIN_LINE_ICON_TEXT_PADDING_INC 12 -#define GENLIST_ITEM_MAIN_LINE_TEXT_END_PADDING_INC 32 -#define GENLIST_ITEM_SUB_LINE_HEIGHT_INC 43 -#define GENLIST_ITEM_SUB_LINE_TEXT_END_PADDING_INC 32 -#define GENLIST_ITEM_END_TEXT_WIDTH_INC 121 -#define GENLIST_ITEM_GROUP_INDEX_HEIGHT_INC 64 -#define GENLIST_ITEM_GROUP_INDEX_TOP_PADDING_INC 10 -#define GENLIST_ITEM_GROUP_INDEX_BOTTOM_PADDING_INC 11 -#define GENLIST_ITEM_GROUP_INDEX_RIGHT_PADDING_INC 17 -#define GENLIST_ITEM_GROUP_INDEX_END_TEXT_WIDTH_INC 218 -#define GENLIST_ITEM_GROUP_INDEX_EXPAND_TOP_PADDING_INC 12 -#define GENLIST_ITEM_GROUP_INDEX_EXPAND_BOTTOM_PADDING_INC 12 -#define GENLIST_ITEM_GROUP_INDEX_EXPAND_ICON_SIZE_INC 64 64 -#define GENLIST_ITEM_MULTILINE_1LINE_HEIGHT_INC 120 - -//****************************************************************************// -// Index -//****************************************************************************// -// FastScrol -#define INDEX_ITEM_WIDTH_INC 42 // 40 + 2(left line) -#define INDEX_ITEM_HEIGHT_INC 42 // 40 + 2(divider) -#define INDEX_ITEM_TEXT_WIDTH_INC 40 -#define INDEX_ITEM_TEXT_HEIGHT_INC 40 -#define INDEX_DIVIDER_HEIGHT_INC 2 -#define INDEX_SCROLL_BG_LINE_WIDTH_INC 2 -#define INDEX_TEXT_LEFT_PADDING_SIZE_INC 18 -#define INDEX_TEXT_RIGHT_PADDING_SIZE_INC 18 -#define INDEX_TEXT_BOTTOM_PADDING_SIZE_INC 10 -#define INDEX_PADDING_SIZE_INC 7 -#define INDEX_ITEM_PADDING_SIZE_INC 0 -#define INDEX_SCROLL_TEXT1_DEFAULT_SIZE_INC 132 158 - -// Page Control -#define INDEX_PAGECONTROL_IND_INC 42 40 -#define INDEX_PAGECONTROL_IND_MIN_INC 40 40 - -//****************************************************************************// -// Naviframe -//****************************************************************************// -#define NAVIFRAME_BG_PORTRAIT_HEIGHT_INC 1280 -#define NAVIFRAME_BG_LANDSCAPE_HEIGHT_INC 720 -#define NAVIFRAME_TITLE_HEIGHT_INC 110 -#define NAVIFRAME_SUBTITLE_HEIGHT_INC 38 -#define NAVIFRAME_TITLE_TOP_PADDING_HEIGHT_INC 3 -#define NAVIFRAME_SUBTITLE_BOTTOM_PADDING_HEIGHT_INC 3 -#define NAVIFRAME_TITLE_LEFT_PADDING_WIDTH_INC 32 -#define NAVIFRAME_TITLE_RIGHT_PADDING_WIDTH_INC 32 -#define NAVIFRAME_TITLE_FUNC_BTN_SIZE_INC 176 110 -#define NAVIFRAME_BADGE_ICON_LEFT_PADDING_WIDTH_INC 22 -#define NAVIFRAME_BADGE_TEXT_LEFT_PADDING_WIDTH_INC 22 -#define NAVIFRAME_BADGE_HEIGHT_INC 48 -#define NAVIFRAME_BADGE2_PADDING_WIDTH_INC (NAVIFRAME_BADGE_ICON_LEFT_PADDING_WIDTH_INC + NAVIFRAME_BADGE_TEXT_LEFT_PADDING_WIDTH_INC + NAVIFRAME_BADGE_TEXT_LEFT_PADDING_WIDTH_INC) -#define NAVIFRAME_TOOLBAR_HEIGHT_INC 152 -#define NAVIFRAME_TOOLBAR_COLOR_INC 250 250 250 255 -#define NAVIFRAME_BACK_BUTTON_LR_PADDING_WIDTH_INC 10 -#define NAVIFRAME_BACK_BUTTON_TITLE_RIGHT_PADDING_WIDTH_INC 90 -#define NAVIFRAME_TITLE_TEXT_FONT_SIZE_INC 50 -#define NAVIFRAME_SUBTITLE_VISIBLE_TEXT_FONT_SIZE_INC 42 -#define NAVIFRAME_VISIBLE_TEXT_FONT_SIZE_INC 28 -#define NAVIFRAME_TITLE_TEXT_FONT_RANGE_INC 36 50 -#define NAVIFRAME_SUBTITLE_VISIBLE_TEXT_FONT_RANGE_INC 36 42 - -#define BUTTON_NAVIFRAME_BACK_BUTTON_SIZE_INC 80 80 - -//****************************************************************************// -// Progressbar -//****************************************************************************// -#define PROGRESSBAR_LARGE_SIZE_INC 102 102 -#define PROGRESSBAR_MEDIUM_SIZE_INC 56 54 -#define PROGRESSBAR_SMALL_SIZE_INC 44 44 - -//****************************************************************************// -// SPINNER -//****************************************************************************// -#define SPINNER_LEFT_RIGHT_ARROW_IMAGE_SIZE_INC 80 146 -#define SPINNER_LEFT_RIGHT_BG_IMAGE_SIZE_INC 80 146 -#define SPINNER_LEFT_RIGHT_EFFECT_MIN_SIZE_INC 56 102 -#define SPINNER_VERTICAL_DATE_PICKER_TEXT_BUTTON_SIZE_INC 206 188 -#define SPINNER_TEXT_HEIGHT_INC 146 -#define SPINNER_BUTTON_CORNER_RADIUS 10 - -//****************************************************************************// -// Tabbar -//****************************************************************************// -#define TABBAR_COMMON_SLIDE_START_DELAY_SEC 0.8 -#define TABBAR_COMMON_SLIDE_INTER_DELAY_SEC 0.8 -#define TABBAR_COMMON_SLIDE_SPEED_WEIGHT 0.5 -#define TABBAR_COMMON_SLIDE_TEXT_GAP 60 -#define TABBAR_COMMON_SLIDE_TEXT_CHAR_GAP " " //60 (6 spaces) -#define TABBAR_COMMON_SLIDE_TEXT_MAX_LENGTH (2*(256+6)) - -#define TABBAR_COMMON_DEFAULT_ITEM_SIZE_INC 90 64; -#define TABBAR_COMMON_LANDSCAPE_DEFAULT_ITEM_SIZE_INC 160 64; -#define TABBAR_COMMON_SCROLL_ITEM_SIZE_INC 210 64; -#define TABBAR_COMMON_LANDSCAPE_SCROLL_ITEM_SIZE_INC 270 64; -#define TABBAR_COMMON_SELECTED_LINE_HEIGHT_INC 4 -#define TABBAR_COMMON_SELECTED_LINE_TOP_PADDING_SIZE_INC 0 3 -#define TABBAR_COMMON_SELECTED_LINE_SELECT_ANIM_TIME_INC 0.33 -#define TABBAR_COMMON_SELECTED_LINE_UNSELECT_ANIM_TIME_INC 0.33 -#define TABBAR_COMMON_BADGE_TOP_RIGHT_PADDING_SIZE_INC 14 2 - -#define TABBAR_DEFAULT_TEXT_LEFT_TOP_PADDING_SIZE_INC 8 0 -#define TABBAR_DEFAULT_TEXT_RIGHT_BOTTOM_PADDING_SIZE_INC 8 9+4+3 -#define TABBAR_DEFAULT_ICON_TEXT_LEFT_TOP_PADDING_SIZE_INC 8 2 -#define TABBAR_DEFAULT_ICON_TEXT_RIGHT_BOTTOM_PADDING_SIZE_INC 8 4+3 -#define TABBAR_DEFAULT_ICON_TEXT_LAND_LEFT_TOP_PADDING_SIZE_INC 8+50+16 0 -#define TABBAR_DEFAULT_ICON_TEXT_LAND_RIGHT_BOTTOM_PADDING_SIZE_INC 8 9+4+3 -#define TABBAR_DEFAULT_ICON_SIZE_INC 60 60 -#define TABBAR_DEFAULT_ICON_LAND_SIZE_INC 50 50 -#define TABBAR_DEFAULT_ICON_BOTTOM_PADDING_SIZE_INC 0 3+42 -#define TABBAR_DEFAULT_TEXT_TOP_PADDING_SIZE_INC 0 60+3 -#define TABBAR_DEFAULT_TEXT_LEFT_PADDING_SIZE_INC 16 0 -#define TABBAR_DEFAULT_TEXT_SIZE_INC 0 52 -#define TABBAR_DEFAULT_ICON_TEXT_SIZE_INC 0 42 -#define TABBAR_DEFAULT_ICON_LAND_TEXT_SIZE_INC 0 52 - -#define TABBAR_TITLE_TEXT_SIZE_INC 0 52 -#define TABBAR_TITLE_TEXT_LEFT_TOP_PADDING_SIZE_INC 8 0 -#define TABBAR_TITLE_TEXT_RIGHT_BOTTOM_PADDING_SIZE_INC 8 0 -#define TABBAR_TITLE_ICON_TEXT_LAND_LEFT_TOP_PADDING_SIZE_INC 8+50+9 0 -#define TABBAR_TITLE_ICON_TEXT_LAND_RIGHT_BOTTOM_PADDING_SIZE_INC 8 3+4 -#define TABBAR_TITLE_ICON_SIZE_INC 50 50 -#define TABBAR_TITLE_TEXT_LEFT_PADDING_SIZE_INC 9 0 - -#define TABBAR_LIGHT_VIEW_TEXT_SIZE_INC 0 43 -#define TABBAR_LIGHT_VIEW_TEXT_LEFT_TOP_PADDING_SIZE_INC 8 0 -#define TABBAR_LIGHT_VIEW_TEXT_RIGHT_BOTTOM_PADDING_SIZE_INC 8 11 -#define TABBAR_LIGHT_VIEW_SELECTED_LINE_TOP_PADDING_SIZE_INC 0 4 - -//Navigation style -#define TOOLBAR_NAVI_HEIGHT_INC 70 -#define TOOLBAR_NAVI_PADDING_INC 32 -#define TOOLBAR_NAVI_ICON_ARROW_WIDTH_INC 60 -#define TOOLBAR_NAVI_ICON_ARROW_HEIGHT_INC 70 -#define TOOLBAR_NAVI_DIVIDER_HEIGHT_INC 2 - -#define STYLE_TAGS \ - tag: "br" "\n";\ - tag: "ps" "ps";\ - tag: "tab" "\t";\ - tag: "b" "+ font_weight=Bold"; - -#define STYLE_TAG_MATCH \ - tag: "match" "+ color=#3db8cc"; - -styles { - style { name: "button_default"; - base: "align=center color=#ffffffff font="FONT_M" font_size="BUTTON_TEXT_FONT_SIZE" text_class=button ellipsis=1.0 color_class=button/default/text"; - STYLE_TAGS - } - style { name: "button_default_focused"; - base: "align=center color=#ffffffff font="FONT_M" font_size="BUTTON_TEXT_FONT_SIZE" text_class=button ellipsis=1.0 color_class=button/default/text_focused"; - STYLE_TAGS - } - style { name: "button_default_disabled"; - base: "align=center color=#ffffffff font="FONT_M" font_size="BUTTON_TEXT_FONT_SIZE" text_class=button ellipsis=1.0 color_class=button/default/text_disabled"; - STYLE_TAGS - } - style { name: "button_ampm"; - base: "align=center color=#ffffffff font=Tizen:style=Light font_size=40 text_class=tizen"; - STYLE_TAGS - } - style { name: "button_ampm_dim"; - base: "align=center color=#ffffffff font=Tizen:style=Light font_size=40 text_class=tizen"; - STYLE_TAGS - } - style { name: "button_ampm_press"; - base: "align=center color=#ffffffff font=Tizen:style=Light font_size=40 text_class=tizen"; - STYLE_TAGS - } - - style { name: "check_on&off"; - base: "color=#FFF color_class=check/on&off/text font=Tizen:weight=Light font_size=40 text_class=tizen ellipsis=1.0"; - STYLE_TAGS - } - style { name: "check_on&off_dim"; - base: "color=#FFF color_class=check/on&off/text_disabled font=Tizen:weight=Light font_size=40 text_class=tizen ellipsis=1.0"; - STYLE_TAGS - } - style { name: "check_on&off_press"; - base: "color=#FFF color_class=check/on&off/text_pressed font=Tizen:weight=Light font_size=40 text_class=tizen ellipsis=1.0"; - STYLE_TAGS - } - style { name: "list_group_index_text"; - base: "color=#ffffff color_class=genlist_item/group_index/text font="FONT_M" font_size=30 text_class=list_item align=left"; - STYLE_TAGS - STYLE_TAG_MATCH - } - style { name: "list_group_index_text_focused"; - base: "color=#ffffff color_class=genlist_item/group_index/text_focused font="FONT_M" font_size=30 text_class=list_item align=left"; - STYLE_TAGS - STYLE_TAG_MATCH - } - style { name: "list_group_index_text_disabled"; - base: "color=#ffffff color_class=genlist_item/group_index/text_disabled font="FONT_M" font_size=30 text_class=list_item align=left"; - STYLE_TAGS - STYLE_TAG_MATCH - } - style { name: "list_group_index_text_end"; - base: "color=#ffffff color_class=genlist_item/group_index/text_end font="FONT_M" font_size=30 text_class=list_item align=right"; - STYLE_TAGS - STYLE_TAG_MATCH - } - style { name: "list_group_index_text_end_focused"; - base: "color=#ffffff color_class=genlist_item/group_index/text_end_focused font="FONT_M" font_size=30 text_class=list_item align=right"; - STYLE_TAGS - STYLE_TAG_MATCH - } - style { name: "list_group_index_text_end_disabled"; - base: "color=#ffffff color_class=genlist_item/group_index/text_end_disabled font="FONT_M" font_size=30 text_class=list_item align=right"; - STYLE_TAGS - STYLE_TAG_MATCH - } - // ************* list double_label ********** // - style { name: "list_double_label_text"; - base: "color=#ffffff color_class=genlist_item/double_label/text font=Tizen:weight=Light font_size=40 text_class=list_item ellipsis=1.0"; - STYLE_TAGS - STYLE_TAG_MATCH - } - style { name: "list_double_label_text_pressed"; - base: "color=#ffffff color_class=genlist_item/double_label/text_pressed font=Tizen:weight=Light font_size=40 text_class=list_item ellipsis=1.0"; - STYLE_TAGS - STYLE_TAG_MATCH - } - style { name: "list_double_label_text_disabled"; - base: "color=#ffffff color_class=genlist_item/double_label/text_disabled font=Tizen:weight=Light font_size=40 text_class=list_item ellipsis=1.0"; - STYLE_TAGS - STYLE_TAG_MATCH - } - style { name: "list_double_label_text_sub"; - base: "color=#ffffff color_class=genlist_item/double_label/text_sub font=Tizen:weight=Normal font_size=30 text_class=tizen ellipsis=1.0 align=left"; - STYLE_TAGS - STYLE_TAG_MATCH - } - style { name: "list_double_label_text_sub_pressed"; - base: "color=#ffffff color_class=genlist_item/double_label/text_sub_pressed font=Tizen:weight=Normal font_size=30 text_class=tizen ellipsis=1.0 align=left"; - STYLE_TAGS - STYLE_TAG_MATCH - } - style { name: "list_double_label_text_sub_disabled"; - base: "color=#ffffff color_class=genlist_item/double_label/text_sub_disabled font=Tizen:weight=Normal font_size=30 text_class=tizen ellipsis=1.0 align=left"; - STYLE_TAGS - STYLE_TAG_MATCH - } -} diff --git a/ElmSharp/theme/tv/HD/images/Assist_Views/core_icon_badge_container.#.png b/ElmSharp/theme/tv/HD/images/Assist_Views/core_icon_badge_container.#.png deleted file mode 100644 index bba06a6d2d35aca3e5155af2ec45435b462a3b4a..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 1745 zcmbVNc~BE~6b?s}a!nOw0MUk}MG$gqF33XEoDejMkQSIhAS9cxLb74ANXST0u|&}p zwL%dDxm2VTLDVXTB97xQK?N++D%j#w9juBdIBKQZ4TtR?PXFl6?*5K_-}k-ue(%lh zidh%w=IrB4B9Yu=QQ}x)WZNF6dBppQX~`pE@Wv$xcpR$1bCeiN5~$HMm?G0DwQww~ zROe>(z!4;pg9cF~;0f}zkP6k&lr|fhNoOF?BvQmGlR>GiIBtOG^qia=S`LebVp=-LhR|Z=6jOkuthTX`q8N23@DK#Wihh#AD%q-1wli zQITta>9Md8&Bj#3d1(CSz(nr;TgYZecmu7+5aLjjnPOCxt%LQrOw0#}FEllxhQwl~ zm<0+$**u;=!Un-GMwo!dk+PV~P+^!@z?|dwAeO@gLxmhEgGXc@lyJf%B9VwI00}rp zDw2lIVP$$FuGFjGIbFo2JA;+{Cl(T6uo6cx1&U_QRX|KSilfGK)Ibr%aVdfEh+d86 z7=vubGZU>C#*odhT8g1M%5;7qb<_JIm2(r06Hppf$*uX4S z{eN;sC!C?%isN6!GPgxkpl$lT^ohm$=7IG@$6!QjFkNmB5FKYH6AKik+r#BUYZh(r zy?P_+)qp&>ExLTb?U{gDU)9$CJzm$H_x0PI)i0|p)lL#;Ahae{V1L|VE^=D2uhv>B zNCV2e;m!l$dHLZNTP{Pbt(BEoH+U(pIv$_WUeC$bUVrk^nDp~vnKkRsuxLDF`9m#r z*ZEG!KzeLHw3^?reP2layTw}^>L?CX+bkn-N%@C7L_2&|JL6kV6zTS!UuM{St+CjV zSs&#x>R{AwsXaTkT~o5Mzu^n;l-+Q>@?OC5O>gEUe0RFWo$))ZYBcfKeumY3d3^zseI5pJ)!gJwJ8t8_xz| zA#DOUUXebU;=FXTpJ za$%{o(y~WEPPy^6xy$;4Z;iK$tK3>Br7|Xyxd&Rh`oeGZHIoagtnE+CE`@gjLIj8Z za>{c=UAYqr*WNoRLJHiD6u6tt_y*nd9OB)D-LFm*j~wvyWiy~WbwHr7-t+E#zWn^_ z9_(-=rm=5oN#2@VP;0ys>fz}(V7|MN9KWP_@YWcb+YN}z9krZL(S|Vpii5xDEK?)y z=NemTg1fCNXfZXe%RVb9-0>w3DBo3FK(-8|#qJOO<)>tMZ^S&yS837vCo7kD4RrN( z3N^LA`X#OsgclEC7g&*Xy{4O2-Yrf(M7p^<;qW-wSJuYXxScCCAg+T`_(bc%lP{hj z_MIc^_edK~u+tUPcU+{cQAa(CV{8l?skmIq~E_2!<+fPO&Sto81rf&Zm Dk6xHi diff --git a/ElmSharp/theme/tv/HD/images/Navigation_elements/core_icon_back.png b/ElmSharp/theme/tv/HD/images/Navigation_elements/core_icon_back.png deleted file mode 100644 index baf1df030a3846db95755caa40dbf5b60569cebf..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 1214 zcmeAS@N?(olHy`uVBq!ia0vp^HXzKw1|+Ti+$;i8k|nMYCBgY=CFO}lsSJ)O`AMk? zp1FzXsX?iUDV2pMQ-L~|l`=yjN+NuHtdjF{^%6m9^eS=-fVzQ(*;f=KCTFLXC?ut( zXXe=|z2CiGNg*@ERw>-n*TA>HIW;5GqpB!1xXLdixhgx^GDXSWPQj+a3TQxXYDuC( zMQ%=Bu~mhw64+cTAR8pCucQE0Qj%?}1aVY^Z-9bxeo?A|sh+WJvVozYf|;3~p^2%P znW2t?k%6I+z5x)K=^C0?nVMM{nJYkn6417ylr*a#7dNO~K%T8qMoCG5mA-y?dAVM> zv0i>ry1t>Mr6tG=BO_g)3fZ zE`@j@w*YQzUNJP7fB~jokyxN_sAmB35=^15FMg%Dxp39RB|)hO_hL1;IHa;5RX-@T zIKQ+g85nVC${?!>telHd6HD@oLh|!-V4)b0kzbNuoRMFk;2dnGpb?&#my%yztO-`{ z>ucqiS6q^qmz?V9Vygr+K`%2i#md~=+`!z~&BV#s(#X)z)x^@o!r0Bw&D7k`)y2%r z+z_VMB|o_|H#M&WrZ)wl*A%B-P*TV(0NU)5T9jFqn&MWJpQ`}&vQ;K-w;16x52`l> zw_A*H>eUB2MjsThND&Pa0;V1i6P|2=9C*S{%>$k}MOWC#=&Nwyq=E-NgHY#G)brOdx zo}Js7<6(M=EsTMg$KU`mA;TCG5I03VRg`&-cAm|*DZ<~sTsJ?ZbTxlRUgA!*mG>_7 z*lyo&ZvXoD8gK4p%S_(w{!yiUXS;FpA+M(08(e+Xh}_T#W6F_|mdcTn7P`Zoqfzja zSv$1+)TjC9rIWTixmmHw!pcVD^Nh)1i*5fOm(%613%R24@8HIb22o|UTTY3{N9}cL zx7)C(Z<@swlc-k-n=?)x_Fc48dWLhh$xEm8$qie#O%r{3Y1X8QP;2kf?8>j%QP-oM zth^qvQGD_JDU0jxF5TC0yxtqxOJE<$th8g|VbJ0`tFtrvfF7ts@pScbS?83{1OS(F Bn-c&4 diff --git a/ElmSharp/theme/tv/HD/images/Navigation_elements/core_index_fastscroll_rollover_line_focus.#.png b/ElmSharp/theme/tv/HD/images/Navigation_elements/core_index_fastscroll_rollover_line_focus.#.png deleted file mode 100755 index 4664cfb23836b08482253b3bed98b5036d2c5b84..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 2906 zcmV-g3#IglP)KLZ*U+IBfRsybQWXdwQbLP>6pAqfylh#{fb6;Z(vMMVS~$e@S=j*ftg6;Uhf59&ghTmgWD0l;*T zI709Y^p6lP1rIRMx#05C~cW=H_Aw*bJ-5DT&Z2n+x)QHX^p z00esgV8|mQcmRZ%02D^@S3L16t`O%c004NIvOKvYIYoh62rY33S640`D9%Y2D-rV&neh&#Q1i z007~1e$oCcFS8neI|hJl{-P!B1ZZ9hpmq0)X0i`JwE&>$+E?>%_LC6RbVIkUx0b+_+BaR3cnT7Zv!AJxW zizFb)h!jyGOOZ85F;a?DAXP{m@;!0_IfqH8(HlgRxt7s3}k3K`kFu>>-2Q$QMFfPW!La{h336o>X zu_CMttHv6zR;&ZNiS=X8v3CR#fknUxHUxJ0uoBa_M6WNWeqIg~6QE69c9o#eyhGvpiOA@W-aonk<7r1(?fC{oI5N*U!4 zfg=2N-7=cNnjjOr{yriy6mMFgG#l znCF=fnQv8CDz++o6_Lscl}eQ+l^ZHARH>?_s@|##Rr6KLRFA1%Q+=*RRWnoLsR`7U zt5vFIcfW3@?wFpwUVxrVZ>QdQz32KIeJ}k~{cZZE^+ya? z2D1z#2HOnI7(B%_ac?{wFUQ;QQA1tBKtrWrm0_3Rgps+?Jfqb{jYbcQX~taRB;#$y zZN{S}1|}gUOHJxc?wV3fxuz+mJ4`!F$IZ;mqRrNsHJd##*D~ju=bP7?-?v~|cv>vB zsJ6IeNwVZxrdjT`yl#bBIa#GxRa#xMMy;K#CDyyGyQdMSxlWT#tDe?p!?5wT$+oGt z8L;Kp2HUQ-ZMJ=3XJQv;x5ci*?vuTfeY$;({XGW_huIFR9a(?@3)XSs8O^N5RyOM=TTmp(3=8^+zpz2r)C z^>JO{deZfso3oq3?Wo(Y?l$ge?uXo;%ru`Vo>?<<(8I_>;8Eq#KMS9gFl*neeosSB zfoHYnBQIkwkyowPu(zdms`p{<7e4kra-ZWq<2*OsGTvEV%s0Td$hXT+!*8Bnh2KMe zBmZRodjHV?r+_5^X9J0WL4jKW`}lf%A-|44I@@LTvf1rHjG(ze6+w@Jt%Bvjts!X0 z?2xS?_ve_-kiKB_KiJlZ$9G`c^=E@oNG)mWWaNo-3TIW8)$Hg0Ub-~8?KhvJ>$ z3*&nim@mj(aCxE5!t{lw7O5^0EIO7zOo&c6l<+|iDySBWCGrz@C5{St!X3hAA}`T4 z(TLbXTq+(;@<=L8dXnssyft|w#WSTW<++3>sgS%(4NTpeI-VAqb|7ssJvzNHgOZVu zaYCvgO_R1~>SyL=cFU|~g|hy|Zi}}s9+d~lYqOB71z9Z$wnC=pR9Yz4DhIM>Wmjgu z&56o6maCpC&F##y%G;1PobR9i?GnNg;gYtchD%p19a!eQtZF&3JaKv33gZ<8D~47E ztUS1iwkmDaPpj=$m#%)jCVEY4fnLGNg2A-`YwHVD3gv};>)hAvT~AmqS>Lr``i7kw zJ{5_It`yrBmlc25DBO7E8;5VoznR>Ww5hAaxn$2~(q`%A-YuS64wkBy=9dm`4cXeX z4c}I@?e+FW+b@^RDBHV(wnMq2zdX3SWv9u`%{xC-q*U}&`cyXV(%rRT*Z6MH?i+i& z_B8C(+grT%{XWUQ+f@NoP1R=AW&26{v-dx)iK^-Nmiuj8txj!m?Z*Ss1N{dh4z}01 z)YTo*JycSU)+_5r4#yw9{+;i4Ee$peRgIj+;v;ZGdF1K$3E%e~4LaI(jC-u%2h$&R z9cLXcYC@Xwnns&bn)_Q~Te?roKGD|d-g^8;+aC{{G(1^(O7m37Y1-+6)01cN&y1aw zoqc{T`P^XJqPBbIW6s}d4{z_f5Om?vMgNQEJG?v2T=KYd^0M3I6IZxbny)%vZR&LD zJpPl@Psh8QyPB@KTx+@RdcC!KX7}kEo;S|j^u2lU7XQ}Oo;f|;z4Ll+_r>@1-xl3| zawq-H%e&ckC+@AhPrP6BKT#_XdT7&;F71j}Joy zkC~6lh7E@6o;W@^IpRNZ{ptLtL(gQ-CY~4mqW;US7Zxvm_|@yz&e53Bp_lTPlfP|z zrTyx_>lv@x#=^!PzR7qqF<$gm`|ZJZ+;<)Cqu&ot2z=0000WV@Og>004R=004l4008;_004mL004C`008P>0026e000+nl3&F} z0001mNklug1UeiVFQ0OKyM6^Kz!YlFc_@lwLq5^so z(f+Ben`ihC0q~-QZ3I{N8V(t<8 diff --git a/ElmSharp/theme/tv/HD/images/Navigation_elements/core_index_scroll_bar_h.#.png b/ElmSharp/theme/tv/HD/images/Navigation_elements/core_index_scroll_bar_h.#.png deleted file mode 100644 index 1e004ad0afa98d3ca5dcdf51fbfe04a7ea318ee0..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 1422 zcmeAS@N?(olHy`uVBq!ia0vp^HbAVz!3HFm6?V-8Qj#UE5hcO-X(i=}MX3yqDfvmM z3ZA)%>8U}fi7AzZCsTnsn3Xa^B1$5BeXNr6bM+EIYV;~{3xK+T2HIB?BqnF4mMA2p zrf25aD!t#mUr8Y|#a1cY)Yrhbz&SM|)1#^=HMq(zB)KX(*)m1R-cG@$!U||WZfZ%Q zLPc&)Ua?h$trFN=DVPg@)As;uP=V3xw&xF#U(+h2=`(&xHzP;AXPso zwK%`DC>a=WY04n03ap%qQWHz^i$e1Ab6}wukda@KU!0L&px_*Arl1j?nU|7ZUaSdL z@9S&jnO9trn3tUD>0+w{G(j&jGsVin$koNg(AdPl(#X=#(ACrt#CLXfF>!NsHgYnx zfa!I~PcF?(%`1WFO+n~2#iP^Az z7Gs=x^?{Dj2SqGWM8kxDsRzV_CtDx~p72xifT_I*n5<8*2fSxsU}ExgaSW-rb!WzT zZI?iiG9!Cg~Q#MWpmbrIq2v_BLyX_JA6Sy)8CXZ9P3n%rwd z5_>dzD)yD%S$X~So$qqpGj~3}lK!-}a=zvBd)4Pmbx#{{2`nn z+`26_ZLw7TvAqg@e;bA7UEI*KQi3r!?s)-6OjDHF@jM}y1I??JOqV#>wSt{{70>j> z>VV^Gc2=>SO}bu|wqy3fH63gh{BxrWkLi~1tKK;pv177OUaHQWw0xtY;+NAO#XJ*` zU!b%*^JZJYx#o}Np_e?59n$pr(YEn}sA|orh#zx={0zkG7Dk;eDp0o;_EThQH~3Mq zZCcXnxbzu!O%+#5@i!OQ@ED!SQz>T(eEd*3B4x_m%IAgNrD3xZW;f=@ys5fdaU=b) z^W*P_Vvk!e9d0}CZR2cb!ST&x%H2gNcfD@u*>Wv2&9pvh?blE^bxpLVwX%x&X3v1& zltuap%sQuIBPH|1KdxFaWvSk~TI(k~y6alKKC4Wh*nGg$V)EUE5$p5o?Ec6nzEw`x h{#<9)?BDe)5)AgDHk{MW?$igBke;r7F6*2UngFeE2VejI diff --git a/ElmSharp/theme/tv/HD/images/Navigation_elements/core_index_scroll_bar_v.#.png b/ElmSharp/theme/tv/HD/images/Navigation_elements/core_index_scroll_bar_v.#.png deleted file mode 100644 index 58b31964b6cbf6603a32a9a87246eb5fe2c5ed85..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 1434 zcmeAS@N?(olHy`uVBq!ia0vp^NvDajJoh?3y^w370~qErUQl>DSr z1<%~X^wgl##FWaylc_d9rAnD05hW46K32*3xq68pHF_1f1wh?E!|W>x5|gu2OB9k) z(=+pImEP~(ucVNfVyhHx>TBRz;GCL~=}}db8eHWUl3bOYY?-2DZ>L~WVFffGH?<^D zp&~aYuh^=>Rtapb6_5=Q)>l#hD=EpgRf0Gw!Z$#{Ilm}X!Bo#!H`&0@P{GVh&(Orw z%*;?n!N|bSNZ$a6%ybP+tW3?UjLa3FKnZADQA(Oskc%7CE+EfVDWjyMz)D}gyu4hm z+*mKaC|%#s($W%ShLMpjP=#)BWnM{Qg>GK4GRy>*)Z*l#%z~24{5%DaiHS-1r6smX zK$k+ikXryZHm?{OOuzusuShJ=H`Fr#c?qV_*B8Ii++4Wo;*y|LgnO|XTpUtakg6Y) zTAW{6lnjixG-Z%g1y;^Qsfi`|MIrh5Ij~R+$jC3rFV4s>P;d@5Q_u*{%uC5HFV+OB z_w}{%%quQQ%u7!7bg@+enxL1NnPO$;=wj*OZ0c-aX=G_==xXZZX6WqdV(4n%Xkg*w z>go*B>yn>bnwy$e0@Is<(CdOzFDNPG765H_NiE7OOHFYr%Fk5*d)X=zw_6->ng`XJ zg4-=lIQ8lS9itD5Sfq%C2?0|NhzU=&Kn^_Nr{)1udl4{Mr=OJQVqjq6^K@|xskrrK zrma4Uqr~y_Bd-e|39%{(25Jb(AM|#7F;zt?YT?8cDpK+ctqK=4MTGoTs_g7@QW9$2 zzN1*3rSoHb-uH;?CuMKn^qu%KIllbn@4LpXA( z-*>VpJGy8cToy20G~ikI5-ye2UpdW1GdpswU*L;i-|JJ`cHokK^!c+b9QMiYx(cp0 zUSsidnA1AjB!k_&_3i7pSu;6QG&l{uKCLSVS;7|6lqKf7X#u0nPHiKRg)B?OcuvhT z{j2lq%Sjh2la7*8E>R{OTTZ$NNx3{S5?trFB<5xJ#4ZUz*vzR4E&`NJ>WxW7vD%9(Cg zm5&G3lx3Z}duFk8y6K@T9qatC^26IDWsFx}l}yXn=FEG4^`4d`533o|lvf-paeVYy z@9THVdef{q6D8=s%Oikgplj$7}G$=32LIZ}m(yM>7Y}yn`#c zX3AaU5OX}&en57{cJ|4x?cH~tGtA<%mXfVlY<`4d=>Di|ttU`B`u2E@RK7?4;HVhQ4$CMg5KvVC{&zVCbQ-Fx?>TDiTxc6|*1 zuwLF%YjlLsx4J_A{%G`r4%bMrN$R*w0^LI(XW|xuWn1r{8q&?-gEuGxz%pYsnxv`S zkqvCKdW2y^+ofy(GP|Lx8$Co|3w10-f`Sq6fx>y36rwJW6Q> z)U^LYZF`RPNe!LF`%huNF?11ELp~mO1}$8BBXZ@+1rO;2dku{Hvs0{gF~NQpyRcA~ z;LUx@F>&DEn&34}E;~Na9RrnBg`o&GYK9eO3QWi{6bKYe?DbRJ|^m$Tz>@N@t2)~n+W zS1ujiyLf3W*`@+}XUyeIVlS>2+ULN#6KYg?bz^|o?KzP2QY`(kkG1@B^E9#5< G{lh}0CC z@e}w3z=BkX0jUEsVk`qP+kS>kP0E4_uIv7@5vxn>0vsiJiha}C#T0gM&+#+x$2I=05OBqMG3Mcj9`hXHO3t4(XTYbiFjbq8+7 zDid%qHDT=Td7&C>+(=ht^JH7#;0Qu@HSWx*wo!vc5@0Ct>nSUZ5R_#eWh7ZfYfwxh zQAo2_PN9q{$*P!zD2n)KohLz0K#HOy8lsqDh*UW6 zs2QicaAl&P9d%kgXy zg||m|!%!<;NKMbe6W1B&~0tvQ(UKbz<$i z*rOA!earWC}h={?Ta!~Z_Kr4`;wo@6__(ZQrN!=J=tR2 zlT4>=%NEnd#~$nUAZhE>)%Wa5L>#P1Ubd!9SX{HF-2!ILuCN|Fm?m#)+>#fQSCjUn zBBBV2;D6vnL3S1uRK$a4J$X^^=EZ{^h56F8od;`3^4|OM`Fy@V-`%y<<%#hV;|#-0 z7%O^(t|0wJN9aFlw|~*)I4RZ0I^HC)6(UA+a2)}|v$jwLSx)Qf2eiO2!>n7ak(zm4 zv9ZTlDTYhDfU+58VKE6Tdm9l@M_aD1vOiwFW`XOd>_*lU%%F%G?n*mE>+RL5-QKok zhh01e77~RDc!*da@pk-3NmRC@tI&OF=2_5zkZqOS52|Lafg%nO$Z~TTTYwNq5(nqA zk_2agC_s@H=qqL5ypoj^F$cO2OTC58rc%+%U0?L1vJFB4h3Dfq=HfXHhg&?9WjWOl z#SBGcqLxprB;!ZZJp~;_cIXDg#Xd+CtvYTJm8FsHr{D#BSwHHQi584ctbm7{kfziF zn&$tZp4Uf5q=F9O{ikqLZ3T$0pa?fZn>KE9I&~E&#SmEphgFPsdR1I&V1lCt4nT2T z0%tc|-@$P-)4`jjV)zlUd>a|M%2EZ+bsYufL^xN1vM9qP2uoQxSJt#8Ew2?dC}s2c z9#_Y9(?dS#ah(IMHjtZ+f)`NFIttxu$SH@|1D%u=cW^AZfqGr8GdPy~KrT;%;nT+c z)##pyPEWe+k1aj)2Os%#+Cw_l$3`b^(JOJu(6wsvx&C`^Z}DB>(3#sqBabJin#_@* z))nXBgTicKcX(>~o>TuFBjk5zfgEa?T?;*WnR6PzcubPJ`GV;X6*2b h(FcbQcR-_|{zp+vJ58LgZbT~)yWwMIbNz)7vle2LZ0o^rgsEACvweV0Ijx{ zOICZsl5BSFI><&c6>t$TLF8_Fp&Th}S68O<*vzw_3n3c{dlXdJSOF>y5Xf*dNh<{* z5Je8AGolEu03ihhK1E+K3Da^$l!dFH_psDkV6V$XtZ%AXtvQ~Jo8jdy-Y{g{3yJAjNY@mWDsYZt%TOz5s+gYr>Af3Y@#hE(F*G-IQf#cr0+JUXN=Jk3|^D zCt?aV&C61R0NSBkz=e;*#sy_-LA;eKLt zZ}M#8ZRc9&UMHLR@of=IfzOHEJ*V<1(cPJUvUBjf^8O;YMeQF;KC}Pz>DEhK{NA~F ma`*Ah$eq&_j7+fH_s2}rLF=} z0RRB%Sa0_L`MY%aSq+r89G`17@|PjUBZL#kh~UH%S!4hvoN;eENLMZqUPKfVL6p2BzB`)XKCeWC2GyveTHGxSaQOO+eL2@L8j)qJ%G(*6Ya5N+s z=?n8^ZYM`kypveuz$6@=ltd*tg+sQwf?X0&asnEeLj)(#V(4sC0vhrcFG}8D9)?1| zf2DA!Xvn`sh4}h`w=-B|Fw)k}h6IDd!43|#aC@YK1Kb*nfWZ+^nEZCIf!m{y4k*MH z@ZT3iUX2wVfeLW<{JWMsLPMfB93~11jgODFjkmL9up*&wCnu+64g|tRo?*jIq;rS~ zHgvYh4+eKKo5Z3pITQvRyv#^E$cW>hA#$bvUILBz4=tVj_cqBl44Ob>LgBWsPyoWYht2}gO_JHg;~_85c{ z+zk%*K)SiXoG`HMb`EZC7*BWD_8(Yx1}Tn4rgMH^!~cVI`zdzW3N)s?vOAeYIYbWk zWHD&qzm|-m{9KFUPx=1FhW}iP(@(Kbxftm3!T#4l{}__HXSw^2ZRNo~#wXL|ZfD7D zebzST9RQ%Rh;_%{6P|x4Je(O6XV@Xo)nQ0{wFX*{J2l<&Rzu1BUwA23CQPLl_K79- zfq~!seb>TK{6PC_q`{EHvWNmdlfc1ly$6Vz$BoQDo@663EA>@es%A*toV-$vK608~-er`d-;LHD5bBH>XdoAzoy=I$s$AM;Fn$C^B5`8E7v~1_np_m<8myl9VDO;p2D#1fb7byKK z&=;80Ub<7ds?ig4IKvr#w%jPNg7D2ZE)!^TC?4$*C z18o9q{4${L3dW2@f`nTiuV83Qkqjg)A$YMdW5+%Oy{f$9KdY^tryg0FUFJF#`R29X zO}&O4afQ)#>UnF{Ho_+dbAN65^cdRczl7s%R@CdsDX-M4r*6N(zIWDtX4Np3+pd_M z)^t5ogvvHbPo*z)Bxgl$Re$bcw|HQ2Ws;?qLs@p|_nll%Mb!@@{x*8`mDuwe1jE-C z(hT-a*GKiIODe_-y{C%0tVDgHpgl?c*%2*XBD&wV?1}CZSrVEcd6(MnO}i=3gC(pKrFL>Ti7-Z)QcoWsP#~K?zoPZr78PGtz=%9#ngGDE&U2vrxTg{F*xJ5&%K)*o#V=6?;s$ZSMzt* zGbW6zC;Bd4I3yTAymg7~SerIIua|-z!&z~3T7l_mWT|9@i!}8fbEC+Fj5Iv5LY$ z=-Ve=JPGwH>aKWwYok%FO6R6>YXeTTKquCTw-V!O5yZaSHz0H@o+%RZ6Wl~C)q_rB zhYAsf+~k}IQ^jc`>Fn-W;nQ{rPV1~vmgl&?j@tghV$8{O=PygRcEJfi`drqc*#4qz zvQiHga@?fH*9MIoOt}oLEZy30NLvXH!&qF6!-8~_JKhsY;KN1AH(%QmAUf9R&)bfj zn=rLu-jS(dYlUW|b*ls4dQ&-ndeXgK+Pr1uWk~=*$15`$lspFccoBvV<*mRcwO0q; zXT2uw=_lKp@wAE}lC3KBbo9$zO&V_=m#AhJW*XGczU@$KmFOau)8_32#ww=OMZLW9B>bn~%dyEN;PK^v~WMIHqbfaE{Z`a_3P% z+>3n`dS6uXvcdtZjLFn@W0Q74rX~|xWMfrdd2aJ3<&mPFrha0_tJ%>0+xBLinrb$a zYLDCcBKY3zdxLJIcQn0SCpyR1>df4i>@X7iDg{^K#9J}iLaDuz@Z_s$Q10%B!b!NT zWVM~BLkP1RC`_|+kO0t4eGQN$^Qc-)}>!=C3khxjCYcOA8IUd#z z=PSay%niOcw*O-ACINIImw`EnSR<*%B*GP{x-<&-Tms9X37mjXhKN;Sw z*s@eZkkYnUv>#LM>&%MTW>^ew%D?d}Wek;9%U|1h>Wt8dYN+$F&G8&x+_0cXL+-H4 z(9Dr>R*riFyrxN`r1=@4e)d%wi2bJIj};D)Xl{yNxlb>fZK*>^_2KCw#VB5^+;r^N z64A2hR>_?5GFOUgvz=B&V^%zIuP;AyaM3$u(d#AcB$DycsB{t1G`gn!Y*ByGle=r0 zDlkgZgM@Xdaqd_Ic#@qGO})D-D!g%$Fb6+ly78mog92ixAB-@|pLX4(ee8W=arEFe zfll%J_L)8c-;8&u0d&bOMpb1q&l%WNWzJKyCgFl;lrKD@dj0NMyY`C`$?wE&!)r=P z4+anWC(K(@GU!r@c6D|91>1FoxFNfyB9CmJ6V;z-S`4@KV;xtfA_}l;8%HBQ{&_zc z^BAka`kL)scr?%r2)Mj^eOp0~fzGJ+>cJUreDd`qdzpSMGV$5W>aDko?~AiE8!hR( zEk0GG^;A+J?~}C}lC-O-2h4r<-+tEB>f8%mIyGaaF2>F_L^O+^*)}P#JOtYHgYMo) z^YNo~(TpIVZgb4ESQh1~p&eE)v)&p^$-94W!D`+`u&Qi~U6E&J%S~}!4B=`rxsT0T zGYR?!R-_vF9f{d2*j3honvaP!^eI+Tx#_xaLTpl0bR=eWyth)^M0^RmrQFMc|$tkT;Xh%R`n;Vt*p)v@efqXxzIVv0j7fN4dOb7jfqE~j!fokD*~ z>Z=aJ`Pf8d`baLOy8e=ky*PwdHBD`sYg|`@c-S$z82H84vSKrxGoL4J-S5UtTV?kx zKUKLOTh+Gf#P{%7rO++r+s=0e<45ote0H@dgzms!x{nxfeF(MJ09L@BteUlJ-O<-G zU{)zZ-7=E#*NL9B-u@pn>viYXNqZ44H3&od2jEy`El0Ds%d)*v z80m&q`n&g%i*@c=Y8P~5Rxh}ghixK)&u8W=@ypqFT;3yKmY&$ diff --git a/ElmSharp/theme/tv/HD/images/Navigation_elements/core_navi_press.#.png b/ElmSharp/theme/tv/HD/images/Navigation_elements/core_navi_press.#.png deleted file mode 100755 index c0fbe0aa977d3e9b12715fbcc5511c379241dfc5..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 1297 zcmeAS@N?(olHy`uVBq!ia0vp^S|H591|*LjJ{b+9BuiW)N`mv#O3D+9QW+dm@{>{( zJaZG%Q-e|yQz{EjrrIztFe_z-M3hAM`dB6B=jtVb)aX^@765fKFxc2v6eK2Rr0UTq__OB&@Hb09I0xZL0)vRD^GUf^&XRs)DJWv2L<~p`n7AnVzAE zshOFfj)IYap^?4;5Si&3npl~dSs9rtK!Fm_wxX0Ys~{IQs9ivwtx`rwNr9EVetCJh zUb(Seeo?xx^|#0uTKVr7^KE~&-IMVSR9nfZANAQKal@=Hr> zm4GgVcpgi&u1T;Y}Gc(1?*wE3)#o5%%#N64<(9qS?!qM5>$;Hyb)y>qx z*vZiqrq?AuximL5uLPzy1)F;qvDMSXF{I+w zo0aLwj_X4g{3Bo!JHyPjm z=8Jm3<+6Zp*8aLmLEnWOdJai#@;i_3-20qgeC7g^ld>Oj+~$jKxWE2|V8-l^OPTxr z3*Fr;FH?SG;iK+fvpvmxd7g>7#~rlVG5u`FhkF*Plct<$oP6*2Wv+~drbk}VQw$dQ zs)s2~nc~wJ`}E{g(fn`@>Kp^Qqsj6;=LWN%Kt@najo;@7RZiR z%&T6;t;gy9ndiN6gHEX7fhgHjhpaJj1ht&HljRQy2EV?AoO!mc3->H_ZbK&Fe39Hm0p*0Toi7 Lu6{1-oD!Mv4 zq}24xJX@vryZ0+8WTx0Eg`4^s_!c;)W@LI)6{QAO`Gq7`WhYyvDB0U7*i={n4aiL` zNmQuF&B-gas<2f8n`;GRgM{^!6u?SKvTcwn`GuBNuFf>#!Gt)CP zF*P$Y)KM@pFf`IP03tJ8LlY}gGb`4?pZBPB7%B|o_|H#M)s)5TT^D5IB>nPO#NVgU?A za}xt|BLg!FLqiJ#3u6moOH%_E0}C@#7Z;cr*z}qh8ChC5x>%UFI=dJex|TDmy7 znOe9QxSARpJDJ1udgc|EB<3Zj!tBii+6&cdj#sahb5UwyNq$jCetr%t1q5W|m*f{` z=Gku_A^g)RODY3wWfGH5fgeQF<2cCIS^ME;~ z2$(f)fBovrz`!K#>EaktaqG&=lU~e@BCgtkf0&=oH+ZlmsHub5;;ri!Z4uWC8cq8j zHb}G2aTO8#%aR^rwcFDr*79!q`UQf_hA+Lo?=2|vEPQFVe%GwN8pUJ2DR<2_yiNMp zarn_B^#IPizi}2>cb0LSX=d8?Xj0XLgy5skgts)w0y*wq|Mt0x&Q7wgJ)d6a$t;ly zlw#h}5DS!I7dU_u))P%$XOA({uXz8%wvTKj(UJZM9$UpP075 zzsqj&y){@i<6EKOLh+alwhd2&A8Xx?{wMX~3!k!cVc_C#`s)v`@$%ZfSLCvy_q&?? z^ITW>wLea9uM)&EtZ<*EWbf%quG&$ko`lFwo{t(MJpDNL;p?5ff zcT%0+tEj2rwMJ^dc$w9nXj8Uv$LUAG2?wt}S|>Bzzq-)A{bTt)RtbjBJFXv7)pj@u PDtbL#{an^LB{Ts5z9cht diff --git a/ElmSharp/theme/tv/HD/images/Navigation_elements/core_navigation_bar_icon_arrow.png b/ElmSharp/theme/tv/HD/images/Navigation_elements/core_navigation_bar_icon_arrow.png deleted file mode 100644 index 0cd2ac33ce3cb4566661ab55124e887aacda7b6d..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 1311 zcmeAS@N?(olHy`uVBq!ia0vp^HbCsg!3HEJxPHG1q$EpRBT9nv(@M${i&7aJQ}UBi z6+Ckj(^G>|6H_V+Po@HOFe_z-M3hAM`dB6B=jtVb)aX^@765ev4YaQ)NKDR7Em25H zP0!4;ReHaBzmh^`img((sjq==fpcm`rbks#YH*cbNODznvSo^ry`6$hg%!|%+|-gp zg^Jvqyke^gTP3i$RzNmLSYJs2tfVB{Rte&$2;Tq&=lr5n1yem^-DCqpLj^N4Jwp>y zGc!XS1tSAPBYguPGSf9Qu`)HYGBQ_y0wthrMJZ`kK`w4kyMR1frHqo20xNy}^73-M za$~*xqI7*jOG`_T8Ae9BKoz>hm3bwJ6}oxF$}kgLQj3#|G7CyF^YauyCMG83mzLNn z0bL65LT&-v*t}wBFaZNhzap_f-%!s0Mv>2~2MaLa!rEy`ZF!TL84#CABECEH%ZgC_h&L>}9J=+-@<)X&zK> z3U0Sp;MA)Rbc{YIVv!;mCIn19ASOK70y*%6pPC0u?M1+3UFqT|!@$5e+0(@_q~g|_ z8T++c10{~%Kb>Zvy>qsNO0(msgpI!f%SD+r6`=Z;;De}{Og$noX zYyW=jWyy5wJH_jt|F!wL^1IFH+smKtd0#m%*yFOv$>1%jmfS6ZZW4(Y#5!d)SIgvO zk%wA4wol_x=qvYv&!7esnjwyj%8k@A0)397V4eU4J#L?4sg2my4(8c4e+! z`*ijVo}%ESLs_l$_jS)5oiTm4So5RHk3LLDJ05cM^v?ZXH(lilf9#=C`Fhj!Vq>{~ zqEIRlB>plGI9^~m@=7s2A&ZhMBthe$Ni@%#my2q?5sR!8x`weUvuqFqOb};~ zS7rHBDivu6LX03{{<4GhFy{EfO$8PDhG)6hLJo)&^$J?T3QaOSJc8}EWF5azCQ>jq z)LoWmxadetpr-vFYTGTekBjgq-+v1GrDYegMd+g?&mfJPAC5w~a@K=7MqUY_#byy7~nszMV5#Cr5ccCuZV8 zE+Zt8YL?F>xkReTRgtk|LkBmx<`H+aEjO})?UKkU^sL*^%zMZN^&`tx`&`7fdJV4G zJ{PGimnF%tQDgsVbaRWiCz`fwOBOBTLx;HCBeot4N;~9AkP2i<;ojHX=e?_3-~Erf zN%#A~`j0mQYUcA0a%Z~Yk5Bx5{qA6LLraC&idQO2Wt5nC>ht0K{;+H3`FrV6+L7Vr`TM&Hf`hLtj+2wW{kFCK}ECVYzs9xF*!5Y5Y!D3 zFW^7~K~Wj{pbz59MD#)QLG(qup)kb@-ceBWMIRJT>NZ-X_6h&2MTI4L5>w|ytL}CyAykwH81~(UQ4s~Epbs&}0Q9A?~Q|*LVsOml2Zox*1 z8b=%X0xl?PMGcvZ8ekaTvAu)rt^z&M6Zu3oMNY7m(kMe zz+7)@Uh6Gt37u|Q0UCXg2$&G7z&E#AuINj2NmnH6;FzUB34)6f{X3|F(gsq zgfx!lfgmt^Bq|8}G7#qYFw2o4g!qUU6~u51jC?fl=I9+_R!)!jB0Guh!q^sB*7H2Z zYhaMm$?}OrBG3qjLj)0Wdn~N_Aci!v=-@tI*{m(mla)v~9^|wDF-uy4@jdy>#=P<>X1+&dABUKm75L zQgxl1HsN`CV_|moZtc+C_nV~sm+cn|&%B@4QWvV5x`*FA+ds1@^8IMtqUginrEf2u z3#0MVTfpv;f#V+iyfNqNx=B}0EY7`L^Xzq=^Pd9m-RkOHC&%Qo`-hrO+?=+dzxvC) z>!DNOH;-!ukLiaV>^y#VxMpzWS#Pfs8x9{_a$#0YuK2m{$-n}3{>-LSpIE#2mDoS& zz=MA8=CvamW_+7m71<#SY;=Cam=DX37H9Spz`)9}Q|gF0Y);=o-9Ig{$(=K_;I(I( LTjlesw)Fi16Fh9+ diff --git a/ElmSharp/theme/tv/HD/images/Navigation_elements/core_page_indicator_on.png b/ElmSharp/theme/tv/HD/images/Navigation_elements/core_page_indicator_on.png deleted file mode 100755 index 0f15dd7c1c3de3b3eb2b1d8999a8b53a8bf0cd86..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 1026 zcmaJ=&ui0A9M4vfF*ebQq98sqWE0HKwrLwyXV!FD^*C@+*CEM~vc1gN|u_JR_tyW`eVHUab zoRCN)0u51Q2!iqIHr9N`_J-OD3iNc>bg+qR5GZPMXbC5266szFmeY~7y;hk>!8l)Y zIDzGZl-fX5{Xf*QI%p5);eNdT6!waB2XcAnp(R%*jVliYt{ge-LJcFgh|prYic=MY zkyk+uNEak9GGp2Xs(ELdcvY2iwud!ahdCul69v{Z4LOs_#KrMgERv1I1tAlSM^b!7 z2}hK0A{85##5Pw!`jQ20+~ykl+;~@RFbbAKJS)&Om!Xk$kp-G5%VzgjqFwb`T%&s| zQdcfVg5iS3{?+LA5t*LA?2IkhbOs;VWZGRa)<3tyA#x>_b4se{fBC+3`p_yrkllV1 z0-MK%U(Y6DrM0b|#&yuwxOMl_*E5Cp!&2D$xn5seze$yQKU8O~Fw>Wq9}gc_8z0pN zpI3J>Z%-cRI}9$YQa!yLV|So*>f6SV%_r$=)q7W~yVIfFdV>m4&z~KQ{d)0cBe<2h L%%t*keD?MqVQ)m( diff --git a/ElmSharp/theme/tv/HD/images/Navigation_elements/core_page_indicator_on_ef.png b/ElmSharp/theme/tv/HD/images/Navigation_elements/core_page_indicator_on_ef.png deleted file mode 100755 index d918e9f764cf29f14eb8b8f5a68926921cef089c..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 1114 zcmaJ=OK8+U7>;cbTP;OFMTwDNBI2ZWR}Zcs$^0{X-}gV~KvUzI z(vpQG6h)QB8>9qTE4^>Vbn-v^bI>5m0vv0>&8Qt`6dO{jHPi+{+)z4T0xDY9jz_SX zq6%p}*@9c-^@55FM)5F=YgmL$QPnlBrKp_{gErWqn1?f)gm{6I%Go- zVyb+qpW^_}Gh8sl^V|v$@N)syPhQ@~1%(hV1j1nIp@}zJYZnqy{gf}V6X_JjmcX)^ zOoqu+G05&pOcll@ktPa^u4_UpCPl)La5z{W zj&NKo6s?T}q*{rO2CKM$#MNfG5>nF!G;x-z{ozLPa=lS7EaF*$w!RZ;^)@oVWXgh` zKbBBly(zAiKNdbOmnFflUSt1iboPi$k7wq_mTYo^4^1-dHW_Qa@8(-_C7#Bm)k*i& zhm#vhhF8s!!UJdbAH3K<=jiAGaeq$@Jvi8ys_f|*DCd?``El{%iGlL(Tw-nf__OnG zO3Ge7UkvEI6Gs*eJiIZ|D}H%$d(G$5yVrf&cm2d@-?h<=ONUB_#@QFAZp|yUCeHCk ziYf~`f0WHRw!3I4m{#1dsvu_$W#-NvdslX4*_J~^Ztqv>_3*-b9~1r7#>?q~>Id_` zwaQDbZt`6!9q}p8>O&RVE-*o%+#2s_eZT82b-!%vOvRfsW6OuA!kPZ9<>To+-ffS^ L8l`Kstv$a0yFzd- diff --git a/ElmSharp/theme/tv/HD/images/Navigation_elements/core_scroll_bar_h.#.png b/ElmSharp/theme/tv/HD/images/Navigation_elements/core_scroll_bar_h.#.png deleted file mode 100644 index 4f36f349760e4250c5b58f8c8b6feb4f895cab25..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 1069 zcmaJ=PfXKL94<~LArKIw5s2YYlxX7Cb+AGkCK)Tp3`H^)S&Rp|_Q9IbzS=%q!Gi*Z zXySo`7f%F_8jXoZ|DnMMF&g8E=s{i76U4-WdN7%>nfMiBtTI-px z;J`#*LYc@Yyh?W*2knkP1aydH;OL`{9|P3pmctwuCs2JqCgSHpm3X%lX(AA;by6R#tk>Rp-draK^Y?} zfzW87iv4MXk)1{+hz@Yz$e?DZC~F^G$4inBGi)py3XF+inke`+O%+73Q|xYzMgn}W zm1Vm^kw}nhi?(+2AwJs1b+#6`B2vb5Xy5`@-R5={<+@hTO%hpzmUbSh-4@cp`jG{# zcrI;4^)|U`@m%<#T!tjWxQ+d*(Spi{yJEdFS#*&`9p;5k?InaE6>6E zA?N$Ww~_jmbbtB8$(hJc+1qeIx;}})j>^V+`K8^f=Jagp^S&DIqZj)#ndLybtmQ`)&+KLZ*U+IBfRsybQWXdwQbLP>6pAqfylh#{fb6;Z(vMMVS~$e@S=j*ftg6;Uhf59&ghTmgWD0l;*T zI709Y^p6lP1rIRMx#05C~cW=H_Aw*bJ-5DT&Z2n+x)QHX^p z00esgV8|mQcmRZ%02D^@S3L16t`O%c004NIvOKvYIYoh62rY33S640`D9%Y2D-rV&neh&#Q1i z007~1e$oCcFS8neI|hJl{-P!B1ZZ9hpmq0)X0i`JwE&>$+E?>%_LC6RbVIkUx0b+_+BaR3cnT7Zv!AJxW zizFb)h!jyGOOZ85F;a?DAXP{m@;!0_IfqH8(HlgRxt7s3}k3K`kFu>>-2Q$QMFfPW!La{h336o>X zu_CMttHv6zR;&ZNiS=X8v3CR#fknUxHUxJ0uoBa_M6WNWeqIg~6QE69c9o#eyhGvpiOA@W-aonk<7r1(?fC{oI5N*U!4 zfg=2N-7=cNnjjOr{yriy6mMFgG#l znCF=fnQv8CDz++o6_Lscl}eQ+l^ZHARH>?_s@|##Rr6KLRFA1%Q+=*RRWnoLsR`7U zt5vFIcfW3@?wFpwUVxrVZ>QdQz32KIeJ}k~{cZZE^+ya? z2D1z#2HOnI7(B%_ac?{wFUQ;QQA1tBKtrWrm0_3Rgps+?Jfqb{jYbcQX~taRB;#$y zZN{S}1|}gUOHJxc?wV3fxuz+mJ4`!F$IZ;mqRrNsHJd##*D~ju=bP7?-?v~|cv>vB zsJ6IeNwVZxrdjT`yl#bBIa#GxRa#xMMy;K#CDyyGyQdMSxlWT#tDe?p!?5wT$+oGt z8L;Kp2HUQ-ZMJ=3XJQv;x5ci*?vuTfeY$;({XGW_huIFR9a(?@3)XSs8O^N5RyOM=TTmp(3=8^+zpz2r)C z^>JO{deZfso3oq3?Wo(Y?l$ge?uXo;%ru`Vo>?<<(8I_>;8Eq#KMS9gFl*neeosSB zfoHYnBQIkwkyowPu(zdms`p{<7e4kra-ZWq<2*OsGTvEV%s0Td$hXT+!*8Bnh2KMe zBmZRodjHV?r+_5^X9J0WL4jKW`}lf%A-|44I@@LTvf1rHjG(ze6+w@Jt%Bvjts!X0 z?2xS?_ve_-kiKB_KiJlZ$9G`c^=E@oNG)mWWaNo-3TIW8)$Hg0Ub-~8?KhvJ>$ z3*&nim@mj(aCxE5!t{lw7O5^0EIO7zOo&c6l<+|iDySBWCGrz@C5{St!X3hAA}`T4 z(TLbXTq+(;@<=L8dXnssyft|w#WSTW<++3>sgS%(4NTpeI-VAqb|7ssJvzNHgOZVu zaYCvgO_R1~>SyL=cFU|~g|hy|Zi}}s9+d~lYqOB71z9Z$wnC=pR9Yz4DhIM>Wmjgu z&56o6maCpC&F##y%G;1PobR9i?GnNg;gYtchD%p19a!eQtZF&3JaKv33gZ<8D~47E ztUS1iwkmDaPpj=$m#%)jCVEY4fnLGNg2A-`YwHVD3gv};>)hAvT~AmqS>Lr``i7kw zJ{5_It`yrBmlc25DBO7E8;5VoznR>Ww5hAaxn$2~(q`%A-YuS64wkBy=9dm`4cXeX z4c}I@?e+FW+b@^RDBHV(wnMq2zdX3SWv9u`%{xC-q*U}&`cyXV(%rRT*Z6MH?i+i& z_B8C(+grT%{XWUQ+f@NoP1R=AW&26{v-dx)iK^-Nmiuj8txj!m?Z*Ss1N{dh4z}01 z)YTo*JycSU)+_5r4#yw9{+;i4Ee$peRgIj+;v;ZGdF1K$3E%e~4LaI(jC-u%2h$&R z9cLXcYC@Xwnns&bn)_Q~Te?roKGD|d-g^8;+aC{{G(1^(O7m37Y1-+6)01cN&y1aw zoqc{T`P^XJqPBbIW6s}d4{z_f5Om?vMgNQEJG?v2T=KYd^0M3I6IZxbny)%vZR&LD zJpPl@Psh8QyPB@KTx+@RdcC!KX7}kEo;S|j^u2lU7XQ}Oo;f|;z4Ll+_r>@1-xl3| zawq-H%e&ckC+@AhPrP6BKT#_XdT7&;F71j}Joy zkC~6lh7E@6o;W@^IpRNZ{ptLtL(gQ-CY~4mqW;US7Zxvm_|@yz&e53Bp_lTPlfP|z zrTyx_>lv@x#=^!PzR7qqF<$gm`|ZJZ+;<)Cqu&ot2z=0000WV@Og>004R=004l4008;_004mL004C`008P>0026e000+nl3&F} z0000tNklI%(ERm zn0-mnq4H8xP*4y-NTHYL(5GQUM0ANh$UIb3kheTo_C{Up&^FAxdH=`n_xpdoldUby zWu?`n1VNO=_KFGo-+;gJk|Mmq8v)0tLXl3?2D?#KG64}(U3M+6LrS-2{P2&l7n&Ent|B_;S1P?B=-VDra+IX`>7vy?@^?x_^A$WoQWG@kXH8& znxJj4B`FW~%Dh4a_K-eXzycaT5@~B0-4bj+wWurLy>m=ccJ~5P>C|s)1Cfla8X4g8j%(;YgQK(2NyX z-C8aaE*Nb~2FR}=|t_bCR4d^JxRaUv-yj*7#Gy{7UfvFw@O4NiJxtOw` z=8uKXtGCQm^2ZX)%cXHJwA0wX8l5}B)8lMc#ughZgAa5(?Is@UZ%bYC$^yJmURs5H(kH0P#1iA{3mv0`MeX{QS ziR90XV+9pAn`Wy{kGy!DnLE||s3B8bGxKt`^5V#IyFPPl{LE<4j!pa5%rrO6Z@n;A yL-aLl8h&u-puE_N)^B94W+j{E_NglYo- diff --git a/ElmSharp/theme/tv/HD/images/Navigation_elements/core_tab_selectbar.#.png b/ElmSharp/theme/tv/HD/images/Navigation_elements/core_tab_selectbar.#.png deleted file mode 100755 index 9345df39c00f838234aea17fa22b95c8fc11fb9e..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 993 zcmaJ=O=#0l91nxLh$y@0OV@TDtl^ROe~;hq_y2tB#lrES)WH-* zQA5UzULt#94-5{F|JK*x7i2qtr>eM&=5f;sA(eAb4Fbcn7GMcl&hohpI8IT!Xtz?u zRr7>mBag8X3=?|+VN=xjL>yT5BE+Bu7hGSZzdU(L1J_aMS<&RoK!bI6rWL|+t5C69 zi?;006UV@KtPlYYVhhCHk{>CtO1E_tVkg%u4cZXAsM6a(Rm~#MPzZs@WYRXr^FWdq zJ}XKRe-sEDFR&b0Qku^yqNE6;p!3nhTjc%RaW^v>%Oh6?7Qcp&MWq`5;lWYN&x#nnb#tf*15;{istWQZP2Q0+wgE zB&9CUH2)9vydFBjCAbssKZT>pasb&9j8G%AN#o{65?6tuh0ww%tRS@1tzxl`FpBCZ z09siBhi6^iLCxq$8*iG5;YZl=ZD{B!O%xc{b(CqD%X6|Yn&otz=cmNnsF2adguIr~ zbAm35U9OJoh6jDz%eYq?N zhD{p#SEIXEWO@>_H@4)^8+_=KX%ER*UtIgSn>>kAhMud$@9@c2sY{cC(aPqJ((mCt zl|#h`r$1aCmTx}0t>s<|)P>cLFSqusG|sFPuEHB{9^ZkV?>*ee>_vCKRiCdv`u@wf i{?@s2ZF4Qv`m}$JngnNWz0cNb$)hu-3i|#0-0B~EBR=~8 diff --git a/ElmSharp/theme/tv/HD/images/User_Input_Elements/core_icon_picker_arrow_left.png b/ElmSharp/theme/tv/HD/images/User_Input_Elements/core_icon_picker_arrow_left.png deleted file mode 100644 index b29b658932869450fe63f1d7e2afddd2859c2628..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 1432 zcmeAS@N?(olHy`uVBq!ia0vp^0YE&7gAGVtGV~P!Qj#UE5hcO-X(i=}MX3yqDfvmM z3ZA)%>8U}fi7AzZCsS=07?_nZLn2Bde0{8v^Kf6`()~Xj@TAnpKdC8`Lf!&sHg;q@=(~U%$M( zT(8_%FTW^V-_X+15@d#vkuFe$ZgFK^Nn(X=Ua>OF1ees}+T7#d8#0MoBXEYLU9GXQxBrqI_HztY@Xxa#7Ppj3o=u^L<)Qdy9y zACy|0Us{w5jJPyqkW~d%&PAz-CHX}m`T04pPz=b(FUc>?$S+WE4mMNJ2+zz*$uBR~ z1grP;werj>E=kNwPW5!LRRWrzmzkMj<>qYUV(I8)WMu4OY-s3eW@+hc?rd)C=4j?> z;AUWE0@Le~pIn-onpXnTn}X15j8iWtDdZLaZFWg5$}CGwaVyHtRRDY0DigO`3~-tU z)tiFbErvMt>H{644~kf%h=vIPQxAv&@NYUUwWs4m?zO5*Zzpx%+FAM_~2guBi9huYc;iBzc0ngng3b;qT4O_3LWpy-B;? z@^*RVt1Y$6ObrZ-Od<|Il1l+dvI+o6CJrFU$igA8fPsmHBLJv?MFUkCpkPqD=NfB)QY_sSn}Iqmy<^tak?@0t4O?y{dU4^LLE5qPh6 zcDcrKHs(EMW(JRKm)z|9wk@MUyqekgUh=H|*bB#|ew=ry<^_}af$r^%lJ8Z|{$AI} zR#6C4yLVaTb<-=8q;JUFyVQ`Msn&4&yG^}=0pp#0$FB)ox8Oh1F*{7)y4A#e`K*O! z`Gt)h<&_-SYVWgSZvDL*2aJxyHl#k~y~7+4_D}qo-GNR2%CzI(i_036i*jzfrVUiB zcwm#BlESsR!az40rig2mXFCG*Hk|3W&oHetOgU*w_Zj0yh6gs)U2l>2>bJC~f@{N? z`KAhP`@{8=|1m^d`z|Sz;P^A(AM1uSlYbsfy%@FY>HgXN`M*@8U}fi7AzZCsS=07?_nZLn2Bde0{8v^Kf6`()~Xj@TAnpKdC8`Lf!&sHg;q@=(~U%$M( zT(8_%FTW^V-_X+15@d#vkuFe$ZgFK^Nn(X=Ua>OF1ees}+T7#d8#0MoBXEYLU9GXQxBrqI_HztY@Xxa#7Ppj3o=u^L<)Qdy9y zACy|0Us{w5jJPyqkW~d%&PAz-CHX}m`T04pPz=b(FUc>?$S+WE4mMNJ2+zz*$uBR~ z1grP;werj>E=kNwPW5!LRRWrzmzkMj#4%6$BpIn-onpXnTn}X2mgi|jlDdZLaZFWg5$}CGwaVyHtRRDY0DigO`EO43! z)tiFbEtWX->H{644~kf%h=vIPQxAv&;#6ED=Y6hKDzg{;trSfANUKquZukY{H8LMfbi*lTsJI(e!rJv)>E#J{WGeY`gbM z*6zE0xAvMcH83zTi8ugBE(IXTDgY#zIDjN03x~i01|}Ac0H6XE4OC@}?>6@{B=4Q| zoF`$;_0Kg760gtNNH=V}ckZ)X!kTh!l>-j5Pjy7zV>UnC&waolT~u)MS{JED-VGb= zLY>a+63gpY&X8QYu3<*4`7*_M3_YduBsZR_OK`SflX#u&b|lOC67NUJ0}qoio z$5wOwFy@YPJ<#@Dg*(pl!0VifsSNc#|I6oHzPlilal_lsvS~+FGu-&lx9QQ=cOn&^ zf~J4v+_S1-y6A^2uaZv-q#mTI?#XH3eP5v!CU&5^t0I!&_Qb8vgD+m={NT6j&{r0l z^?lccH$0r{$9#qP!)c8QTZY^J?c#ixw-z1$H6uHbm~h94q#euiSR@!cwLO+C-@m^G PR5*IN`njxgN@xNAegWz} diff --git a/ElmSharp/theme/tv/HD/images/User_Input_Elements/core_toggle_bg_gray.svg b/ElmSharp/theme/tv/HD/images/User_Input_Elements/core_toggle_bg_gray.svg deleted file mode 100755 index e14852c..0000000 --- a/ElmSharp/theme/tv/HD/images/User_Input_Elements/core_toggle_bg_gray.svg +++ /dev/null @@ -1,7 +0,0 @@ - - - - - - diff --git a/ElmSharp/theme/tv/HD/images/User_Input_Elements/core_toggle_bg_green.svg b/ElmSharp/theme/tv/HD/images/User_Input_Elements/core_toggle_bg_green.svg deleted file mode 100755 index d4f8713..0000000 --- a/ElmSharp/theme/tv/HD/images/User_Input_Elements/core_toggle_bg_green.svg +++ /dev/null @@ -1,7 +0,0 @@ - - - - - - diff --git a/ElmSharp/theme/tv/HD/images/User_Input_Elements/core_toggle_icon_off.svg b/ElmSharp/theme/tv/HD/images/User_Input_Elements/core_toggle_icon_off.svg deleted file mode 100755 index cf7f198..0000000 --- a/ElmSharp/theme/tv/HD/images/User_Input_Elements/core_toggle_icon_off.svg +++ /dev/null @@ -1,8 +0,0 @@ - - - - - - diff --git a/ElmSharp/theme/tv/HD/images/User_Input_Elements/core_toggle_icon_on.svg b/ElmSharp/theme/tv/HD/images/User_Input_Elements/core_toggle_icon_on.svg deleted file mode 100755 index 9dc3cef..0000000 --- a/ElmSharp/theme/tv/HD/images/User_Input_Elements/core_toggle_icon_on.svg +++ /dev/null @@ -1,7 +0,0 @@ - - - - - - diff --git a/ElmSharp/theme/tv/HD/images/bt_bases.png b/ElmSharp/theme/tv/HD/images/bt_bases.png deleted file mode 100644 index 7d77abe0ca807402aa6c8fdf72412503ae5080a8..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 587 zcmV-R0<`^!P)c-6R;4XXnd89P1f5 zaptQF6XU=&o*QCm=FY-K*=8K;89Fj?YT`K9i>}dy3`@UU88#_Z`!yaraA0hpA1L1% zoM7z0p|MO_EAPOm%s|%s#i8;gQc3j;WcpnRqqtj6BvNU&bA^m{b4r_yDYBPY)E#dT z^=7=MA3s`rw+L6u5AX;0FW~B-Ie9N|)g5mUwG-LXkGqAftwPas%+T1fQ?GXYxW*Q8 ztEOKjLYlo&VPn;(*J)KdaBlA2y}69QZE@9U=Zc-@s+;xF%uVAI!W)4b*KW)#A9}9R z#=_L4k;u}aEV%Xg?$WgNA8p2!!osaS7Jj~w+56$vLh<_n&|KeE#C( z@2w|a{n^&EUv9JPJDxicKqVfYE{-7_*G-SP3pFSRFdS5rn5dBX|9`OeK|528+#?yR zWfQL_T{Ox#bEoUijkL19ox_!3^W$GZu Nc)I$ztaD0e0sy7jT801s diff --git a/ElmSharp/theme/tv/HD/images/btn_text_nor.png b/ElmSharp/theme/tv/HD/images/btn_text_nor.png deleted file mode 100644 index 4834090145bd9fff0a691a63919bed5dfc3da6e5..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 248 zcmeAS@N?(olHy`uVBq!ia0vp^oIuRO!3-qZo6;u&DUSf35LY1W;1Pp{?A#*l+@cK3 zT!Dy}Psr9a0;HEuNZ-^2!Ul4Y0Z{w*Y=-|pA@PzRzhDN{wI9{rfBy0F`HPdkx1N0U zXIs;Lxy`cgcs+*m!JI4S@yqb{r|UL z{-1mF-)HiF*Z%*r4*g$o`hWA5|G)qI|MU0%<){BMmi#YT_5b19|Cvkwht2%|;O+m4 zb^rhV`~TwO|CqV|pMU(n<$Tl~nPa3U`1`X7F_Nb6Mw<&;$Ujjm8WB diff --git a/ElmSharp/theme/tv/HD/images/checkbox_check_nor.png b/ElmSharp/theme/tv/HD/images/checkbox_check_nor.png deleted file mode 100755 index 543ad01ac625def3b8c932335910d2b1cbc86a97..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 373 zcmeAS@N?(olHy`uVBq!ia0vp^Y9P$P3?%12mYf5m@&kNAT>t<7@7j+K6|VY!{lE0&fAYfrw_pB$_w|3u z!vAL;{CA)5KW6U#7a#w}&iy}O&;Rx3|BJf#W&y3{DhcunW?)cV`%(Sa@lp79C-|X_3q3a8A&j_Vm>GYod>io!-Z_-EP^{y!VN2vO5I(mVa&y zZiyAlH(kuJJNbQ2mReP|{INh+_ZM5LgG^_ISTD(n@pxY+dUq& zr1(2Cqi2o6w>KH;s6WWoaZvvH_(83ETTR@_k~>us&5vJ?xN%5q+lE%(7FW-0miN7W zUAf_X>Eek<*-7&>{hpS*&*T5LYY}(5x|yTkeCys#i}-6B_8;5VbH&<6uz$*Wpfedf MUHx3vIVCg!00=f!E&u=k diff --git a/ElmSharp/theme/tv/HD/images/checkbox_uncheck_nor.png b/ElmSharp/theme/tv/HD/images/checkbox_uncheck_nor.png deleted file mode 100755 index dc4469a6429b27bdef372b28f959aade41eb9838..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 249 zcmeAS@N?(olHy`uVBq!ia0vp^Y9P$P0wkGC6jg!L0Z$jl5Rc<;ry24!8A!D5mvUG2 zdCKC}->{q8{1eNOiP0N2ni;;SV(C%8;Mo|>Y%J-^R~Y+q<`NmhLLqk|cv;Z&Ej9E_e}|WH@t8c#Zp_TWiEbSpt)< zn|#d?K6~%yO8df+E~V-EU3!b`ujx;UOA0u@kpKH(fya$s{(j=!%C1lm=5Uq+XeooI LtDnm{r-UW|)9yUD diff --git a/ElmSharp/theme/tv/HD/images/core_icon_picker_arrow_down.png b/ElmSharp/theme/tv/HD/images/core_icon_picker_arrow_down.png deleted file mode 100755 index 378f2e8a19ab683ee9dea64ff994d4047b78ff46..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 1340 zcmeAS@N?(olHy`uVBq!ia0vp^lYlsYgAGW2iq8U}fi7AzZCsS=07?_nZLn2Bde0{8v^Kf6`()~Xj@TAnpKdC8`Lf!&sHg;q@=(~U%$M( zT(8_%FTW^V-_X+15@d#vkuFe$ZgFK^Nn(X=Ua>OF1ees}+T7#d8#0MoBXEYLU9GXQxBrqI_HztY@Xxa#7Ppj3o=u^L<)Qdy9y zACy|0Us{w5jJPyqkW~d%&PAz-CHX}m`T04pPz=b(FUc>?$S+WE4mMNJ2+zz*$uBR~ z1grP;werj>E=kNwPW5!LRRWrzmzkMjWo+qcXl!a>Ze(fbVrb}UYH49$;^gLRYGGnw zVq|1t2-EA5pIn-onpXnTn}X15fm1IiDdZLaZFWg5$}CGwaVyHtRRDY0DigO`OmUhA z)tiFbEoM0N>H{644~kf%h=vIPQxAvSSv7B`8&)2Ec1SkUF!rd7$&-F7#aGQ+ zcC1VOmiRi^y5w8H3brjz^%({HtKEXhoeI$Dzc<=5UvFBF+q%Fd8W zHdA0)nKk3maij9Jv1g{$Uo}gt>WkF>X|?;Pn;kRfvj0i9G|fIpdU(xB@%g|MF&)_~yGXqW{|8U}fi7AzZCsS=07?_nZLn2Bde0{8v^Kf6`()~Xj@TAnpKdC8`Lf!&sHg;q@=(~U%$M( zT(8_%FTW^V-_X+15@d#vkuFe$ZgFK^Nn(X=Ua>OF1ees}+T7#d8#0MoBXEYLU9GXQxBrqI_HztY@Xxa#7Ppj3o=u^L<)Qdy9y zACy|0Us{w5jJPyqkW~d%&PAz-CHX}m`T04pPz=b(FUc>?$S+WE4mMNJ2+zz*$uBR~ z1grP;werj>E=kNwPW5!LRRWrzmzkMjW#r~;;AY`$WMpaRVrb}U>f~x@>|$zUU}0=( zVr*()2Gi@3pIn-onpXnTn}X15j8iWtDdZLaZFWg5$}CGwaVyHtRRDY0DigO`3~-tU z)tiFbErvMt>H{644~kf%h=vIPQxAvw)ExR$KMYtp173wV~^$bnR(lz zC${CXsWhrgV41`+$wA12$&<-bffFczOUNPU|Gy(P$M<~Om*uc|+k(W8*#DP5&6C$THf4xhO - - - - - diff --git a/ElmSharp/theme/tv/HD/images/core_press_bottom_right.svg b/ElmSharp/theme/tv/HD/images/core_press_bottom_right.svg deleted file mode 100755 index 32c8e00..0000000 --- a/ElmSharp/theme/tv/HD/images/core_press_bottom_right.svg +++ /dev/null @@ -1,7 +0,0 @@ - - - - - - diff --git a/ElmSharp/theme/tv/HD/images/core_press_center.svg b/ElmSharp/theme/tv/HD/images/core_press_center.svg deleted file mode 100755 index 662c3e6..0000000 --- a/ElmSharp/theme/tv/HD/images/core_press_center.svg +++ /dev/null @@ -1,7 +0,0 @@ - - - - - - diff --git a/ElmSharp/theme/tv/HD/images/core_press_top_left.svg b/ElmSharp/theme/tv/HD/images/core_press_top_left.svg deleted file mode 100755 index ad8461c..0000000 --- a/ElmSharp/theme/tv/HD/images/core_press_top_left.svg +++ /dev/null @@ -1,7 +0,0 @@ - - - - - - diff --git a/ElmSharp/theme/tv/HD/images/core_press_top_right.svg b/ElmSharp/theme/tv/HD/images/core_press_top_right.svg deleted file mode 100755 index 60c88e6..0000000 --- a/ElmSharp/theme/tv/HD/images/core_press_top_right.svg +++ /dev/null @@ -1,7 +0,0 @@ - - - - - - diff --git a/ElmSharp/theme/tv/HD/images/core_theme_bg_01.png b/ElmSharp/theme/tv/HD/images/core_theme_bg_01.png deleted file mode 100644 index 477402feab3b9a4dcaa108659c38d6a07aed0e8a..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 6894 zcmdT}c~nzp7QfkmAOuRq1tYu@#RX-D@PeT111boJid!d<1Vl*kgjC{EO`#g6wYJul zx^-M@wRORIRH~LqCR+EsS{KxZ8*RtYRH{|6I`<_H5-RPfEq_coob!_RzVF`O{oUWa z_j~Y8?x7*NxN`>M9gvDo9jnC#i@G zwW3Ist5PVZPd%iH1K<@F=jH42Gl$0(Xw@MKW=)7*P2p~UxFLEl2NDrs;Sr%> z_$v(#kBW_!#zw>t?2iP!l_?8jb5qh-U-&IvGFhjiVnahKDk?%MB15!gMWNv`nT)X! z5fO|lg3G6CbP9d2ro2~+g%nkJL0K`SE7ocV#-d`9_ElZH1d-Z9P*a(it%fz_EKx{V zs9r&ZhKGcOs?|(fw$%z4&ymj}c~^`$~zFqBgHT%dhIAA~LY*%OHW zh7JQ**L@?v)!yp^(t;piMNbjrpE@>3G>rrUX-wl7$X>p%r?GpWMIbLs6S$x3s(YYrZwMHHsbTtNoq4wsSt1;;2O^Ls_iyO?h z-K=^tbVz{soCwmJK4g77JoMn%eX}ByW6(1o&)w+z(`K{c3yvYG1;v!@qyFBDoRtL$ zapXV_TyJWsokcx#b6T-`+mX6#>R}CQW6hJ#Zz>Q-Z7*hhS8MYJG3JH=T*D2br?@VF zHFMz6(!+;n>sbz*e)4e+5XaL6^3471(4f09Cg3x^@op@MO@rSpr=ho_AbWKiALPFirs1 z%nG65heyTyn^hK-hhxR%^NP81D=h*qJCK~&XTfWb7)+jGKisq+&rotcMDU8hIFrAs zKL%J^1@G}NEtgy!I5r(T*N3X0YVU##N7#TNeGRWyT7rd;UOu@q%#X}{ebVir+`uZ! zu}-#>8aR&v;b<4}of1e`mb?~)w8;HOFOK^&V zG{j_QcSdK_OaYv>0TuhHavnSYji+eWL?Di(3mCVnrQ>xFU1|B*&*pZO_ydpZP_llH zLj=3G?QyBerfR?A*`TNN9|!)7+a9Dnb(H6L73_5voe%=yFRnIRztJE1R#|%SGdZZM zI5`+*Q8oUHgr>{ph6_9!g-3@D<%VTbdK6Ld)6+K1=Pu~kABMUZUAqBd9~MUVx|vFG zgG*}~epJpB8b(!GBE4)#(--SNj#`}0@+Uhy+8b7QiB6#85C%QqkpLFa*7?3Y8G|Rr zFtyg{WFDN9k#P$cJr8f1vt|Xz>uKu>7gnlUuB7j;_JFTDiB4!4D+N!B4iT^W|) z@=<#`eg6X?Si^ETaK~-okY{7ky8xX@9TXs=tI_qHszq;p=?%1!I_PF6*;@<=uc?cVH&~E0 zL~jFd?e_WtY*$PnLnRM3oaios!E)~tY#(5k8GJ8XxpjxOe#EowY>7KT-RJt(ZlbGs zZQU%G6nUfY8g2dA;m0tr`JmN0ZXi%Rj5Yz8x-YYEsQ0@^Vd9yxFJwVHQU0gv7QE$a zzr`|VSi02D($Cy5h2M&N70le0J(!&E6;>JYOrWkGBegRk&dx=tofWlqBa`6v2V8BX zMa{K$+=cge0y02+hp>@XXYIkC&o?gbgcZLd-lCr24je&y^+j(>YI$_h1Wj>qo{_w}~<5o&Me6ex>D1r&i_d-nNTxLd|S* zwbj2;7z=tAV_ykVnopM$@(egf6hc@xJ-7?glpYx_6F_zs`>%0IOEqaxl=9)DDvPBX zYk0li#`BvwhQumMvY&&ztE-Agj~O8Ul(tTGwP)J7Y&FbaWfW1jwul`53K*Kqt9v^F zKmzH_J7xPg@WutKG0X;v0fSQ}Pr0pCi&hvB|JWGp3mZ1?YYuQOY3GMn zpj%7y!)zUw(_#}%pIo^s4`|*iJ2BWUIJ}ucWj(e$U9z;ISDH|?lHZy&M)wTqF_k79KN@%6qzja8Oi*a?_si4B6uDbpwBAmAm{-*7RB zvwC8SV}*(wFiw7+K1?9*ob^LwIrVThuT>0)%rsu~Hg|$)I;nqI9OBbjx6Woq-`E>h z-&4FLw%w=h)ZU(lU5!WBOty^~&q-%E7+h-~q?Yu|p=U9J6%=f1v@U*a1dW5e2#*rr+@^T+?T?b)CJrIs4zW zZ+wvGD{ev~Z4I+GQ|G5K*Tx4O-^OL8?RRXyLpo3$Oeg>LZso2#@gMG8|BaIEo#@Vgh0bcU+h{!f(ulWz=UGo@WQCOI!}zTI>q{ZktCm&MMvM!Y0ZA zkij|Pm=ByhQYbtpbS{K;cQH5HY-W(Mxb;}$a_{AVa>vkd;_3In>9=|;S3YZbpy7LS zL&S4j|2`XRND0Bq10l%8xV&p?ZU2#w45y{TAX`G#Z+))5+YrIh;=~7=xuKJ*<)aab zdDZP$ko6~Kl zfK&Vb3uNurD5xEG>8ArbBu3V7wVTa^9zOa9Bc*tAJJ@jTS&b0Rd5F9K zh@lHu#JE8#@&8 j#k#wrIWYh62m=SQO5?H$>vQlwS^ycTSt(nRTqzz+->*k28~LhMj;A`+$eZy5V#&1Hdaq|D|J#E_e zJnvJVU=TkQlrf%S3K>lS`S>URE+Sl}lTO-bB>Tk# z`(=^%-6wRrgFIO#ZAJub+T>ly)051VcjT;5L7NU)Cb_AX^vQfVof1Kt(=uOtsg#@~ zbtx6J*(2qtksK_mbW=1kc)@r*& z@R9Sw*6Amn0=6*As}DyWv6C0M;N*eMBp={ADzu$qP|vfpdLvoNcE)M@#38^O8r@4y z=4VD}yCmRWW^>$~WC?ZLtL@Pb9n9cl@{)z@qfpzy0RgIMj(>NeFSo<^J|h&NkZ&25 zjHI8fOwms7n8|F#KXAzpsMStBAZqzA-d*utlMC3SojM5?@|APRi5wwMJ8=?RWhzb4 zH^(|$bJ&!TiZGOo8pT+2AZ5bdlk=wT`+B5%5NBz=6E(Td>b zGkl39UtxxJO4m$he&h|2hifj4+^?O{0|JzCEwmXql1sBf5ej)bd^3C`^Ej3E-#DDo zNikRKjqs6tGiwxKMEF>SM$%6U_i1PIkamjf6T6|2d^M{SVNB>fHYB-3JC)}wwXfKR z>lDvUc%~B%^E-q_a<@lG|3y28QT7BS zcWLJ^%I=_KOBTN>n`pMbPyVEx#TY+=E%}Xh7Grz^p~8p&W3=-aAfhm$kFT}!7-37W z?}R-wut7VI5xxliu_cdjKs%A=9Oh7@B&^rYl?E8(S}ty%Tv6SEYwhqc8^@?0il!QahVRoTHe__D1-;>lM~$XY-6TA;nvlOx#IBR-BY=qm-+m&Bz(_Ypl@D z=LyTh6{FW``PfaBc1D-%qml@%=mlxz9M0&~T0J~^>*QSY37>jaYv**u>gf5$SSw+3 z*vmBStVwc+>CtWeVlVeC;ZR1dg&n|hUufbj?Yv2`B$i_Q)9D-eSUd56S;v>L?}*

1=J1(~7JMJRO?-N(UPAzORg-Fj+6*? zy6d3rMiN2tWregG6>OK4lJ731TS+9??A^?J?yvHO3~`^(ySDugv6z<`?a|)Ou$c`U z^=4;Y{{X{Go}-orUHkyUAM9WoyXo~VmYJW@xQ7~Qsb&&`96qC$#+yH-VW3>xjHJyS zlvBEaw6w9!g4^_<|kxfuTg!9{eRZRaiG00000NkvXXu0mjf D*?t6K diff --git a/ElmSharp/theme/tv/HD/images/ico_default_video_180.png b/ElmSharp/theme/tv/HD/images/ico_default_video_180.png deleted file mode 100755 index 9e329917dad989e9f747c5b6bf4445b585b80c3a..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 1031 zcmeAS@N?(olHy`uVBq!ia0vp^TR@nD1xQXma&9LB1M@jg7srr_TW{~$cE_Yjw151s zqNmrW;iAgovoJzpi-%y4Lj8{1f6>_qVmq-5YW1M#PO9D|~|ya=GSm zeeM~*XHO$mv?i+mHcDUj+~)CDZSl07&mY~Jx%vFQIdQ^*eN*Kg{6BO-z}cCH*U;n$ zWsD~q!|YC1yYw`E{e&*GJDPk$_#ckcVnnVByg`BpFM{dfE0oYPT$Q{^6Sc*Q+e zMZH+_`R1Uip2I7QOD4@ZJ9Un(?U935rL7`Q{){gr-s_*8sM@t`nUVGhaySrq1NY$j9tN8bBtuFoixH|Jve%sRY$|r)xG{!F^m1BxvYKKDvK{^|9hq5zZ#$QyZmr^PkpFVl||+MZ`S3r)OPQ@zva_> z1F^NIF2vu9-d~wMqwtq+`+DPlt9MC)DO>&rQg20f5Po()rIb7+wJ52W?G#!_-l3Vk6f7Ri|pI4rLVKkToQk{ z_0B!3`fG+W_H6(7$ox9HF54dI zg(b(fwu?@3i-rINfvK|&Pa+(UgkG1^Ij$e zdVh32Fu#Fj+H0fXeNX$WxB{^7k@ifL)*48XF1eX}7Ff~u(R|Viakor4vSXY_JURey zW|BiZ+TM->i%GY6ZMTd#CCntD5M{*XHi@ej7&b{up0byu*{8q^^4MI*O!DkSlq_w6 eivJ(+1*!qV%BY&imBwKJ0000!uo~Mgrh{fsTKj$5+5|o_JuUMwI z@?_^j?ZfptANZYBx~xnp+yBS^U)*f}|8QVvqEvSKvbX2|8Q=_mkDAILmB*&ImH2pn7A zdi&tyx!sw!4ovcKHomrJ0vjs}&@P}jrj0VyO%ggC^S8cILDNamMJ+!GNS?SZ4*#~`om84|a zaP4_`!EMP6sZN`}b-okZHM^bu-8T~VOn-XL=gBIO%_TbjqQjK>*SXg=T}=||&vQ)K zJ4Y?BfLUp_O|rS-Cfz)jl<;$xW(!o-EIlFL_cKMQ-il4>zv$1?h60ToE(%P79S%=Q zmFh1)?d|&GEZz~otaPP;!&JeE7tGus_|bix`|akl(%SYVwzuSR?kQF+aXoYY72nd)&UNY>xU{nT0ZA6$e8I3V5e|7v`7goWOG@;D40bibC2)DYM?z2|J`$Y62EIt z;KWtyviw3re_ct*3Jm7Vstwxd)qbkM%l&HZ9S{N4oRkZYWeyF|v+R}w{ zPgL)U=)5EQZO-9`2key;FDb1S+Vo_>CM%ESAxphX-^_OVRb{a)k3V+he)sPMfBya5 z`1|m^S1U`mFYcauqD`+%>Hg)TeoG!qX|-8BS7cVn#j~pfDm7Heh4n;L^?0pW+3kCxXVj~#Sb6Th{DkkO7H-eaZ|1U|$Qt{` z#c0=!PM;S^>Wj>0&L}^ZK4bpL`KwLt865U=$vJq~{*TT&pSiA#uhU!uW=~tG5~!OZ zlKp9w$MX{Y+)&}_HFa|5Zav%No~AAYbl8(iw|DPhvYt2r=+N*RHZPXm==>q%FFVgB z#VO~@l@Qa4eXB%E=iSeJSzdHJEiPL1v9<5K@6|eXX3yH^o-i$2TBTT~bp4jr8`c}0 di2U3z`w6p%I>V`e+1OFsAsU~nnFs0aYdw! z!2(`p$4%)@-?EF1ao^>=?R@8bIx{=JHg?KjEIuG^1dhNFI0FAS;Gy8)gb(d7Wr~cF z2B3{ilTYlQ4;&NjPDN%Y^(<*nW%pvhN#>{+6*bm43LBhbfqd6*oiju9oi`kW3C^*| z75&tpMw1pD5@ab*adm&2*M87uaFQ3gwO?7MaYj+#A!EALulN-X_^}?_O;$PXsky`> zrd9lbWhvM+kHqNNKd1dOzsV~l`qK>X`L;TdxM>~xgtxXb;4QT4YrgY zV@i2yw4U*TKptMhH-A`zvUa< z|CE_!fe~p3%F&W@^$_>DZ74s*V#;;k6``d!iEG?pQg0k?=r&cpaGiO7Xek&VOPLZQ zq)E`Bjm<6=hpN;k+7Gy&`9gmdKI;Vst04lR8>;M1& diff --git a/ElmSharp/theme/tv/HD/images/modal_dialogs_banner_bg.png b/ElmSharp/theme/tv/HD/images/modal_dialogs_banner_bg.png deleted file mode 100644 index c4a5fe516ad4f57aa1e0ff2f29d860da2149e3cd..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 863 zcmV-l1EBngP)6B6L)VY)-r1c6eMRp~_iTOo`(C|zuLO%taFp5O zO%aEDMu1%m6btS|xJ2ctb$_kMxl0;Og#)Ae78UK3C8oSuc_P2}~G6=931g9yb zO^-f9#y8e&VGpZc1wgP?oz_9YYw=@bb-_`DGz^y!&3mfGiQq#@*P4Sh0r7bR--ljW%Kr$JK) zdQw|Oi9~gW%Tet?&AkdLZWoD4)N&L!_mY@ZagX^elbGUIsOqL_#40HJXKy)Y`fp|9 zG-4Ga#$V5uqngWmVsCHRA^)G6sQOFn+3XJm>@ci8AUbo44vv>KsTfdMoCnK+I=KzvOQWvidT{?7R|H`@Z zXHI=QJdvur`1|dnKR54h{HEWMF=fik#VJRlvDh*v{QgU6(V|0}4sF`BNL^{O7z%Rc zWMs_9m@#)Qmby?_glho;P2sX0H#tQj5m+>u+`%G5hu~WkR={G=A$QBWJQR}hzMx=E z&fJx~+A6A$Y7s`5=sOF5!MGJG!(I3od6)uhm>v~cbghi|7ikKoPRF$?#Y6|oH%DhB znj|EP$Co&dF_jJ-926Cp@58#%>SLQXK}`f5X!IWD-ASq?Bt&J=nW0f8-rGs$Ag+GJ pGu1K9SIsBycA$w==pGEH<^)*cn}YI&`2(ckc&j{V8EjUMG!>)1dkrXa|At!>_H4U1OhoF zVn7Il5Xj9_3>efsgrMRs>JB^G(_K|LbbWO9&h9LjDr#oBnST0xfAxNpVEPbjH{8x1 z5nFsGfSV2!Q?5i@qITE$Pv?KTHcm{%)Mp*#8ncBHEl`*;t~$!%;z~dd(+&3$L?QhY z5#_Lc8V_u^s9SDHk5Q;SyT3X6@#%%5*#Ic>*K2?O`QY+*FV-*!ECwP>Bw%HSrbCZ8 z<{7Yf=iO#m%0WbcnxM|Lx4; zi=Y~=X%rdR*I#~h6S-CJ9ytEt|B zn_}bzaceI2hqF=Lg@$`IR7w|xmU=b{yn8Z5Rm!oDGSZeiLe-P1rB$@-&FXB<_+3Pa zwpK|o{#l-ldio^TQa7_c91ec^bvDZXr%^{!%4Bru(r1?*Jo|pIXFJfVSBK7-Rn{4k zlT%P)v655^s~Tj>^(!~0H-c(dd*zl{59t#9L2a&6sK+nLjW0giqU*Tpx9|Q;PR@jq zk}@DwEvCX$$lsqlT0Zf~T))kEy?Xh^y$9q>$SE4>96_ooFLdeBqfd{Xn!j-J%;$#> z3_r+pQLeoG>-i6VeEW-eOU{@v8(yaZgTdjdm5%!-=CG6$OvuUE zAZLS#cd@by?JKjxA~2Lb>hTX}C=>#R!BBWuf|w}2({TqJ787H)x+-EJsjf>(CKOD3 z*=y{gj-i%d#0NDR>BHD!{f<>~mqDWd(^Soe*w;c2HjOe8USue}btdgyWlVCgdUJAC zVURIc0=~ipjIDL(=%A>ee=4LJ{{bhVv^P$;PGJB5002ovPDHLkV1f`joFD)I diff --git a/ElmSharp/theme/tv/HD/images/popover_arrow.png b/ElmSharp/theme/tv/HD/images/popover_arrow.png deleted file mode 100755 index 8160bf9ebb480ad0260695bb2b8d4d017e6d4025..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 167 zcmeAS@N?(olHy`uVBq!ia0vp^fy-38vta3u@=-I~$(r$2-t zM5)!kLqUA^<;drWst&-DBHy;t?B zs-2KN#KB40AzQ3*gUejx7iL-NdHzkaY%0n3A zB=1t_<%vU;LhiHc-vUcZp1J+UR(mQeNM`*OvLmcH(DtQoxI)%ufsqyc& zpxJbWkM*FrZ>#nW%DJ&uPYb*Fixzc?Mn=ql?q`hIY);CIT5gEPfsapMz&#%0Ii9B$ z<;2WUNXW~4WkLkIadIGSy5x=7IbDzbrI(hr|3~ zAc9Eiys0O?K-HS?E*q&J+2j&W@ukI+kY_odAfq^mA0p8%>-1HmX>**f6AzSzyb|Zc zW75*wJFNDJkW%Ce9=F-;5`4OopqbAw+cEU~3=*z!g3s zz}FA~0Z)U#qhxp>5WxDt2!NBUX7V!4xS*1lR>xK!eaa>c&RWtxBPeUeTdBuxdIZTt8UIus z$Y@%|@gqyIy)}=HHtEaDHJqXI;xZLM6zCt1cIuJ?)MyR~xsO5uiES==w4$6i$;V;W z(2yhe$qFYvUKBKqF(P&EkjbxdI2t9Yu=vagI&2zsOCTt+Zz#w!loLn{y2?!ftfcC& zKrqF~z=&~p#xP&ZPk}sHG2DdLnffqTHnnh&mjC2xUo$E{_t1VTPC)vTzJ-hR6USKM!SYfoo zls3+D8Pqbh$m0|ZOq?b7n+3W#fHFroN*Nb{o5Vm`Xz>PXIt0c!WcZ;1=;CvgE8H|@ ze!(OMd6X(Ht`+hDKgqx9JFWYVkdhUiOky}vz$^LPssvR_M{ei zx|Wz=QZs9={vFLv!5pV`r~)LLGiFY%#1iJJq?=SOa&dYNuM zJx%Kf)xN;{bo4)F_wj;*+-s=;am>{*-I98q&(jmI{bj*EW+++GpGKu2o1EeIthv0` z9wi=TI^&Oev2w_(cK`qY diff --git a/ElmSharp/theme/tv/HD/images/progressbar_thumb_foc.png b/ElmSharp/theme/tv/HD/images/progressbar_thumb_foc.png deleted file mode 100755 index 9356150ed3ecb68ca7f8f8a4d0100a271b12ec3a..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 434 zcmV;j0ZsmiP)foT@sEC4#AP!Fc0aX|0*1tfs zMbw}aTO1r5@^z3VF_&C&M+OI9mW1#=9LKx&&LGl@z7(xLjP*XBm>qUKUkUP=2eHr4~fdBvi07*qoM6N<$f?>wJnE(I) diff --git a/ElmSharp/theme/tv/HD/images/progressbar_thumb_nor.png b/ElmSharp/theme/tv/HD/images/progressbar_thumb_nor.png deleted file mode 100755 index ea4b2790a1a62f894ba79b69118280c3fb0addf6..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 876 zcmV-y1C#uTP)Ru2*i)&`r4tu$IAn2IP0-b8v9dQpn#MTK4!>q$>i z4>2kf|5Ys(g@O?glq!l?6f3rDRyWyh++_CW;eBU!c6YKFp$FeNybm+)``LGA=6U9I z#FcCA6}0}xm~T2K<&u2nxQE-hnIfXbPb~8>XJ{oynVI&^3(@}&G^%Ixr_$Q5I-*dh zYo?9UFg>CR8r05fJ`*NS$F+TH=><94VDhxonel}l)QuWbUImS5rykaKN$_I0MldfsMmCL9~2+A>4VOno!SQZNNtF_-V&mI@T;ev3ut<;F@oomLkp0er~knNsHr-tL2bZ({4ola4s_TIZDTq3{iy2g3m zMvIGTwBIMYvLUV=KX`f7{MySYWife-=!9KYa{a~8W1L;?fv=Z4gHLKf*Vw9C z)b)BmrxVm?pE~=Pri7dJ4aji=Gv3@Mr!su%w7BHl#U8FBNZk1Z=2BoMd)fcgvCFkV zP_1(KIrei0JII^2-zfIWXY;|MzyxK2V(Iv!4;>0q-jRCk#5+&E)u^#fg-fiNorhJr zFz_fcPKglD4<4UAG&6n6#AJRH)&IWm$G1Pc{neXawl>+M!3q`Xijo_bUJN`!N{o?b zICaAn(WFk5zi6n{y$kBcz-5>`BNWKtNKU!%&jrAzF~5Ngbd?b zY=b5Z8mzNH)IEGKW>)Copu_mb8wmgEe<3>y*- z4VYrVQ1@xrh6=t&1jXN5rLRa>UWMM(MS(D?>pO!j3HPQG3QVcBE5@*EYK}*aFz~6$ z3nSPw;aYb_fl#&Oi4YLy1bFY&bLPc31B3v&h3k_S?4ua>M6jE}wc`c*EynE;tVy_z zykLi7+#JFF-(=4ZBABeE$qUx3s|*4B60RFwFk`ht0A=CIc)|L`xB`ISusC{Oy$>-E1Kk@G5&a&Tmzk(iuU*I=N3@ zTVvV|1G~85g(^vu?cp-zjCyJ2+Lk!a?+(9ruR1en`yaEM2>QZ@_N<`Bo3{1uGqfEo oAP%sLWfbs1^;c!Vc|MT;0D;$pDr?~be*gdg07*qoM6N<$f;z4lz5oCK diff --git a/ElmSharp/theme/tv/HD/images/radiobtn_off_foc.png b/ElmSharp/theme/tv/HD/images/radiobtn_off_foc.png deleted file mode 100755 index 38ecec975cee370241a968066e10d716d8178442..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 466 zcmV;@0WJQCP))`pC>>_*gpdx3oOfC zXPq&4Zo0Gge0R^Bdw%CwC^|cekoAXQ$AMo9$}6jLol2T%pq?B(2b{-$#i-NA&-&Df z`Fr`J%8USTsgT1)2%9VwTmVKqgoU*L=#ufhC_@*3Rv1_tm{Zyl{$kxS2ik{VO<+PQ z5G6#43D69J-28*C)78#mO_i)4=#Izl zm&9=@DPinyOPcM%hLX;VVM$4YUD#$`!dhbw#BdKQeUo~w$ zbk99;#>NsfCLSz~;X=I#7Do}OY>P-6ideO}&Yp17bi%hfA37fuPXGV_07*qo IM6N<$f+VZSOaK4? diff --git a/ElmSharp/theme/tv/HD/images/radiobtn_off_nor.png b/ElmSharp/theme/tv/HD/images/radiobtn_off_nor.png deleted file mode 100755 index 6bd4c7e4f58953acb06313278acf48204935a46c..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 577 zcmV-H0>1r;P)_`*BDz>d$|8%*N}?UB@nhCOT_~f~!~{L@Bax&y zNbBMxM1BFV`7!E%N@;KDy$OSZ?{sr+-Y4h0=iK|AfuD9RcI}|`4`aLkJcOjTV~S2X z>HyX)S$qZ6_sS{yW6;*ZmA*f0q(@_$rz8-40;ic_oa?| zX;3XbY9HkD-?bk|3?H!J=i3yZ z?_5iQ{DK)61VSerd->C4-Flfdzc%MtinB+(dtWaqGIRN#%9;xAYgdS|<)8i% zc42bv#Vb>eT3fw7aq`mDO~PLVH`H0My1x3Yw`Pkf0|R55r;B5V#p$h6ZWc8;2)GKW zW(Wj`bo}P)@-{oFBK7_E|NSD&=XhpMHH{hs}MNKt~mLb zzI&n0Y-a_z&7JX+KQ*jb(Yk1vDEBHQ=1R@Jsi!XRPM&KgX?1F;Mi}F&qaSpSY6Wm6 zi(Yy4@zJZT4CTwDR+vt9$+&hQDPnhX-lhoKl3OCLlM8&WF#cjW?X+FVDmYbFR{U>} zrNkZ69^(n04doVj8dh5r&AE7C*$mC5?{dciGETnje1Bz$@7s_IA3li~H)Wnba#6fD zA$CvIPu}+|!81Q=9egIRXHSEt!SqDEgFZTYbPlV{IAhSBVD?1g*_{KE^kd!hMGgEl z5+!sMHBPWEv`cPMIi(#~xnJ+oyt7e;o3A{r+8g4WR{J~Oygagg^F*I(9@}qi^0Iqo zUim(1@^sa%rBUU*XZA9`=-({bw&sV$@6(C9la{Z}y;Nkee%8PDt7g7k^Y`AZvm$~o z)Yr@^mN7ecbgN~{f5jba$AiCDSjpafIpg_1{W=EsZT@T#3$^)yQOw}!>gTe~DWM4f D4d=z9 diff --git a/ElmSharp/theme/tv/HD/images/radiobtn_on_nor.png b/ElmSharp/theme/tv/HD/images/radiobtn_on_nor.png deleted file mode 100755 index f74c505e74639855fd063f717a6c17768efc08e4..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 750 zcmeAS@N?(olHy`uVBq!ia0vp^Y9P$P3?%12mYf5mE(Q36xc>kD-?e{Op;@KvVv7F7lY#x_qE#}JFtTc_MCYH|>86;#a- z2oUM`&DZ5^c2q^``|tnzMVQa=%$~;Yx!=TePST6&-LoJ6vk21pQQ}r1aFktf@-uz+ zLY>*p3UZq}<0pS=ShJ#a(K1o)RZ7g2ntfAGUErNO*G|&v)KZNw##Ki@=pNMy;7k_1 z^6KNGS6dm%mr1QKo$Qiv?Ltz-?&iEr5w<0_L|!Ks_+DZB#d6wdyOLFKs;;c~-ylng zJElFx6FwWtE%G$1wkVo&@xrnhnoZy3js;|#eB1f{$`aqVAs0S;5;1PdJb&b(cyB`N zo~oa`?^%Lpe%3npOkmHR22X?OiFyZpboS^RR-19gpgqCtiN>=#2PWyqy6KA=_-iCe z=qhTQU|(pL+@x|!JFs%U-lutIqYO7+d0MqM#5t|@cfNUfWc}ueKG!_9-`eD5_sqQV zebnUXs$EN?%6rf3Wq#4WS+s4<4~yTY6L%*qU!8lY$YTAhfA3e#e7olFy<2BR1YfAH znN=)fcJSy{%a;F&JJ^l~f3L8Tz58;;^MCqv4DQ?f*&-Hd^8=%p!PC{xWt~$(695Pw Bb&dc4 diff --git a/ElmSharp/theme/tv/HD/images/round_rectangle_4X4.png b/ElmSharp/theme/tv/HD/images/round_rectangle_4X4.png deleted file mode 100644 index bd4edfecdba9c0ea49fcd40e4f1c60c9f43f5ddb..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 130 zcmeAS@N?(olHy`uVBq!ia0vp^oFL4>0wld=oSO}#JUv|;LpZL-o;}FhpdfPK!Xt(} z$Aq8z8w%B#9>(>*sy`mr6~VjQig$HF@ee68p8tz1EPvi|_2diF`u)J~<)L|fvKuA! dN+r!I86HT6+?=W3d>?2igQu&X%Q~loCIA7-EieE8 diff --git a/ElmSharp/theme/tv/HD/images/round_rectangle_4X4_bottom.png b/ElmSharp/theme/tv/HD/images/round_rectangle_4X4_bottom.png deleted file mode 100755 index 50646a5d5a636759693bd80c422aaebc2539f1e7..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 107 zcmeAS@N?(olHy`uVBq!ia0vp^oIuRV!2%?0qxc>GDI-r8#}JO|u_rciG8k~U9+aPc z@oB6=in`;a{Zkm%?_rhlv3)k{+zQ>MN7_yt>X{2XWo*wHC^N0xz`F~mo59o7&t;uc GLK6UQpdP&d diff --git a/ElmSharp/theme/tv/HD/images/round_rectangle_4X4_top.png b/ElmSharp/theme/tv/HD/images/round_rectangle_4X4_top.png deleted file mode 100755 index 59d03cd2340feba95b4b63339869f000347dd9cf..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 106 zcmeAS@N?(olHy`uVBq!ia0vp^oIuRV!2%?0qxc>GDML>e#}JO|u?J7`9#9Zq*|4y& zq;W-EwzKxf@_CkTI#!xQ%@jKQ?MB#?^-@;h_s%KUn`fFEUyoR7lL^$!;OXk;vd$@? F2>`)bAx{7R diff --git a/ElmSharp/theme/tv/HD/images/round_rectangle_8X8_top.png b/ElmSharp/theme/tv/HD/images/round_rectangle_8X8_top.png deleted file mode 100644 index 1403c5458c9ef857911b4097c103a2e3b6f3ac34..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 150 zcmeAS@N?(olHy`uVBq!ia0vp^fbn;LAbh=(-rDpSB=8KIFIUNt4y6jWwFLiILVxi2$ zCkGTKZWP#_AbfRG*XC764s5@;LG$YLyA5@7`YkpeYCb0@477;B)78&qol`;+02%u^ AO8@`> diff --git a/ElmSharp/theme/tv/HD/images/scrollbar_horizontal.png b/ElmSharp/theme/tv/HD/images/scrollbar_horizontal.png deleted file mode 100755 index b060a3db2d91d1f971394b7faca3ea9451510fcb..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 127 zcmeAS@N?(olHy`uVBq!ia0vp^oIuRM!2%>3kI32qDK}3S#}JO|vF8lA8Vp2OE*iRX zntgoMwBW|;&K{P7RXSJypVFM>`ets7)y`-KQf8hmjv*Y^L(e#J9WdZwKA7q$ zW&QVm^<8H}6$6fv2`d!+qbCUoO`5bR|9$M{&+)pQ`(}l3F6Y1YfyHKOfVv*g1O`u6 KKbLh*2~7Z4MItQ# diff --git a/ElmSharp/theme/tv/HD/images/scrollbar_mask_top.png b/ElmSharp/theme/tv/HD/images/scrollbar_mask_top.png deleted file mode 100755 index d64edbcd9e65b730ccfc534b5181603a74e5af38..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 112 zcmeAS@N?(olHy`uVBq!ia0vp^j6kfy!2%>7)y`-KQs$m6jv*Y^Lwg*#7!(B#JKgyI zKTP(kfn17MOMu1_)!>Son^I3snxLuZ-1gpk$u~b^pb-q7 Lu6{1-oD!M<)q*9_ diff --git a/ElmSharp/theme/tv/HD/images/scrollbar_vertical.png b/ElmSharp/theme/tv/HD/images/scrollbar_vertical.png deleted file mode 100755 index 447f94034e75a897f8404fd3196807976241ec8d..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 134 zcmeAS@N?(olHy`uVBq!ia0vp^96-#;!2%?gMlD?mq;M1%UHh>kpp>KT+_gZJ z93?@1!3?5v-_5!8eje`;r9z;XnWu|m2*>s0gphX`Whn^)Z(qE~5KXwi5G2dRBdMU( w$mmjL!m!ehgY}u?(*;@!e@S#(&*GM3P*sus_tRBpFVF-APgg&ebxsLQ00z%JrT_o{ diff --git a/ElmSharp/theme/tv/HD/images/search_searchbar_bg_nor.png b/ElmSharp/theme/tv/HD/images/search_searchbar_bg_nor.png deleted file mode 100644 index 34add3a8d610ad608e19227a1d2d91262982eeaa..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 133 zcmeAS@N?(olHy`uVBq!ia0vp^+#t-s0wkH2?q3U}d^}woLpZKaJ-?f=K|z4!;z2H- zb=3=5xE66NX*M+Y*xaZ;CqvxuOqu`PvjRM`%g-Ko6YckIjZNDFiqRP$ARWDc)I$ztaD0e0st<2E>i#i diff --git a/ElmSharp/theme/tv/HD/images/search_searchbar_small_bg_foc.png b/ElmSharp/theme/tv/HD/images/search_searchbar_small_bg_foc.png deleted file mode 100644 index 8c1c0c9e92757732ee1921488b56f2ce3f398301..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 90 zcmeAS@N?(olHy`uVBq!ia0vp^oFL4|3?y&GPYDK6YymzYuCD$6fk6Df>IR?)zo(01 j2*>s01P3OW6EbWJ4BZTz6&e@ffl>^fu6{1-oD!MIv$0(}Teg^+mgMtB5*p1sKLfeRZuvpc3< z4AWEFo$t`j%&sHqi-Q`iJ@$(@RNtOsfE*c8IJ{$l2_EsLtfzE!_{^#(*_CptA0P3S z8%nX^kV!1o4KBe*$FV>gt9Bb6HSBz||={)*~tWy%{V$EioE tHu}hs;S9hEOB8s*tGwLp&u9M#`vwnEtMab$&58g3002ovPDHLkV1l&!6vsdBM>{i2OFOMJM50hz7N+R}i?%V*B1A%B!Uh6~h6N$6O==7V5MvY*{s35* z=*s8=!uX#5H4(gFRgB)g*t z<%D99#!rH2hwiGC-PV>=FgZG^rLC$%vX+3!(PSj#mOj)gdRhhbXpJ`OknTlRKavu zgjGHc_ch!Sn-YS>MGa#!QTVQ$-U6ZapN$X0>k?bhehbL);2|r z=u#ltvyUOVu7LM-Rwl$Y;ysM?+7hk`1yj*0SY3?)Y zmr_HC!N8%DUJB%J+|2H=t?P%@_N~l!q0&Eh?_ItA)em2OUtMI8G7p%hBrp1KsfU3> zjso4}X-|A`c~mGd!$Zod#$Q2=FtBMS&vH7*;^JUq168VcEHKY3MM_kpT4ZyWzrS{} zujP)1VI0002aNkly8F&O z-Lp^{lS{?&EzL-GA>?Wn%1`79p}WSO9RGH3c+Hxk=Tc;4E)HF9E2t4Qjs`za{iId) zCOuO3cfvHH#Ku(4v=O3(ZIUgeU?W^3Eap4_xG`kF6@Ui|tS~-GBSepjDZhkQ`cZ70 zMl?9_9-C$~8Lts#b^z?D#Bo;QGZeH`UQ@YoP_pKi&yZ;{O{Vz^%@bjxJ5B3Ik;wo6 N002ovPDHLkV1kxxXsG}I diff --git a/ElmSharp/theme/tv/HD/images/spincontrol_arrow_up.png b/ElmSharp/theme/tv/HD/images/spincontrol_arrow_up.png deleted file mode 100755 index 3daf5e42c80a12a2fb672c7fdba8a8daa34dfd57..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 248 zcmV1VI0002LNklSHumG77)J^&FB z06wix8O>0ZuXJd05paY~&gAjrlp{41iYf<5<`j}KE*n`{<2+J_m84tTc&5%t#%I_s y9h<3i&NR$SmjHl}!P|5Dga8Eeo^$<=|I`g4%3Mr&+x6oB0000` z#jkqgY~*wIrC%ZsIhU3e1^!+pzLv4BwcaG(-2Z7#7?VVTWE0SJ44$rjF6*2UngBoU BN811Z diff --git a/ElmSharp/theme/tv/HD/images/tooltip-edge-top-tip.png b/ElmSharp/theme/tv/HD/images/tooltip-edge-top-tip.png deleted file mode 100755 index 661a2558de4ef16e89491ed96a031d5261140726..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 154 zcmeAS@N?(olHy`uVBq!ia0vp^JV4CF!2%?;RLcv2RHCPgV+hCf;5Z#SWV~8{~Q04|Np$u8u@?yum5lUZ~njf-{wVLKEM9+aQ&XpTKwS9`G5Am=N~=* z1SbxBxIaCSjahk` z#jkqgY~*wIrC%ZsIhU3e1^!+pzLv4BwcaG(-2Z7#7?VVTWE0SJ44$rjF6*2UngBoU BN811Z diff --git a/ElmSharp/theme/tv/HD/images/tooltip_arrow_up.png b/ElmSharp/theme/tv/HD/images/tooltip_arrow_up.png deleted file mode 100755 index 661a2558de4ef16e89491ed96a031d5261140726..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 154 zcmeAS@N?(olHy`uVBq!ia0vp^JV4CF!2%?;RLcv2RHCPgV+hCf;5Z#SWV~8{~Q04|Np$u8u@?yum5lUZ~njf-{wVLKEM9+aQ&XpTKwS9`G5Am=N~=* z1SbxBxIaCSjahkB~5U~*}v0*Yg{=9kfx@Lh9Y2Wsj zs#F00+R}+SRdqViCeO61uXP{L)UXx+*))`F3Lu$#LkBDgCPy#9G22}xmnk%an;)7x|+57ollN@3wb`MQO5jl^Eh_w zb9g+0#b6MWU(Ou(A`!q)q(Yej22XgN_o h) { - set_float(min_w, w - h * (1 - ratio)); - set_float(min_h, h * ratio); - } else { - set_float(min_w, w * ratio); - set_float(min_h, h - w * (1 - ratio)); - } - } - } - parts { - part { name: "base"; - scale: 1; - type: SPACER; - description { state: "default" 0.0; - min: 50 78; - } - } - //Base Shape Part - part { name: "tizen_vg_shape"; - type: SWALLOW; - clip_to: "tizen_vg_shape_clipper"; - scale: 1; - description { state: "default" 0.0; - min: 0 78; - rel1.relative: 0 0.0; - rel2.relative: 1 1.0; - } - } - part { name: "tizen_vg_shape_clipper"; - type: RECT; - scale: 1; - description { state: "default" 0.0; - color: 82 198 216 255; - } - description { state: "disabled" 0.0; - color: 138 195 204 255; - } - } - part { name: "effect_spacer"; - type: SPACER; - scale: 1; - description { state: "default" 0.0; - } - } - //Effect Shape Part - part { name: "tizen_vg_shape2"; - type: SWALLOW; - clip_to: "tizen_vg_shape_clipper2"; - scale: 1; - description { state: "default" 0.0; - fixed: 1 1; - rel1.relative: 0.5 0.5; - rel2.relative: 0.5 0.5; - } - description { state: "ready" 0.0; - rel1.to: "effect_spacer"; - rel2.to: "effect_spacer"; - } - description { state: "pressed" 0.0; - inherit: "ready" 0.0; - } - } - part { name: "tizen_vg_shape_clipper2"; - type: RECT; - description { state: "default" 0.0; - visible: 0; - color: 0 0 0 0; - } - description { state: "ready" 0.0; - inherit: "default" 0.0; - visible: 1; - } - description { state: "pressed" 0.0; - color: 0 0 0 77; - } - } - part { name: "padding_left_top"; - type: SPACER; - scale: 1; - description { state: "default" 0.0; - align: 0.0 0.0; - rel2.relative: 0.0 0.0; - min: 22 0; - fixed: 1 1; - } - } - part { name: "padding_right_bottom"; - type: SPACER; - scale: 1; - description { state: "default" 0.0; - rel1.to: "tizen_vg_shape"; - rel2.to: "tizen_vg_shape"; - align: 1.0 1.0; - rel1.relative: 1.0 1.0; - min: 22 4; - fixed: 1 1; - } - } - part { name: "icon_rect"; - type: SPACER; - scale: 1; - description { state: "default" 0.0; - align: 0.0 0.5; - rel1 { - relative: 1.0 1.0; - to: "padding_left_top"; - } - rel2 { - relative: 1.0 0.0; - to_x: "padding_left_top"; - to_y: "padding_right_bottom"; - } - min: 0 60; - fixed: 1 1; - } - description { state: "visible" 0.0; - inherit: "default" 0.0; - min: 60 60; - max: 60 60; - fixed: 1 1; - } - description { state: "icon_only" 0.0; - inherit: "default" 0.0; - } - } - part { name: "icon_text_padding"; - type: SPACER; - scale: 1; - description { state: "default" 0.0; - align: 1.0 0.5; - min: 0 0; - rel1 { - relative: 0.0 0.0; - to: "elm.text"; - } - rel2 { - relative: 0.0 1.0; - to: "elm.text"; - } - fixed: 1 1; - } - description { state: "visible" 0.0; - inherit: "default" 0.0; - min: 14 0; - } - } - part { name: "elm.swallow.content"; - type: SWALLOW; - scale: 1; - clip_to: "clipper"; - description { state: "default" 0.0; - align: 0.0 1.0; - rel1 { - relative: 1.0 1.0; - to: "padding_left_top"; - } - rel2 { - relative: 1.0 1.0; - to_x: "padding_left_top"; - to_y: "padding_right_bottom"; - } - min: 0 60; - fixed: 1 0; - } - description { state: "visible" 0.0; - inherit: "default" 0.0; - align: 1.0 0.5; - rel1 { - relative: 0.0 1.0; - to_x: "icon_text_padding"; - to_y: "padding_left_top"; - } - rel2 { - relative: 0.0 0.0; - to_x: "icon_text_padding"; - to_y: "padding_right_bottom"; - } - min: 60 60; - fixed: 1 1; - } - description { state: "icon_only" 0.0; - rel1.to: "tizen_vg_shape"; - rel2.to: "tizen_vg_shape"; - min: 60 60; - max: 60 60; - align: 0.5 0.5; - fixed: 1 1; - } - } - part { name: "elm.text"; - type: TEXTBLOCK; - mouse_events: 0; - scale: 1; - description { state: "default" 0.0; - fixed: 1 1; - rel1 { - relative: 1.0 1.0; - to_x: "icon_rect"; - to_y: "padding_left_top"; - } - rel2 { - relative: 0.0 0.0; - to: "padding_right_bottom"; - } - text { - style: "button_main"; - max: 1 0; - } - color: 250 250 250 255; - } - description { state: "pressed" 0.0; - inherit: "default" 0.0; - text.style: "button_main_press"; - color: 250 250 250 255; - } - description { state: "disabled" 0.0; - inherit: "default" 0.0; - text.style: "button_main_dim"; - color: 250 250 250 163; - } - } - part { name: "clipper"; - type: RECT; - description { state: "default" 0.0; - } - description { state: "pressed" 0.0; - } - description { state: "disabled" 0.0; - inherit: "default" 0.0; - color: 255 255 255 163; - } - } - part { name: "event"; - type: RECT; - description { state: "default" 0.0; - rel1.to: "tizen_vg_shape"; - rel2.to: "tizen_vg_shape"; - color: 0 0 0 0; - } - } - } - programs { - program { name: "pressed_effect"; - action: STATE_SET "ready" 0.0; - target: "tizen_vg_shape_clipper2"; - action: STATE_SET "custom" 0.0; - target: "tizen_vg_shape2"; - after: "pressed_effect2"; - } - program { name: "pressed_effect2"; - action: STATE_SET "pressed" 0.0; - target: "elm.text"; - target: "clipper"; - target: "tizen_vg_shape2"; - target: "tizen_vg_shape_clipper2"; - transition: GLIDE_EASE_OUT(0.15); - after: "pressed_effect3"; - } - program { name: "pressed_effect3"; - script { - set_int(animate, 0); - } - } - program { name: "delay_unpressed_effect"; - in: 0.1 0.0; - after: "unpressed_effect"; - } - program { name: "unpressed_effect"; - script { - if (get_int(disabled) == 0) { - run_program(PROGRAM:"unpressed_effect2"); - run_program(PROGRAM:"unpressed_effect3"); - } else { - run_program(PROGRAM:"disabled_effect"); - run_program(PROGRAM:"disabled_effect2"); - run_program(PROGRAM:"disabled_effect3"); - } - } - } - program { name: "unpressed_effect2"; - action: STATE_SET "ready" 0.0; - target: "tizen_vg_shape2"; - target: "tizen_vg_shape_clipper2"; - transition: GLIDE_EASE_OUT(0.45); - } - program { name: "unpressed_effect3"; - action: STATE_SET "default" 0.0; - target: "elm.text"; - transition: GLIDE_EASE_OUT(0.45); - after: "unpressed_effect4"; - } - program { name: "unpressed_effect4"; - action: STATE_SET "default" 0.0; - target: "clipper"; - after: "finished_animation"; - } - program { name: "disabled_effect"; - action: STATE_SET "ready" 0.0; - target: "tizen_vg_shape2"; - target: "tizen_vg_shape_clipper2"; - transition: GLIDE_EASE_OUT(0.45); - } - program { name: "disabled_effect2"; - action: STATE_SET "disabled" 0.0; - target: "elm.text"; - transition: GLIDE_EASE_OUT(0.45); - } - program { name: "disabled_effect3"; - action: STATE_SET "disabled" 0.0; - target: "clipper"; - target: "tizen_vg_shape_clipper"; - transition: GLIDE_EASE_OUT(0.45); - after: "finished_animation"; - } - program { name: "finished_animation"; - action: STATE_SET "default" 0.0; - target: "tizen_vg_shape2"; - target: "tizen_vg_shape_clipper2"; - } - program { name: "pressed"; - signal: "mouse,down,1*"; - source: "event"; - script { - if ((get_int(multi_down) == 0) && (get_int(mouse_down) == 0) && (get_int(disabled) == 0)) { - stop_program(PROGRAM:"delay_unpressed_effect"); - set_int(mouse_down, 1); - set_int(animate, 1); - custom_state(PART:"tizen_vg_shape2", "default", 0.0); - get_effect_min_size(PART:"effect_spacer", 0.7, minw, minh); - set_state_val(PART:"tizen_vg_shape2", STATE_MIN, get_int(minw), get_int(minh)); - emit("elm,action,press", ""); - run_program(PROGRAM:"pressed_effect"); - } - } - } - program { name: "unpressed"; - signal: "mouse,up,1"; - source: "event"; - script { - if (get_int(mouse_down) == 1) { - set_int(mouse_down, 0); - if (get_int(disabled) == 0) { - if (get_int(animate) == 0) { - run_program(PROGRAM:"unpressed_effect"); - } else { - set_state(PART:"elm.text", "pressed", 0.0); - set_state(PART:"clipper", "pressed", 0.0); - set_state(PART:"tizen_vg_shape2", "pressed", 0.0); - set_state(PART:"tizen_vg_shape_clipper2", "pressed", 0.0); - set_int(animate, 0); - run_program(PROGRAM:"delay_unpressed_effect"); - } - emit("elm,action,unpress", ""); - } - } - } - } - program { name: "touch_snd"; - signal: "mouse,clicked,1"; - source: "event"; - script { - if (get_int(multi_down) == 0) { - if (get_int(disabled) == 0) { - run_program(PROGRAM:"touch_sound"); - run_program(PROGRAM:"clicked_signal"); - } - } - } - } - program { name: "touch_sound"; - action: RUN_PLUGIN "touch_sound"; - } - program { name: "clicked_signal"; - in: 0.001 0.0; - action: SIGNAL_EMIT "elm,action,click" ""; - } - program { name: "icon_show"; - signal: "elm,state,icon,visible"; - source: "elm"; - script { - set_int(content, 1); - set_state(PART:"icon_text_padding", "visible", 0.0); - if (get_int(text) == 1) { - set_state(PART:"icon_rect", "visible", 0.0); - set_state(PART:"elm.swallow.content", "visible", 0.0); - } else { - set_state(PART:"icon_rect", "icon_only", 0.0); - set_state(PART:"elm.swallow.content", "icon_only", 0.0); - set_state(PART:"padding_left_top", "icon_only", 0.0); - } - } - } - program { name: "icon_hide"; - signal: "elm,state,icon,hidden"; - source: "elm"; - script { - set_int(content, 0); - set_state(PART:"icon_text_padding", "default", 0.0); - set_state(PART:"icon_rect", "default", 0.0); - set_state(PART:"elm.swallow.content", "default", 0.0); - } - } - program { name: "text_show"; - signal: "elm,state,text,visible"; - source: "elm"; - script { - set_int(text, 1); - if (get_int(content) == 1) { - set_state(PART:"icon_rect", "visible", 0.0); - set_state(PART:"elm.swallow.content", "visible", 0.0); - } - } - } - program { name: "text_hide"; - signal: "elm,state,text,hidden"; - source: "elm"; - script { - set_int(text, 0); - if (get_int(content) == 1) { - set_state(PART:"icon_rect", "icon_only", 0.0); - set_state(PART:"elm.swallow.content", "icon_only", 0.0); - } - } - } - program { name: "disable"; - signal: "elm,state,disabled"; - source: "elm"; - script { - set_int(disabled, 1); - if (get_int(animate) == 1) return; - set_state(PART:"clipper", "disabled", 0.0); - set_state(PART:"tizen_vg_shape_clipper", "disabled", 0.0); - set_state(PART:"elm.text", "disabled", 0.0); - } - } - program { name: "enable"; - signal: "elm,state,enabled"; - source: "elm"; - script { - set_int(disabled, 0); - set_state(PART:"clipper", "default", 0.0); - set_state(PART:"tizen_vg_shape_clipper", "default", 0.0); - set_state(PART:"elm.text", "default", 0.0); - } - } - program { name: "multi_down"; - signal: "elm,action,multi,down"; - source: "elm"; - script { - set_int(multi_down, 1); - } - } - program { name: "multi_up"; - signal: "elm,action,multi,up"; - source: "elm"; - script { - set_int(multi_down, 0); - } - } - program { name: "pass_event_enable"; - signal: "elm,event,pass,enabled"; - source: "elm"; - script { - set_mouse_events(PART:"event", 0); - } - } - program { name: "pass_event_disable"; - signal: "elm,event,pass,disabled"; - source:"elm"; - script { - set_mouse_events(PART:"event", 1); - } - } - program { name: "repeat_event_enable"; - signal: "elm,event,repeat,enabled"; - source: "elm"; - script { - set_repeat_events(PART:"event", 1); - } - } - program { name: "repeat_event_disable"; - signal: "elm,event,repeat,disabled"; - source:"elm"; - script { - set_repeat_events(PART:"event", 0); - } - } - } - } - - group { name: "elm/button/base/datetime/ampm"; - inherit: "elm/button/base/datetime/default"; - parts { - part { name: "base"; - description { state: "default" 0.0; - min: 160 78; - } - } - part { name: "tizen_vg_shape"; - description { state: "default" 0.0; - min: 0 78; - } - } - part { name: "tizen_vg_shape_clipper"; - description { state: "unselected" 0.0; - color: 204 204 204 255; - } - } - part { name: "padding_left_top"; - description { state: "default" 0.0; - min: 32 10; - } - } - part { name: "padding_right_bottom"; - description { state: "default" 0.0; - min: 32 14; - } - } - part { name: "elm.text"; - description { state: "default" 0.0; - text.style: "button_ampm"; - color: 250 250 250 255; - } - description { state: "pressed" 0.0; - text.style: "button_ampm_press"; - color: 250 250 250 255; - } - description { state: "unselected" 0.0; - inherit: "default" 0.0; - text.style: "button_ampm_dim"; - color: 250 250 250 163; - } - description { state: "disabled" 0.0; - inherit: "default" 0.0; - text.style: "button_ampm_dim"; - color: 250 250 250 163; - } - } - } - program { name: "unselected"; - signal: "elm,action,button,unselected"; - source: "elm"; - script { - set_int(selected, 0); - set_state(PART:"tizen_vg_shape_clipper", "unselected", 0.0); - set_state(PART:"elm.text", "unselected", 0.0); - if (get_int(animate) == 1) - run_program(PROGRAM:"pressed_effect3"); - } - } - program { name: "selected"; - signal: "elm,action,button,selected"; - source: "elm"; - script { - set_int(selected, 1); - set_state(PART:"tizen_vg_shape_clipper", "default", 0.0); - if (get_int(animate) == 0) - set_state(PART:"elm.text", "default", 0.0); - } - } - program { name: "unselected_effect"; - action: STATE_SET "unselected" 0.0; - target: "elm.text"; - transition: GLIDE_EASE_OUT(0.45); - after: "unpressed_effect4"; - } - program { name: "unpressed_effect"; - script { - if (get_int(disabled) == 0) { - run_program(PROGRAM:"unpressed_effect2"); - if (get_int(selected) == 0) - run_program(PROGRAM:"unselected_effect"); - else - run_program(PROGRAM:"unpressed_effect3"); - } else { - run_program(PROGRAM:"disabled_effect"); - run_program(PROGRAM:"disabled_effect2"); - run_program(PROGRAM:"disabled_effect3"); - } - } - } - program { name: "disable"; - signal: "elm,state,disabled"; - source: "elm"; - script { - set_int(disabled, 1); - if (get_int(animate) == 1) return; - if (get_int(selected) == 1) { - set_state(PART:"clipper", "disabled", 0.0); - set_state(PART:"tizen_vg_shape_clipper", "disabled", 0.0); - set_state(PART:"elm.text", "disabled", 0.0); - } - else { - set_state(PART:"elm.text", "disabled", 0.0); - } - } - } - program { name: "enable"; - signal: "elm,state,enabled"; - source: "elm"; - script { - set_int(disabled, 0); - if (get_int(selected) == 1){ - set_state(PART:"clipper", "default", 0.0); - set_state(PART:"tizen_vg_shape_clipper", "default", 0.0); - set_state(PART:"elm.text", "default", 0.0); - } - else { - set_state(PART:"elm.text", "default", 0.0); - } - } - } - } - -/***********************SPINNER BUTTONS STYLES******************************/ - - group { "elm/button/event/default"; - inherit_only: 1; - parts { - rect { "event"; - mouse; - desc { "default"; - color: 0 0 0 0; - rel.to: "base"; - } - desc { "disabled"; - inherit: "default"; - hid; - } - } - } - programs { - /* Program for pressed event */ - program { "pressed"; - signal: "mouse,down,1*"; - source: "event"; - action: SIGNAL_EMIT "elm,action,press" ""; - after: "on_pressed"; - } - /* Program for unpressed event */ - program { "unpressed"; - signal: "mouse,up,1*"; - source: "event"; - action: SIGNAL_EMIT "elm,action,unpress" ""; - after: "on_unpressed"; - } - /* Program for clicked event */ - program { "clicked"; - signal: "mouse,clicked,1"; - source: "event"; - action: SIGNAL_EMIT "elm,action,click" ""; - after: "on_clicked"; - } - /* Program for enabled event */ - program { "enabled"; - signal: "elm,state,enabled"; - source: "elm"; - action: STATE_SET "default"; - target: "event"; - after: "on_enabled"; - } - /* Program for disabled event */ - program { "disabled"; - signal: "elm,state,disabled"; - source: "elm"; - action: STATE_SET "disabled"; - target: "event"; - after: "on_disabled"; - } - program { "enable_event_pass"; - signal: "elm,event,pass,enabled"; - source: "elm"; - script { - set_mouse_events(PART:"event", 0); - } - } - program { "disable_event_pass"; - signal: "elm,event,pass,disabled"; - source:"elm"; - script { - set_mouse_events(PART:"event", 1); - } - } - program { "enable_event_repeat"; - signal: "elm,event,repeat,enabled"; - source: "elm"; - script { - set_repeat_events(PART:"event", 1); - } - } - program { "disable_event_repeat"; - signal: "elm,event,repeat,disabled"; - source:"elm"; - script { - set_repeat_events(PART:"event", 0); - } - } - } - } - - - group { "elm/button/base/naviframe/back_btn/default"; - alias: "elm/button/base/tizen_view/prev_btn"; - alias: "elm/button/base/naviframe/end_btn/default"; - images { - vector: "core_press_top_left.svg"; - vector: "core_press_top_right.svg"; - vector: "core_press_bottom_left.svg"; - vector: "core_press_bottom_right.svg"; - vector: "core_press_center.svg"; - } - target_group: "bg_effect_vector" "bg_effect_top_left" "bg_effect_top_right" "bg_effect_bottom_left" "bg_effect_bottom_right"; - - images { - set { - name: "core_icon_back"; - image { - image: "core_icon_back.png" COMP; - } - } - } - parts { - spacer { "base"; - scale; - nomouse; - desc { "default"; - min: BUTTON_NAVIFRAME_BACK_BUTTON_SIZE_INC; - max: BUTTON_NAVIFRAME_BACK_BUTTON_SIZE_INC; - fixed: 1 1; - } - } - spacer { "bg_spacer"; - scale; - desc { "default"; - fixed: 1 1; - rel1.relative: 0.5 0.5; - rel2.relative: 0.5 0.5; - min: BUTTON_NAVIFRAME_BACK_BUTTON_EFFECT_MAX_SIZE_INC; - max: BUTTON_NAVIFRAME_BACK_BUTTON_EFFECT_MAX_SIZE_INC; - } - } - BUTTON_VECTOR_PART(BUTTON_NAVIFRAME_BACK_CORNER_RADIUS - , 0.7 - , "bg", "clipper_bg" - , "core_press_top_left.svg", "core_press_top_right.svg" - , "core_press_center.svg" - , "core_press_bottom_left.svg", "core_press_bottom_right.svg"); - swallow { "bg"; - scale; - nomouse; - clip: "clipper_bg"; - desc { "default"; - rel.to: "bg_spacer"; - } - } - rect { "clipper_bg"; - scale; - desc { "default"; - color_class: "button/naviframe/back_btn/bg"; - } - desc { "pressed"; - color_class: "button/naviframe/back_btn/bg_pressed"; - } - desc { "disabled"; - color_class: "button/naviframe/back_btn/bg_disabled"; - } - } - spacer { "effect_spacer"; - scale; - desc { "default"; - rel.to: "bg"; - } - } - BUTTON_VECTOR_PART(BUTTON_NAVIFRAME_BACK_CORNER_RADIUS - , 0.7 - , "bg_effect", "clipper_bg_effect" - , "core_press_top_left.svg", "core_press_top_right.svg" - , "core_press_center.svg" - , "core_press_bottom_left.svg", "core_press_bottom_right.svg"); - //Effect Shape Part - swallow { "bg_effect"; - clip: "clipper_bg_effect"; - scale; - desc { "default"; - fixed: 1 1; - rel1.to: "effect_spacer"; - rel2.to: "effect_spacer"; - rel1.relative: 0.5 0.5; - rel2.relative: 0.5 0.5; - } - desc { "ready"; - inherit: "default"; - } - desc { "pressed"; - inherit: "default"; - rel1.relative: 0.0 0.0; - rel2.relative: 1.0 1.0; - } - } - rect { "clipper_bg_effect"; - desc { "default"; - fixed: 1 1; - rel.to: "bg_effect"; - color: 0 0 0 0; - color_class: "button/naviframe/back_btn/effect"; - hid; - } - desc { "ready"; - inherit: "default"; - vis; - } - desc { "pressed"; - inherit: "ready"; - color: 255 255 255 255; - } - } - image { "icon"; - scale; - nomouse; - clip: "clipper_icon"; - desc { "default"; - min: BUTTON_NAVIFRAME_BACK_BUTTON_SIZE_INC; - max: BUTTON_NAVIFRAME_BACK_BUTTON_SIZE_INC; - fixed: 1 1; - image.normal: "core_icon_back"; - } - desc { "rtl"; - inherit: "default"; - map.on: 1; - map.rotation.y: 180.0; - } - } - rect { "clipper_icon"; - scale; - desc { "default"; - color_class: "button/naviframe/back_btn/icon"; - } - desc { "pressed"; - color_class: "button/naviframe/back_btn/icon_pressed"; - } - desc { "disabled"; - color_class: "button/naviframe/back_btn/icon_disabled"; - } - } - } - inherit: "elm/button/event/default"; - script { - public mouse_down = 0; - public multi_down = 0; - public animate = 0; - public disabled = 0; - public minw = 0; - public minh = 0; - public get_effect_min_size(base_effect, Float:ratio, min_w, min_h) { - new x, y, w, h; - get_geometry(base_effect, x, y, w, h); - if (w > h) { - set_float(min_w, (w - h * (1 - ratio)) / w); - set_float(min_h, ratio); - } else { - set_float(min_w, ratio); - set_float(min_h, (h - w * (1 - ratio)) / h); - } - } - BUTTON_VECTOR_PART_MIRRORED_VALUE - } - program_remove: "unpressed"; - program_remove: "clicked"; - programs { - program { "on_pressed"; - script { - if ((get_int(multi_down) == 0) && (get_int(mouse_down) == 0) && (get_int(disabled) == 0)) { - new Float:rel_w, Float:rel_h; - stop_program(PROGRAM:"delay_unpressed_effect"); - set_int(mouse_down, 1); - set_int(animate, 1); - custom_state(PART:"bg_effect", "ready", 0.0); - get_effect_min_size(PART:"effect_spacer", 0.7, minw, minh); - rel_w = (1 - get_float(minw)) / 2; - rel_h = (1 - get_float(minh)) / 2; - set_state_val(PART:"bg_effect", STATE_REL1, rel_w, rel_h); - set_state_val(PART:"bg_effect", STATE_REL2, 1 - rel_w, 1 - rel_h); - run_program(PROGRAM:"pressed_effect"); - } - } - } - program { "unpressed"; - signal: "mouse,up,1"; - source: "event"; - script { - if (get_int(mouse_down) == 1) { - set_int(mouse_down, 0); - if (get_int(disabled) == 0) { - if (get_int(animate) == 0) { - run_program(PROGRAM:"unpressed_effect"); - } else { - set_state(PART:"bg_effect", "pressed", 0.0); - set_state(PART:"clipper_bg_effect", "pressed", 0.0); - set_int(animate, 0); - run_program(PROGRAM:"delay_unpressed_effect"); - } - emit("elm,action,unpress", ""); - } - } - } - } - program { "clicked"; - signal: "mouse,clicked,1"; - source: "event"; - script { - if ((get_int(multi_down) == 0) && (get_int(disabled) == 0)) { - run_program(PROGRAM:"play_sound"); - run_program(PROGRAM:"clicked_signal"); - } - } - } - program { "on_enabled"; - script { - set_int(disabled, 0); - set_state(PART:"clipper_bg", "default", 0.0); - set_state(PART:"clipper_icon", "default", 0.0); - } - } - program { "on_disabled"; - script { - set_int(disabled, 1); - if (get_int(animate) == 1) return; - set_state(PART:"clipper_bg", "disabled", 0.0); - set_state(PART:"clipper_icon", "disabled", 0.0); - } - } - program { "pressed_effect"; - script { - if(get_int(rtl_mode) == 0) { - BUTTON_VECTOR_PART_MIRRORED_SET_STATE("bg_effect","","default") - BUTTON_VECTOR_PART_MIRRORED_SET_STATE("bg_effect","_rtl","hidden") - } - else if(get_int(rtl_mode) == 1) { - BUTTON_VECTOR_PART_MIRRORED_SET_STATE("bg_effect","_rtl","default") - BUTTON_VECTOR_PART_MIRRORED_SET_STATE("bg_effect","","hidden") - } - set_state(PART:"clipper_bg_effect", "ready", 0.0); - set_state(PART:"bg_effect", "custom", 0.0); - run_program(PROGRAM:"pressed_effect2"); - } - } - program { "pressed_effect2"; - script { - if(get_int(rtl_mode) == 0) { - BUTTON_VECTOR_PART_MIRRORED_SET_STATE("bg_effect","","pressed") - } - else if(get_int(rtl_mode) == 1) { - BUTTON_VECTOR_PART_MIRRORED_SET_STATE("bg_effect","_rtl","pressed") - } - run_program(PROGRAM:"pressed_effect2_1"); - } - } - program { "pressed_effect2_1"; - action: STATE_SET "pressed"; - target: "clipper_bg_effect"; - target: "bg_effect"; - target: "clipper_icon"; - transition: GLIDE_EASE_OUT(0.15); - after: "pressed_effect3"; - } - program { "pressed_effect3"; - script { - set_state(PART:"clipper_bg", "pressed", 0.0); - set_int(animate, 0); - } - } - program { "delay_unpressed_effect"; - in: 0.1 0.0; - after: "unpressed_effect"; - } - program { "unpressed_effect"; - script { - run_program(PROGRAM:"unpressed_effect2"); - run_program(PROGRAM:"unpressed_effect2_1"); - } - } - program { "unpressed_effect2"; - action: STATE_SET "ready"; - target: "clipper_bg_effect"; - transition: GLIDE_EASE_OUT(0.45); - after: "unpressed_effect3"; - } - program { "unpressed_effect2_1"; - action: STATE_SET "default"; - target: "clipper_icon"; - transition: GLIDE_EASE_OUT(0.45); - } - program { "unpressed_effect3"; - script { - if(get_int(rtl_mode) == 0) { - BUTTON_VECTOR_PART_MIRRORED_SET_STATE("bg_effect","","default") - } - else if(get_int(rtl_mode) == 1) { - BUTTON_VECTOR_PART_MIRRORED_SET_STATE("bg_effect","_rtl","default") - } - set_state(PART:"clipper_bg_effect", "default", 0.0); - set_state(PART:"clipper_bg", "default", 0.0); - set_state(PART:"bg_effect", "default", 0.0); - } - } - program { "play_sound"; - action: RUN_PLUGIN "touch_sound"; - } - program { "clicked_signal"; - in: 0.001 0.0; - action: SIGNAL_EMIT "elm,action,click" ""; - } - program { "multi_down"; - signal: "elm,action,multi,down"; - source: "elm"; - script { - set_int(multi_down, 1); - } - } - program { "multi_up"; - signal: "elm,action,multi,up"; - source: "elm"; - script { - set_int(multi_down, 0); - } - } - BUTTON_VECTOR_PART_MIRRORED_PROGRAM("icon") - } - } - diff --git a/ElmSharp/theme/tv/widgets/check.edc b/ElmSharp/theme/tv/widgets/check.edc deleted file mode 100644 index 65d675f..0000000 --- a/ElmSharp/theme/tv/widgets/check.edc +++ /dev/null @@ -1,967 +0,0 @@ -/* - * Copyright (c) 2010 Samsung Electronics Co., Ltd All Rights Reserved - * - * BSD 2-Clause License (http://www.opensource.org/licenses/bsd-license.php) - * - * Redistribution and use in source and binary forms, with or without - * modification, are permitted provided that the following conditions are met: - * - * 1. Redistributions of source code must retain the above copyright notice, this - * list of conditions and the following disclaimer. - * 2. Redistributions in binary form must reproduce the above copyright notice, - * this list of conditions and the following disclaimer in the documentation - * and/or other materials provided with the distribution. - * - * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND - * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED - * WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE - * DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR - * ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES - * (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; - * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND - * ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT - * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS - * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. - */ - -/**************************************************************************** -Document: Tizen TV_General Guide_GUI Guideline_v1.0_140508_1.ppt, Page no. 76, -*****************************************************************************/ -#define CHECK_SIZE 38 38 -#define CHECK_FONT_SIZE 28 - -group { name: "elm/check/base/default"; - images { - image: "checkbox_check_foc.png" COMP; - image: "checkbox_check_nor.png" COMP; - image: "checkbox_uncheck_nor.png" COMP; - image: "checkbox_uncheck_foc.png" COMP; - } - data.item: "focus_highlight" "on"; - script { - public is_focus=0; - public is_disabled=0; - public set_focus() { - set_int(is_focus, 1); - } - public unset_focus() { - set_int(is_focus, 0); - } - public set_check_set() { - if (get_int(is_focus)) { - set_state(PART:"check", "highlight", 0.0); - set_state(PART:"bg", "highlight", 0.0); - } - else { - set_state(PART:"check", "visible", 0.0); - set_state(PART:"bg", "default", 0.0); - } - if (get_int(is_disabled)) { - set_state(PART:"background", "on_disabled", 0.0); - } - else { - set_state(PART:"background", "on", 0.0); - } - } - public set_check_unset() { - set_state(PART:"check", "default", 0.0); - if (get_int(is_focus)) { - set_state(PART:"bg", "highlight", 0.0); - } - else { - set_state(PART:"bg", "default", 0.0); - } - if (get_int(is_disabled)) { - set_state(PART:"background", "disabled", 0.0); - } - else { - set_state(PART:"background", "default", 0.0); - } - } - } - parts { - part { name: "background"; mouse_events: 0; - type: RECT; - description { state: "default" 0.0; - rel.to: "bg"; - color_class: "check/default/bg"; - } - description { state: "disabled"; - inherit: "default" 0.0; - color_class: "check/default/bg_disabled"; - } - description { state: "on"; - inherit: "default" 0.0; - color_class: "check/default/bg_on"; - } - description { state: "on_disabled"; - inherit: "default" 0.0; - color_class: "check/default/bg_on_disabled"; - } - } - part { name: "bg"; mouse_events: 0; - scale: 1; - description { state: "default" 0.0; - rel2.relative: 0.0 1.0; - align: 0.0 0.5; - min: CHECK_SIZE; - max: CHECK_SIZE; - aspect: 1.0 1.0; - aspect_preference: VERTICAL; - image.normal: "checkbox_uncheck_nor.png"; - } - description { state: "highlight" 0.0; - inherit: "default" 0.0; - image.normal: "checkbox_uncheck_foc.png"; - } - description { state: "disabled" 0.0; - inherit: "default" 0.0; - color: 255 255 255 51; - } - } - part { name: "check"; mouse_events: 0; - scale: 1; - description { state: "default" 0.0; - rel1 { - to: "bg"; - } - rel2 { - to: "bg"; - } - image.normal: "checkbox_check_nor.png"; - visible: 0; - } - description { state: "visible" 0.0; - inherit: "default" 0.0; - visible: 1; - } - description { state: "highlight" 0.0; - inherit: "default" 0.0; - image.normal: "checkbox_check_foc.png"; - visible: 1; - } - description { state: "disabled" 0.0; - inherit: "default" 0.0; - visible: 0; - } - description { state: "disabled_visible" 0.0; - inherit: "default" 0.0; - color: 255 255 255 51; - visible: 1; - } - } - part { name: "elm.swallow.content"; type: SWALLOW; - scale: 1; - description { state: "default" 0.0; - visible: 0; - align: 0.0 0.5; - fixed: 1 0; - rel1.to_x: "bg"; - rel1.relative: 1.0 0.0; - rel2.to_x: "bg"; - rel2.relative: 1.0 1.0; - } - description { state: "visible" 0.0; - inherit: "default" 0.0; - fixed: 1 0; - visible: 1; - aspect: 1.0 1.0; - min: CHECK_SIZE; - } - description { state: "disabled" 0.0; - inherit: "default" 0.0; - color: 255 255 255 128; - } - description { state: "disabled_visible" 0.0; - inherit: "default" 0.0; - color: 255 255 255 128; - fixed: 1 0; - visible: 1; - aspect: 1.0 1.0; - } - } - part { name: "elm.text"; type: TEXT; mouse_events: 0; - scale: 1; - description { state: "default" 0.0; - visible: 0; - rel1.to_x: "elm.swallow.content"; - rel1.relative: 1.0 0.0; - rel2.to: "pad.elm.text"; - rel2.relative: 0.0 1.0; - color_class: "check/default/text"; - text { - font: FONT_L; - size: CHECK_FONT_SIZE; - min: 0 1; - align: -1.0 0.5; - } - } - description { state: "visible" 0.0; - inherit: "default" 0.0; - visible: 1; - text.min: 1 1; - text.ellipsis: -1; - } - description { state: "disabled" 0.0; - inherit: "default" 0.0; - color_class: "check/default/text_disabled"; - } - description { state: "disabled_visible" 0.0; - inherit: "default" 0.0; - color_class: "check/default/text_disabled"; - visible: 1; - text.min: 1 1; - text.ellipsis: -1; - } - } - part { name: "pad.elm.text"; type: SPACER; - scale: 1; - description { state: "default" 0.0; - min: 1 0; - max: 1 0; - fixed: 1 0; - rel1.relative: 1.0 1.0; - align: 1.0 0.5; - } - description { state: "visible" 0.0; - inherit: "default" 0.0; - min: 12 0; - max: 12 0; - } - } - part { name: "events"; type: RECT; - ignore_flags: ON_HOLD; - description { state: "default" 0.0; - color: 0 0 0 0; - } - } - part { name: "disabler"; type: RECT; - description { state: "default" 0.0; - color: 0 0 0 0; - visible: 0; - } - description { state: "disabled" 0.0; - inherit: "default" 0.0; - visible: 1; - } - } - } - programs { - program { name: "click"; - signal: "mouse,clicked,1"; source: "events"; - action: SIGNAL_EMIT "elm,action,check,toggle" ""; - } - program { name: "check_on"; - signal: "elm,state,check,on"; source: "elm"; - script{ - set_check_set(); - } - } - program { name: "check_off"; - signal: "elm,state,check,off"; source: "elm"; - script{ - set_check_unset(); - } - } - program { name: "text_show"; - signal: "elm,state,text,visible"; source: "elm"; - action: STATE_SET "visible" 0.0; - target: "elm.text"; - target: "pad.elm.text"; - } - program { name: "text_hide"; - signal: "elm,state,text,hidden"; source: "elm"; - action: STATE_SET "default" 0.0; - target: "elm.text"; - } - program { name: "icon_show"; - signal: "elm,state,icon,visible"; source: "elm"; - action: STATE_SET "visible" 0.0; - target: "elm.swallow.content"; - } - program { name: "icon_hide"; - signal: "elm,state,icon,hidden"; source: "elm"; - action: STATE_SET "default" 0.0; - target: "elm.swallow.content"; - } - program { name: "focus"; - signal: "elm,action,focus"; source: "elm"; - script { - set_focus(); - } - after: "enable_focus"; - } - program { name: "enable_focus"; - script { - new st[31]; - new Float:vl; - get_state(PART:"check", st, 30, vl); - if (!strcmp(st, "visible")) - set_state(PART:"check", "highlight", 0.0); - - get_state(PART:"bg", st, 30, vl); - if (!strcmp(st, "default")) - set_state(PART:"bg", "highlight", 0.0); - } - } - program { name: "unfocus"; - signal: "elm,action,unfocus"; source: "elm"; - script { - unset_focus(); - } - after: "disable_focus"; - } - program { name: "disable_focus"; - script { - new st[31]; - new Float:vl; - get_state(PART:"check", st, 30, vl); - if (!strcmp(st, "highlight")) - set_state(PART:"check", "visible", 0.0); - - get_state(PART:"bg", st, 30, vl); - if (!strcmp(st, "highlight")) - set_state(PART:"bg", "default", 0.0); - } - } - program { name: "disable"; - signal: "elm,state,disabled"; source: "elm"; - action: STATE_SET "disabled" 0.0; - target: "bg"; - target: "disabler"; - after: "disable_text"; - } - program { name: "disable_text"; - script { - new st[31]; - new Float:vl; - set_int(is_disabled, 1); - - get_state(PART:"elm.text", st, 30, vl); - if (!strcmp(st, "visible")) - set_state(PART:"elm.text", "disabled_visible", 0.0); - else - set_state(PART:"elm.text", "disabled", 0.0); - - get_state(PART:"elm.swallow.content", st, 30, vl); - if (!strcmp(st, "visible")) - set_state(PART:"elm.swallow.content", "disabled_visible", 0.0); - else - set_state(PART:"elm.swallow.content", "disabled", 0.0); - - get_state(PART:"check", st, 30, vl); - if (!strcmp(st, "visible")) { - set_state(PART:"check", "disabled_visible", 0.0); - set_state(PART:"background", "on_disabled", 0.0); - } - else { - set_state(PART:"check", "disabled", 0.0); - set_state(PART:"background", "disabled", 0.0); - } - } - } - program { name: "enable"; - signal: "elm,state,enabled"; source: "elm"; - action: STATE_SET "default" 0.0; - target: "bg"; - target: "disabler"; - after: "enable_text"; - } - program { name: "enable_text"; - script { - new st[31]; - new Float:vl; - set_int(is_disabled, 0); - get_state(PART:"elm.text", st, 30, vl); - if (!strcmp(st, "disabled_visible")) - set_state(PART:"elm.text", "visible", 0.0); - else - set_state(PART:"elm.text", "default", 0.0); - - get_state(PART:"elm.swallow.content", st, 30, vl); - if (!strcmp(st, "visible")) - set_state(PART:"elm.swallow.content", "visible", 0.0); - else - set_state(PART:"elm.swallow.content", "default", 0.0); - - get_state(PART:"check", st, 30, vl); - if (!strcmp(st, "disabled_visible")) { - set_state(PART:"check", "visible", 0.0); - set_state(PART:"background", "on", 0.0); - } - else { - set_state(PART:"check", "default", 0.0); - set_state(PART:"background", "default", 0.0); - } - } - } - } -} - -group { "elm/check/event/default"; - inherit_only: 1; - parts { - rect { "event"; - mouse; - desc { "default"; - color: 0 0 0 0; - rel.to: "base"; - } - desc { "disabled"; - inherit: "default"; - hid; - } - } - } - programs { - program { "clicked"; - signal: "mouse,clicked,1"; - source: "event"; - action: SIGNAL_EMIT "elm,action,click" ""; - after: "on_clicked"; - } - program { "pressed"; - signal: "mouse,down,1*"; - source: "event"; - action: SIGNAL_EMIT "elm,action,press" ""; - after: "on_pressed"; - } - program { "unpressed"; - signal: "mouse,up,1"; - source: "event"; - action: SIGNAL_EMIT "elm,action,unpress" ""; - after: "on_unpressed"; - } - program { "set_check"; - signal: "elm,state,check,on"; - source: "elm"; - after: "on_set_check"; - } - program { "unset_check"; - signal: "elm,state,check,off"; - source: "elm"; - after: "on_unset_check"; - } - program { "disabled"; - signal: "elm,state,disabled"; - source: "elm"; - after: "on_disabled"; - } - program { "enabled"; - signal: "elm,state,enabled"; - source: "elm"; - after: "on_enabled"; - } - } -} - -group { "elm/check/base/on&off"; - nomouse; - images{ - vector: "core_toggle_bg_green.svg"; - vector: "core_toggle_bg_gray.svg"; - vector: "core_toggle_icon_on.svg"; - vector: "core_toggle_icon_off.svg"; - } - target_group: "vector_group" "clipper_bg_vector" "clipper_icon_on" "clipper_icon_off" "icon_on" "icon_off"; - target_group: "vector_group_base" "clipper_bg_vector"; - target_group: "vector_group_phase1" "clipper_icon_on" "icon_on"; - target_group: "vector_group_phase2" "clipper_icon_off" "icon_off"; - target_group: "programs_set_anim" "set_check_with_anim" "set_check_with_anim_phase1" "set_check_with_anim_phase2" "set_check_with_anim_base"; - target_group: "programs_unset_anim" "unset_check_with_anim" "unset_check_with_anim_phase1" "unset_check_with_anim_phase2" "unset_check_with_anim_base"; - parts { - spacer { "base"; - scale; - desc { "default"; - min: CHECK_ONOFF_SIZE_INC; - } - } - vector { name:"bg_vector"; - scale; - clip: "clipper_bg_vector"; - desc { "default"; - image.normal: "core_toggle_bg_green.svg"; - min: CHECK_ONOFF_SIZE_INC; - rel1.relative: 0 0.5; - rel2.relative: 0 0.5; - align: 0 0.5; - fixed: 1 1; - } - } - rect { name:"clipper_bg_vector"; - desc { "default"; - color_class: "check/on&off/bg"; - } - desc { "on"; - color_class: "check/on&off/bg_on"; - } - desc { "off"; - inherit: "default"; - } - desc { "disabled_on"; - color_class: "check/on&off/bg_disabled"; - } - desc { "disabled_off"; - inherit: "disabled_on"; - } - } - rect { name:"clipper_icon_on"; - desc { "default"; - color_class: "check/on&off/icon_on"; - } - desc { "on"; - inherit: "default" ; - } - desc { "off"; - inherit: "default"; - } - desc { "disabled_on"; - inherit:"default"; - } - desc { "disabled_off"; - inherit:"default"; - } - } - vector { "icon_on"; - scale; - clip: "clipper_icon_on"; - desc { "default"; - image.normal: "core_toggle_icon_on.svg"; - rel.to: "bg_vector"; - rel1.relative: 0.5 0.5; - rel2.relative: 0.5 0.5; - } - desc { "on"; - inherit: "default"; - rel1.relative: 0.0 0.0; - rel2.relative: 1.0 1.0; - } - desc { "off"; - inherit: "default"; - } - desc { "disabled_on"; - inherit: "on"; - } - desc { "disabled_off"; - inherit: "off"; - } - } - rect { name:"clipper_icon_off"; - desc { "default"; - color_class: "check/on&off/icon"; - } - desc { "on"; - inherit: "default" ; - } - desc { "off"; - inherit: "default"; - } - desc { "disabled_on"; - inherit:"default"; - } - desc { "disabled_off"; - inherit:"default"; - } - } - vector { "icon_off"; - scale; - clip: "clipper_icon_off"; - desc { "default"; - image.normal: "core_toggle_icon_off.svg"; - rel.to: "bg_vector"; - rel1.relative: 0.0 0.0; - rel2.relative: 1.0 1.0; - } - desc { "on"; - inherit: "default"; - rel1.relative: 0.5 0.5; - rel2.relative: 0.5 0.5; - } - desc { "off"; - inherit: "default"; - } - desc { "disabled_on"; - inherit: "on"; - } - desc { "disabled_off"; - inherit:"default"; - } - } - spacer { "padding_before_text"; - scale; - desc { "default"; - align: 0.0 0.5; - min: 0 0; - rel1 { - to: "bg_vector"; - relative: 1.0 0.0; - } - rel2 { - to: "bg_vector"; - relative: 1.0 1.0; - } - } - desc { "visible"; - inherit: "default"; - min: CHECK_PAD_BEFORE_TEXT_INC; - fixed: 1 1; - } - } - textblock { "elm.text"; - nomouse; - scale; - desc { "default"; - hid; - fixed: 0 1; - rel1 { - relative: 1.0 0.5; - to_x : "padding_before_text"; - } - rel2 { - relative: 1.0 0.5; - } - align: 0.0 0.5; - text { - style: "check_on&off"; - min: 0 0; - } - } - desc { "visible"; - inherit: "default"; - vis; - text.min: 0 1; - } - desc { "disabled"; - inherit: "default"; - vis; - text { - style: "check_on&off_dim"; - min: 0 1; - } - } - desc { "pressed"; - inherit: "default"; - vis; - text { - style: "check_on&off_press"; - min: 0 1; - } - } - } - } - inherit: "elm/check/event/default"; - script { - public check_state; - public disabled; - public text; - public animate = 0; - } - programs { - program { "on_clicked"; - script { - if (get_int(disabled) == 0) { - emit("elm,action,check,toggle", ""); - run_program(PROGRAM:"touch_sound"); - } - } - } - program { "on_pressed"; - script { - if (get_int(disabled) == 1) return; - if (get_int(text) == 1) { - set_state(PART:"elm.text", "pressed", 0.0); - } - } - } - program { "on_unpressed"; - script { - if (get_int(disabled) == 1) return; - if (get_int(text) == 1) { - set_state(PART:"elm.text", "visible", 0.0); - } - } - } - program { "on_disabled"; - script { - set_int(disabled, 1); - if (get_int(check_state) == 0) { - run_program(PROGRAM:"disabled_off"); - } else { - run_program(PROGRAM:"disabled_on"); - } - if (get_int(text) == 1) { - set_state(PART:"elm.text", "disabled", 0.0); - } - } - } - program { "on_enabled"; - script { - set_int(disabled, 0); - if (get_int(check_state) == 0) { - run_program(PROGRAM:"enabled_off"); - } else { - run_program(PROGRAM:"enabled_on"); - } - if (get_int(text) == 1) { - set_state(PART:"elm.text", "visible", 0.0); - } - } - } - program { "on_set_check"; - script { - if (get_int(disabled) == 0) { - if (get_int(animate) == 0) { - run_program(PROGRAM:"set_check_without_anim"); - } else { - run_program(PROGRAM:"set_check_with_anim"); - } - } else { - run_program(PROGRAM:"disabled_on"); - } - } - } - program { "on_unset_check"; - script { - if (get_int(disabled) == 0) { - if (get_int(animate) == 0) { - run_program(PROGRAM:"unset_check_without_anim"); - } else { - run_program(PROGRAM:"unset_check_with_anim"); - } - } else { - run_program(PROGRAM:"disabled_off"); - } - } - } - program { "touch_sound"; - action: RUN_PLUGIN "touch_sound"; - } - program { "check_on_activate"; - signal: "elm,activate,check,on"; - source: "elm"; - script { - set_int(animate, 1); - } - } - program { "check_off_activate"; - signal: "elm,activate,check,off"; - source: "elm"; - script { - set_int(animate, 1); - } - } - program { "post_set_check"; - script{ - set_int(animate, 0); - set_int(check_state, 1); - } - } - program { "post_unset_check"; - script{ - set_int(animate, 0); - set_int(check_state, 0); - } - } - program { "set_check_without_anim"; - action: STATE_SET "on"; - target_groups: "vector_group"; - after: "post_set_check"; - } - program { "set_check_with_anim"; - action: ACTION_STOP; - target_groups: "programs_set_anim"; - target_groups: "programs_unset_anim"; - after: "set_check_with_anim_phase1"; - after: "set_check_with_anim_base"; - } - program { "set_check_with_anim_phase1"; - action: STATE_SET "on"; - transition: LINEAR 0.15; - target_groups: "vector_group_phase2"; - after: "set_check_with_anim_phase2"; - } - program { "set_check_with_anim_phase2"; - action: STATE_SET "on"; - transition: LINEAR 0.15; - target_groups: "vector_group_phase1"; - after: "post_set_check"; - after: "finished_animation"; - } - program { "set_check_with_anim_base"; - action: STATE_SET "on"; - transition: LINEAR 0.3; - target_groups: "vector_group_base"; - } - program { "unset_check_without_anim"; - action: STATE_SET "off"; - target_groups: "vector_group"; - after: "post_unset_check"; - } - program { "unset_check_with_anim"; - action: ACTION_STOP; - target_groups: "programs_set_anim"; - target_groups: "programs_unset_anim"; - after: "unset_check_with_anim_phase1"; - after: "unset_check_with_anim_base"; - } - program { "unset_check_with_anim_phase1"; - action: STATE_SET "off"; - transition: LINEAR 0.15; - target_groups: "vector_group_phase1"; - after: "unset_check_with_anim_phase2"; - } - program { "unset_check_with_anim_phase2"; - action: STATE_SET "off"; - transition: LINEAR 0.15; - target_groups: "vector_group_phase2"; - after: "post_unset_check"; - after: "finished_animation"; - } - program { "unset_check_with_anim_base"; - action: STATE_SET "off"; - transition: LINEAR 0.3; - target_groups: "vector_group_base"; - } - program { "disabled_on"; - action: STATE_SET "disabled_on"; - target_groups: "vector_group"; - } - program { "disabled_off"; - action: STATE_SET "disabled_off"; - target_groups: "vector_group"; - } - program { "enabled_on"; - action: STATE_SET "on"; - target_groups: "vector_group"; - } - program { "enabled_off"; - action: STATE_SET "off"; - target_groups: "vector_group"; - } - program { "visible_text"; - signal: "elm,state,text,visible"; - source: "elm"; - script { - set_int(text, 1); - set_state(PART:"padding_before_text", "visible", 0.0); - if (get_int(disabled) == 1) { - set_state(PART:"elm.text", "disabled", 0.0); - }else { - set_state(PART:"elm.text", "visible", 0.0); - } - } - } - program { "hidden_text"; - signal: "elm,state,text,hidden"; - source: "elm"; - script { - set_int(text, 0); - set_state(PART:"padding_before_text", "default", 0.0); - set_state(PART:"elm.text", "default", 0.0); - } - } - program { "finished_animation"; - action: SIGNAL_EMIT "animation,finished" ""; - } - program { "enabled_event_pass"; - signal: "elm,event,pass,enabled"; - source: "elm"; - script { - set_mouse_events(PART:"event", 0); - } - } - program { "disabled_event_pass"; - signal: "elm,event,pass,disabled"; - source: "elm"; - script { - set_mouse_events(PART:"event", 1); - } - } - program { "enabled_event_repeat"; - signal: "elm,event,repeat,enabled"; - source: "elm"; - script { - set_repeat_events(PART:"event", 1); - } - } - program { "disabled_event_repeat"; - signal: "elm,event,repeat,disabled"; - source: "elm"; - script { - set_repeat_events(PART:"event", 0); - } - } - } -} - -group { "elm/check/base/toggle"; - inherit: "elm/check/base/on&off"; - - parts { - rect { name:"clipper_bg_vector"; - desc { "default"; - color_class: "check/toggle/bg"; - } - desc { "on"; - color_class: "check/toggle/bg_on"; - } - desc { "off"; - inherit: "default"; - } - desc { "disabled_on"; - color_class: "check/toggle/bg_disabled"; - } - desc { "disabled_off"; - inherit: "disabled_on"; - } - } - rect { name:"clipper_icon_on"; - desc { "default"; - color_class: "check/toggle/icon_on"; - } - desc { "on"; - inherit: "default" ; - } - desc { "off"; - inherit: "default"; - } - desc { "disabled_on"; - inherit:"default"; - } - desc { "disabled_off"; - inherit:"default"; - } - } - rect { name:"clipper_icon_off"; - desc { "default"; - color_class: "check/toggle/icon"; - } - desc { "on"; - inherit: "default" ; - } - desc { "off"; - inherit: "default"; - } - desc { "disabled_on"; - inherit:"default"; - } - desc { "disabled_off"; - inherit:"default"; - } - } - textblock { "elm.text"; - desc { "default" - text.style: "check_toggle"; - } - desc { "visible" - text.style: "check_toggle"; - } - desc { "disabled" - text.style: "check_toggle_dim"; - } - desc { "pressed" - text.style: "check_toggle_press"; - } - } - } -} diff --git a/ElmSharp/theme/tv/widgets/ctxpopup.edc b/ElmSharp/theme/tv/widgets/ctxpopup.edc deleted file mode 100644 index 2e37251..0000000 --- a/ElmSharp/theme/tv/widgets/ctxpopup.edc +++ /dev/null @@ -1,626 +0,0 @@ -/* - * Copyright (c) 2010 Samsung Electronics Co., Ltd All Rights Reserved - * - * BSD 2-Clause License (http://www.opensource.org/licenses/bsd-license.php) - * - * Redistribution and use in source and binary forms, with or without - * modification, are permitted provided that the following conditions are met: - * - * 1. Redistributions of source code must retain the above copyright notice, this - * list of conditions and the following disclaimer. - * 2. Redistributions in binary form must reproduce the above copyright notice, - * this list of conditions and the following disclaimer in the documentation - * and/or other materials provided with the distribution. - * - * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND - * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED - * WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE - * DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR - * ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES - * (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; - * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND - * ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT - * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS - * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. - */ - -/************************************************************************************* -Tizen TV_General Guide_GUI Guideline_v1.0_140508.ppt page 90 style 1text -Tizen TV_General Guide_GUI Guideline_v1.0_140508.ppt page 91 style 1text.1icon -***************************************************************************************/ - -group { name: "elm/ctxpopup/bg/default"; - parts { - part { name: "ctxpopup_bg"; type: RECT; mouse_events: 1; - description { state: "default" 0.0; - color: 0 0 0 0; - } - description { state: "visible" 0.0; - inherit: "default" 0.0; - color: 0 0 0 64; - } - } - } - programs { - program { name: "clicked_event"; - signal: "mouse,clicked,1"; - source: "ctxpopup_bg"; - action: SIGNAL_EMIT "elm,action,click" ""; - } - program { name: "show"; - signal: "elm,state,show"; - source: "elm"; - action: STATE_SET "visible" 0.0; - target: "ctxpopup_bg"; - transition: LINEAR 0.25; - } - program { name: "hide"; - signal: "elm,state,hide"; - source: "elm"; - action: STATE_SET "default" 0.0; - target: "ctxpopup_bg"; - transition: LINEAR 0.25; - } - } -} - -group { name: "elm/ctxpopup/base/default"; - parts { - part { name: "base"; type: RECT; - clip_to: "clip"; - description { state: "default" 0.0; - color_class: "ctxpopup/default/bg"; - } - } - part { name: "elm.swallow.content"; type: SWALLOW; - clip_to: "clip"; - description { state: "default" 0.0; - rel1 { to:"base"; offset: 8 6; } - rel2 { to:"base"; offset: -7 -8; } - } - } - part { name: "event"; type: RECT; - description { state: "default" 0.0; - color: 0 0 0 0; - visible: 1; - } - description { state: "visible" 0.0; - inherit: "default" 0.0; - visible: 0; - } - } - part { name: "clip"; type: RECT; - description { state: "default" 0.0; - color: 255 255 255 0; - visible: 0; - rel1.offset: -20 -20; - rel2.offset: 19 19; - } - description { state: "visible" 0.0; - inherit: "default" 0.0; - color: 255 255 255 255; - visible: 1; - } - } - - // 17x10 - part { name: "arrow_area_left"; type: SPACER; - description { state: "default" 0.0; - min: 17 10; - fixed: 1 0; - align: 1.0 0.5; - rel1.to: "base"; - rel1.offset: 2 5; - rel2.to: "base"; - rel2.offset: 2 -6; - rel2.relative: 0.0 1.0; - } - } - part { name: "elm.swallow.arrow_left"; type: SWALLOW; mouse_events: 0; - clip_to: "clip"; - dragable.x: 1 1 0; - dragable.y: 1 1 0; - dragable.confine: "arrow_area_left"; - description { state: "default" 0.0; - min: 9 13; - fixed: 1 1; - } - } - - part { name: "arrow_area_right"; type: SPACER; - description { state: "default" 0.0; - min: 17 10; - fixed: 1 0; - align: 0.0 0.5; - rel1.to: "base"; - rel1.offset: -3 5; - rel1.relative: 1.0 0.0; - rel2.to: "base"; - rel2.offset: -3 -6; - } - } - part { name: "elm.swallow.arrow_right"; type: SWALLOW; mouse_events: 0; - clip_to: "clip"; - dragable.x: 1 1 0; - dragable.y: 1 1 0; - dragable.confine: "arrow_area_right"; - description { state: "default" 0.0; - min: 9 13; - fixed: 1 1; - } - } - - // 10x17 - part { name: "arrow_area_up"; type: SPACER; - description { state: "default" 0.0; - min: 10 17; - fixed: 1 1; - align: 0.5 1; - rel1.to: "base"; - rel1.offset: 5 3; - rel2.to: "base"; - rel2.offset: -6 3; - rel2.relative: 1.0 0.0; - } - } - part { name: "elm.swallow.arrow_up"; type: SWALLOW; mouse_events: 0; - clip_to: "clip"; - dragable.x: 1 1 0; - dragable.y: 1 1 0; - dragable.confine: "arrow_area_up"; - description { state: "default" 0.0; - min: 11 9; - fixed: 1 1; - } - } - - part { name: "arrow_area_down"; type: SPACER; - description { state: "default" 0.0; - min: 10 17; - fixed: 1 1; - align: 0.5 0.0; - rel1.to: "base"; - rel1.offset: 5 -4; - rel1.relative: 0.0 1.0; - rel2.to: "base"; - rel2.offset: -6 -4; - } - } - part { name: "elm.swallow.arrow_down"; type: SWALLOW; mouse_events: 0; - clip_to: "clip"; - dragable.x: 1 1 0; - dragable.y: 1 1 0; - dragable.confine: "arrow_area_down"; - description { state: "default" 0.0; - min: 11 9; - fixed: 1 1; - } - } - } - programs { - program { - signal: "elm,state,show"; source: "elm"; - action: STATE_SET "visible" 0.0; - transition: LINEAR 0.2; - target: "clip"; - target: "event"; - } - program { - signal: "elm,state,hide"; source: "elm"; - action: STATE_SET "default" 0.0; - transition: LINEAR 0.3; - target: "clip"; - target: "event"; - after: "hide2"; - } - program { name: "hide2"; - action: SIGNAL_EMIT "elm,action,hide,finished" "elm"; - } - - } -} - -group { name: "elm/ctxpopup/arrow/default"; - images { - image: "popover_arrow.png" COMP; - } - parts { - part { name: "ctxpopup_arrow"; - type: IMAGE; - scale: 1; - description { - state: "default" 0.0; - min: 17 10; - fixed: 1 1; - visible: 0; - align: 0.5 0.5; - image.normal: "popover_arrow.png"; - } - description { state: "left" 0.0; - inherit: "default" 0.0; - align: 0.0 0.5; - map.on: 1; - map.smooth: 1; - map.rotation.z: 270; - } - description { state: "right" 0.0; - inherit: "default" 0.0; - align: 1.0 0.5; - map.on: 1; - map.smooth: 1; - map.rotation.z: 90; - } - description { state: "top" 0.0; - inherit: "default" 0.0; - visible: 1; - align: 0.5 0.0; - } - description { state: "bottom" 0.0; - inherit: "default" 0.0; - align: 0.5 1.0; - map.on: 1; - map.smooth: 1; - map.rotation.z: 180; - } - } - } - programs { - program { name: "enable_left_arrow"; - signal: "elm,state,left"; - source: "elm"; - action: STATE_SET "left" 0.0; - target: "ctxpopup_arrow"; - } - program { name: "enable_right_arrow"; - signal: "elm,state,right"; - source: "elm"; - action: STATE_SET "right" 0.0; - target: "ctxpopup_arrow"; - } - program { name: "enable_top_arrow"; - signal: "elm,state,top"; - source: "elm"; - action: STATE_SET "top" 0.0; - target: "ctxpopup_arrow"; - } - program { name: "enable_bottom_arrow"; - signal: "elm,state,bottom"; - source: "elm"; - action: STATE_SET "bottom" 0.0; - target: "ctxpopup_arrow"; - } - } -} - -group { - name: "elm/ctxpopup/icon_text_style_item/default"; - alias: "elm/ctxpopup/text_style_item/default"; - alias: "elm/ctxpopup/icon_style_item/default"; - images { - image: "hoversel_entry_bg.png" COMP; - } - parts { - part { name: "base.pad"; type: SPACER; - mouse_events: 0; - description { state: "default" 0.0; - min: 12 70; - max: 12 70; - align: 0 1; - } - } - - part { name: "bg"; type: RECT; - mouse_events: 0; - description { state: "default" 0.0; - rel1.to: "base.pad"; - rel1.relative: 1 0; - min: 300 70; - max: 300 70; - color: 0 0 0 0; - } - description { state: "clicked" 0.0; - inherit: "default" 0.0; - color: 255 255 255 255; - color_class: "ctxpopup_item/default/effect"; - } - } - part { name: "elm.proxy1.icon"; - type: PROXY; - clip_to: "disclip"; - scale: 1; - description { state: "default" 0.0; - max: 20 20; - fixed : 1 1; - rel1.to: "elm.swallow.icon"; - rel2.to: "elm.swallow.icon"; - rel1.relative: 1.0 0.0; - rel2.relative: 2.0 1.0; - source: "elm.swallow.icon"; - visible: 0; - align: 0.0 0.5; - } - } - part { name: "elm.proxy2.icon"; type: PROXY; - clip_to: "disclip"; - scale: 1; - description { state: "default" 0.0; - min: 20 20; - fixed : 1 1; - rel1.to: "elm.proxy1.icon"; - rel2.to: "elm.proxy1.icon"; - rel1.relative: 0.0 0.0; - rel2.relative: 1.0 1.0; - max: 20 20; - source: "elm.proxy1.icon"; - visible: 0; - align: 1.0 0.5; - } - } - part { name: "elm.swallow.icon"; type: SWALLOW; - clip_to: "disclip"; - scale: 1; - description { state: "default" 0.0; - fixed: 1 1; - rel1.to: "base.pad"; - rel1.relative: 1.0 0.0; - rel2.to: "base.pad"; - rel2.relative: 1.0 1.0; - min: 0 0; - max: 37 37; - align: 0 0.5; - } - } - part { name: "elm.text"; type: TEXT; mouse_events: 0; - clip_to: "disclip"; - scale: 1; - description { state: "default" 0.0; - min: 1 40; - fixed: 1 1; - align: 0 0.5; - rel1.relative: 1.0 0.0; - rel1.to_x: "elm.swallow.icon"; - rel2.to_x: "elm.proxy2.icon"; - rel2.relative: 1.0 1.0; - color_class: "ctxpopup_item/default/text"; - text { - font: "FONT_M"; - size: 30; - align: 0.0 0.5; - min: 1 1; - ellipsis: -1; - } - } - description { state: "focus" 0.0; - inherit: "default" 0.0; - color_class: "ctxpopup_item/default/text_focused"; - } - description { state: "clicked" 0.0; - inherit: "default" 0.0; - color_class: "ctxpopup_item/default/text_disabled"; - } - } - part { name: "over1"; type: RECT; mouse_events: 1; - repeat_events: 1; - description { state: "default" 0.0; - color: 255 255 255 0; - } - description { state: "clicked" 0.0; - inherit: "default" 0.0; - color: 255 255 255 255; - } - } - part { name: "bottom_line"; type: RECT; - mouse_events: 1; - repeat_events: 1; - description { state: "default" 0.0; - min: 0 2; - max: 9999 2; - fixed: 1 1; - rel1.to:"over1"; - rel1.relative: 0 1; - rel1.offset: -32 0; - rel2.to:"over1"; - color_class: "ctxpopup_item/default/divider"; - } - - } - part { name: "over2"; type: RECT; mouse_events: 1; - repeat_events: 1; - description { state: "default" 0.0; - color: 255 255 0 0; - } - description { state: "clicked" 0.0; - inherit: "default" 0.0; - color: 255 255 255 255; - } - description { state: "focus" 0.0; - inherit: "default" 0.0; - } - } - part { name: "disclip"; - type: RECT; - description { state: "default" 0.0; - color: 255 255 255 255; - } - description { state: "enabled" 0.0; - color: 127 127 127 127; - } - } - part { name: "blocker"; - type: RECT; - description { state: "default" 0.0; - visible: 0; - } - description { state: "enabled" 0.0; - visible: 1; - color: 0 0 0 0; - } - } - } - programs { - program { name: "focused"; - signal: "elm,action,focus"; source: "elm"; - action: STATE_SET "focus" 0.0; - target: "over2"; - } - program { name: "unfocused"; - signal: "elm,action,unfocus"; source: "elm"; - action: STATE_SET "default" 0.0; - target: "elm.text"; - } - program{ - name: "item_unclick"; - signal: "mouse,clicked,1"; - source: "over1"; - action: SIGNAL_EMIT "elm,action,click" ""; - } - program { name: "disable"; - signal: "elm,state,disabled"; - source: "elm"; - action: STATE_SET "enabled" 0.0; - target: "disclip"; - target: "blocker"; - } - program { name: "enable"; - signal: "elm,state,enabled"; - source: "elm"; - action: STATE_SET "default" 0.0; - target: "disclip"; - target: "blocker"; - } - program { name: "item_click2"; - signal: "mouse,down,1"; - source: "over2"; - script { - set_state(PART:"elm.text", "clicked", 0.0); - set_state(PART:"bg", "clicked", 0.0); - } - } - program { name: "item_unclick2"; - signal: "mouse,up,1"; - source: "over2"; - script { - set_state(PART:"elm.text", "default", 0.0); - set_state(PART:"bg", "default", 0.0); - } - } - } -} -group { - name: "elm/ctxpopup/item_compress/default"; - images { - image: "hoversel_entry_bg.png" COMP; - } - parts { - part { name: "bg"; type: RECT; - mouse_events: 0; - description { state: "default" 0.0; - color: 255 255 255 0; - } - description { state: "clicked" 0.0; - inherit: "default" 0.0; - color: 255 255 255 255; - } - } - part { name: "elm.swallow.icon"; - type: SWALLOW; - clip_to: "disclip"; - scale: 1; - description { state: "default" 0.0; - min: 25 25; - max: 25 25; - align: 0 0.5; - aspect: 1.0 1.0; - } - } - part { name: "elm.text"; type: TEXT; mouse_events: 0; - clip_to: "disclip"; - scale: 1; - description { state: "default" 0.0; - min: 1 40; - fixed: 0 1; - align: 0.5 0.5; - rel1.relative: 1.0 0.0; - rel1.to: "elm.swallow.icon"; - rel2.relative: 1.0 1.0; - color: 255 255 255 255; - text { - font: "FONT_M"; - size: 30; - min: 0 1; - align: 0.0 0.5; - } - } - description { state: "clicked" 0.0; - inherit: "default" 0.0; - color: 0 0 0 255; - } - } - part { name: "over1"; type: RECT; mouse_events: 1; - repeat_events: 1; - description { state: "default" 0.0; - color: 255 255 255 0; - } - description { state: "clicked" 0.0; - inherit: "default" 0.0; - color: 255 255 255 255; - } - } - part { name: "disclip"; - type: RECT; - description { state: "default" 0.0; - color: 255 255 255 255; - } - description { state: "enabled" 0.0; - color: 127 127 127 127; - } - } - part { name: "blocker"; - type: RECT; - description { state: "default" 0.0; - visible: 0; - } - description { state: "enabled" 0.0; - visible: 1; - color: 0 0 0 0; - } - } - } - programs { - program { name: "item_unclick"; - signal: "mouse,clicked,1"; - source: "over1"; - action: SIGNAL_EMIT "elm,action,click" ""; - } - program { name: "disable"; - signal: "elm,state,disabled"; - source: "elm"; - action: STATE_SET "enabled" 0.0; - target: "disclip"; - target: "blocker"; - } - program { name: "enable"; - signal: "elm,state,enabled"; - source: "elm"; - action: STATE_SET "default" 0.0; - target: "disclip"; - target: "blocker"; - } - program { name: "item_click2"; - signal: "mouse,down,1"; - source: "over2"; - script { - set_state(PART:"elm.text", "clicked", 0.0); - set_state(PART:"bg", "clicked", 0.0); - } - } - program { name: "item_unclick2"; - signal: "mouse,up,1"; - source: "over2"; - script { - set_state(PART:"elm.text", "default", 0.0); - set_state(PART:"bg", "default", 0.0); - } - } - } -} diff --git a/ElmSharp/theme/tv/widgets/datetime.edc b/ElmSharp/theme/tv/widgets/datetime.edc deleted file mode 100644 index 727725d..0000000 --- a/ElmSharp/theme/tv/widgets/datetime.edc +++ /dev/null @@ -1,778 +0,0 @@ -/* - * Copyright (c) 2010 Samsung Electronics Co., Ltd All Rights Reserved - * - * BSD 2-Clause License (http://www.opensource.org/licenses/bsd-license.php) - * - * Redistribution and use in source and binary forms, with or without - * modification, are permitted provided that the following conditions are met: - * - * 1. Redistributions of source code must retain the above copyright notice, this - * list of conditions and the following disclaimer. - * 2. Redistributions in binary form must reproduce the above copyright notice, - * this list of conditions and the following disclaimer in the documentation - * and/or other materials provided with the distribution. - * - * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND - * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED - * WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE - * DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR - * ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES - * (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; - * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND - * ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT - * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS - * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. - */ - -/********************************************************************* -Doc: Tizen TV_General Guide_GUI Guideline_v1.0_140709.ppt page:93 -**********************************************************************/ - -group { name: "elm/datetime/base/default"; - alias: "elm/datetime/base/date_layout"; - parts { - part { name: "base_bg"; - type: RECT; - scale: 1; - description { state: "default" 0.0; - color_class: "datetime/default/bg"; - } - } - part { name: "base"; - type: SPACER; - scale: 1; - description { state: "default" 0.0; - min: 646 406; - } - } - part { name: "bg.top.padding"; - type: SPACER; - scale: 1; - description { state: "default" 0.0; - min: 0 0; - max: -1 0; - fixed: 0 1; - rel1 { - relative: 0.0 0.0; - to: "base"; - } - rel2 { - relative: 1.0 0.0; - to: "base"; - } - align: 0.5 0.0; - } - } - part { name: "bg.bottom.padding"; - type: SPACER; - scale: 1; - description { state: "default" 0.0; - min: 0 0; - max: -1 0; - fixed: 0 1; - rel1 { - relative: 0.0 1.0; - to: "base"; - } - rel2 { - relative: 1.0 1.0; - to: "base"; - } - align: 0.5 1.0; - } - } - part { name: "bg"; - type: RECT; - scale: 1; - description { state: "default" 0.0; - min: 646 348; - max: 646 348; - rel1 { - relative: 0.0 1.0; - to: "bg.top.padding"; - } - rel2 { - relative: 1.0 0.0; - to: "bg.bottom.padding"; - } - color: 250 250 250 255; - } - } - part { name: "left.padding"; - type: SPACER; - scale: 1; - description { state: "default" 0.0; - min: 0 0; - max: 0 -1; - fixed: 1 0; - rel1 { - relative: 0.0 0.0; - to: "bg"; - } - rel2 { - relative: 0.0 1.0; - to: "bg"; - } - align: 0.0 0.0; - } - } - part { name: "right.padding"; - type: SPACER; - scale: 1; - description { state: "default" 0.0; - min: 0 0; - max: 0 -1; - fixed: 1 0; - rel2.to: "bg"; - rel1 { - relative: 1.0 0.0; - to: "bg"; - } - rel2 { - relative: 1.0 1.0; - to: "bg"; - } - align: 1.0 1.0; - } - } - part { name: "field0"; - type: SWALLOW; - scale: 1; - description { state: "default" 0.0; - fixed: 1 0; - min: 206 0; - rel1 { - relative: 1.0 0.0; - to: "left.padding"; - } - rel2.to: "left.padding"; - align: 0.0 0.5; - } - } - part { name: "center.padding1"; - type: SPACER; - scale: 1; - description { state: "default" 0.0; - fixed: 1 0; - min: 14 0; - max: 14 -1; - rel1 { - relative: 1.0 0.0; - to: "field0"; - } - rel2.to: "field0"; - align: 0.0 0.5; - } - } - part { name: "field1"; - type: SWALLOW; - scale: 1; - description { state: "default" 0.0; - fixed: 1 0; - min: 206 0; - rel1 { - relative: 1.0 0.0; - to: "center.padding1"; - } - rel2 { - relative: 0.0 1.0; - to_x: "center.padding2"; - to_y: "center.padding1"; - } - } - } - part { name: "center.padding2"; - type: SPACER; - scale: 1; - description { state: "default" 0.0; - fixed: 1 0; - min: 14 0; - max: 14 -1; - rel1.to: "field2"; - rel2 { - relative: 0.0 1.0; - to: "field2"; - } - align: 1.0 0.5; - } - } - part { name: "field2"; - type: SWALLOW; - scale: 1; - description { state: "default" 0.0; - fixed: 1 0; - min: 206 0; - rel1.to: "right.padding"; - rel2 { - relative: 0.0 1.0; - to: "right.padding"; - } - align: 1.0 0.5; - } - } - part { name: "field3"; - type: SWALLOW; - scale: 1; - description { state: "default" 0.0; - fixed: 1 1; - min: 0 0; - max: 0 0; - visible: 0; - } - } - part { name: "field4"; - type: SWALLOW; - scale: 1; - description { state: "default" 0.0; - fixed: 1 1; - min: 0 0; - max: 0 0; - visible: 0; - } - } - part { name: "field5"; - type: SWALLOW; - scale: 1; - description { state: "default" 0.0; - fixed: 1 1; - min: 0 0; - max: 0 0; - visible: 0; - } - } - part { - name: "event_area"; - type: RECT; - description { state: "default" 0.0; - color: 0 0 0 0; - visible: 0; - } - description { state: "visible" 0.0; - inherit: "default" 0.0; - visible: 1; - } - } - part { name: "access"; - type: RECT; - repeat_events: 1; - description { state: "default" 0.0; - fixed: 1 1; - rel1.to: "bg"; - rel2.to: "bg"; - color: 0 0 0 0; - } - } - } -} -group { name: "elm/datetime/base/date_layout"; - inherit: "elm/datetime/base/default"; - parts { - part { name: "base_bg"; - type: RECT; - scale: 1; - description { state: "default" 0.0; - color_class: "datetime/date_layout/bg"; - } - } - } -} - -group { name: "elm/datetime/base/time_layout"; - parts { - part { name: "base_bg"; - type: RECT; - scale: 1; - description { state: "default" 0.0; - color_class: "datetime/time_layout/bg"; - } - } - part { name: "base"; - type: SPACER; - scale: 1; - description { state: "default" 0.0; - min: 603 406; - } - } - part { name: "bg.top.padding"; - type: SPACER; - scale: 1; - description { state: "default" 0.0; - min: 0 0; - max: -1 0; - fixed: 0 1; - rel1 { - relative: 0.0 0.0; - to: "base"; - } - rel2 { - relative: 1.0 0.0; - to: "base"; - } - align: 0.5 0.0; - } - } - part { name: "bg.bottom.padding"; - type: SPACER; - scale: 1; - description { state: "default" 0.0; - min: 0 0; - max: -1 0; - fixed: 0 1; - rel1 { - relative: 0.0 1.0; - to: "base"; - } - rel2 { - relative: 1.0 1.0; - to: "base"; - } - align: 0.5 1.0; - } - } - part { name: "bg"; - type: RECT; - scale: 1; - description { state: "default" 0.0; - min: 603 348; - max: 603 348; - rel1 { - relative: 0.0 1.0; - to: "bg.top.padding"; - } - rel2 { - relative: 1.0 0.0; - to: "bg.bottom.padding"; - } - color: 250 250 250 255; - } - } - part { name: "left.padding"; - type: SPACER; - scale: 1; - description { state: "default" 0.0; - min: 0 0; - max: 0 -1; - fixed: 1 0; - rel1 { - relative: 0.0 0.0; - to: "bg"; - } - rel2 { - relative: 0.0 1.0; - to: "bg"; - } - align: 0.0 0.0; - } - } - part { name: "right.padding"; - type: SPACER; - scale: 1; - description { state: "default" 0.0; - min: 0 0; - max: 0 -1; - fixed: 1 0; - rel1 { - relative: 1.0 0.0; - to: "bg"; - } - rel2 { - relative: 1.0 1.0; - to: "bg"; - } - align: 1.0 1.0; - } - } - part { name: "field3"; - type: SWALLOW; - scale: 1; - description { state: "default" 0.0; - fixed: 1 0; - min: 146 0; - rel1 { - relative: 1.0 0.0; - to: "left.padding"; - } - rel2.to: "left.padding"; - align: 0.0 0.5; - } - } - part { name: "center.padding1"; - type: SPACER; - scale: 1; - description { state: "default" 0.0; - fixed: 1 0; - min: 39 0; - max: 39 -1; - rel1 { - relative: 1.0 0.0; - to: "field3"; - } - rel2.to: "field3"; - align: 0.0 0.5; - } - description { state: "invisible" 0.0; - inherit: default 0.0; - min: 55 0; - max: 55 -1; - } - } - part { name: "text_bg"; - type: SPACER; - scale: 1; - description { state: "default" 0.0; - rel1 { - relative: 1.0 0.0; - to: "center.padding1"; - } - rel2.to: "center.padding1"; - align: 0.0 0.5; - min: 18 0; - max: 18 -1; - fixed: 1 0; - } - description { state: "invisible" 0.0; - inherit: default 0.0; - min: 0 0; - max: 0 0; - } - } - part { name: "hour.minute.colon"; - type: TEXT; - scale: 1; - description { state: "default" 0.0; - rel1.to: "text_bg"; - rel2.to: "text_bg"; - color: 0 0 0 255; - fixed: 1 1; - text { - min: 1 0; - font: "TizenSans:style=Light"; - size: "106"; - text: ":"; - align: 0.5 0.44; - } - visible: 1; - } - description { state: "invisible" 0.0; - inherit: default 0.0; - visible: 0; - } - } - part { name: "center.padding2"; - type: SPACER; - scale: 1; - description { state: "default" 0.0; - fixed: 1 0; - min: 39 0; - max: 39 -1; - rel1 { - relative: 1.0 0.0; - to: "text_bg"; - } - rel2.to: "text_bg"; - align: 0.0 0.5; - } - description { state: "invisible" 0.0; - inherit: default 0.0; - min: 0 0; - max: 0 0; - } - } - part { name: "field4"; - type: SWALLOW; - scale: 1; - description { state: "default" 0.0; - fixed: 1 0; - min: 146 0; - rel1 { - relative: 1.0 0.0; - to: "center.padding2"; - } - rel2.to: "center.padding2"; - align: 0.0 0.5; - } - } - part { name: "center.padding3"; - type: SPACER; - scale: 1; - description { state: "default" 0.0; - fixed: 1 0; - min: 39 0; - max: 39 -1; - rel1 { - relative: 1.0 0.0; - to: "field4"; - } - rel2.to: "field4"; - align: 0.0 0.5; - } - description { state: "invisible" 0.0; - inherit: default 0.0; - min: 55 0; - max: 55 -1; - } - } - part { name: "text_bg2"; - type: SPACER; - scale: 1; - description { state: "default" 0.0; - rel1 { - relative: 1.0 0.0; - to: "center.padding3"; - } - rel2.to: "center.padding3"; - align: 0.0 0.5; - min: 18 0; - max: 18 -1; - fixed: 1 0; - } - description { state: "invisible" 0.0; - inherit: default 0.0; - min: 0 0; - max: 0 0; - } - } - part { name: "hour.minute.colon2"; - type: TEXT; - scale: 1; - description { state: "default" 0.0; - rel1.to: "text_bg2"; - rel2.to: "text_bg2"; - color: 0 0 0 255; - fixed: 1 1; - text { - min: 1 0; - font: "TizenSans:style=Light"; - size: "106"; - text: ":"; - align: 0.5 0.44; - } - visible: 1; - } - description { state: "invisible" 0.0; - inherit: default 0.0; - visible: 0; - } - } - part { name: "center.padding4"; - type: SPACER; - scale: 1; - description { state: "default" 0.0; - fixed: 1 0; - min: 39 0; - max: 39 -1; - rel1 { - relative: 1.0 0.0; - to: "text_bg2"; - } - rel2.to: "text_bg2"; - align: 0.0 0.5; - } - description { state: "invisible" 0.0; - inherit: default 0.0; - min: 0 0; - max: 0 0; - } - } - part { name: "field5"; - type: SWALLOW; - scale: 1; - description { state: "default" 0.0; - fixed: 1 0; - min: 160 0; - max: 160 -1; - rel1 { - relative: 1.0 0.0; - to: "center.padding4"; - } - rel2.to: "center.padding4"; - align: 0.0 0.5; - } - } - part { name: "field0"; - type: SWALLOW; - scale: 1; - description { state: "default" 0.0; - fixed: 1 1; - min: 0 0; - max: 0 0; - visible: 0; - } - } - part { name: "field1"; - type: SWALLOW; - scale: 1; - description { state: "default" 0.0; - fixed: 1 1; - min: 0 0; - max: 0 0; - visible: 0; - } - } - part { name: "field2"; - type: SWALLOW; - scale: 1; - description { state: "default" 0.0; - fixed: 1 1; - min: 0 0; - max: 0 0; - visible: 0; - } - } - part { - name: "event_area"; - type: RECT; - description { state: "default" 0.0; - color: 0 0 0 0; - visible: 0; - } - description { state: "visible" 0.0; - inherit: "default" 0.0; - visible: 1; - } - } - part { name: "access"; - type: RECT; - repeat_events: 1; - description { state: "default" 0.0; - fixed: 1 1; - rel1.to: "bg"; - rel2.to: "bg"; - color: 0 0 0 0; - } - } - } - programs { - program { name: "colon_field3_visible"; - signal: "elm,state,colon,visible,field3"; - source: "elm"; - action: STATE_SET "default" 0.0; - target: "center.padding1"; - target: "hour.minute.colon"; - target: "text_bg"; - target: "center.padding2"; - } - program { name: "colon_field3_invisible"; - signal: "elm,state,colon,invisible,field3"; - source: "elm"; - action: STATE_SET "invisible" 0.0; - target: "center.padding1"; - target: "hour.minute.colon"; - target: "text_bg"; - target: "center.padding2"; - } - program { name: "colon_field4_visible"; - signal: "elm,state,colon,visible,field4"; - source: "elm"; - action: STATE_SET "default" 0.0; - target: "center.padding3"; - target: "hour.minute.colon2"; - target: "text_bg2"; - target: "center.padding4"; - } - program { name: "colon_field4_invisible"; - signal: "elm,state,colon,invisible,field4"; - source: "elm"; - action: STATE_SET "invisible" 0.0; - target: "center.padding3"; - target: "hour.minute.colon2"; - target: "text_bg2"; - target: "center.padding4"; - } - } -} - -group { name: "elm/datetime/base/time_layout_24hr"; - inherit: "elm/datetime/base/time_layout"; - - parts { - part { name: "base_bg"; - type: RECT; - scale: 1; - description { state: "default" 0.0; - color_class: "datetime/time_layout_24hr/bg"; - } - } - part { name: "base"; - type: SPACER; - scale: 1; - description { state: "default" 0.0; - min: 388 406; - } - } - part { name: "left.padding"; - type: SPACER; - scale: 1; - description { state: "default" 0.0; - min: 0 0; - max: 0 -1; - fixed: 1 0; - rel1 { - relative: 0.0 0.0; - to: "bg"; - } - rel2 { - relative: 0.0 1.0; - to: "bg"; - } - align: 0.0 0.0; - } - } - part { name: "right.padding"; - type: SPACER; - scale: 1; - description { state: "default" 0.0; - min: 0 0; - max: 0 -1; - fixed: 1 0; - rel1 { - relative: 1.0 0.0; - to: "bg"; - } - rel2 { - relative: 1.0 1.0; - to: "bg"; - } - align: 1.0 1.0; - } - } - part { name: "bg"; - type: RECT; - scale: 1; - description { state: "default" 0.0; - min: 388 348; - max: 388 348; - rel1 { - relative: 0.0 1.0; - to: "bg.top.padding"; - } - rel2 { - relative: 1.0 0.0; - to: "bg.bottom.padding"; - } - color: 250 250 250 255; - } - } - part { name: "field5"; - type: SWALLOW; - scale: 1; - description { state: "default" 0.0; - min: 0 0; - max: 0 -1; - visible: 0; - rel1.to: "right.padding"; - rel2.to: "right.padding"; - } - } - part { name: "access"; - type: RECT; - repeat_events: 1; - description { state: "default" 0.0; - fixed: 1 1; - rel1.to: "bg"; - rel2.to: "bg"; - color: 0 0 0 0; - } - } - } -} diff --git a/ElmSharp/theme/tv/widgets/entry.edc b/ElmSharp/theme/tv/widgets/entry.edc deleted file mode 100644 index fe479ad..0000000 --- a/ElmSharp/theme/tv/widgets/entry.edc +++ /dev/null @@ -1,1710 +0,0 @@ -/* - * Copyright (c) 2010 Samsung Electronics Co., Ltd All Rights Reserved - * - * BSD 2-Clause License (http://www.opensource.org/licenses/bsd-license.php) - * - * Redistribution and use in source and binary forms, with or without - * modification, are permitted provided that the following conditions are met: - * - * 1. Redistributions of source code must retain the above copyright notice, this - * list of conditions and the following disclaimer. - * 2. Redistributions in binary form must reproduce the above copyright notice, - * this list of conditions and the following disclaimer in the documentation - * and/or other materials provided with the distribution. - * - * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND - * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED - * WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE - * DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR - * ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES - * (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; - * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND - * ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT - * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS - * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. - */ - -#define ENTRY_TEXT_SIZE_INC 60 -#define ENTRY_PREEDIT_BACKGROUND_COLOR_INC "#FAFAFA" -#define ENTRY_PREEDIT_TEXT_COLOR_INC "#000000" -#define ENTRY_PREEDIT_UNDERLINE_COLOR_INC "#FAFAFA" -#define ENTRY_PREEDIT_SUB1_COLOR_INC "#2EA8E1" -#define ENTRY_PREEDIT_SUB2_COLOR_INC "#9962C3" -#define ENTRY_PREEDIT_SUB3_COLOR_INC "#76DE37" -#define ENTRY_PREEDIT_SUB4_COLOR_INC "#999999" -#define DEFAULT_COLOR 69 143 255 255 - -styles -{ - style { name: "entry_single_textblock_style"; - base: "font="FONT_M" font_size="32" align=left color=#FFF wrap=none text_class=entry left_margin=0 right_margin=0 color_class=entry/default/text_edit"; - tag: "br" ""; - tag: "ps" ""; - tag: "em" "+ font_style=Oblique"; - tag: "link" "+ color=#800 underline=on underline_color=#8008"; - tag: "hilight" "+ font_weight=Bold"; - tag: "preedit" "+ underline=on underline_color=#000"; - tag: "preedit_sel" "+ backing=on backing_color=#000 color=#FFFFFF"; - } - style { name: "entry_single_textblock_selected_style"; - base: "font="FONT_M" font_size="32" align=left color=#FFF wrap=none text_class=entry left_margin=0 right_margin=0 color_class=entry/default/text_edit_focused"; - tag: "br" ""; - tag: "ps" ""; - tag: "em" "+ font_style=Oblique"; - tag: "link" "+ color=#800 underline=on underline_color=#8008"; - tag: "hilight" "+ font_weight=Bold"; - tag: "preedit" "+ underline=on underline_color=#000"; - tag: "preedit_sel" "+ backing=on backing_color=#000 color=#FFFFFF"; - } - style { name: "entry_single_textblock_disabled_style"; - base: "font="FONT_M" font_size="32" align=left color=#FFF wrap=none text_class=entry left_margin=0 right_margin=0 color_class=entry/default/text_edit_disabled"; - tag: "br" ""; - tag: "ps" ""; - tag: "em" "+ font_style=Oblique"; - tag: "link" "+ color=#00000080 underline=on underline_color=#00000080"; - tag: "hilight" "+ font_weight=Bold"; - tag: "preedit" "+ underline=on underline_color=#000"; - tag: "preedit_sel" "+ backing=on backing_color=#000 color=#FFFFFF"; - } - style { name: "entry_single_textblock_guide_style"; - base: "font="FONT_M" font_size="32" align=left color=#FFF wrap=none text_class=entry left_margin=0 right_margin=0 ellipsis=0.0 color_class=entry/default/text_guide"; - tag: "br" ""; - tag: "ps" ""; - tag: "em" "+ font_style=Oblique"; - tag: "hilight" "+ font_weight=Bold"; - } -} -styles -{ - style { name: "entry_textblock_style"; - base: "font="FONT_M" font_size="32" align=left color=#FFF wrap=none text_class=entry left_margin=0 right_margin=0 color_class=entry/default/text_edit"; - tag: "em" "+ font_style=Oblique"; - tag: "link" "+ color=#800 underline=on underline_color=#8008"; - tag: "hilight" "+ font_weight=Bold"; - tag: "preedit" "+ underline=on underline_color=#000"; - tag: "preedit_sel" "+ backing=on backing_color=#000 color=#000"; - } - style { name: "entry_textblock_selected_style"; - base: "font="FONT_M" font_size="32" align=left color=#FFF wrap=none text_class=entry left_margin=0 right_margin=0 color_class=entry/default/text_focused"; - tag: "em" "+ font_style=Oblique"; - tag: "link" "+ color=#800 underline=on underline_color=#8008"; - tag: "hilight" "+ font_weight=Bold"; - tag: "preedit" "+ underline=on underline_color=#000"; - tag: "preedit_sel" "+ backing=on backing_color=#000 color=#000"; - } - style { name: "entry_textblock_disabled_style"; - base: "font="FONT_M" font_size="32" align=left color=#FFF wrap=none text_class=entry left_margin=0 right_margin=0 color_class=entry/default/text_edit_disabled"; - tag: "em" "+ font_style=Oblique"; - tag: "link" "+ color=#00000080 underline=on underline_color=#00000080"; - tag: "hilight" "+ font_weight=Bold"; - tag: "preedit" "+ underline=on underline_color=#000"; - tag: "preedit_sel" "+ backing=on backing_color=#000 color=#000"; - } - style { name: "entry_textblock_guide_style"; - base: "font="FONT_M" font_size="32" align=left color=#FFF wrap=none text_class=entry left_margin=0 right_margin=0 ellipsis=0.0 color_class=entry/default/text_guide"; - tag: "em" "+ font_style=Oblique"; - tag: "hilight" "+ font_weight=Bold"; - } -} -styles -{ - style { name: "entry_pin_textblock_style"; - base: "font="FONT_M" font_size="34" align=center color=#3d3d3d wrap=none text_class=entry left_margin=0 right_margin=0"; - tag: "br" ""; - tag: "ps" ""; - tag: "em" "+ font_style=Oblique"; - tag: "link" "+ color=#800 underline=on underline_color=#8008"; - tag: "hilight" "+ font_weight=Bold"; - tag: "preedit" "+ underline=on underline_color=#000"; - tag: "preedit_sel" "+ backing=on backing_color=#000 color=#FFFFFF"; - } - style { name: "entry_pin_textblock_selected_style"; - base: "font="FONT_M" font_size="34" align=center color=#3d3d3d wrap=none text_class=entry left_margin=0 right_margin=0"; - tag: "br" ""; - tag: "ps" ""; - tag: "em" "+ font_style=Oblique"; - tag: "link" "+ color=#800 underline=on underline_color=#8008"; - tag: "hilight" "+ font_weight=Bold"; - tag: "preedit" "+ underline=on underline_color=#000"; - tag: "preedit_sel" "+ backing=on backing_color=#000 color=#FFFFFF"; - } - style { name: "entry_pin_textblock_disabled_style"; - base: "font="FONT_M" font_size="34" align=center color=#3d3d3d wrap=none text_class=entry left_margin=0 right_margin=0"; - tag: "br" ""; - tag: "ps" ""; - tag: "em" "+ font_style=Oblique"; - tag: "link" "+ color=#00000080 underline=on underline_color=#00000080"; - tag: "hilight" "+ font_weight=Bold"; - tag: "preedit" "+ underline=on underline_color=#000"; - tag: "preedit_sel" "+ backing=on backing_color=#000 color=#FFFFFF"; - } - style { name: "entry_pin_textblock_guide_style"; - base: "font="FONT_M" font_size="34" align=center color=#3d3d3d wrap=none text_class=entry left_margin=0 right_margin=0 ellipsis=0.0"; - tag: "br" ""; - tag: "ps" ""; - tag: "em" "+ font_style=Oblique"; - tag: "hilight" "+ font_weight=Bold"; - } -} -styles -{ - style { name: "entry_single_small_textblock_style"; - base: "font="FONT_M" font_size="24" align=left color=#3d3d3d wrap=none text_class=entry left_margin=0 right_margin=0"; - tag: "br" ""; - tag: "ps" ""; - tag: "em" "+ font_style=Oblique"; - tag: "link" "+ color=#800 underline=on underline_color=#8008"; - tag: "hilight" "+ font_weight=Bold"; - tag: "preedit" "+ underline=on underline_color=#000"; - tag: "preedit_sel" "+ backing=on backing_color=#000 color=#FFFFFF"; - } - style { name: "entry_single_small_textblock_selected_style"; - base: "font="FONT_M" font_size="24" align=left color=#3d3d3d wrap=none text_class=entry left_margin=0 right_margin=0"; - tag: "br" ""; - tag: "ps" ""; - tag: "em" "+ font_style=Oblique"; - tag: "link" "+ color=#800 underline=on underline_color=#8008"; - tag: "hilight" "+ font_weight=Bold"; - tag: "preedit" "+ underline=on underline_color=#000"; - tag: "preedit_sel" "+ backing=on backing_color=#000 color=#FFFFFF"; - } - style { name: "entry_single_small_textblock_disabled_style"; - base: "font="FONT_M" font_size="24" align=left color=#3d3d3d wrap=none text_class=entry left_margin=0 right_margin=0"; - tag: "br" ""; - tag: "ps" ""; - tag: "em" "+ font_style=Oblique"; - tag: "link" "+ color=#00000080 underline=on underline_color=#00000080"; - tag: "hilight" "+ font_weight=Bold"; - tag: "preedit" "+ underline=on underline_color=#000"; - tag: "preedit_sel" "+ backing=on backing_color=#000 color=#FFFFFF"; - } - style { name: "entry_single_small_textblock_guide_style"; - base: "font="FONT_M" font_size="24" align=left color=#7f7f7f wrap=none text_class=entry left_margin=0 right_margin=0 ellipsis=0.0"; - tag: "br" ""; - tag: "ps" ""; - tag: "em" "+ font_style=Oblique"; - tag: "hilight" "+ font_weight=Bold"; - } -} -styles -{ - style { name: "entry_textblock_style_mixedwrap"; - base: "font="FONT_M" font_size="32" color=#000 wrap=mixed text_class=entry left_margin=2 right_margin=2"; - tag: "em" "+ font_style=Oblique"; - tag: "link" "+ color=#800 underline=on underline_color=#8008"; - tag: "hilight" "+ font_weight=Bold"; - tag: "preedit" "+ underline=on underline_color=#000"; - tag: "preedit_sel" "+ backing=on backing_color=#000 color=#000"; - } - style { name: "entry_textblock_selected_style_mixedwrap"; - base: "font="FONT_M" font_size="32" color=#019cff wrap=word text_class=entry left_margin=2 right_margin=2"; - tag: "em" "+ font_style=Oblique"; - tag: "link" "+ color=#800 underline=on underline_color=#8008"; - tag: "hilight" "+ font_weight=Bold"; - tag: "preedit" "+ underline=on underline_color=#000"; - tag: "preedit_sel" "+ backing=on backing_color=#000 color=#000"; - } - style { name: "entry_textblock_disabled_style_mixedwrap"; - base: "font="FONT_M" font_size="32" color=#919191 wrap=char text_class=entry left_margin=2 right_margin=2"; - tag: "em" "+ font_style=Oblique"; - tag: "link" "+ color=#00000080 underline=on underline_color=#00000080"; - tag: "hilight" "+ font_weight=Bold"; - tag: "preedit" "+ underline=on underline_color=#000"; - tag: "preedit_sel" "+ backing=on backing_color=#000 color=#000"; - } - style { name: "entry_textblock_guide_style_mixedwrap"; - base: "font="FONT_M" font_size="32" color=#7f7f7f wrap=mixed text_class=entry left_margin=2 right_margin=2 ellipsis=0.0"; - tag: "em" "+ font_style=Oblique"; - tag: "hilight" "+ font_weight=Bold"; - } -} -styles -{ - style { name: "entry_textblock_style_charwrap"; - base: "font="FONT_M" font_size="32" color=#000 wrap=char text_class=entry left_margin=2 right_margin=2"; - tag: "em" "+ font_style=Oblique"; - tag: "link" "+ color=#800 underline=on underline_color=#8008"; - tag: "hilight" "+ font_weight=Bold"; - tag: "preedit" "+ underline=on underline_color=#000"; - tag: "preedit_sel" "+ backing=on backing_color=#000 color=#000"; - } - style { name: "entry_textblock_selected_style_charwrap"; - base: "font="FONT_M" font_size="32" color=#019cff wrap=word text_class=entry left_margin=2 right_margin=2"; - tag: "em" "+ font_style=Oblique"; - tag: "link" "+ color=#800 underline=on underline_color=#8008"; - tag: "hilight" "+ font_weight=Bold"; - tag: "preedit" "+ underline=on underline_color=#000"; - tag: "preedit_sel" "+ backing=on backing_color=#000 color=#000"; - } - style { name: "entry_textblock_disabled_style_charwrap"; - base: "font="FONT_M" font_size="32" color=#919191 wrap=char text_class=entry left_margin=2 right_margin=2"; - tag: "em" "+ font_style=Oblique"; - tag: "link" "+ color=#00000080 underline=on underline_color=#00000080"; - tag: "hilight" "+ font_weight=Bold"; - tag: "preedit" "+ underline=on underline_color=#000"; - tag: "preedit_sel" "+ backing=on backing_color=#000 color=#000"; - } - style { name: "entry_textblock_guide_style_charwrap"; - base: "font="FONT_M" font_size="32" color=#7f7f7f wrap=char text_class=entry left_margin=2 right_margin=2 ellipsis=0.0"; - tag: "em" "+ font_style=Oblique"; - tag: "hilight" "+ font_weight=Bold"; - } -} - -images { - image: "search_searchbar_bg_foc.png" COMP; - image: "search_searchbar_bg_nor.png" COMP; - image: "search_searchbar_small_bg_foc.png" COMP; - image: "search_searchbar_small_bg_nor.png" COMP; -} - -/********************************************************************************* -Document: Tizen TV_General Guide_GUI Guideline_v1.1_140709.ppt -Page No. 103 -stlye: Text Input Field -**********************************************************************************/ -group { name: "elm/scroller/entry/input.field"; - inherit: "elm/scroller/base/default"; - alias: "elm/scroller/entry_single/input.field"; - parts { - part { name: "pad.left"; type: SPACER; - scale: 1; - description { state: "default" 0.0; - min: 28 5; - max: 28 5; - fixed: 1 1; - rel1.to: "bg"; - align: 0.0 0.0; - } - } - part { name: "pad.right"; type: SPACER; - scale: 1; - description { state: "default" 0.0; - min: 30 5; - max: 30 5; - fixed: 1 1; - rel2.to: "bg"; - align: 1.0 1.0; - } - } - part { name: "base_highlight"; - after: "bg"; - scale: 1; - description { state: "default" 0.0; - rel1.to: "bg"; - rel2.to: "bg"; - image { - normal: "search_searchbar_bg_nor.png"; - border: 5 5 5 5; - border_scale: 1; - } - } - description { state: "selected" 0.0; - inherit: "default" 0.0; - image.normal: "search_searchbar_bg_foc.png"; - } - description { state: "over" 0.0; - inherit: "default" 0.0; - image.normal: "search_searchbar_bg_foc.png"; - } - description { state: "disabled" 0.0; - inherit: "default" 0.0; - image.normal: "search_searchbar_bg_nor.png"; - } - description { state: "highlight" 0.0; - inherit: "default" 0.0; - image.normal: "search_searchbar_bg_foc.png"; - } - description { state: "normal" 0.0; - inherit: "default" 0.0; - image.normal: "search_searchbar_bg_nor.png"; - } - } - part { name: "clipper"; - description { state: "default" 0.0; - rel1.to: "pad.left"; - rel1.relative: 1.0 1.0; - rel2.to: "pad.right"; - rel2.relative: 0.0 0.0; - } - } - part { name: "elm.swallow.content"; - description { state: "default" 0.0; - rel1.to: "pad.left"; - rel1.relative: 1.0 1.0; - rel2.to: "pad.right"; - rel2.relative: 0.0 0.0; - } - } - } - programs { - program { name: "disable"; - signal: "elm,state,disabled"; source: "elm"; - action: STATE_SET "disabled" 0.0; - target: "base_highlight"; - } - program { name: "select"; - signal: "elm,state,selected"; source: "elm"; - action: STATE_SET "selected" 0.0; - target: "base_highlight"; - } - program { name: "over"; - signal: "elm,state,mouse,in"; source: "elm"; - action: STATE_SET "over" 0.0; - target: "base_highlight"; - } - program { name: "enable"; - signal: "elm,state,enabled"; source: "elm"; - action: STATE_SET "default" 0.0; - target: "base_highlight"; - } - program { name: "go_active"; - signal: "elm,state,selected"; source: "elm"; - action: STATE_SET "selected" 0.0; - target: "base_highlight"; - } - program { name: "go_passive"; - signal: "elm,state,unselected"; source: "elm"; - action: STATE_SET "default" 0.0; - target: "base_highlight"; - } - program { name: "highlight_show"; - signal: "elm,action,focus_highlight,show"; source: "elm"; - action: STATE_SET "selected" 0.0; - transition: ACCELERATE 0.01; - target: "base_highlight"; - } - program { name: "highlight_hide"; - signal: "elm,action,focus_highlight,hide"; source: "elm"; - action: STATE_SET "normal" 0.0; - transition: DECELERATE 0.01; - target: "base_highlight"; - } - } -} - -/********************************************************************************* -Document: Tizen TV_General Guide_GUI Guideline_v1.1_140709.ppt -Page No. 103 -stlye: Text Input Field with Icon -**********************************************************************************/ -group { name: "elm/scroller/entry/input.field.icon"; - inherit: "elm/scroller/entry/input.field"; - alias: "elm/scroller/entry_single/input.field.icon"; - parts { - part { name: "pad.left"; - description { state: "default" 0.0; - min: 15 5; - max: 15 5; - } - } - part { name: "pad.right"; - description { state: "default" 0.0; - min: 30 5; - max: 30 5; - } - } - part { name: "icon_base"; type: RECT; - scale: 1; - description { state: "default" 0.0; - color: 197 200 203 255; - } - } - part { name: "elm.swallow.icon"; type: SWALLOW; - scale: 1; - clip_to: "icon_base"; - description { state: "default" 0.0; - min: 60 60; - max: 60 60; - fixed: 1 1; - rel1.to: "pad.left"; - rel1.relative: 1.0 1.0; - rel2.to_x: "pad.left"; - rel2.to_y: "pad.right"; - rel2.relative: 1.0 0.0; - align: 0.0 0.5; - aspect_preference: BOTH; - } - } - part { name: "clipper"; - description { state: "default" 0.0; - rel1.to_x: "elm.swallow.icon"; - } - } - part { name: "elm.swallow.content"; - description { state: "default" 0.0; - rel1.to_x: "elm.swallow.icon"; - } - } - } -} - -/********************************************************************************* -Document: Tizen TV_General Guide_GUI Guideline_v1.1_140709.ppt -Page No. 105 -stlye: Text Input Field -**********************************************************************************/ -group { name: "elm/scroller/entry/input.field.small"; - inherit: "elm/scroller/entry/input.field"; - alias: "elm/scroller/entry_single/input.field.small"; - parts { - part { name: "pad.left"; - description { state: "default" 0.0; - min: 18 4; - max: 18 4; - } - } - part { name: "pad.right"; - description { state: "default" 0.0; - min: 18 4; - max: 18 4; - } - } - part { name: "base_highlight"; - description { state: "default" 0.0; - image { - normal: "search_searchbar_small_bg_nor.png"; - border: 4 4 4 4; - border_scale: 1; - } - } - description { state: "selected" 0.0; - inherit: "default" 0.0; - image.normal: "search_searchbar_small_bg_foc.png"; - } - description { state: "over" 0.0; - inherit: "default" 0.0; - image.normal: "search_searchbar_small_bg_foc.png"; - } - description { state: "disabled" 0.0; - inherit: "default" 0.0; - image.normal: "search_searchbar_small_bg_nor.png"; - } - description { state: "highlight" 0.0; - inherit: "default" 0.0; - image.normal: "search_searchbar_small_bg_foc.png"; - } - description { state: "normal" 0.0; - inherit: "default" 0.0; - image.normal: "search_searchbar_small_bg_nor.png"; - } - } - } -} - -/********************************************************************************* -Document: Tizen TV_General Guide_GUI Guideline_v1.1_140709.ppt -Page No. 105 -stlye: Text Input Field with Icon -**********************************************************************************/ -group { name: "elm/scroller/entry/input.field.small.icon"; - inherit: "elm/scroller/entry/input.field.small"; - alias: "elm/scroller/entry_single/input.field.small.icon"; - parts { - part { name: "pad.left"; type: SPACER; - description { state: "default" 0.0; - min: 14 5; - max: 14 5; - } - } - part { name: "pad.right"; - description { state: "default" 0.0; - min: 18 5; - max: 18 5; - } - } - part { name: "icon_base"; type: RECT; - scale: 1; - description { state: "default" 0.0; - color: 158 158 158 178; - } - } - part { name: "elm.swallow.icon"; type: SWALLOW; - scale: 1; - clip_to: "icon_base"; - description { state: "default" 0.0; - min: 60 60; - max: 60 60; - fixed: 1 1; - rel1.to: "pad.left"; - rel1.relative: 1.0 1.0; - rel2.to_x: "pad.left"; - rel2.to_y: "pad.right"; - rel2.relative: 1.0 0.0; - align: 0.0 0.5; - aspect_preference: BOTH; - } - } - - part { name: "clipper"; - description { state: "default" 0.0; - rel1.to_x: "pad.icon"; - } - } - part { name: "elm.swallow.content"; - description { state: "default" 0.0; - rel1.to_x: "pad.icon"; - } - } - part { name: "pad.icon"; type: SPACER; - scale: 1; - description { state: "default" 0.0; - min: 8 40; - max: 8 40; - fixed: 1 1; - rel1.to: "elm.swallow.icon"; - rel1.relative: 1.0 0.5; - align: 0.0 0.5; - } - } - } -} - -/********************************************************************************* -Document: Tizen TV_General Guide_GUI Guideline_v1.1_140709.ppt -Page No. 103 -stlye: Text Input Field -**********************************************************************************/ -group { name: "elm/entry/base/input.field"; - alias: "elm/entry/base/default"; - data { - item: "focus_highlight" "on"; - } - parts { - part { name: "elm.guide"; type: TEXTBLOCK; mouse_events: 0; - scale: 1; - description { state: "default" 0.0; - rel1.to: "elm.text"; - rel2.to: "elm.text"; - text { - style: "entry_textblock_guide_style"; - min: 0 1; - } - } - description { state: "hidden" 0.0; - inherit: "default" 0.0; - visible: 0; - } - } - part { name: "elm.text"; type: TEXTBLOCK; mouse_events: 1; - scale: 1; - entry_mode: EDITABLE; - select_mode: DEFAULT; - cursor_mode: BEFORE; - multiline: 1; - source: "elm/entry/selection/input.field"; - source4: "elm/entry/cursor/input.field"; - source5: "elm/entry/anchor/input.field"; - description { state: "default" 0.0; - text { - style: "entry_textblock_style"; - min: 0 1; - align: 0.0 0.5; - } - } - description { state: "disabled" 0.0; - inherit: "default" 0.0; - text { - style: "entry_textblock_disabled_style"; - min: 0 1; - } - } - description { state: "selected" 0.0; - inherit: "default" 0.0; - text { - style: "entry_textblock_selected_style"; - min: 0 1; - } - } - description { state: "highlight" 0.0; - inherit: "default" 0.0; - text { - style: "entry_textblock_selected_style"; - min: 0 1; - } - } - description { state: "enabled" 0.0; - inherit: "default" 0.0; - text { - style: "entry_textblock_style"; - min: 0 1; - } - } - } - } - programs { - program { name: "focus"; - signal: "load"; source: ""; - action: FOCUS_SET; - target: "elm.text"; - } - program { name: "disable"; - signal: "elm,state,disabled"; source: "elm"; - action: STATE_SET "disabled" 0.0; - target: "elm.text"; - } - program { name: "select"; - signal: "elm,state,selected"; source: "elm"; - action: STATE_SET "selected" 0.0; - target: "elm.text"; - } - program { name: "over"; - signal: "elm,state,mouse,in"; source: "elm"; - action: STATE_SET "over" 0.0; - target: "elm.text"; - } - program { name: "enable"; - signal: "elm,state,enabled"; source: "elm"; - action: STATE_SET "default" 0.0; - target: "elm.text"; - target: "elm.guide"; - } - program { name: "go_active"; - signal: "elm,state,selected"; source: "elm"; - action: STATE_SET "selected" 0.0; - target: "elm.text"; - target: "elm.guide"; - } - program { name: "go_passive"; - signal: "elm,state,unselected"; source: "elm"; - action: STATE_SET "default" 0.0; - target: "elm.text"; - target: "elm.guide"; - } - program { name: "gdisable"; - signal: "elm,guide,disabled"; source: "elm"; - action: STATE_SET "hidden" 0.0; - target: "elm.guide"; - } - program { name: "genable"; - signal: "elm,guide,enabled"; source: "elm"; - action: STATE_SET "default" 0.0; - target: "elm.guide"; - } - program { name: "highlight_show"; - signal: "elm,action,focus_highlight,show"; source: "elm"; - action: STATE_SET "selected" 0.0; - transition: ACCELERATE 0.01; - target: "elm.text"; - } - program { name: "highlight_hide"; - signal: "elm,action,focus_highlight,hide"; source: "elm"; - action: STATE_SET "normal" 0.0; - transition: DECELERATE 0.01; - target: "elm.text"; - } - } -} - -/***************************************************************************************** -Document: Tizen TV_General Guide_GUI Guideline_v1.1_140709.ppt -Page No. 103 -style: Text Input Field -*******************************************************************************************/ -group { name: "elm/entry/base-single/input.field"; - inherit: "elm/entry/base/input.field"; - alias: "elm/entry/base-single/input.field.icon"; - parts { - part { name: "elm.guide"; type: TEXTBLOCK; mouse_events: 0; - scale: 1; - description { state: "default" 0.0; - rel1.to: "elm.text"; - rel2.to: "elm.text"; - text { - style: "entry_single_textblock_guide_style"; - min: 0 1; - } - } - description { state: "hidden" 0.0; - inherit: "default" 0.0; - visible: 0; - } - } - part { name: "elm.text"; type: TEXTBLOCK; mouse_events: 1; - scale: 1; - multiline: 0; - description { state: "default" 0.0; - text { - style: "entry_single_textblock_style"; - min: 1 1; - ellipsis: -1; - max: 0 0; - align: 0.0 0.5; - } - } - description { state: "disabled" 0.0; - inherit: "default" 0.0; - text { - style: "entry_single_textblock_disabled_style"; - } - } - description { state: "selected" 0.0; - inherit: "default" 0.0; - text { - style: "entry_single_textblock_selected_style"; - min: 0 1; - } - } - description { state: "enabled" 0.0; - inherit: "default" 0.0; - text { - style: "entry_single_textblock_style"; - min: 0 1; - } - } - } - } -} - -/***************************************************************************************** -Document: Tizen TV_General Guide_GUI Guideline_v1.1_140709.ppt -Page No. 103 -style : Text Input Field -NO EDIT -**************************************************************************/ -group { name: "elm/entry/base-single-noedit/input.field"; - inherit: "elm/entry/base/input.field"; - parts { - part { name: "elm.guide"; type: TEXTBLOCK; mouse_events: 0; - scale: 1; - description { state: "default" 0.0; - rel1.to: "elm.text"; - rel2.to: "elm.text"; - text { - style: "entry_single_textblock_guide_style"; - min: 0 1; - } - } - description { state: "hidden" 0.0; - inherit: "default" 0.0; - visible: 0; - } - } - part { name: "elm.text"; - entry_mode: PLAIN; - multiline: 0; - scale: 1; - source: "elm/entry/selection/input.field"; - source4: ""; - source5: "elm/entry/anchor/input.field"; - description { state: "default" 0.0; - text { - style: "entry_single_textblock_style"; - min: 1 1; - ellipsis: -1; - max: 0 0; - align: 0.0 0.5; - } - } - description { state: "disabled" 0.0; - inherit: "default" 0.0; - text { - style: "entry_single_textblock_disabled_style"; - } - } - } - } -} - -/***************************************************************************************** -Document: Tizen TV_General Guide_GUI Guideline_v1.1_140709.ppt -Page No. 103 -style : Text Input Field -PASSWORD -********************************************************************************************/ -group { name: "elm/entry/base-password/input.field"; - inherit: "elm/entry/base/input.field"; - parts { - part { name: "elm.guide"; type: TEXTBLOCK; mouse_events: 0; - scale: 1; - description { state: "default" 0.0; - rel1.to: "elm.text"; - rel2.to: "elm.text"; - text { - style: "entry_single_textblock_guide_style"; - min: 0 1; - align: 0.0 0.0; - } - } - description { state: "hidden" 0.0; - inherit: "default" 0.0; - visible: 0; - } - } - part { name: "elm.text"; type: TEXTBLOCK; mouse_events: 1; - entry_mode: PASSWORD; - cursor_mode: BEFORE; - select_mode: EXPLICIT; - scale: 1; - multiline: 0; - source: "elm/entry/selection/input.field"; - source4: "elm/entry/cursor/input.field"; - source5: "elm/entry/anchor/input.field"; - description { state: "default" 0.0; - text { - style: "entry_single_textblock_style"; - repch: "*"; - min: 1 1; - ellipsis: -1; - max: 0 0; - align: 0.0 0.5; - } - } - description { state: "disabled" 0.0; - inherit: "default" 0.0; - text { - style: "entry_single_textblock_disabled_style"; - } - } - description { state: "selected" 0.0; - inherit: "default" 0.0; - text { - style: "entry_textblock_selected_style"; - min: 0 1; - } - } - description { state: "enabled" 0.0; - inherit: "default" 0.0; - text { - style: "entry_textblock_style"; - min: 0 1; - } - } - } - } -} - -/***************************************************************************************** -Document: Tizen TV_General Guide_GUI Guideline_v1.1_140709.ppt -Page No. 104 -style : Text Input Field, pin style -Summmary: This style of entry is to get middle-aligned text. -***************************************************************************************/ -group { name: "elm/entry/base-single/input.field.pin"; - alias: "elm/entry/base/input.field.pin"; - inherit: "elm/entry/base-single/input.field"; - parts { - part { name: "pad.left"; type: SPACER; - scale: 1; - description { state: "default" 0.0; - min: 18 5; - max: 18 5; - fixed: 1 1; - align: 0.0 0.0; - } - } - part { name: "pad.right"; type: SPACER; - scale: 1; - description { state: "default" 0.0; - min: 18 5; - max: 18 5; - fixed: 1 1; - align: 1.0 1.0; - } - } - part { name: "base_highlight"; - before: "elm.text"; - scale: 1; - description { state: "default" 0.0; - image { - normal: "search_searchbar_bg_nor.png"; - border: 5 5 5 5; - border_scale: 1; - } - } - description { state: "selected" 0.0; - inherit: "default" 0.0; - image.normal: "search_searchbar_bg_foc.png"; - } - description { state: "over" 0.0; - inherit: "default" 0.0; - image.normal: "search_searchbar_bg_foc.png"; - } - description { state: "disabled" 0.0; - inherit: "default" 0.0; - image.normal: "search_searchbar_bg_nor.png"; - } - description { state: "highlight" 0.0; - inherit: "default" 0.0; - image.normal: "search_searchbar_bg_foc.png"; - } - description { state: "normal" 0.0; - inherit: "default" 0.0; - image.normal: "search_searchbar_bg_nor.png"; - } - } - part { name: "elm.text"; - entry_mode: EDITABLE; - select_mode: EXPLICIT; - cursor_mode: UNDER; - multiline: 0; - scale: 1; - description { state: "default" 0.0; - rel1.to: "pad.left"; - rel1.relative: 1.0 1.0; - rel2.to: "pad.right"; - rel2.relative: 0.0 0.0; - text { - style: "entry_pin_textblock_style"; - min: 1 1; - ellipsis: -1; - max: 0 0; - } - } - description { state: "disabled" 0.0; - inherit: "default" 0.0; - text { - style: "entry_pin_textblock_disabled_style"; - } - } - description { state: "selected" 0.0; - inherit: "default" 0.0; - text { - style: "entry_pin_textblock_selected_style"; - min: 0 1; - } - } - description { state: "enabled" 0.0; - inherit: "default" 0.0; - text { - style: "entry_pin_textblock_style"; - min: 0 1; - } - } - } - } - programs { - program { name: "disable"; - target: "base_highlight"; - } - program { name: "select"; - target: "base_highlight"; - } - program { name: "over"; - signal: "elm,state,mouse,in"; source: "elm"; - action: STATE_SET "over" 0.0; - target: "base_highlight"; - } - program { name: "enable"; - target: "base_highlight"; - } - program { name: "go_active"; - target: "base_highlight"; - } - program { name: "go_passive"; - target: "base_highlight"; - } - program { name: "highlight_show"; - target: "base_highlight"; - } - program { name: "highlight_hide"; - target: "base_highlight"; - } - } -} - -/***************************************************************************************** -Document: Tizen TV_General Guide_GUI Guideline_v1.1_140709.ppt -Page No. 104 -style : Text Input Field, pin style, password mode -Summmary: This style of entry is to get middle-aligned text in password mode. -***************************************************************************************/ -group { name: "elm/entry/base-password/input.field.pin"; - inherit: "elm/entry/base-single/input.field.pin"; - parts { - part { name: "elm.text"; - entry_mode: PASSWORD; - select_mode: EXPLICIT; - cursor_mode: UNDER; - multiline: 0; - scale: 1; - source: "elm/entry/selection/input.field"; - source4: "elm/entry/cursor/input.field"; - source5: "elm/entry/anchor/input.field"; - description { state: "default" 0.0; - text { - style: "entry_pin_textblock_style"; - min: 1 1; - ellipsis: -1; - max: 0 0; - } - } - description { state: "disabled" 0.0; - inherit: "default" 0.0; - text { - style: "entry_pin_textblock_disabled_style"; - } - } - description { state: "selected" 0.0; - inherit: "default" 0.0; - text { - style: "entry_pin_textblock_selected_style"; - min: 0 1; - } - } - description { state: "enabled" 0.0; - inherit: "default" 0.0; - text { - style: "entry_pin_textblock_style"; - min: 0 1; - } - } - } - } -} - -/***************************************************************************************** -Document: Tizen TV_General Guide_GUI Guideline_v1.1_140709.ppt -Page No. 105 -style: Text Input Field Small -*******************************************************************************************/ -group { name: "elm/entry/base-single/input.field.small"; - inherit: "elm/entry/base/input.field"; - alias: "elm/entry/base-single/input.field.small.icon"; - parts { - part { name: "elm.guide"; type: TEXTBLOCK; mouse_events: 0; - scale: 1; - description { state: "default" 0.0; - rel1.to: "elm.text"; - rel2.to: "elm.text"; - text { - style: "entry_single_small_textblock_guide_style"; - min: 0 1; - } - } - description { state: "hidden" 0.0; - inherit: "default" 0.0; - visible: 0; - } - } - part { name: "elm.text"; - scale: 1; - entry_mode: EDITABLE; - select_mode: DEFAULT; - cursor_mode: BEFORE; - multiline: 0; - source: "elm/entry/selection/input.field"; - source4: "elm/entry/cursor/input.field.small"; - source5: "elm/entry/anchor/input.field"; - description { state: "default" 0.0; - color: 61 61 61 127; - text { - style: "entry_single_small_textblock_style"; - min: 1 1; - max: 0 0; - align: 0.0 0.5; - ellipsis: -1; - } - } - description { state: "disabled" 0.0; - inherit: "default" 0.0; - text { - style: "entry_single_small_textblock_disabled_style"; - } - } - description { state: "selected" 0.0; - inherit: "default" 0.0; - color: 61 61 61 255; - text { - style: "entry_single_small_textblock_selected_style"; - min: 0 1; - } - } - description { state: "enabled" 0.0; - inherit: "default" 0.0; - color: 255 255 255 255; - text { - style: "entry_single_small_textblock_style"; - min: 0 1; - } - } - } - } -} - -/******************************************************************************************* -Document: Tizen TV_General Guide_GUI Guideline_v1.0_140430_1.ppt -Page No. 81, -style : text input field -PROMPT -********************************************************************************************/ -group { name: "elm/entry/cursor/input.field"; - parts { - part { name: "base"; type: SPACER; - scale: 1; - description { state: "default" 0.0; - } - } - part { name: "cursor"; type: RECT; mouse_events: 0; - scale: 1; - description { state: "default" 0.0; - min: 2 36; - max: 2 36; - fixed: 1 1; - color: DEFAULT_COLOR; - visible: 0; - } - description { state: "visible" 0.0; - inherit: "default" 0.0; - visible: 1; - } - } - } - programs { - program { name: "blink"; - action: STATE_SET "visible" 0.0; - in: 0.4 0.0; - target: "cursor"; - after: "blink2"; - } - program { name: "blink2"; - action: STATE_SET "default" 0.0; - in: 0.4 0.0; - target: "cursor"; - after: "blink"; - } - program { name: "focused"; - signal: "elm,action,focus"; source: "elm"; - after: "blink"; - } - program { name: "noblink"; - action: ACTION_STOP; - target: "blink"; - target: "blink2"; - after: "noblink2"; - } - program { name: "noblink2"; - action: STATE_SET "default" 0.0; - target: "cursor"; - } - program { name: "unfocused"; - signal: "elm,action,unfocus"; source: "elm"; - action: STATE_SET "default" 0.0; - target: "cursor"; - after: "noblink"; - } - } -} - -/******************************************************************************************* -Document: Tizen TV_General Guide_GUI Guideline_v1.0_140430_1.ppt -Page No. 83, -style : text input field small -PROMPT -********************************************************************************************/ -group { name: "elm/entry/cursor/input.field.small"; - inherit: "elm/entry/cursor/input.field"; - parts { - part { name: "base"; type: SPACER; - scale: 1; - description { state: "default" 0.0; - } - } - part { name: "cursor"; type: RECT; mouse_events: 0; - scale: 1; - description { state: "default" 0.0; - min: 2 26; - max: 2 26; - fixed: 1 1; - color: DEFAULT_COLOR; - visible: 0; - } - description { state: "visible" 0.0; - inherit: "default" 0.0; - visible: 1; - } - } - } -} -//Selection default used as source. -group { name: "elm/entry/selection/input.field"; - parts { - part { name: "bg"; type: RECT; mouse_events: 0; - scale: 1; - description { state: "default" 0.0; - color: 128 128 128 128; - } - } - } -} - -//Anchor default used as source. -group { name: "elm/entry/anchor/input.field"; - parts { - part { name: "bg"; type: RECT; mouse_events: 0; - scale: 1; - description { state: "default" 0.0; - color: 128 0 0 64; - } - } - } -} -//Mixed wrap -group { name: "elm/entry/base-mixedwrap/input.field"; - inherit: "elm/entry/base/input.field"; - parts { - part { name: "elm.guide"; type: TEXTBLOCK; mouse_events: 0; - scale: 1; - description { state: "default" 0.0; - rel1.to: "elm.text"; - rel2.to: "elm.text"; - text { - style: "entry_textblock_guide_style_mixedwrap"; - min: 0 1; - align: 0.0 0.5; - } - } - description { state: "hidden" 0.0; - inherit: "default" 0.0; - visible: 0; - } - } - part { name: "elm.text"; - description { state: "default" 0.0; - fixed: 1 1; - text { - style: "entry_textblock_style_mixedwrap"; - min: 0 1; - align: 0.0 0.5; - } - } - description { state: "disabled" 0.0; - inherit: "default" 0.0; - text { - style: "entry_textblock_disabled_style_mixedwrap"; - min: 0 1; - } - } - description { state: "selected" 0.0; - inherit: "default" 0.0; - text { - style: "entry_textblock_selected_style_mixedwrap"; - min: 0 1; - } - } - description { state: "enabled" 0.0; - inherit: "default" 0.0; - text { - style: "entry_textblock_style_mixedwrap"; - min: 0 1; - } - } - } - } -} -//Char wrap -group { name: "elm/entry/base-charwrap/input.field"; - inherit: "elm/entry/base/input.field"; - parts { - part { name: "elm.guide"; type: TEXTBLOCK; mouse_events: 0; - scale: 1; - description { state: "default" 0.0; - rel1.to: "elm.text"; - rel2.to: "elm.text"; - text { - style: "entry_textblock_guide_style_charwrap"; - min: 0 1; - align: 0.0 0.5; - } - } - description { state: "hidden" 0.0; - inherit: "default" 0.0; - visible: 0; - } - } - part { name: "elm.text"; - scale: 1; - description { state: "default" 0.0; - fixed: 1 1; - text { - style: "entry_textblock_style_charwrap"; - min: 0 1; - align: 0.0 0.5; - } - } - description { state: "disabled" 0.0; - inherit: "default" 0.0; - text { - style: "entry_textblock_disabled_style_charwrap"; - min: 0 1; - } - } - description { state: "selected" 0.0; - inherit: "default" 0.0; - text { - style: "entry_textblock_selected_style_charwrap"; - min: 0 1; - } - } - description { state: "enabled" 0.0; - inherit: "default" 0.0; - text { - style: "entry_textblock_style_charwrap"; - min: 0 1; - } - } - } - } -} -//No wrap -group { name: "elm/entry/base-nowrap/input.field"; - inherit: "elm/entry/base/input.field"; - parts { - part { name: "elm.guide"; type: TEXTBLOCK; mouse_events: 0; - scale: 1; - description { state: "default" 0.0; - rel1.to: "elm.text"; - rel2.to: "elm.text"; - text { - style: "entry_textblock_guide_style"; - min: 0 1; - align: 0.0 0.0; - } - } - description { state: "hidden" 0.0; - inherit: "default" 0.0; - visible: 0; - } - } - part { name: "elm.text"; - scale: 1; - description { state: "default" 0.0; - text { - style: "entry_textblock_style"; - min: 1 1; - ellipsis: -1; - align: 0.0 0.0; - } - } - description { state: "disabled" 0.0; - inherit: "default" 0.0; - text { - style: "entry_textblock_disabled_style"; - min: 0 1; - } - } - description { state: "selected" 0.0; - inherit: "default" 0.0; - text { - style: "entry_textblock_selected_style"; - min: 0 1; - } - } - description { state: "enabled" 0.0; - inherit: "default" 0.0; - text { - style: "entry_textblock_style"; - min: 0 1; - } - } - } - } -} - -/************************************************************************* -Doc: Tizen TV_General Guide_GUI Guideline_v1.0_140709.ppt page:93 -**************************************************************************/ - -#define ENTRY_SOUND_PROGRAM \ - program { name: "touch_snd"; \ - signal: "mouse,clicked,1"; \ - source: "elm.text"; \ - script { \ - new st[31]; \ - new Float:vl; \ - get_state(PART:"elm.text", st, 30, vl); \ - if (strcmp(st, "disabled")) \ - run_program(PROGRAM:"touch_sound"); \ - } \ - } \ - program { name: "touch_sound"; \ - action: RUN_PLUGIN "touch_sound"; \ - } - -group { name: "elm/entry/base-single/spinner/vertical"; - alias: "elm/entry/base-single/spinner/vertical_time_picker"; - alias: "elm/entry/base-single/spinner/datetime"; - data.item: "default_font_size" "106"; - styles { - style { name: "entry_single_spinner_vertical_textblock_style"; - base: "font=Tizen:style=Light font_size=106 color=#000000ff align=center"; - tag: "br" ""; - tag: "em" "+ font_style=Oblique"; - tag: "b" "+ font_weight=Bold"; - tag: "link" "+ color=#800 underline=on underline_color=#8008"; - tag: "hilight" "+ font_weight=Bold"; - tag: "preedit" "+ underline=on underline_color="ENTRY_PREEDIT_UNDERLINE_COLOR_INC; - tag: "preedit_sel" "+ backing=on backing_color="ENTRY_PREEDIT_BACKGROUND_COLOR_INC" color="ENTRY_PREEDIT_TEXT_COLOR_INC" underline=on underline_color="ENTRY_PREEDIT_TEXT_COLOR_INC; - tag: "preedit_highlight" "+ backing=on backing_color="ENTRY_PREEDIT_HIGHLIGHT_BACKGROUND_COLOR_INC" underline=on underline_color="ENTRY_PREEDIT_TEXT_COLOR_INC; - tag: "preedit_sub1" "+ backing=on backing_color="ENTRY_PREEDIT_SUB1_COLOR_INC" underline=on underline_color="ENTRY_PREEDIT_UNDERLINE_COLOR_INC; - tag: "preedit_sub2" "+ backing=on backing_color="ENTRY_PREEDIT_SUB2_COLOR_INC" underline=on underline_color="ENTRY_PREEDIT_UNDERLINE_COLOR_INC; - tag: "preedit_sub3" "+ backing=on backing_color="ENTRY_PREEDIT_SUB3_COLOR_INC" underline=on underline_color="ENTRY_PREEDIT_UNDERLINE_COLOR_INC; - tag: "preedit_sub4" "+ backing=on backing_color="ENTRY_PREEDIT_SUB4_COLOR_INC" underline=on underline_color="ENTRY_PREEDIT_UNDERLINE_COLOR_INC; - } - style { name: "entry_single_spinner_vertical_textblock_focused_style"; - base: "font=Tizen:style=Light font_size=106 color=#000000ff align=center"; - tag: "br" ""; - tag: "em" "+ font_style=Oblique"; - tag: "b" "+ font_weight=Bold"; - tag: "link" "+ color=#800 underline=on underline_color=#8008"; - tag: "hilight" "+ font_weight=Bold"; - tag: "preedit" "+ underline=on underline_color="ENTRY_PREEDIT_UNDERLINE_COLOR_INC; - tag: "preedit_sel" "+ backing=on backing_color="ENTRY_PREEDIT_BACKGROUND_COLOR_INC" color="ENTRY_PREEDIT_TEXT_COLOR_INC" underline=on underline_color="ENTRY_PREEDIT_TEXT_COLOR_INC; - tag: "preedit_highlight" "+ backing=on backing_color="ENTRY_PREEDIT_HIGHLIGHT_BACKGROUND_COLOR_INC" underline=on underline_color="ENTRY_PREEDIT_TEXT_COLOR_INC; - tag: "preedit_sub1" "+ backing=on backing_color="ENTRY_PREEDIT_SUB1_COLOR_INC" underline=on underline_color="ENTRY_PREEDIT_UNDERLINE_COLOR_INC; - tag: "preedit_sub2" "+ backing=on backing_color="ENTRY_PREEDIT_SUB2_COLOR_INC" underline=on underline_color="ENTRY_PREEDIT_UNDERLINE_COLOR_INC; - tag: "preedit_sub3" "+ backing=on backing_color="ENTRY_PREEDIT_SUB3_COLOR_INC" underline=on underline_color="ENTRY_PREEDIT_UNDERLINE_COLOR_INC; - tag: "preedit_sub4" "+ backing=on backing_color="ENTRY_PREEDIT_SUB4_COLOR_INC" underline=on underline_color="ENTRY_PREEDIT_UNDERLINE_COLOR_INC; - } - style { name: "entry_single_spinner_vertical_textblock_disabled_style"; - base: "font=Tizen:style=Light font_size=106 color=#000000a3 align=center"; - tag: "br" ""; - tag: "em" "+ font_style=Oblique"; - tag: "b" "+ font_weight=Bold"; - tag: "link" "+ color=#800 underline=on underline_color=#8008"; - tag: "hilight" "+ font_weight=Bold"; - tag: "preedit" "+ underline=on underline_color="ENTRY_PREEDIT_UNDERLINE_COLOR_INC; - tag: "preedit_sel" "+ backing=on backing_color="ENTRY_PREEDIT_BACKGROUND_COLOR_INC" color="ENTRY_PREEDIT_TEXT_COLOR_INC" underline=on underline_color="ENTRY_PREEDIT_TEXT_COLOR_INC; - tag: "preedit_highlight" "+ backing=on backing_color="ENTRY_PREEDIT_HIGHLIGHT_BACKGROUND_COLOR_INC" underline=on underline_color="ENTRY_PREEDIT_TEXT_COLOR_INC; - tag: "preedit_sub1" "+ backing=on backing_color="ENTRY_PREEDIT_SUB1_COLOR_INC" underline=on underline_color="ENTRY_PREEDIT_UNDERLINE_COLOR_INC; - tag: "preedit_sub2" "+ backing=on backing_color="ENTRY_PREEDIT_SUB2_COLOR_INC" underline=on underline_color="ENTRY_PREEDIT_UNDERLINE_COLOR_INC; - tag: "preedit_sub3" "+ backing=on backing_color="ENTRY_PREEDIT_SUB3_COLOR_INC" underline=on underline_color="ENTRY_PREEDIT_UNDERLINE_COLOR_INC; - tag: "preedit_sub4" "+ backing=on backing_color="ENTRY_PREEDIT_SUB4_COLOR_INC" underline=on underline_color="ENTRY_PREEDIT_UNDERLINE_COLOR_INC; - } - style { name: "entry_single_spinner_vertical_textblock_guide_style"; - base: "font=Tizen:style=Light font_size=106 color=#000000a3 align=center"; - tag: "br" ""; - tag: "em" "+ font_style=Oblique"; - tag: "b" "+ font_weight=Bold"; - tag: "link" "+ color=#800 underline=on underline_color=#8008"; - tag: "hilight" "+ font_weight=Bold"; - tag: "preedit" "+ underline=on underline_color="ENTRY_PREEDIT_UNDERLINE_COLOR_INC; - tag: "preedit_sel" "+ backing=on backing_color="ENTRY_PREEDIT_BACKGROUND_COLOR_INC" color="ENTRY_PREEDIT_TEXT_COLOR_INC" underline=on underline_color="ENTRY_PREEDIT_TEXT_COLOR_INC; - tag: "preedit_highlight" "+ backing=on backing_color="ENTRY_PREEDIT_HIGHLIGHT_BACKGROUND_COLOR_INC" underline=on underline_color="ENTRY_PREEDIT_TEXT_COLOR_INC; - tag: "preedit_sub1" "+ backing=on backing_color="ENTRY_PREEDIT_SUB1_COLOR_INC" underline=on underline_color="ENTRY_PREEDIT_UNDERLINE_COLOR_INC; - tag: "preedit_sub2" "+ backing=on backing_color="ENTRY_PREEDIT_SUB2_COLOR_INC" underline=on underline_color="ENTRY_PREEDIT_UNDERLINE_COLOR_INC; - tag: "preedit_sub3" "+ backing=on backing_color="ENTRY_PREEDIT_SUB3_COLOR_INC" underline=on underline_color="ENTRY_PREEDIT_UNDERLINE_COLOR_INC; - tag: "preedit_sub4" "+ backing=on backing_color="ENTRY_PREEDIT_SUB4_COLOR_INC" underline=on underline_color="ENTRY_PREEDIT_UNDERLINE_COLOR_INC; - } - } - data { - item: context_menu_orientation "horizontal"; - } - parts { - part { name: "elm.guide"; - type: TEXTBLOCK; - mouse_events: 0; - scale: 1; - description { state: "default" 0.0; - fixed: 1 1; - rel1.to: "elm.text"; - rel2.to: "elm.text"; - text { - style: "entry_single_spinner_vertical_textblock_guide_style"; - min: 0 1; - max: 0 0; - align: 0.0 0.5; - } - } - description { state: "hidden" 0.0; - inherit: "default" 0.0; - visible: 0; - } - } - part { name: "elm.text"; - type: TEXTBLOCK; - mouse_events: 1; - scale: 1; - entry_mode: EDITABLE; - select_mode: EXPLICIT; - cursor_mode: BEFORE; - multiline: 0; - source: "elm/entry/selection/input.field"; // selection under - source4: "elm/entry/cursor/input.field"; // cursorover - source5: "elm/entry/anchor/input.field"; // anchor under - description { state: "default" 0.0; - text { - style: "entry_single_spinner_vertical_textblock_style"; - min: 1 1; - max: 0 0; - align: 0.0 0.5; - } - } - description { state: "focused" 0.0; - inherit: "default" 0.0; - text { - style: "entry_single_spinner_vertical_textblock_focused_style"; - } - } - description { state: "disabled" 0.0; - inherit: "default" 0.0; - text { - style: "entry_single_spinner_vertical_textblock_disabled_style"; - } - } - } - } - programs { - program { name: "action_focus"; - signal: "elm,action,focus"; - source: "elm"; - action: STATE_SET "focused" 0.0; - target: "elm.text"; - } - program { name: "action_unfocus"; - signal: "elm,action,unfocus"; - source: "elm"; - action: STATE_SET "default" 0.0; - target: "elm.text"; - } - program { name: "focus"; - signal: "load"; - source: ""; - action: FOCUS_SET; - target: "elm.text"; - } - program { name: "disable"; - signal: "elm,state,disabled"; - source: "elm"; - action: STATE_SET "disabled" 0.0; - target: "elm.text"; - } - program { name: "enable"; - signal: "elm,state,enabled"; - source: "elm"; - action: STATE_SET "default" 0.0; - target: "elm.text"; - } - program { name: "gdisable"; - signal: "elm,guide,disabled"; - source: "elm"; - action: STATE_SET "hidden" 0.0; - target: "elm.guide"; - } - program { name: "genable"; - signal: "elm,guide,enabled"; - source: "elm"; - action: STATE_SET "default" 0.0; - target: "elm.guide"; - } - ENTRY_SOUND_PROGRAM - } -} - -group { name: "elm/entry/base-single/spinner/vertical_date_picker"; - inherit: "elm/entry/base-single/spinner/vertical"; - data.item: "default_font_size" "90"; - styles { - style { name: "entry_single_spinner_vertical_date_picker_textblock_style"; - base: "font=TizenSans:style=Light font_size=90 color=#000000ff align=center text_class=tizen"; - tag: "br" ""; - tag: "em" "+ font_style=Oblique"; - tag: "b" "+ font_weight=Bold"; - tag: "link" "+ color=#800 underline=on underline_color=#8008"; - tag: "hilight" "+ font_weight=Bold"; - tag: "preedit" "+ underline=on underline_color="ENTRY_PREEDIT_UNDERLINE_COLOR_INC; - tag: "preedit_sel" "+ backing=on backing_color="ENTRY_PREEDIT_BACKGROUND_COLOR_INC" color="ENTRY_PREEDIT_TEXT_COLOR_INC" underline=on underline_color="ENTRY_PREEDIT_TEXT_COLOR_INC; - tag: "preedit_highlight" "+ backing=on backing_color="ENTRY_PREEDIT_HIGHLIGHT_BACKGROUND_COLOR_INC" underline=on underline_color="ENTRY_PREEDIT_TEXT_COLOR_INC; - tag: "preedit_sub1" "+ backing=on backing_color="ENTRY_PREEDIT_SUB1_COLOR_INC" underline=on underline_color="ENTRY_PREEDIT_UNDERLINE_COLOR_INC; - tag: "preedit_sub2" "+ backing=on backing_color="ENTRY_PREEDIT_SUB2_COLOR_INC" underline=on underline_color="ENTRY_PREEDIT_UNDERLINE_COLOR_INC; - tag: "preedit_sub3" "+ backing=on backing_color="ENTRY_PREEDIT_SUB3_COLOR_INC" underline=on underline_color="ENTRY_PREEDIT_UNDERLINE_COLOR_INC; - tag: "preedit_sub4" "+ backing=on backing_color="ENTRY_PREEDIT_SUB4_COLOR_INC" underline=on underline_color="ENTRY_PREEDIT_UNDERLINE_COLOR_INC; - } - style { name: "entry_single_spinner_vertical_date_picker_textblock_focused_style"; - base: "font=TizenSans:style=Light font_size=90 color=#000000ff align=center text_class=tizen"; - tag: "br" ""; - tag: "em" "+ font_style=Oblique"; - tag: "b" "+ font_weight=Bold"; - tag: "link" "+ color=#800 underline=on underline_color=#8008"; - tag: "hilight" "+ font_weight=Bold"; - tag: "preedit" "+ underline=on underline_color="ENTRY_PREEDIT_UNDERLINE_COLOR_INC; - tag: "preedit_sel" "+ backing=on backing_color="ENTRY_PREEDIT_BACKGROUND_COLOR_INC" color="ENTRY_PREEDIT_TEXT_COLOR_INC" underline=on underline_color="ENTRY_PREEDIT_TEXT_COLOR_INC; - tag: "preedit_highlight" "+ backing=on backing_color="ENTRY_PREEDIT_HIGHLIGHT_BACKGROUND_COLOR_INC" underline=on underline_color="ENTRY_PREEDIT_TEXT_COLOR_INC; - tag: "preedit_sub1" "+ backing=on backing_color="ENTRY_PREEDIT_SUB1_COLOR_INC" underline=on underline_color="ENTRY_PREEDIT_UNDERLINE_COLOR_INC; - tag: "preedit_sub2" "+ backing=on backing_color="ENTRY_PREEDIT_SUB2_COLOR_INC" underline=on underline_color="ENTRY_PREEDIT_UNDERLINE_COLOR_INC; - tag: "preedit_sub3" "+ backing=on backing_color="ENTRY_PREEDIT_SUB3_COLOR_INC" underline=on underline_color="ENTRY_PREEDIT_UNDERLINE_COLOR_INC; - tag: "preedit_sub4" "+ backing=on backing_color="ENTRY_PREEDIT_SUB4_COLOR_INC" underline=on underline_color="ENTRY_PREEDIT_UNDERLINE_COLOR_INC; - } - style { name: "entry_single_spinner_vertical_date_picker_textblock_disabled_style"; - base: "font=TizenSans:style=Light font_size=90 color=#000000a3 align=center text_class=tizen"; - tag: "br" ""; - tag: "em" "+ font_style=Oblique"; - tag: "b" "+ font_weight=Bold"; - tag: "link" "+ color=#800 underline=on underline_color=#8008"; - tag: "hilight" "+ font_weight=Bold"; - tag: "preedit" "+ underline=on underline_color="ENTRY_PREEDIT_UNDERLINE_COLOR_INC; - tag: "preedit_sel" "+ backing=on backing_color="ENTRY_PREEDIT_BACKGROUND_COLOR_INC" color="ENTRY_PREEDIT_TEXT_COLOR_INC" underline=on underline_color="ENTRY_PREEDIT_TEXT_COLOR_INC; - tag: "preedit_highlight" "+ backing=on backing_color="ENTRY_PREEDIT_HIGHLIGHT_BACKGROUND_COLOR_INC" underline=on underline_color="ENTRY_PREEDIT_TEXT_COLOR_INC; - tag: "preedit_sub1" "+ backing=on backing_color="ENTRY_PREEDIT_SUB1_COLOR_INC" underline=on underline_color="ENTRY_PREEDIT_UNDERLINE_COLOR_INC; - tag: "preedit_sub2" "+ backing=on backing_color="ENTRY_PREEDIT_SUB2_COLOR_INC" underline=on underline_color="ENTRY_PREEDIT_UNDERLINE_COLOR_INC; - tag: "preedit_sub3" "+ backing=on backing_color="ENTRY_PREEDIT_SUB3_COLOR_INC" underline=on underline_color="ENTRY_PREEDIT_UNDERLINE_COLOR_INC; - tag: "preedit_sub4" "+ backing=on backing_color="ENTRY_PREEDIT_SUB4_COLOR_INC" underline=on underline_color="ENTRY_PREEDIT_UNDERLINE_COLOR_INC; - } - style { name: "entry_single_spinner_vertical_date_picker_textblock_guide_style"; - base: "font=TizenSans:style=Light font_size=90 color=#000000a3 wrap=none align=center left_margin=1 right_margin=3 text_class=tizen ellipsis=1.0"; - tag: "br" ""; - tag: "em" "+ font_style=Oblique"; - tag: "b" "+ font_weight=Bold"; - tag: "link" "+ color=#800 underline=on underline_color=#8008"; - tag: "hilight" "+ font_weight=Bold"; - tag: "preedit" "+ underline=on underline_color="ENTRY_PREEDIT_UNDERLINE_COLOR_INC; - tag: "preedit_sel" "+ backing=on backing_color="ENTRY_PREEDIT_BACKGROUND_COLOR_INC" color="ENTRY_PREEDIT_TEXT_COLOR_INC" underline=on underline_color="ENTRY_PREEDIT_TEXT_COLOR_INC; - tag: "preedit_highlight" "+ backing=on backing_color="ENTRY_PREEDIT_HIGHLIGHT_BACKGROUND_COLOR_INC" underline=on underline_color="ENTRY_PREEDIT_TEXT_COLOR_INC; - tag: "preedit_sub1" "+ backing=on backing_color="ENTRY_PREEDIT_SUB1_COLOR_INC" underline=on underline_color="ENTRY_PREEDIT_UNDERLINE_COLOR_INC; - tag: "preedit_sub2" "+ backing=on backing_color="ENTRY_PREEDIT_SUB2_COLOR_INC" underline=on underline_color="ENTRY_PREEDIT_UNDERLINE_COLOR_INC; - tag: "preedit_sub3" "+ backing=on backing_color="ENTRY_PREEDIT_SUB3_COLOR_INC" underline=on underline_color="ENTRY_PREEDIT_UNDERLINE_COLOR_INC; - tag: "preedit_sub4" "+ backing=on backing_color="ENTRY_PREEDIT_SUB4_COLOR_INC" underline=on underline_color="ENTRY_PREEDIT_UNDERLINE_COLOR_INC; - } - } - parts { - part { name: "elm.guide"; - type: TEXTBLOCK; - mouse_events: 0; - scale: 1; - description { state: "default" 0.0; - text { - style: "entry_single_spinner_vertical_date_picker_textblock_guide_style"; - min: 0 1; - max: 0 0; - align: 0.0 0.5; - } - } - description { state: "hidden" 0.0; - inherit: "default" 0.0; - visible: 0; - } - } - part { name: "elm.text"; - type: TEXTBLOCK; - mouse_events: 1; - scale: 1; - entry_mode: EDITABLE; - select_mode: EXPLICIT; - cursor_mode: BEFORE; - multiline: 0; - source: "elm/entry/selection/input.field"; // selection under - source4: "elm/entry/cursor/input.field"; // cursorover - source5: "elm/entry/anchor/input.field"; // anchor under - description { state: "default" 0.0; - min: 206 188; - text { - style: "entry_single_spinner_vertical_date_picker_textblock_style"; - } - } - description { state: "focused" 0.0; - inherit: "default" 0.0; - text { - style: "entry_single_spinner_vertical_date_picker_textblock_focused_style"; - } - } - description { state: "disabled" 0.0; - inherit: "default" 0.0; - text { - style: "entry_single_spinner_vertical_date_picker_textblock_disabled_style"; - } - } - } - } -} - -#undef DEFAULT_COLOR diff --git a/ElmSharp/theme/tv/widgets/gengrid.edc b/ElmSharp/theme/tv/widgets/gengrid.edc deleted file mode 100644 index fcb1754..0000000 --- a/ElmSharp/theme/tv/widgets/gengrid.edc +++ /dev/null @@ -1,1144 +0,0 @@ -/* - * Copyright (c) 2010 Samsung Electronics Co., Ltd All Rights Reserved - * - * BSD 2-Clause License (http://www.opensource.org/licenses/bsd-license.php) - * - * Redistribution and use in source and binary forms, with or without - * modification, are permitted provided that the following conditions are met: - * - * 1. Redistributions of source code must retain the above copyright notice, this - * list of conditions and the following disclaimer. - * 2. Redistributions in binary form must reproduce the above copyright notice, - * this list of conditions and the following disclaimer in the documentation - * and/or other materials provided with the distribution. - * - * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND - * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED - * WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE - * DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR - * ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES - * (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; - * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND - * ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT - * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS - * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. - */ - -/***************************************************************************** -Tizen TV_General Guide_GUI Guideline_v1.1_140709.ppt 38 -******************************************************************************/ - -group { name: "elm/gengrid/item/default/default"; - data.item: "texts" "elm.text"; - data.item: "contents" "elm.swallow.icon"; - data.item: "focus_highlight" "on"; - images { - image: "content_innershadow.png" COMP; - } - parts { - part { name: "base"; type: RECT; - scale: 1; - description { state: "default" 0.0; - color_class: "gengrid_item/default/bg"; - rel1 { - relative: 1.0 1.0; - to: "top.left.pad"; - } - rel2 { - relative: 0.0 0.0; - to: "bottom.right.pad"; - } - } - description { state: "focused" 0.0; - inherit: "default" 0.0; - color_class: "gengrid_item/default/effect"; - } - } - part { name: "top.left.pad"; type: SPACER; - scale:1 ; - description { state: "default" 0.0; - rel2.relative: 0.0 0.0; - align: 0.0 0.0; - min: 20 20; - } - } - part { name: "bottom.right.pad"; type: SPACER; - scale:1 ; - description { state: "default" 0.0; - rel1.relative: 1.0 1.0; - align: 1.0 1.0; - min: 20 20; - } - } - part { name: "top.pad"; type: SPACER; - scale: 1; - description { state: "default" 0.0; - rel1.to: "base"; - rel2 { - relative: 0.0 0.0; - to: "base"; - } - align: 0.0 0.0; - min: 0 8; - } - } - part { name: "left.pad"; type: SPACER; - scale: 1; - description { state: "default" 0.0; - rel1.to: "base"; - rel2 { - relative: 0.0 0.0; - to: "base"; - } - align: 0.0 0.0; - min: 8 0; - } - } - part { name: "right.pad"; type: SPACER; - scale: 1; - description { state: "default" 0.0; - rel1 { - relative: 1.0 1.0; - to: "base"; - } - rel2.to: "base"; - align: 1.0 1.0; - min: 8 0; - } - } - part { name: "text.base"; type: SPACER; - scale: 1; - description { state: "default" 0.0; - min: 0 60; - rel1 { - relative: 0.0 1.0; - to: "base"; - } - rel2.to: "base"; - align: 0.5 1.0; - } - } - part { name: "elm.text"; type: TEXT; - scale: 1; - description { state: "default" 0.0; - color: 211 211 211 255; - text { - font: "Tizen Sans"; - size: 26; - min: 1 1; - ellipsis: -1; - } - rel1.to: "text.base"; - rel2.to: "text.base"; - } - description { state: "focused" 0.0; - inherit: "default" 0.0; - color: 255 255 255 255; - } - } - part { name: "elm.swallow.icon"; type: SWALLOW; - scale: 1; - clip_to: "clip"; - description { state: "default" 0.0; - rel1.to: "base"; - rel2 { - relative: 1.0 0.0; - to_x: "base"; - to_y: "text.base"; - } - } - } - part { name: "icon.shadow"; - scale: 1; - description { state: "default" 0.0; - rel1.to: "clip"; - rel2.to: "clip"; - image { - normal: "content_innershadow.png"; - border: 5 5 5 5; - } - visible: 0; - } - description { state: "focused" 0.0; - inherit: "default" 0.0; - visible: 1; - } - } - part { name: "clip"; type: RECT; - scale: 1; - description { state: "default" 0.0; - rel1.to: "base"; - rel2.to: "base"; - } - description { state: "focused" 0.0; - rel1 { - relative: 1.0 1.0; - to_x: "left.pad"; - to_y: "top.pad"; - } - rel2 { - relative: 0.0 0.0; - to_x: "right.pad"; - to_y: "text.base"; - } - } - } - } - programs { - program { name: "focus"; - signal: "elm,state,focused"; - source: "elm"; - action: STATE_SET "focused" 0.0; - target: "clip"; - target: "elm.text"; - target: "base"; - target: "icon.shadow"; - transition: LINEAR 0.1; - } - program { name: "unfocus"; - signal: "elm,state,unfocused"; - source: "elm"; - action: STATE_SET "default" 0.0; - target: "clip"; - target: "elm.text"; - target: "base"; - target: "icon.shadow"; - transition: LINEAR 0.1; - } - } -} - -/***************************************************************************** -Tizen TV_General Guide_GUI Guideline_v1.1_140709.ppt 39 -******************************************************************************/ - -group { name: "elm/gengrid/item/video_preview/default"; - inherit: "elm/gengrid/item/default/default"; - data.item: "texts" "elm.text elm.text.time"; - data.item: "contents" "elm.swallow.icon"; - images { - image: "round_rectangle_4X4.png" COMP; - image: "ico_default_video_180.png" COMP; - } - parts { - part { name: "rect"; - scale: 1; - description { state: "default" 0.0; - min: 120 120; - rel1 { - relative: 0.5 0.5; - to: "elm.swallow.icon"; - } - rel2 { - relative: 0.5 0.5; - to: "elm.swallow.icon"; - } - color: 100 100 100 100; - image { - normal: "round_rectangle_4X4.png"; - border: 4 4 4 4; - } - } - } - part { name: "video.icon"; - scale: 1; - description { state: "default" 0.0; - rel1.to: "rect"; - rel2.to: "rect"; - image.normal: "ico_default_video_180.png"; - } - } - part { name: "time.pad"; type: SPACER; - scale: 1; - description { state: "default" 0.0; - rel1 { - relative: 1.0 0.0; - to: "base"; - } - rel2 { - relative: 1.0 0.0; - to: "base"; - } - align: 1.0 0.0; - min: 21 21; - } - } - part { name: "time.bg"; type: RECT; - scale: 1; - clip_to: "clip"; - description { state: "default" 0.0; - rel1.to: "base"; - rel2 { - relative: 1.0 0.0; - to: "base"; - } - align: 0.5 0.0; - min: 0 54; - color: 127 127 127 127; - } - } - part { name: "elm.text.time"; type: TEXT; - scale: 1; - description { state: "default" 0.0; - text { - font: "Tizen Sans"; - size: 22; - min: 1 1; - ellipsis: -1; - } - rel1 { - relative: 0.0 1.0; - to: "time.pad"; - } - rel2 { - relative: 0.0 1.0; - to: "time.pad"; - } - align: 1.0 0.0; - color: 200 200 200 200; - } - } - } -} - -/***************************************************************************** -Tizen TV_General Guide_GUI Guideline_v1.1_140709.ppt 40 -******************************************************************************/ - -group { name: "elm/gengrid/item/folder/default"; - inherit: "elm/gengrid/item/default/default"; - data.item: "texts" "elm.text elm.text2"; - data.item: "contents" ""; - images { - image: "ico_folder.png" COMP; - } - parts { - part { name: "base"; type: RECT; - scale: 1; - description { state: "focused" 0.0; - color: 126 128 255 255; - } - } - part { name: "icon.bg"; type: RECT; - scale: 1; - clip_to: "clip"; - description { state: "default" 0.0; - color: 0 0 0 255; - rel1.to: "elm.swallow.icon"; - rel2.to: "elm.swallow.icon"; - } - } - part { name: "folder.icon"; - scale: 1; - description { state: "default" 0.0; - min: 200 200; - max: 200 200; - rel1 { - relative: 0.5 0.5; - to: "icon.bg"; - } - rel2 { - relative: 0.5 0.5; - to: "icon.bg"; - } - image { - normal: "ico_folder.png"; - } - } - } - part { name: "text.base"; type: SPACER; - scale: 1; - description { state: "default" 0.0; - min: 0 80; - } - } - part { name: "elm.text"; type: TEXT; - scale: 1; - description { state: "default" 0.0; - color: 211 211 211 255; - text { - font: "Tizen Sans"; - size: 26; - min: 1 1; - ellipsis: -1; - } - rel1 { - relative: 0.5 0.5; - to: "text.base"; - } - rel2 { - relative: 0.5 0.5; - to: "text.base"; - } - align: 0.5 1.0; - } - description { state: "focused" 0.0; - inherit: "default" 0.0; - color: 255 255 255 255; - } - } - part { name: "elm.text2"; type: TEXT; - scale: 1; - description { state: "default" 0.0; - color: 128 128 128 255; - text { - font: "Tizen Sans"; - size: 22; - min: 1 1; - ellipsis: -1; - } - rel1 { - relative: 0.5 0.5; - to: "text.base"; - } - rel2 { - relative: 0.5 0.5; - to: "text.base"; - } - align: 0.5 0.0; - } - description { state: "focused" 0.0; - inherit: "default" 0.0; - color: 255 255 255 255; - } - } - } - programs { - program { name: "focus2"; - signal: "elm,state,focused"; - source: "elm"; - action: STATE_SET "focused" 0.0; - target: "elm.text2"; - } - program { name: "unfocus2"; - signal: "elm,state,unfocused"; - source: "elm"; - action: STATE_SET "default" 0.0; - target: "elm.text2"; - } - } -} - -/***************************************************************************** -Tizen TV_General Guide_GUI Guideline_v1.1_140709.ppt 41 -******************************************************************************/ - -group { name: "elm/gengrid/item/default_2text/default"; - inherit: "elm/gengrid/item/default/default"; - data.item: "texts" "elm.text elm.text2"; - data.item: "contents" "elm.swallow.icon"; - parts { - part { name: "base"; type: RECT; - scale: 1; - description { state: "focused" 0.0; - color: 255 168 0 255; - } - } - part { name: "text.base"; type: SPACER; - scale: 1; - description { state: "default" 0.0; - min: 0 100; - } - } - part { name: "elm.text"; type: TEXT; - scale: 1; - description { state: "default" 0.0; - color: 211 211 211 255; - text { - font: "Tizen Sans"; - size: 30; - min: 1 1; - ellipsis: -1; - } - rel1 { - relative: 0.5 0.5; - to: "text.base"; - } - rel2 { - relative: 0.5 0.5; - to: "text.base"; - } - align: 0.5 1.0; - } - description { state: "focused" 0.0; - inherit: "default" 0.0; - color: 255 255 255 255; - } - } - part { name: "elm.text2"; type: TEXT; - scale: 1; - description { state: "default" 0.0; - color: 128 128 128 255; - text { - font: "Tizen Sans"; - size: 22; - min: 1 1; - ellipsis: -1; - } - rel1 { - relative: 0.5 0.5; - to: "text.base"; - } - rel2 { - relative: 0.5 0.5; - to: "text.base"; - } - align: 0.5 0.0; - } - description { state: "focused" 0.0; - inherit: "default" 0.0; - color: 255 255 255 255; - } - } - } - programs { - program { name: "focus2"; - signal: "elm,state,focused"; - source: "elm"; - action: STATE_SET "focused" 0.0; - target: "elm.text2"; - } - program { name: "unfocus2"; - signal: "elm,state,unfocused"; - source: "elm"; - action: STATE_SET "default" 0.0; - target: "elm.text2"; - } - } -} - -#define DEFAULT 1 -#define SELECTED 2 -#define FOCUSED 3 -#define DISABLED 4 -/***************************************************************************** -Document: Tizen TV_General Guide_GUI Guideline_v1.0_140508_1.ppt : 36 and 11 -Description: Gengrid for single line text -******************************************************************************/ -group { name: "elm/gengrid/item/1text.1icon.bg/default"; - data.item: "texts" "elm.text elm.text.1"; - data.item: "contents" "elm.swallow.icon elm.swallow.icon_foc elm.swallow.end"; - images { - image: "bt_bases.png" COMP; - image: "elipse_114.png" COMP; - } - script { - public is_selected, is_enabled, is_focused, is_init, cur_state; - - public init_values() { - if(get_int(is_init)==0) - { - set_int(is_enabled, 1); - set_int(is_focused, 1); - set_int(is_init, 1); - set_int(cur_state, -1); - } - } - public set_states() { - new enab; - new foc; - new sel; - new c_state; - enab = get_int(is_enabled); - foc = get_int(is_focused); - sel = get_int(is_selected); - c_state = get_int(cur_state); - if(enab == 0) - { - if(c_state!=DISABLED) - run_program(PROGRAM:"do_disable"); - } - else - { - if(foc == 1) - { - if(c_state!=FOCUSED) - run_program(PROGRAM:"do_focus"); - } - else if(sel == 1) - { - if(c_state!=SELECTED) - run_program(PROGRAM:"do_select"); - } - else - { - if(c_state!=DEFAULT) - run_program(PROGRAM:"do_default"); - } - } - } - } - parts { - part { name: "event"; type: RECT; - repeat_events: 1; - description { - state: "default" 0.0; - color: 0 0 0 0; - } - } - part { name: "reorder_bg"; mouse_events: 0; - description { state: "default" 0.0; - visible: 0; - color: 255 255 255 0; - image { - normal: "bt_bases.png"; - border: 6 6 6 6; - } - } - description { state: "enabled" 0.0; - inherit: "default" 0.0; - visible: 1; - color: 255 255 255 255; - } - } - part { name: "base"; type: RECT; mouse_events: 0; - scale: 1; - description { state: "default" 0.0; - color: 0 0 0 77; - } - description { state: "focused" 0.0; - inherit: "default" 0.0; - visible: 0; - } - description { state: "selected" 0.0; - inherit: "default" 0.0; - visible: 0; - } - description { state: "disabled" 0.0; - inherit: "default" 0.0; - color: 0 0 0 77; - } - } - part { name: "base_colored"; type: RECT; mouse_events: 0; - scale: 1; - description { state: "default" 0.0; - color: 0 0 0 0; - visible: 0; - } - description { state: "focused" 0.0; - inherit: "default" 0.0; - color: 255 255 255 255; - color_class: "open_ux_theme"; - visible: 1; - } - description { state: "selected" 0.0; - inherit: "default" 0.0; - color: 255 255 255 255; - color_class: "open_ux_theme_alpha"; - visible: 1; - } - description { state: "disabled" 0.0; - inherit: "default" 0.0; - } - } - part { name: "bg"; type: RECT; mouse_events: 0; - clip_to: "base"; - description { state: "default" 0.0; - } - } - part { name: "bg_color_clipped"; type: RECT; mouse_events: 0; - clip_to: "base_colored"; - description { state: "default" 0.0; - } - } - part { name: "elm.swallow.pad"; type: SWALLOW; - description { state: "default" 0.0; - fixed: 1 0; - min: 25 25; - align: 0.0 0.5; - rel1 { - relative: 0.0 1.0; - } - rel2 { - to_y: "elm.text"; - relative: 0.0 0.0; - } - } - } - part { name: "pad.top"; type: SPACER; mouse_events: 0; - scale: 1; - description { state: "default" 0.0; - min: 0 30; - max: 9999 30; - rel1.to: "bg"; - rel2.to: "bg"; - align: 0.5 0.0; - } - } - part { name: "pad.bottom"; type: SPACER; mouse_events: 0; - scale: 1; - description { state: "default" 0.0; - min: 0 25; - max: 9999 25; - rel1.to: "bg"; - rel2.to: "bg"; - align: 0.5 1.0; - } - } - part { name: "pad.left"; type: SPACER; mouse_events: 0; - scale: 1; - description { state: "default" 0.0; - min: 20 0; - max: 20 9999; - rel1.to: "bg"; - rel2.to: "bg"; - align: 0.0 0.5; - } - } - part { name: "pad.right"; type: SPACER; mouse_events: 0; - scale: 1; - description { state: "default" 0.0; - min: 20 0; - max: 20 9999; - rel1.to: "bg"; - rel2.to: "bg"; - align: 1.0 0.5; - } - } - part { name: "pad.middle"; type: SPACER; mouse_events: 0; - scale: 1; - description { state: "default" 0.0; - min: 0 3; - max: 9999 3; - rel1.to_x: "pad.left"; - rel1.to_y: "elm.text"; - rel1.relative: 1.0 0.0; - rel2.to_x: "pad.right"; - rel2.to_y: "elm.text"; - rel2.relative: 0.0 0.0; - align: 0.5 1.0; - } - } - part { name: "elm.shadow.icon.bg"; type: PROXY; - description { state: "default" 0.0; - source: "elm.swallow.icon"; - rel1.to: "elm.swallow.icon"; - rel1.offset: 0 3; - rel2.to: "elm.swallow.icon"; - rel2.offset: 0 3; - color: 0 0 0 64; - } - description { state: "focused" 0.0; - inherit: "default" 0.0; - source: "elm.swallow.icon_foc"; - } - description { state: "selected" 0.0; - inherit: "default" 0.0; - source: "elm.swallow.icon_foc"; - } - description { state: "disabled" 0.0; - inherit: "default" 0.0; - } - } - part { name: "elm.image.icon.bg"; type: IMAGE; - clip_to: "disclip"; - description { state: "default" 0.0; - fixed: 1 0; - aspect: 1.0 1.0; - aspect_preference: BOTH; - rel1.to: "elm.swallow.icon"; - rel2.to: "elm.swallow.icon"; - color_class: "open_ux_theme"; - image.normal: "elipse_114.png"; - visible: 0; - } - description { state: "focused" 0.0; - inherit: "default" 0.0; - color_class: "open_ux_theme_white"; - } - description { state: "selected" 0.0; - inherit: "default" 0.0; - color_class: "open_ux_theme_white"; - } - description { state: "disabled" 0.0; - inherit: "default" 0.0; - color_class: "open_ux_theme_alpha20"; - } - } - part { name: "elm.swallow.icon"; type: SWALLOW; - clip_to: "disclip"; - description { state: "default" 0.0; - fixed: 1 0; - aspect: 1.0 1.0; - aspect_preference: BOTH; - rel1.to_x: "pad.left"; - rel1.to_y: "pad.top"; - rel1.relative: 1.0 1.0; - rel2.to_x: "pad.right"; - rel2.to_y: "pad.middle"; - rel2.relative: 0.0 0.0; - } - description { state: "focused" 0.0; - inherit: "default" 0.0; - visible: 0; - } - description { state: "selected" 0.0; - inherit: "default" 0.0; - visible: 0; - } - description { state: "disabled" 0.0; - inherit: "default" 0.0; - color_class: "open_ux_theme_alpha20"; - } - } - part { name: "elm.swallow.icon_foc"; type: SWALLOW; - clip_to: "disclip"; - description { state: "default" 0.0; - fixed: 1 0; - aspect: 1.0 1.0; - aspect_preference: BOTH; - rel1.to: "elm.swallow.icon"; - rel2.to: "elm.swallow.icon"; - visible: 0; - } - description { state: "focused" 0.0; - inherit: "default" 0.0; - visible: 1; - } - description { state: "selected" 0.0; - inherit: "default" 0.0; - visible: 1; - } - description { state: "disabled" 0.0; - inherit: "default" 0.0; - visible: 0; - } - } - part { name: "elm.swallow.end"; - clip_to: "disclip"; type: SWALLOW; - description { state: "default" 0.0; - fixed: 1 0; - align: 1.0 0.0; - aspect: 1.0 1.0; - aspect_preference: HORIZONTAL; - rel1.relative: 1.0 0.0; - rel2.relative: 1.0 1.0; - } - } - part { name: "area_for_text"; type: RECT; mouse_events: 0; - scale: 1; - description { state: "default" 0.0; - rel1.to_x: "pad.left"; - rel1.to_y: "pad.top"; - rel1.relative: 1.0 1.0; - rel2.to_x: "pad.right"; - rel2.to_y: "pad.bottom"; - rel2.relative: 0.0 0.0; - align: 0.5 0.5; - color: 255 255 255 0; - } - part { name: "elm.text"; type: TEXT; mouse_events: 0; - effect: SOFT_SHADOW; - scale: 1; - description { state: "default" 0.0; - color: 211 211 211 255; - rel1.relative: 0.0 1.0; - rel2.relative: 1.0 1.0; - align: 0.5 1.0; - text { - font: "Sans"; - size: 23; - min: 0 1; - text_class: "grid_item"; - } - } - description { state: "focused" 0.0; - inherit: "default" 0.0; - color: 255 255 255 255; - } - description { state: "selected" 0.0; - inherit: "default" 0.0; - color: 255 255 255 255; - } - description { state: "disabled" 0.0; - inherit: "default" 0.0; - color: 255 255 255 51; - } - } - part { name: "elm.text.1"; type: TEXT; mouse_events: 0; - effect: SOFT_SHADOW; - scale: 1; - description { state: "default" 0.0; - color: 211 211 211 255; - rel1.relative: 0.0 1.0; - rel2.relative: 1.0 1.0; - align: 0.5 1.0; - text { - font: "Sans"; - size: 17; - min: 0 1; - text_class: "grid_item"; - } - visible: 0; - } - description { state: "focused" 0.0; - inherit: "default" 0.0; - color: 255 255 255 255; - } - description { state: "selected" 0.0; - inherit: "default" 0.0; - color: 255 255 255 255; - } - description { state: "disabled" 0.0; - inherit: "default" 0.0; - color: 255 255 255 51; - } - } - } - part { name: "disclip"; type: RECT; - description { state: "default" 0.0; - fixed: 1 1; - rel1.to: "base"; - rel2.to: "base"; - color_class: "open_ux_theme_white"; - } - description { state: "focused" 0.0; - inherit: "default" 0.0; - } - description { state: "selected" 0.0; - inherit: "default" 0.0; - } - description { state: "disabled" 0.0; - inherit: "default" 0.0; - color_class: "open_ux_theme_alpha20"; - visible: 1; - } - } - part { name: "event_blocker"; type: RECT; mouse_events: 1; - description { state: "default" 0.0; - fixed: 1 1; - color: 0 0 0 0; - visible: 0; - } - description { state: "focused" 0.0; - inherit: "default" 0.0; - } - description { state: "selected" 0.0; - inherit: "default" 0.0; - } - description { state: "disabled" 0.0; - inherit: "default" 0.0; - visible: 1; - } - } - } - programs { - program { name: "go_focused"; - signal: "elm,state,focused"; source: "elm"; - script { - init_values(); - set_int(is_focused, 1); - set_states(); - } - } - program { name: "go_unfocused"; - signal: "elm,state,unfocused"; source: "elm"; - script { - init_values(); - set_int(is_focused, 0); - set_states(); - } - } - - program { name: "go_active"; - signal: "elm,state,selected"; - source: "elm"; - script { - init_values(); - set_int(is_selected, 1); - set_states(); - } - } - program { name: "go_passive"; - signal: "elm,state,unselected"; - source: "elm"; - script { - init_values(); - set_int(is_selected, 0); - set_states(); - } - } - program { name: "go_disabled"; - signal: "elm,state,disabled"; - source: "elm"; - script { - init_values(); - set_int(is_enabled, 0); - set_states(); - } - } - program { name: "go_enabled"; - signal: "elm,state,enabled"; - source: "elm"; - script { - init_values(); - set_int(is_enabled, 1); - set_states(); - } - } - program { name: "go_reorder_disabled"; - signal: "elm,state,reorder,disabled"; - source: "elm"; - action: STATE_SET "default" 0.0; - target: "reorder_bg"; - transition: DECELERATE 0.5; - } - program { name: "go_reorder_enabled"; - signal: "elm,state,reorder,enabled"; - source: "elm"; - action: STATE_SET "enabled" 0.0; - target: "reorder_bg"; - transition: DECELERATE 0.5; - } - program { name: "do_default"; - action: STATE_SET "default" 0.0; - transition: LINEAR 0.1; - target: "base"; - target: "base_colored"; - target: "elm.text"; - target: "elm.text.1"; - target: "elm.shadow.icon.bg"; - target: "elm.image.icon.bg"; - target: "elm.swallow.icon"; - target: "elm.swallow.icon_foc"; - target: "disclip"; - target: "event_blocker"; - } - - program { name: "do_focus"; - action: STATE_SET "focused" 0.0; - target: "base"; - target: "base_colored"; - target: "elm.text"; - target: "elm.text.1"; - target: "elm.shadow.icon.bg"; - target: "elm.image.icon.bg"; - target: "elm.swallow.icon"; - target: "elm.swallow.icon_foc"; - target: "disclip"; - target: "event_blocker"; - } - - program { name: "do_select"; - action: STATE_SET "selected" 0.0; - target: "base"; - target: "base_colored"; - target: "elm.text"; - target: "elm.text.1"; - target: "elm.shadow.icon.bg"; - target: "elm.image.icon.bg"; - target: "elm.swallow.icon"; - target: "elm.swallow.icon_foc"; - target: "disclip"; - target: "event_blocker"; - } - - program { name: "do_disable"; - action: STATE_SET "disabled" 0.0; - target: "base"; - target: "base_colored"; - target: "elm.text"; - target: "elm.text.1"; - target: "elm.shadow.icon.bg"; - target: "elm.image.icon.bg"; - target: "elm.swallow.icon"; - target: "elm.swallow.icon_foc"; - target: "disclip"; - target: "event_blocker"; - } - } -} - -//Start -#define DEFAULT 1 -#define SELECTED 2 -#define FOCUSED 3 -#define DISABLED 4 -/***************************************************************************** -Document: Tizen TV_General Guide_GUI Guideline_v1.0_140508_1.ppt : 37 and 11 -Description: Gengrid for two line text -******************************************************************************/ -group { name: "elm/gengrid/item/2text.1icon.bg/default"; - inherit: "elm/gengrid/item/1text.1icon.bg/default"; - data.item: "texts" "elm.text elm.text.1"; - data.item: "contents" "elm.swallow.icon elm.swallow.icon_foc elm.swallow.end"; - parts { - part { name: "pad.top"; type: SPACER; mouse_events: 0; - scale: 1; - description { state: "default" 0.0; - min: 0 52; - max: 9999 52; - } - } - part { name: "pad.bottom"; type: SPACER; mouse_events: 0; - scale: 1; - description { state: "default" 0.0; - min: 0 43; - max: 9999 43; - } - } - part { name: "area_for_text"; type: RECT; mouse_events: 0; - scale: 1; - description { state: "default" 0.0; - } - part { name: "elm.text"; type: TEXT; mouse_events: 0; - effect: SOFT_SHADOW; - scale: 1; - description { state: "default" 0.0; - color: 211 211 211 255; - rel1.to: "elm.text.1"; - rel2.to: "elm.text.1"; - rel1.relative: 0.0 0.0; - rel2.relative: 1.0 0.0; - text { - font: "Sans"; - size: 23; - min: 0 1; - text_class: "grid_item"; - } - } - description { state: "focused" 0.0; - inherit: "default" 0.0; - color: 255 255 255 255; - } - description { state: "selected" 0.0; - inherit: "default" 0.0; - color: 255 255 255 255; - } - description { state: "disabled" 0.0; - inherit: "default" 0.0; - color: 255 255 255 51; - } - } - part { name: "elm.text.1"; type: TEXT; - effect: SOFT_SHADOW; - mouse_events: 0; - scale: 1; - description { state: "default" 0.0; - visible: 1; - color: 134 134 134 255; - } - description { state: "focused" 0.0; - inherit: "default" 0.0; - color: 255 255 255 255; - } - description { state: "selected" 0.0; - inherit: "default" 0.0; - color: 255 255 255 255; - } - description { state: "disabled" 0.0; - inherit: "default" 0.0; - color: 255 255 255 51; - } - } - } - } -} -#undef DEFAULT 1 -#undef SELECTED 2 -#undef FOCUSED 3 -#undef DISABLED 4 -#undef DEFAULT 1 -#undef SELECTED 2 -#undef FOCUSED 3 -#undef DISABLED 4 diff --git a/ElmSharp/theme/tv/widgets/genlist.edc b/ElmSharp/theme/tv/widgets/genlist.edc deleted file mode 100644 index 0090c49..0000000 --- a/ElmSharp/theme/tv/widgets/genlist.edc +++ /dev/null @@ -1,1596 +0,0 @@ -/* - * Copyright (c) 2010 Samsung Electronics Co., Ltd All Rights Reserved - * - * BSD 2-Clause License (http://www.opensource.org/licenses/bsd-license.php) - * - * Redistribution and use in source and binary forms, with or without - * modification, are permitted provided that the following conditions are met: - * - * 1. Redistributions of source code must retain the above copyright notice, this - * list of conditions and the following disclaimer. - * 2. Redistributions in binary form must reproduce the above copyright notice, - * this list of conditions and the following disclaimer in the documentation - * and/or other materials provided with the distribution. - * - * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND - * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED - * WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE - * DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR - * ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES - * (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; - * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND - * ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT - * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS - * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. - */ - -/******************************************************************* -Tizen TV_General Guide_GUI Guideline_v1.0_140709.pptx 70 1text -********************************************************************/ -group { "elm/genlist/item/1text/default"; nomouse; program_source: "elm"; - alias: "elm/genlist/item/default/default"; - data.item: "texts" "elm.text"; - data.item: "focus_highlight" "on"; - target_group: "default" "base" "bottom_line" "elm.text"; - target_group: "disabled" "event" "elm.text"; - parts { - GENLIST_BASE_COLOR_CLASS("genlist_item/default/bg", "genlist_item/default/bg_selected", "genlist_item/default/bg_focused") - GENLIST_PAD(40, 40, 20, 20) - GENLIST_BOTTOM_LINE_COLOR_CLASS("genlist_item/default/bottomline") - text { "elm.text"; scale; - desc { "default"; - rel1.to: "pad.top.left"; - rel1.relative: 1.0 1.0; - rel2.to: "pad.bottom.right"; - rel2.relative: 0.0 0.0; - color: 89 89 89 255; - text { font: FONT_M; size: 30; - min: 1 1; - ellipsis: -1; - align: 0.0 0.5; - } - } - desc { "focused"; inherit: "default"; - color: 255 255 255 255; - } - desc { "disabled"; inherit: "default"; - color: 255 0 0 255; - } - } - } - programs { - GENLIST_PROGRAMS("default", "disabled") - } -} - -/********************************************************************* -Tizen TV_General Guide_GUI Guideline_v1.0_140709.pptx 70 1text_1icon -**********************************************************************/ -group { "elm/genlist/item/1text_1icon/default"; nomouse; program_source: "elm"; - data.item: "texts" "elm.text"; - data.item: "contents" "elm.swallow.end"; - inherit: "elm/genlist/item/1text/default"; - parts { - text { "elm.text"; scale; - desc { "default"; - rel1.to: "pad.top.left"; - rel1.relative: 1.0 1.0; - rel2.to_x: "pad.center"; - rel2.to_y: "pad.bottom.right"; - rel2.relative: 0.0 0.0; - color: 89 89 89 255; - text { font: FONT_M; size: 30; - min: 1 1; - ellipsis: -1; - align: 0.0 0.5; - } - } - desc { "focused"; inherit: "default"; - color: 255 255 255 255; - } - desc { "disabled"; inherit: "default"; - color: 50 50 50 255; - } - } - swallow { "elm.swallow.end"; mouse; - desc { "default"; - rel1.to_x: "pad.bottom.right"; - rel1.relative: 0.0 0.5; - rel2.to_x: "pad.bottom.right"; - rel2.relative: 0.0 0.5; - min: 40 40; - fixed: 1 1; - align: 1.0 0.5; - } - } - // a padding between elm.text, elm.swallow.end - spacer { "pad.center"; scale; - desc { "default"; - rel1.to_x: "elm.swallow.end"; - rel1.relative: 0.0 0.5; - rel2.to_x: "elm.swallow.end"; - rel2.relative: 0.0 0.5; - fixed: 1 0; - align: 1.0 0.5; - min: 40 0; - } - } - } -} - -/************************************************************************** -Tizen TV_General Guide_GUI Guideline_v1.0_140709.pptx 69 1text_1icon_2 -***************************************************************************/ -group { "elm/genlist/item/1text_1icon_2/default"; nomouse; - data.item: "texts" "elm.text"; - data.item: "contents" "elm.swallow.end"; - inherit: "elm/genlist/item/1text_1icon/default"; - parts { - rect { "base"; scale; - desc { "default"; - color: 0 0 0 0; - hid; - } - desc { "focused"; inherit: "default"; - color: 69 143 255 255; - vis; - } - desc { "selected"; inherit: "default"; - color: 69 143 255 102; - vis; - } - } - GENLIST_PAD(70, 70, 20, 20) - GENLIST_BOTTOM_LINE(255 255 255 25) - - text { "elm.text"; scale; - desc { "default"; - rel1.to: "pad.top.left"; - rel1.relative: 1.0 1.0; - rel2.to_x: "pad.center"; - rel2.to_y: "pad.bottom.right"; - rel2.relative: 0.0 0.0; - color: 255 255 255 204; // 80% - text { font: FONT_M; size: 30; - min: 1 1; - ellipsis: -1; - align: 0.0 0.5; - } - } - desc { "focused"; inherit: "default"; - color: 255 255 255 255; - } - desc { "disabled"; inherit: "default"; - color: 50 50 50 255; - } - } - - // a padding between elm.text, elm.swallow.end - spacer { "pad.center"; scale; - desc { "default"; - rel1.to_x: "elm.swallow.end"; - rel1.relative: 0.0 0.5; - rel2.to_x: "elm.swallow.end"; - rel2.relative: 0.0 0.5; - fixed: 1 0; - align: 1.0 0.5; - min: 30 0; - } - } - } - programs { - GENLIST_PROGRAMS("default", "disabled") - } -} - -/*********************************************************************************************** -Tizen TV_General Guide_GUI Guideline_v1.0_140709.pptx 69 2text -************************************************************************************************/ -group { "elm/genlist/item/2text/default"; nomouse; program_source: "elm"; - data.item: "texts" "elm.text elm.text2"; - inherit: "elm/genlist/item/1text/default"; - target_group: "default2" "base" "bottom_line" "elm.text" "elm.text2"; - target_group: "disabled2" "event" "elm.text" "elm.text2"; - parts { - rect { "base"; scale; - desc { "default"; - color: 0 0 0 0; - hid; - } - desc { "focused"; inherit: "default"; - color: 69 143 255 255; - vis; - } - desc { "selected"; inherit: "default"; - color: 69 143 255 102; - vis; - } - } - GENLIST_PAD(70, 70, 20, 20) - GENLIST_BOTTOM_LINE(255 255 255 25) - - text { "elm.text"; scale; - desc { "default"; - rel1.to: "pad.top.left"; - rel1.relative: 1.0 1.0; - rel2.to_x: "pad.center"; - rel2.to_y: "pad.bottom.right"; - rel2.relative: 0.0 0.0; - color: 255 255 255 204; // 80% - text { font: FONT_M; size: 30; - min: 1 1; - ellipsis: -1; - align: 0.0 0.5; - } - } - desc { "focused"; inherit: "default"; - color: 255 255 255 255; - } - desc { "disabled"; inherit: "default"; - color: 50 50 50 255; - } - } - - text { "elm.text2"; scale; - desc { "default"; - rel1.to_x: "pad.bottom.right"; - rel1.relative: 0.0 0.5; - rel2.to_x: "pad.bottom.right"; - rel2.relative: 0.0 0.5; - align: 1.0 0.5; - color: 255 255 255 204; // 80% - fixed: 1 1; - text { font: FONT_M; size: 30; - min: 1 1; - ellipsis: -1; - align: 1.0 0.5; - } - } - desc { "focused"; inherit: "default"; - color: 255 255 255 255; - } - desc { "disabled"; inherit: "default"; - color: 50 50 50 255; - } - } - - // a padding between elm.text, elm.swallow.end - spacer { "pad.center"; scale; - desc { "default"; - rel1.to_x: "elm.text2"; - rel1.relative: 0.0 0.5; - rel2.to_x: "elm.text2"; - rel2.relative: 0.0 0.5; - fixed: 1 0; - align: 1.0 0.5; - min: 30 0; - } - } - } - programs { - GENLIST_PROGRAMS("default2", "disabled2") - } -} - -/******************************************************************* -Tizen TV_General Guide_GUI Guideline_v1.0_140709.pptx 45 2text_1icon -********************************************************************/ -group { "elm/genlist/item/2text_1icon/default"; nomouse; program_source: "elm"; - data.item: "texts" "elm.text elm.text2"; - data.item: "contents" "elm.swallow.icon"; - data.item: "focus_highlight" "on"; - target_group: "default" "base" "bottom_line" "elm.text" "elm.text2"; - target_group: "disabled" "event" "elm.text" "elm.text2"; - parts { - GENLIST_BASE(42 50 64 255, 69 143 255 255) - GENLIST_PAD(38, 32, 32, 37) - GENLIST_BOTTOM_LINE(222 222 222 222) - swallow { "elm.swallow.icon"; mouse; scale; - desc { "default"; - rel1.to_x: "pad.bottom.right"; - rel1.relative: 0.0 0.5; - rel2.to_x: "pad.bottom.right"; - rel2.relative: 0.0 0.5; - min: 80 80; - fixed: 1 1; - align: 1.0 0.5; - } - } - spacer { "pad.center"; scale; - desc { "default"; - rel1.to_x: "elm.swallow.icon"; - rel1.relative: 0.0 0.0; - rel2.to_x: "elm.swallow.icon"; - rel2.relative: 0.0 1.0; - min: 32 0; - fixed: 1 0; - align: 1.0 0.5; - } - } - text { "elm.text"; scale; - desc { "default"; - rel1.to: "pad.top.left"; - rel1.relative: 1.0 1.0; - rel2.to_x: "pad.center"; - rel2.to_y: "pad.top.left"; - rel2.relative: 0.0 1.0; - fixed: 0 1; - align: 0.5 0.0; - color: 165 167 175 255; - text { font: FONT_M; size: 32; - min: 1 1; - ellipsis: -1; - align: 0.0 0.5; - } - } - desc { "selected"; inherit: "default"; - color: 255 255 255 255; - } - desc { "focused"; inherit: "default"; - color: 255 255 255 255; - } - desc { "disabled"; inherit: "default"; - color: 50 50 50 255; - } - } - text { "elm.text2"; scale; - desc { "default"; - rel1.to: "elm.text"; - rel1.relative: 0.0 1.0; - rel2.to_x: "elm.text"; - rel2.to_y: "pad.bottom.right"; - rel2.relative: 1.0 0.0; - fixed: 0 0; - align: 0.5 0.5; - color: 164 167 174 255; - text { font: FONT_R; size: 22; - min: 1 1; - ellipsis: -1; - align: 0.0 0.5; - } - } - desc { "selected"; inherit: "default"; - color: 255 255 255 255; - } - desc { "focused"; inherit: "default"; - color: 255 255 255 255; - } - desc { "disabled"; inherit: "default"; - color: 50 50 50 255; - } - } - } - programs { - GENLIST_PROGRAMS("default", "disabled") - } -} - -/******************************************************************* -Tizen TV_General Guide_GUI Guideline_v1.0_140709.pptx 46 3text_1icon -********************************************************************/ -group { "elm/genlist/item/3text_1icon/default"; nomouse; program_source: "elm"; - inherit: "elm/genlist/item/2text_1icon/default"; - data.item: "texts" "elm.text elm.text2 elm.text3"; - data.item: "contents" "elm.swallow.icon"; - data.item: "focus_highlight" "on"; - target_group: "default2" "base" "bottom_line" "elm.text" "elm.text2" "elm.text3"; - target_group: "disabled2" "event" "elm.text" "elm.text2" "elm.text3"; - parts { - GENLIST_BASE(42 50 64 255, 69 143 255 255) - GENLIST_PAD(38, 32, 32, 37) - GENLIST_BOTTOM_LINE(222 222 222 222) - text { "elm.text2"; scale; - desc { "default"; - rel1.to: "elm.text"; - rel1.relative: 0.0 1.0; - rel2.to: "elm.text"; - rel2.relative: 1.0 1.0; - fixed: 0 1; - align: 0.5 0.0; - color: 164 167 174 255; - text { font: FONT_R; size: 22; - min: 1 1; - ellipsis: -1; - align: 0.0 0.5; - } - } - desc { "selected"; inherit: "default"; - color: 255 255 255 255; - } - desc { "focused"; inherit: "default"; - color: 255 255 255 255; - } - desc { "disabled"; inherit: "default"; - color: 50 50 50 255; - } - } - text { "elm.text3"; scale; - desc { "default"; - rel1.to: "elm.text2"; - rel1.relative: 0.0 1.0; - rel2.to_x: "elm.text2"; - rel2.to_y: "pad.bottom.right"; - rel2.relative: 1.0 0.0; - fixed: 0 0; - align: 0.5 0.5; - color: 164 167 174 255; - text { font: FONT_R; size: 22; - min: 1 1; - ellipsis: -1; - align: 0.0 0.5; - } - } - desc { "selected"; inherit: "default"; - color: 255 255 255 255; - } - desc { "focused"; inherit: "default"; - color: 255 255 255 255; - } - desc { "disabled"; inherit: "default"; - color: 50 50 50 255; - } - } - } - programs { - GENLIST_PROGRAMS("default2", "disabled2") - } -} - -/******************************************************************* -Tizen TV_General Guide_GUI Guideline_v1.0_140709.pptx 47 4text_1icon -********************************************************************/ -group { "elm/genlist/item/4text_1icon/default"; nomouse; program_source: "elm"; - inherit: "elm/genlist/item/3text_1icon/default"; - data.item: "texts" "elm.text elm.text2 elm.text3 elm.text4"; - data.item: "contents" "elm.swallow.icon"; - data.item: "focus_highlight" "on"; - target_group: "default3" "base" "bottom_line" "elm.text" "elm.text2" "elm.text3" "elm.text4"; - target_group: "disabled3" "event" "elm.text" "elm.text2" "elm.text3" "elm.text4"; - parts { - GENLIST_BASE(42 50 64 255, 69 143 255 255) - GENLIST_PAD(38, 32, 32, 37) - GENLIST_BOTTOM_LINE(222 222 222 222) - text { "elm.text3"; scale; - desc { "default"; - rel1.to: "elm.text2"; - rel1.relative: 0.0 1.0; - rel2.to: "elm.text2"; - rel2.relative: 1.0 1.0; - fixed: 0 1; - align: 0.5 0.0; - color: 164 167 174 255; - text { font: FONT_R; size: 22; - min: 1 1; - ellipsis: -1; - align: 0.0 0.5; - } - } - desc { "selected"; inherit: "default"; - color: 255 255 255 255; - color: 255 255 255 255; - } - desc { "focused"; inherit: "default"; - color: 255 255 255 255; - } - desc { "disabled"; inherit: "default"; - color: 50 50 50 255; - } - } - text { "elm.text4"; scale; - desc { "default"; - rel1.to: "elm.text3"; - rel1.relative: 0.0 1.0; - rel2.to_x: "elm.text3"; - rel2.to_y: "pad.bottom.right"; - rel2.relative: 1.0 0.0; - fixed: 0 0; - align: 0.5 0.5; - color: 164 167 174 255; - text { font: FONT_R; size: 22; - min: 1 1; - ellipsis: -1; - align: 0.0 0.5; - } - } - desc { "selected"; inherit: "default"; - color: 255 255 255 255; - } - desc { "focused"; inherit: "default"; - color: 255 255 255 255; - } - desc { "disabled"; inherit: "default"; - color: 50 50 50 255; - } - } - } - programs { - GENLIST_PROGRAMS("default3", "disabled3") - } -} - -/************************************************************************* -Tizen TV_General Guide_GUI Guideline_v1.0_140709.pptx 48 2text_1icon_2 -**************************************************************************/ -group { "elm/genlist/item/2text_1icon_2/default"; nomouse; program_source: "elm"; - inherit: "elm/genlist/item/2text_1icon/default"; - data.item: "texts" "elm.text elm.text2"; - data.item: "contents" "elm.swallow.icon"; - data.item: "focus_highlight" "on"; - parts { - swallow { "elm.swallow.icon"; mouse; scale; - desc { "default"; - rel1.relative: 1.0 0.0; - rel2.relative: 1.0 1.0; - fixed: 1 0; - align: 1.0 0.5; - } - } - } -} - -/******************************************************************* -Tizen TV_General Guide_GUI Guideline_v1.0_140709.pptx 49 progress -********************************************************************/ -group { "elm/genlist/item/progress/default"; nomouse; program_source: "elm"; - data.item: "texts" "elm.text elm.text2"; - data.item: "contents" "elm.swallow.icon elm.swallow.end"; - data.item: "focus_highlight" "on"; - target_group: "default" "base" "bottom_line" "elm.text" "elm.text2"; - target_group: "disabled" "event" "elm.text" "elm.text2"; - parts { - GENLIST_BASE(42 50 64 255, 69 143 255 255) - GENLIST_PAD(38, 32, 32, 47) - GENLIST_BOTTOM_LINE(222 222 222 222) - text { "elm.text"; scale; - desc { "default"; - rel1.to: "pad.top.left"; - rel1.relative: 1.0 1.0; - rel2.to: "pad.center"; - rel2.relative: 0.0 0.0; - color: 211 211 211 255; - align: 0.0 0.5; - fixed: 0 0; - text { font: FONT_M; size: 24; - min: 1 1; - ellipsis: -1; - align: 0.0 0.5; - } - } - desc { "focused"; inherit: "default" 0.0; - color: 255 255 255 255; - } - desc { "disabled"; inherit: "default" 0.0; - color: 50 50 50 255; - } - } - - ////// parts from right side - swallow { "elm.swallow.end"; mouse; scale; - desc { "default"; - rel1.to_x: "pad.bottom.right"; - rel1.relative: 0.0 0.5; - rel2.to_x: "pad.bottom.right"; - rel2.relative: 0.0 0.5; - min: 80 80; - fixed: 0 1; - align: 1.0 0.5; - } - } - spacer { "pad.center2"; scale; - desc { "default"; - rel1.to_x: "elm.swallow.end"; - rel1.relative: 0.0 0.0; - rel2.to_x: "elm.swallow.end"; - rel2.relative: 0.0 1.0; - min: 32 0; - fixed: 1 0; - align: 1.0 0.5; - } - } - text { "elm.text2"; scale; - desc { "default"; - rel1.to_x: "pad.center2"; - rel1.to_y: "pad.bottom2"; - rel1.relative: 0.0 0.0; - rel2.to_x: "pad.center2"; - rel2.to_y: "pad.bottom2"; - rel2.relative: 0.0 0.0; - align: 1.0 1.0; - min: 100 0; - fixed: 1 1; - color: 211 211 211 255; - text { font: FONT_M; size: 24; - min: 0 1; - } - } - desc { "focused"; inherit: "default" 0.0; - color: 255 255 255 255; - } - desc { "disabled"; inherit: "default" 0.0; - color: 50 50 50 255; - } - } - // a padding between elm.text, elm.text2, elm.swallow.icon - spacer { "pad.center"; scale; - desc { "default"; - rel1.to_x: "elm.text2"; - rel1.to_y: "elm.swallow.icon"; - rel1.relative: 0.0 0.0; - rel2.to_x: "elm.text2"; - rel2.to_y: "elm.swallow.icon"; - rel2.relative: 0.0 0.0; - min: 20 11; - fixed: 1 1; - align: 1.0 1.0; - } - } - swallow { "elm.swallow.icon"; mouse; scale; - desc { "default"; - rel1.to_x: "pad.top.left"; - rel1.to_y: "pad.bottom.right"; - rel1.relative: 1.0 0.0; - rel2.to_x: "pad.center2"; - rel2.to_y: "pad.bottom.right"; - rel2.relative: 0.0 0.0; - min: 0 20; - fixed: 0 1; - align: 0.5 1.0; - } - } - // a padding between elm.text2, elm.swallow.icon - spacer { "pad.bottom2"; scale; - desc { "default"; - rel1.to_y: "elm.swallow.icon"; - rel2.to_y: "elm.swallow.icon"; - rel2.relative: 1.0 0.0; - min: 0 4; - fixed: 0 1; - align: 0.5 1.0; - } - } - } - programs { - GENLIST_PROGRAMS("default", "disabled") - } -} - -/******************************************************************* -Tizen TV_General Guide_GUI Guideline_v1.0_140709.pptx 59 2text_2icon -********************************************************************/ -group { "elm/genlist/item/2text_2icon/default"; nomouse; program_source: "elm"; - data.item: "texts" "elm.text elm.text2"; - data.item: "contents" "elm.swallow.icon elm.swallow.end"; - data.item: "focus_highlight" "on"; - target_group: "default" "base" "bottom_line" "elm.text" "elm.text2"; - target_group: "disabled" "event" "elm.text" "elm.text2"; - parts { - GENLIST_BASE(42 50 64 255, 69 143 255 255) - GENLIST_PAD(32, 32, 29, 19) - GENLIST_BOTTOM_LINE(222 222 222 222) - swallow { "elm.swallow.icon"; mouse; scale; - desc { "default"; - rel1.to: "pad.top.left"; - rel1.relative: 1.0 1.0; - rel2.to: "pad.top.left"; - rel2.relative: 1.0 1.0; - min: 44 44; - fixed: 1 1; - align: 0.0 0.0; - } - } - spacer { "pad.left.center"; scale; - desc { "default"; - rel1.to: "elm.swallow.icon"; - rel1.relative: 0.0 1.0; - rel2.to: "elm.swallow.icon"; - min: 0 3; - fixed: 0 1; - align: 0.5 0.0; - } - } - text { "elm.text2"; scale; - desc { "default"; - rel1.to: "pad.left.center"; - rel1.relative: 0.0 1.0; - rel2.to_x: "pad.left.center"; - rel2.to_y: "pad.bottom.right"; - rel2.relative: 1.0 0.0; - color: 211 211 211 255; - min: 0 20; - text { font: FONT_M; size: 24; - min: 0 1; - } - } - desc { "focused"; inherit: "default" 0.0; - color: 255 255 255 255; - } - desc { "disabled"; inherit: "default" 0.0; - color: 50 50 50 255; - } - } - spacer { "pad.center"; scale; - desc { "default"; - rel1.to: "elm.swallow.icon"; - rel1.relative: 1.0 0.0; - rel2.to: "elm.swallow.icon"; - rel2.relative: 1.0 1.0; - min: 19 0; - fixed: 1 0; - align: 0.0 0.5; - } - } - text { "elm.text"; scale; - desc { "default"; - rel1.to_x: "pad.center"; - rel1.relative: 1.0 0.5; - rel2.to_x: "pad.center"; - rel2.relative: 1.0 0.5; - align: 0.0 0.5; - fixed: 1 1; - color: 211 211 211 255; - text { font: FONT_M; size: 24; - min: 1 1; - ellipsis: -1; - } - } - desc { "focused"; inherit: "default" 0.0; - color: 255 255 255 255; - } - desc { "disabled"; inherit: "default" 0.0; - color: 50 50 50 255; - } - } - spacer { "pad.center2"; scale; - desc { "default"; - rel1.to_x: "elm.text"; - rel1.relative: 1.0 0.0; - rel2.to_x: "elm.text"; - rel2.relative: 1.0 1.0; - min: 14 0; - fixed: 1 0; - align: 0.0 0.5; - } - } - //FIXME: with icon - swallow { "elm.swallow.end"; mouse; scale; - desc { "default"; - rel1.to_x: "pad.center2"; - rel1.relative: 1.0 0.0; - rel2.to_x: "pad.bottom.right"; - rel2.relative: 0.0 1.0; - min: 40 30; - max: 40 30; - fixed: 0 1; - align: 0.0 0.5; - } - } - } - programs { - GENLIST_PROGRAMS("default", "disabled") - } -} - -#undef TOPP -#undef IMGP -#undef TREEIMGS - -group { "elm/genlist/item/full/default"; nomouse; program_source: "elm"; - alias: "elm/genlist/item_compress/full/default"; - alias: "elm/genlist/tree/full/default"; - alias: "elm/genlist/tree_compress/full/default"; - data.item: "contents" "elm.swallow.content"; - data.item: "focus_highlight" "on"; - - target_group: "default" "base" "bottom_line"; - target_group: "disabled" "event"; - parts { - GENLIST_BASE_COLOR_CLASS("genlist_item/full/bg", "genlist_item/full/bg_selected", "genlist_item/full/bg_focused") - GENLIST_PAD(40, 40, 20, 20) - swallow { "elm.swallow.content"; scale; - desc { "default"; - rel1 { to: "base"; relative: 0.0 0.0; } - rel2 { to: "base"; relative: 1.0 1.0; } - } - } - GENLIST_BOTTOM_LINE_COLOR_CLASS("genlist_item/full/bottomline") - } -} - -group { "elm/genlist/item/group_index/default"; nomouse; program_source: "elm"; - alias: "elm/genlist/item_compress/group_index/default"; - alias: "elm/genlist/tree/group_index/default"; - alias: "elm/genlist/tree_compress/group_index/default"; - - data.item: "texts" "elm.text elm.text.end"; - data.item: "contents" "elm.swallow.end"; - data.item: "focus_highlight" "on"; - - target_group: "default" "base" "bottom_line" "elm.text" "elm.text.end"; - target_group: "disabled" "event" "elm.text" "elm.text.end"; - - parts { - GENLIST_BASE_COLOR_CLASS("genlist_item/group_index/bg", "genlist_item/group_index/bg_selected", "genlist_item/group_index/bg_focused") - GENLIST_PAD(70, 70, 20, 20) - GENLIST_BOTTOM_LINE_COLOR_CLASS("genlist_item/group_index/bottomline") - - textblock { "elm.text"; scale; - desc { "default"; - rel1.to: "pad.top.left"; - rel1.relative: 1.0 1.0; - rel2.to_x: "pad.center"; - rel2.to_y: "pad.bottom.right"; - rel2.relative: 0.0 0.0; - color: 255 255 255 204; // 80% - text { - min: 1 1; - style: "list_group_index_text"; - } - } - desc { "focused"; inherit: "default"; - color: 255 255 255 255; - text.style: "list_group_index_text_focused"; - } - desc { "disabled"; inherit: "default"; - color: 50 50 50 255; - text.style: "list_group_index_text_disabled"; - } - } - - textblock { "elm.text.end"; scale; - desc { "default"; - rel1.to_x: "pad.center.right"; - rel1.relative: 0.0 0.5; - rel2.to_x: "pad.center.right"; - rel2.relative: 0.0 0.5; - align: 1.0 0.5; - color: 255 255 255 204; // 80% - fixed: 1 1; - text { - min: 1 1; - style: "list_group_index_text_end"; - } - } - desc { "focused"; inherit: "default"; - color: 255 255 255 255; - text.style: "list_group_index_text_end_focused"; - } - desc { "disabled"; inherit: "default"; - color: 50 50 50 255; - text.style: "list_group_index_text_end_disabled"; - } - } - swallow { "elm.swallow.end"; mouse; - desc { "default"; - rel1.to_x: "pad.bottom.right"; - rel1.relative: 0.0 0.5; - rel2.to_x: "pad.bottom.right"; - rel2.relative: 0.0 0.5; - min: 40 40; - fixed: 1 1; - align: 1.0 0.5; - } - } - - // a padding between elm.text, elm.swallow.end - spacer { "pad.center"; scale; - desc { "default"; - rel1.to_x: "elm.text.end"; - rel1.relative: 0.0 0.5; - rel2.to_x: "elm.text.end"; - rel2.relative: 0.0 0.5; - fixed: 1 0; - align: 1.0 0.5; - min: 30 0; - } - } - spacer { "pad.center.right"; scale; - desc { "default"; - rel1.to_x: "elm.swallow.end"; - rel1.relative: 0.0 0.5; - rel2.to_x: "elm.swallow.end"; - rel2.relative: 0.0 0.5; - fixed: 1 0; - align: 1.0 0.5; - min: 30 0; - } - } - } - programs { - GENLIST_PROGRAMS("default", "disabled") - } -} - -group { "elm/genlist/item/event/default" - inherit_only: 1; - parts { - rect { "event"; nomouse; repeat; scale; - desc { "default"; - color: 0 0 0 0; - rel.to: "base"; - } - desc { "disabled"; - inherit: "default"; - hid; - } - } - } - programs { - /* Program for enabled event */ - program { "enabled"; - signal: "elm,state,enabled"; - source: "elm"; - action: STATE_SET "default"; - target: "event"; - after: "on_enabled"; - } - /* Program for disabled event */ - program { "disabled"; - signal: "elm,state,disabled"; - source: "elm"; - action: STATE_SET "disabled"; - target: "event"; - after: "on_disabled"; - } - program { "enable_event_pass"; - signal: "elm,event,pass,enabled"; - source: "elm"; - script { - set_mouse_events(PART:"event", 0); - } - } - program { "disable_event_pass"; - signal: "elm,event,pass,disabled"; - source:"elm"; - script { - set_mouse_events(PART:"event", 1); - } - } - program { "enable_event_repeat"; - signal: "elm,event,repeat,enabled"; - source: "elm"; - script { - set_repeat_events(PART:"event", 1); - } - } - program { "disable_event_repeat"; - signal: "elm,event,repeat,disabled"; - source:"elm"; - script { - set_repeat_events(PART:"event", 0); - } - } - } -} - - -group { "elm/genlist/item/type1/default"; - alias: "elm/genlist/item_compress/type1/default"; - alias: "elm/genlist/tree/type1/default"; - alias: "elm/genlist/tree_compress/type1/default"; - inherit: "elm/genlist/item/event/default"; - - data.item: "banded_bg_area" "elm.swallow.bg"; - - data.item: "texts" "elm.text elm.text.end elm.text.sub elm.text.sub.end"; - data.item: "contents" "elm.swallow.icon elm.swallow.icon.0 elm.swallow.icon.1 elm.swallow.icon.2 elm.swallow.end"; - - script { - public end_icon_visible = 0; - public sub_end_text_visible = 0; - } - parts { - // base spacer for item min height - spacer { "base"; scale; - desc { "default"; - min: 0 GENLIST_ITEM_1LINE_HEIGHT_INC; - } - desc { "sub_text_visible"; - min: 0 GENLIST_ITEM_2LINE_HEIGHT_INC; - } - } - // background of item - rect { "bg"; scale; - desc { "default"; - rel.to: "base"; - color_class: "genlist_item/type1/bg"; - } - desc { "pressed"; inherit: "default"; - color_class: "genlist_item/type1/bg_pressed"; - } - desc { "disabled"; inherit: "default"; - color_class: "genlist_item/type1/bg_disabled"; - } - } - // swallow area for banded color - swallow { "elm.swallow.bg"; scale; - desc { "default"; - rel.to: "bg"; - } - } - // left outside padding - spacer { "elm.padding.left"; scale; - desc { "default"; - fixed: 1 0; - min: GENLIST_ITEM_LR_PADDING_INC 0; - align: 0.0 0.5; - rel1 { to: "elm.swallow.bg"; relative: 0.0 0.0; } - rel2 { to: "elm.swallow.bg"; relative: 0.0 1.0; } - } - } - // right outside padding - spacer { "elm.padding.right"; scale; - desc { "default"; - fixed: 1 0; - min: GENLIST_ITEM_LR_PADDING_INC 0; - align: 1.0 0.5; - rel1 { to: "elm.swallow.bg"; relative: 1.0 0.0; } - rel2 { to: "elm.swallow.bg"; relative: 1.0 1.0; } - } - } - // top outside padding - spacer { "elm.padding.top"; scale; - desc { "default"; - fixed: 0 1; - min: 0 GENLIST_ITEM_TOP_PADDING_INC; - max: -1 GENLIST_ITEM_TOP_PADDING_INC; - align: 0.5 0.0; - rel1 { to: "elm.swallow.bg"; relative: 0.0 0.0; } - rel2 { to: "elm.swallow.bg"; relative: 1.0 0.0; } - } - } - // bottom outside padding - spacer { "elm.padding.bottom"; scale; - desc { "default"; - fixed: 0 1; - min: 0 GENLIST_ITEM_BOTTOM_PADDING_INC; - max: -1 GENLIST_ITEM_BOTTOM_PADDING_INC; - align: 0.5 1.0; - rel1 { to: "elm.swallow.bg"; relative: 0.0 1.0; } - rel2 { to: "elm.swallow.bg"; relative: 1.0 1.0; } - } - } - // left swallow (Type B) - swallow { "elm.swallow.icon"; scale; - desc { "default"; - fixed: 1 0; - align: 0.0 0.5; - rel1 { to_x: "elm.padding.left"; to_y: "elm.padding.top"; relative: 1.0 1.0; } - rel2 { to_x: "elm.padding.left"; to_y: "elm.padding.bottom"; relative: 1.0 0.0; } - } - } - // padding between Type B & Type A - spacer { "elm.padding.B.A"; scale; - desc { "default"; - fixed: 1 0; - min: 0 0; - align: 0.0 0.5; - rel1 { to_x: "elm.swallow.icon"; to_y: "elm.padding.top"; relative: 1.0 1.0; } - rel2 { to_x: "elm.swallow.icon"; to_y: "elm.padding.bottom"; relative: 1.0 0.0; } - } - desc { "icon_visible"; inherit: "default"; - min: GENLIST_ITEM_TYPE_BA_PADDING_INC 0; - } - } - // right swallow (Type C) - swallow { "elm.swallow.end"; scale; - desc { "default"; - fixed: 1 0; - align: 1.0 0.5; - rel1 { to_x: "elm.padding.right"; to_y: "elm.padding.top"; relative: 0.0 1.0; } - rel2 { to_x: "elm.padding.right"; to_y: "elm.padding.bottom"; relative: 0.0 0.0; } - } - } - // padding between Type D & Type C - spacer { "elm.padding.D.C"; scale; - desc { "default"; - fixed: 1 0; - min: 0 0; - align: 1.0 0.5; - rel1 { to_x: "elm.swallow.end"; to_y: "elm.padding.top"; relative: 0.0 1.0; } - rel2 { to_x: "elm.swallow.end"; to_y: "elm.padding.bottom"; relative: 0.0 0.0; } - } - desc { "icon_visible"; inherit: "default"; - min: GENLIST_ITEM_TYPE_DC_PADDING_INC 0; - } - } - // right swallow 2 (Type D) - swallow { "elm.swallow.icon.2"; scale; - desc { "default"; - fixed: 1 0; - align: 1.0 0.5; - rel1 { to_x: "elm.padding.D.C"; to_y: "elm.padding.top"; relative: 0.0 1.0; } - rel2 { to_x: "elm.padding.D.C"; to_y: "elm.padding.bottom"; relative: 0.0 0.0; } - } - } - // padding between Type A & Type D - spacer { "elm.padding.A.D"; scale; - desc { "default"; - fixed: 1 0; - min: 0 0; - align: 1.0 0.5; - rel1 { to_x: "elm.swallow.icon.2"; to_y: "elm.padding.top"; relative: 0.0 1.0; } - rel2 { to_x: "elm.swallow.icon.2"; to_y: "elm.padding.bottom"; relative: 0.0 0.0; } - } - desc { "icon_visible"; inherit: "default"; - min: GENLIST_ITEM_TYPE_AD_PADDING_INC 0; - } - } - // main text line - swallow { "elm.swallow.icon.0"; scale; - desc { "default"; - fixed: 1 0; - align: 0.0 0.5; - rel1 { to_x: "elm.padding.B.A"; to_y: "elm.padding.top"; relative: 1.0 1.0; } - rel2 { to_x: "elm.padding.B.A"; to_y: "elm.text"; relative: 1.0 1.0; } - } - } - swallow { "elm.swallow.icon.1"; scale; - desc { "default"; - fixed: 1 0; - align: 1.0 0.5; - rel1 { to_x: "elm.padding.A.D"; to_y: "elm.padding.top"; relative: 0.0 1.0; } - rel2 { to_x: "elm.padding.A.D"; to_y: "elm.text"; relative: 0.0 1.0; } - } - } - spacer { "elm.padding.main.icon.text"; scale; - desc { "default"; - fixed: 1 0; - min: 0 0; - align: 0.0 0.5; - rel1 { to: "elm.swallow.icon.0"; to_y: "elm.padding.top"; relative: 1.0 1.0; } - rel2 { to: "elm.swallow.icon.0"; to_y: "elm.padding.bottom"; relative: 1.0 0.0; } - } - desc { "icon_visible"; inherit: "default"; - min: GENLIST_ITEM_MAIN_LINE_ICON_TEXT_PADDING_INC 0; - } - } - textblock { "elm.text.end"; scale; - desc { "default"; - fixed: 1 0; - min: 0 GENLIST_ITEM_MAIN_LINE_HEIGHT_INC; - max: GENLIST_ITEM_END_TEXT_WIDTH_INC -1; - align: 1.0 0.5; - rel1 { to_x: "elm.swallow.icon.1"; to_y: "elm.padding.top"; relative: 0.0 1.0; } - rel2 { to_x: "elm.swallow.icon.1"; to_y: "elm.text"; relative: 0.0 1.0; } - text.style: "list_type1_text_end"; - text.min: 1 1; - text.max: 0 1; - } - desc { "pressed"; inherit: "default"; - text.style: "list_type1_text_end_pressed"; - } - desc { "disabled"; inherit: "default"; - text.style: "list_type1_text_end_disabled"; - } - } - spacer { "elm.padding.main.text.end"; scale; - desc { "default"; - fixed: 1 0; - min: 0 0; - align: 1.0 0.5; - rel1 { to_x: "elm.text.end"; to_y: "elm.padding.top"; relative: 0.0 1.0; } - rel2 { to_x: "elm.text.end"; to_y: "elm.padding.bottom"; relative: 0.0 0.0; } - } - desc { "icon_visible"; inherit: "default"; - min: GENLIST_ITEM_MAIN_LINE_TEXT_END_PADDING_INC 0; - } - desc { "text_visible"; inherit: "default"; - min: GENLIST_ITEM_MAIN_LINE_TEXT_END_PADDING_INC 0; - } - } - textblock { "elm.text"; scale; - desc { "default"; - fixed: 0 1; - min: 0 GENLIST_ITEM_MAIN_LINE_HEIGHT_INC; - align: 0.5 0.0; - rel1 { to_x: "elm.padding.main.icon.text"; to_y: "elm.padding.top"; relative: 1.0 1.0; } - rel2 { to_x: "elm.padding.main.text.end"; to_y: "elm.padding.top"; relative: 0.0 1.0; } - text.style: "list_type1_text"; - text.min: 0 1; - } - desc { "pressed"; inherit: "default"; - text.style: "list_type1_text_pressed"; - } - desc { "disabled"; inherit: "default"; - text.style: "list_type1_text_disabled"; - } - } - // sub text line - textblock { "elm.text.sub.end"; scale; - desc { "default"; - fixed: 1 0; - min: 0 GENLIST_ITEM_SUB_LINE_HEIGHT_INC; - max: GENLIST_ITEM_END_TEXT_WIDTH_INC -1; - align: 1.0 0.5; - rel1 { to_x: "elm.padding.A.D"; to_y: "elm.text.sub"; relative: 0.0 0.0; } - rel2 { to_x: "elm.padding.A.D"; to_y: "elm.padding.bottom"; relative: 0.0 0.0; } - text.style: "list_type1_text_sub_end"; - text.min: 1 1; - text.max: 0 1; - } - desc { "pressed"; inherit: "default"; - text.style: "list_type1_text_sub_end_pressed"; - } - desc { "disabled"; inherit: "default"; - text.style: "list_type1_text_sub_end_disabled"; - } - } - spacer { "elm.padding.sub.text.end"; scale; - desc { "default"; - fixed: 1 0; - min: 0 0; - align: 1.0 0.5; - rel1 { to_x: "elm.text.sub.end"; to_y: "elm.padding.top"; relative: 0.0 1.0; } - rel2 { to_x: "elm.text.sub.end"; to_y: "elm.padding.bottom"; relative: 0.0 0.0; } - } - desc { "icon_visible"; inherit: "default"; - min: GENLIST_ITEM_SUB_LINE_TEXT_END_PADDING_INC 0; - } - desc { "text_visible"; inherit: "default"; - min: GENLIST_ITEM_SUB_LINE_TEXT_END_PADDING_INC 0; - } - } - textblock { "elm.text.sub"; scale; - desc { "default"; - fixed: 0 1; - min: 0 GENLIST_ITEM_SUB_LINE_HEIGHT_INC; - align: 0.5 1.0; - rel1 { to_x: "elm.padding.B.A"; to_y: "elm.padding.bottom"; relative: 1.0 0.0; } - rel2 { to_x: "elm.padding.sub.text.end"; to_y: "elm.padding.bottom"; relative: 0.0 0.0; } - text.style: "list_type1_text_sub"; - text.min: 0 1; - } - desc { "pressed"; inherit: "default"; - text.style: "list_type1_text_sub_pressed"; - } - desc { "disabled"; inherit: "default"; - text.style: "list_type1_text_sub_disabled"; - } - } - // bottom base of main text line - spacer { "base_line"; - desc { "default"; - fixed: 0 0; - rel1 { to_y: "elm.text"; relative: 0.0 1.0; } - rel2 { to_y: "elm.padding.bottom"; relative: 1.0 0.0; } - } - desc { "sub_text_visible"; inherit: "default"; - rel1 { to_y: "elm.text"; relative: 0.0 1.0; } - rel2 { to_y: "elm.text.sub"; relative: 1.0 0.0; } - } - } - rect { "elm.bottomline"; scale; - desc { "default"; - vis; - fixed: 0 1; - min: 0 2; - max: -1 2; - align: 0.5 0.0; - rel1.relative: 0.0 0.0; - rel2.relative: 1.0 0.0; - color_class: "genlist_item/type1/bottomline"; - } - desc { "hidden"; inherit: "default"; - hid; - } - } - rect { "event"; - after: "elm.bottomline"; - desc { "default"; - rel.to: "base"; - } - desc { "disabled"; - inherit: "default"; - hid; - } - } - } - programs { - program { - signal: "elm,state,elm.swallow.bg,visible"; - source: "elm"; - action: STATE_SET "hidden"; - target: "elm.bottomline"; - } - program { - signal: "elm,state,elm.swallow.bg,hidden"; - source: "elm"; - action: STATE_SET "default"; - target: "elm.bottomline"; - } - program { - signal: "elm,state,elm.swallow.icon,visible"; - source: "elm"; - action: STATE_SET "icon_visible"; - target: "elm.padding.B.A"; - } - program { - signal: "elm,state,elm.swallow.icon,hidden"; - source: "elm"; - action: STATE_SET "default"; - target: "elm.padding.B.A"; - } - program { - signal: "elm,state,elm.swallow.icon.2,visible"; - source: "elm"; - action: STATE_SET "icon_visible"; - target: "elm.padding.A.D"; - } - program { - signal: "elm,state,elm.swallow.icon.2,hidden"; - source: "elm"; - action: STATE_SET "default"; - target: "elm.padding.A.D"; - } - program { - signal: "elm,state,elm.swallow.end,visible"; - source: "elm"; - action: STATE_SET "icon_visible"; - target: "elm.padding.D.C"; - } - program { - signal: "elm,state,elm.swallow.end,hidden"; - source: "elm"; - action: STATE_SET "default"; - target: "elm.padding.D.C"; - } - program { - signal: "elm,state,elm.swallow.icon.0,visible"; - source: "elm"; - action: STATE_SET "icon_visible"; - target: "elm.padding.main.icon.text"; - } - program { - signal: "elm,state,elm.swallow.icon.0,hidden"; - source: "elm"; - action: STATE_SET "default"; - target: "elm.padding.main.icon.text"; - } - program { - signal: "elm,state,elm.swallow.icon.1,visible"; - source: "elm"; - script { - if (get_int(sub_end_text_visible) == 0) { - set_state(PART:"elm.padding.main.text.end", "icon_visible", 0.0); - set_state(PART:"elm.padding.sub.text.end", "icon_visible", 0.0); - } - else { - set_state(PART:"elm.padding.main.text.end", "sub_text_visible", 0.0); - set_state(PART:"elm.padding.sub.text.end", "text_visible", 0.0); - } - set_int(end_icon_visible, 1); - } - } - program { - signal: "elm,state,elm.swallow.icon.1,hidden"; - source: "elm"; - script { - set_state(PART:"elm.padding.main.text.end", "default", 0.0); - set_state(PART:"elm.padding.sub.text.end", "default", 0.0); - set_int(end_icon_visible, 1); - } - } - program { - signal: "elm,state,elm.text.sub,visible"; - source: "elm"; - action: STATE_SET "sub_text_visible"; - target: "base"; - target: "base_line"; - } - program { - signal: "elm,state,elm.text.sub,hidden"; - source: "elm"; - action: STATE_SET "default"; - target: "base"; - target: "base_line"; - } - program { - signal: "elm,state,elm.text.end,visible"; - source: "elm"; - script { - if (get_int(end_icon_visible) == 1 && get_int(sub_end_text_visible) == 1) { - set_state(PART:"elm.padding.main.text.end", "sub_text_visible", 0.0); - } - else { - set_state(PART:"elm.padding.main.text.end", "text_visible", 0.0); - } - } - } - program { - signal: "elm,state,elm.text.end,hidden"; - source: "elm"; - script { - set_state(PART:"elm.padding.main.text.end", "default", 0.0); - } - } - program { - signal: "elm,state,elm.text.sub.end,visible"; - source: "elm"; - script { - set_int(sub_end_text_visible, 1); - set_state(PART:"elm.padding.sub.text.end", "text_visible", 0.0); - } - } - program { - signal: "elm,state,elm.text.sub.end,hidden"; - source: "elm"; - script { - set_int(sub_end_text_visible, 0); - set_state(PART:"elm.padding.sub.text.end", "default", 0.0); - } - } - program { "default"; - signal: "elm,state,default"; - source: "elm"; - script { - set_state(PART:"base", "default", 0.0); - set_state(PART:"base_line", "default", 0.0); - set_state(PART:"elm.swallow.icon.1", "default", 0.0); - set_state(PART:"elm.padding.B.A", "default", 0.0); - set_state(PART:"elm.padding.A.D", "default", 0.0); - set_state(PART:"elm.padding.D.C", "default", 0.0); - set_state(PART:"elm.padding.main.icon.text", "default", 0.0); - set_state(PART:"elm.padding.main.text.end", "default", 0.0); - set_state(PART:"elm.padding.sub.text.end", "default", 0.0); - set_state(PART:"elm.bottomline", "default", 0.0); - set_state(PART:"bg", "default", 0.0); - set_state(PART:"elm.text", "default", 0.0); - set_state(PART:"elm.text.end", "default", 0.0); - set_state(PART:"elm.text.sub", "default", 0.0); - set_state(PART:"elm.text.sub.end", "default", 0.0); - set_state(PART:"event", "default", 0.0); - set_int(sub_end_text_visible, 0); - } - } - program { "pressed"; - signal: "elm,state,selected"; - source: "elm"; - action: STATE_SET "pressed"; - target: "bg"; - target: "elm.text"; - target: "elm.text.end"; - target: "elm.text.sub"; - target: "elm.text.sub.end"; - } - program { "unpressed"; - signal: "elm,state,unselected"; - source: "elm"; - action: STATE_SET "default"; - target: "bg"; - target: "elm.text"; - target: "elm.text.end"; - target: "elm.text.sub"; - target: "elm.text.sub.end"; - } - program { "on_enabled"; - action: STATE_SET "default"; - target: "bg"; - target: "elm.text"; - target: "elm.text.end"; - target: "elm.text.sub"; - target: "elm.text.sub.end"; - } - program { "on_disabled"; - action: STATE_SET "disabled"; - target: "bg"; - target: "elm.text"; - target: "elm.text.end"; - target: "elm.text.sub"; - target: "elm.text.sub.end"; - } - } -} - -group { "elm/genlist/item/double_label/default"; - alias: "elm/genlist/item_compress/double_label/default"; - alias: "elm/genlist/tree/double_label/default"; - alias: "elm/genlist/tree_compress/double_label/default"; - inherit: "elm/genlist/item/type1/default"; - data.item: "texts" "elm.text elm.text.sub"; - data.item: "contents" "elm.swallow.icon elm.swallow.end"; - parts { - rect { "bg"; scale; - desc { "default"; - color_class: "genlist_item/double_label/bg"; - } - desc { "pressed"; inherit: "default"; - color_class: "genlist_item/double_label/bg_pressed"; - } - desc { "disabled"; inherit: "default"; - color_class: "genlist_item/double_label/bg_disabled"; - } - } - textblock { "elm.text.sub"; scale; - desc { "default"; - text.style: "list_double_label_text_sub"; - } - desc { "pressed"; inherit: "default"; - text.style: "list_double_label_text_sub_pressed"; - } - desc { "disabled"; inherit: "default"; - text.style: "list_double_label_text_sub_disabled"; - } - } - textblock { "elm.text"; scale; - desc { "default"; - text.style: "list_double_label_text"; - } - desc { "pressed"; inherit: "default"; - text.style: "list_double_label_text_pressed"; - } - desc { "disabled"; inherit: "default"; - text.style: "list_double_label_text_disabled"; - } - } - rect { "elm.bottomline"; scale; - desc { "default"; - color_class: "genlist_item/double_label/bottomline"; - } - } - } -} - -group { "elm/genlist/item/end_icon/default"; nomouse; program_source: "elm"; - alias: "elm/genlist/item_compress/end_icon/default"; - alias: "elm/genlist/tree/end_icon/default"; - alias: "elm/genlist/tree_compress/end_icon/default"; - - data.item: "texts" "elm.text"; - data.item: "contents" "elm.swallow.end"; - data.item: "focus_highlight" "on"; - target_group: "default" "base" "bottom_line" "elm.text"; - target_group: "disabled" "event" "elm.text"; - parts { - GENLIST_BASE_COLOR_CLASS("genlist_item/end_icon/bg", "genlist_item/end_icon/bg_selected", "genlist_item/end_icon/bg_focused") - GENLIST_PAD(40, 40, 20, 20) - GENLIST_BOTTOM_LINE_COLOR_CLASS("genlist_item/end_icon/bottomline") - - text { "elm.text"; scale; - desc { "default"; - rel1.to: "pad.top.left"; - rel1.relative: 1.0 1.0; - rel2.to_x: "pad.center"; - rel2.to_y: "pad.bottom.right"; - rel2.relative: 0.0 0.0; - color: 89 89 89 255; - text { font: FONT_M; size: 30; - min: 1 1; - ellipsis: -1; - align: 0.0 0.5; - } - } - desc { "focused"; inherit: "default"; - color: 255 255 255 255; - } - desc { "disabled"; inherit: "default"; - color: 50 50 50 255; - } - } - swallow { "elm.swallow.end"; mouse; - desc { "default"; - rel1.to_x: "pad.bottom.right"; - rel1.relative: 0.0 0.5; - rel2.to_x: "pad.bottom.right"; - rel2.relative: 0.0 0.5; - min: 40 40; - fixed: 1 1; - align: 1.0 0.5; - } - } - // a padding between elm.text, elm.swallow.end - spacer { "pad.center"; scale; - desc { "default"; - rel1.to_x: "elm.swallow.end"; - rel1.relative: 0.0 0.5; - rel2.to_x: "elm.swallow.end"; - rel2.relative: 0.0 0.5; - fixed: 1 0; - align: 1.0 0.5; - min: 40 0; - } - } - } - programs { - GENLIST_PROGRAMS("default", "disabled") - } -} diff --git a/ElmSharp/theme/tv/widgets/genlist_common.edc b/ElmSharp/theme/tv/widgets/genlist_common.edc deleted file mode 100644 index 4b67fb4..0000000 --- a/ElmSharp/theme/tv/widgets/genlist_common.edc +++ /dev/null @@ -1,307 +0,0 @@ -/* - * Copyright (c) 2010 Samsung Electronics Co., Ltd All Rights Reserved - * - * BSD 2-Clause License (http://www.opensource.org/licenses/bsd-license.php) - * - * Redistribution and use in source and binary forms, with or without - * modification, are permitted provided that the following conditions are met: - * - * 1. Redistributions of source code must retain the above copyright notice, this - * list of conditions and the following disclaimer. - * 2. Redistributions in binary form must reproduce the above copyright notice, - * this list of conditions and the following disclaimer in the documentation - * and/or other materials provided with the distribution. - * - * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND - * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED - * WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE - * DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR - * ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES - * (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; - * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND - * ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT - * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS - * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. - */ - -#define GENLIST_TREEPAD 19 -#define IMGP() \ - images.image: "list_highlight.png" COMP; -#define BASEP(vert_align) \ - rect { "base"; mouse; \ - scale; \ - ignore_flags: ON_HOLD; \ - desc { "default"; \ - min: vert_align; \ - color: 0 0 0 0; \ - } \ - desc { "odd"; \ - min: vert_align; \ - color: 0 0 0 0; \ - } \ - } \ - program { \ - signal: "elm,state,odd"; source: "elm"; \ - action: STATE_SET "odd" 1.0; \ - target: "base"; \ - } \ - program { \ - signal: "elm,state,even"; source: "elm"; \ - action: STATE_SET "default" 0.0; \ - target: "base"; \ - } -#define TOPP() \ - rect { "event_block"; \ - desc { "default"; \ - color: 0 0 0 0; \ - hid; \ - } \ - desc { "disabled"; \ - inherit: "default" 0.0; \ - vis; \ - } \ - } \ - program { \ - signal: "elm,state,disabled"; source: "elm"; \ - action: STATE_SET "disabled" 0.0; \ - target: "event_block"; \ - } \ - program { \ - signal: "elm,state,enabled"; source: "elm"; \ - action: STATE_SET "default" 0.0; \ - target: "event_block"; \ - } - -#define GENLIST_BASE(COLOR, COLOR2) \ - rect { "event"; mouse; \ - desc { "default"; \ - color: 0 0 0 0; \ - } \ - desc { "disabled"; \ - inherit: "default"; \ - hid; \ - } \ - } \ - rect { "base"; \ - scale; \ - desc { "default"; \ - color: COLOR; \ - } \ - desc { "selected"; \ - inherit: "default"; \ - color: COLOR2; \ - } \ - desc { "focused"; \ - inherit: "default"; \ - color: COLOR2; \ - } \ - } - -#define GENLIST_BASE_COLOR_CLASS(COLOR_CLASS, COLOR_CLASS_SELECTED, COLOR_CLASS_FOCUSED) \ - rect { "event"; mouse; \ - desc { "default"; \ - color: 0 0 0 0; \ - } \ - desc { "disabled"; \ - inherit: "default"; \ - hid; \ - } \ - } \ - rect { "base"; \ - scale; \ - desc { "default"; \ - color_class: COLOR_CLASS; \ - } \ - desc { "selected"; \ - inherit: "default"; \ - color_class: COLOR_CLASS_SELECTED; \ - } \ - desc { "focused"; \ - inherit: "default"; \ - color_class: COLOR_CLASS_FOCUSED; \ - } \ - } - -#define GENLIST_PAD(LEFT, RIGHT, TOP, BOTTOM) \ - spacer { "pad.top.left"; \ - scale; \ - desc { "default"; \ - rel2.relative: 0.0 0.0; \ - min: LEFT TOP; \ - fixed: 1 1; \ - align: 0.0 0.0; \ - } \ - } \ - spacer { "pad.bottom.right"; \ - scale; \ - desc { "default"; \ - rel1.relative: 1.0 1.0; \ - min: RIGHT BOTTOM; \ - fixed: 1 1; \ - align: 1.0 1.0; \ - } \ - } - -#define GENLIST_BOTTOM_LINE(COLOR) \ - rect { "bottom_line"; \ - desc { "default"; \ - fixed: 0 1; \ - min: 0 1; \ - rel1.relative: 0.0 1.0; \ - align: 0.5 1.0; \ - color: COLOR; \ - } \ - desc { "focused"; \ - inherit: "default"; \ - hid; \ - } \ - } - -#define GENLIST_BOTTOM_LINE_COLOR_CLASS(COLOR_CLASS) \ - rect { "bottom_line"; \ - desc { "default"; \ - fixed: 0 1; \ - min: 0 1; \ - rel1.relative: 0.0 1.0; \ - align: 0.5 1.0; \ - color_class: COLOR_CLASS; \ - } \ - desc { "focused"; \ - inherit: "default"; \ - hid; \ - } \ - } - -#define GENLIST_PROGRAMS(TARGET, TARGET_DISABLE) \ - program { name: "selected"; \ - signal: "elm,state,selected"; \ - action: STATE_SET "selected"; \ - target_groups: TARGET; \ - } \ - program { name: "unselected"; \ - signal: "elm,state,unselected"; \ - action: STATE_SET "default"; \ - target_groups: TARGET; \ - } \ - program { name: "focused"; \ - signal: "elm,state,focused"; \ - action: STATE_SET "focused"; \ - target_groups: TARGET; \ - } \ - program { name: "unfocused"; \ - signal: "elm,state,unfocused"; \ - action: STATE_SET "default"; \ - target_groups: TARGET; \ - } \ - program { name: "disabled"; \ - signal: "elm,state,disabled"; \ - action: STATE_SET "disabled"; \ - target_groups: TARGET_DISABLE; \ - } \ - program { name: "enabled"; \ - signal: "elm,state,enabled"; \ - action: STATE_SET "default"; \ - target_groups: TARGET_DISABLE; \ - } - -/* -group { "elm/genlist/item/no_icon/default"; - data.item: "selectraise" "on"; - data.item: "texts" "elm.text"; - data.item: "treesize" GENLIST_TREEPAD; - data.item: "flips" "elm.text.flip"; - IMGP() - parts { - BASEP(0 100) - - text { "elm.text"; mouse_events: 0; - effect: SHADOW BOTTOM; - scale; - desc { "default"; - rel1.offset: 2 3; - rel1.relative: 1.0 0.0; - rel1.to_x: "elm.padding.start"; - rel2.offset: -3 -3; - color: 255 255 255 255; - color3: 0 0 0 128; - color_class: "list_item"; - text { font: FN; size: GENLIST_FONT_SIZE_36; - min: 1 1; - align: 0.0 0.5; - text_class: "list_item"; - } - } - desc { "selected"; - inherit: "default" 0.0; - color: 51 153 255 255; - color2: 51 153 255 24; - color3: 51 153 255 18; - } - desc { "focused"; - inherit: "default" 0.0; - color: 51 153 255 255; - color2: 51 153 255 24; - color3: 51 153 255 18; - } - desc { "disabled"; - inherit: "default" 0.0; - color: 0 0 0 0; - } - desc { "flip_enabled"; - inherit: "default" 0.0; - hid; - } - } - swallow { "elm.text.flip"; - scale; - desc { "default"; - hid; - rel1.to_y: "elm.text"; - rel2.to_y: "elm.text"; - } - desc { "flip_enabled"; - inherit: "default" 0.0; - vis; - } - } - program { - signal: "elm,state,default"; source: "elm"; - action: STATE_SET "default" 0.0; - target: "elm.text"; - } - program { - signal: "elm,state,disabled"; source: "elm"; - action: STATE_SET "disabled" 0.0; - target: "elm.text"; - } - program { - signal: "elm,state,enabled"; source: "elm"; - action: STATE_SET "default" 0.0; - target: "elm.text"; - } - program { - signal: "elm,state,flip,enabled"; source: "elm"; - action: STATE_SET "flip_enabled" 0.0; - target: "elm.text"; - target: "elm.text.flip"; - } - program { - signal: "elm,state,flip,disabled"; source: "elm"; - action: STATE_SET "default" 0.0; - target: "elm.text"; - target: "elm.text.flip"; - } - spacer { "elm.padding.start"; - scale; - desc { "default"; - fixed: 1 1; - align: 0.0 0.5; - min: 10 10; - max: 10 10; - } - } - - TOPP() - } -} -*/ diff --git a/ElmSharp/theme/tv/widgets/hover.edc b/ElmSharp/theme/tv/widgets/hover.edc deleted file mode 100644 index cf911d9..0000000 --- a/ElmSharp/theme/tv/widgets/hover.edc +++ /dev/null @@ -1,587 +0,0 @@ -/* - * Copyright (c) 2010 Samsung Electronics Co., Ltd All Rights Reserved - * - * BSD 2-Clause License (http://www.opensource.org/licenses/bsd-license.php) - * - * Redistribution and use in source and binary forms, with or without - * modification, are permitted provided that the following conditions are met: - * - * 1. Redistributions of source code must retain the above copyright notice, this - * list of conditions and the following disclaimer. - * 2. Redistributions in binary form must reproduce the above copyright notice, - * this list of conditions and the following disclaimer in the documentation - * and/or other materials provided with the distribution. - * - * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND - * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED - * WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE - * DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR - * ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES - * (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; - * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND - * ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT - * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS - * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. - */ - -group { name: "elm/hover/base/menu"; - parts { - part { name: "elm.swallow.offset"; type: SWALLOW; - description { state: "default" 0.0; - align: 0.0 0.0; - rel2.relative: 0.0 0.0; - } - } - part { name: "elm.swallow.size"; type: SWALLOW; - description { state: "default" 0.0; - align: 0.0 0.0; - rel1.to: "elm.swallow.offset"; - rel1.relative: 1.0 1.0; - rel2.to: "elm.swallow.offset"; - } - } - part { name: "base"; type: RECT; mouse_events: 1; - description { state: "default" 0.0; - color: 0 0 0 0; - } - description { state: "visible" 0.0; - inherit: "default" 0.0; - color: 0 0 0 64; - } - } - part { name: "elm.swallow.slot.left"; type: SWALLOW; - description { state: "default" 0.0; - } - } - part { name: "elm.swallow.slot.right"; type: SWALLOW; - description { state: "default" 0.0; - } - } - part { name: "elm.swallow.slot.top"; type: SWALLOW; - description { state: "default" 0.0; - } - description { state: "visible" 0.0; - inherit: "default" 0.0; - } - } - part { name: "bottomclip"; type: RECT; - description { state: "default" 0.0; - rel1.to_y: "pop"; - rel1.relative: 0.0 1.0; - } - } - part { name: "pad.left_top"; type: SPACER; - scale: 1; - description { state: "default" 0.0; - min: 1 2; - max: 1 2; - rel1.to: "elm.swallow.size"; - rel2.to: "elm.swallow.size"; - rel2.relative: 0.0 0.0; - } - } - part { name: "pad.right_bottom"; type: SPACER; - scale: 1; - description { state: "default" 0.0; - min: 1 24; - max: 1 24; - rel1.to: "elm.swallow.slot.bottom"; - rel1.relative: 1.0 1.0; - rel2.to: "elm.swallow.slot.bottom"; - } - } - part { name: "bottom"; type: SPACER; - clip_to: "bottomclip"; - scale: 1; - description { state: "default" 0.0; - //visible: 0; - rel1.to: "pad.left_top"; - rel1.relative: 0.0 1.0; - rel2.to: "pad.right_bottom"; - } - description { state: "visible" 0.0; - inherit: "default" 0.0; - //visible: 1; - } - } - part { name: "pad.top_left"; type: SPACER; - clip_to: "bottomclip"; - scale: 1; - description { state: "default" 0.0; - min: 4 6; - max: 4 6; - align: 0.0 0.0; - rel2.to: "elm.swallow.slot.middle"; - rel2.relative: 0.0 0.0; - } - } - part { name: "pad.slot.top"; type: SPACER; - scale: 1; - description { state: "default" 0.0; - align: 0.5 0.0; - min: 0 16; - max: 9999 14; - rel1.to_y: "elm.swallow.size"; - rel1.to_x: "elm.swallow.size"; - rel2.to_x: "elm.swallow.size"; - rel2.relative: 1.0 0.0; - } - } - part { name: "elm.swallow.slot.bottom"; type: SWALLOW; - clip_to: "bottomclip"; - description { state: "default" 0.0; - align: 0.5 1.0; - rel1.to: "pad.slot.top"; - rel1.relative: 0.0 1.0; - rel2.to: "elm.swallow.slot.middle"; - } - description { state: "visible" 0.0; - inherit: "default" 0.0; - align: 0.5 0.0; - } - } - part { name: "pop"; type: SPACER; mouse_events: 1; repeat_events:1; - scale: 1; - description { state: "default" 0.0; - rel1.to: "elm.swallow.slot.middle"; - rel2.to: "elm.swallow.slot.middle"; - } - } - part { name: "elm.swallow.slot.middle"; type: SWALLOW; repeat_events:1; - description { state: "default" 0.0; - rel1.to: "elm.swallow.size"; - rel2.to: "elm.swallow.size"; - } - } - } - programs { - program { name: "end"; - signal: "mouse,up,1"; source: "base"; - action: SIGNAL_EMIT "elm,action,dismiss" ""; - } - program { name: "show"; - signal: "elm,action,show"; source: "elm"; - action: STATE_SET "visible" 0.0; - target: "base"; - } - program { name: "hide"; - signal: "elm,action,hide"; source: "elm"; - action: STATE_SET "default" 0.0; - target: "base"; - } - program { name: "bottomshow"; - signal: "elm,action,slot,bottom,show"; source: "elm"; - action: STATE_SET "visible" 0.0; - transition: DECELERATE 0.3; - target: "bottom"; - target: "elm.swallow.slot.bottom"; - } - program { name: "bottomhide"; - signal: "elm,action,slot,bottom,hide"; source: "elm"; - action: STATE_SET "default" 0.0; - transition: DECELERATE 0.5; - target: "bottom"; - target: "elm.swallow.slot.bottom"; - } - } -} - -group { name: "elm/hover/base/submenu"; - parts { - part { name: "elm.swallow.offset"; type: SWALLOW; repeat_events:1; - description { state: "default" 0.0; - align: 0.0 0.0; - rel2.relative: 0.0 0.0; - } - } - part { name: "elm.swallow.size"; type: SWALLOW; - description { state: "default" 0.0; - align: 0.0 0.0; - rel1.to: "elm.swallow.offset"; - rel1.relative: 1.0 1.0; - rel2.to: "elm.swallow.offset"; - } - } - part { name: "base"; type: RECT; mouse_events: 1; - description { state: "default" 0.0; - color: 0 0 0 0; - visible: 0; - } - } - part { name: "elm.swallow.slot.left"; type: SWALLOW; - description { state: "default" 0.0; - } - } - part { name: "elm.swallow.slot.right"; type: SWALLOW; - description { state: "default" 0.0; - } - } - part { name: "elm.swallow.slot.top"; type: SWALLOW; - description { state: "default" 0.0; - } - } - part { name: "pad.pop_bottom_right"; type: SPACER; - scale: 1; - description { state: "default" 0.0; - min: 1 2; - max: 1 2; - align: 0.0 0.0; - rel1.to: "pop"; - } - } - part { name: "bottomclip"; type: RECT; - description { state: "default" 0.0; - rel1.to: "pad.pop_bottom_right"; - rel1.relative: 0.0 1.0; - } - } - part { name: "pad.left_top"; type: SPACER; - scale: 1; - description { state: "default" 0.0; - min: 1 2; - max: 1 2; - rel1.to: "elm.swallow.size"; - rel2.to: "elm.swallow.size"; - rel2.relative: 0.0 0.0; - } - } - part { name: "pad.right_bottom"; type: SPACER; - scale: 1; - description { state: "default" 0.0; - min: 1 14; - max: 1 14; - rel1.to: "elm.swallow.slot.bottom"; - rel1.relative: 1.0 1.0; - rel2.to: "elm.swallow.slot.bottom"; - } - } - part { name: "bottom"; type: SPACER; - clip_to: "bottomclip"; - scale: 1; - description { state: "default" 0.0; - rel1.to: "pad.left_top"; - rel1.relative: 0.0 1.0; - rel2.to: "pad.right_bottom"; - } - description { state: "visible" 0.0; - inherit: "default" 0.0; - } - } - part { name: "pad.top_left"; type: SPACER; - clip_to: "bottomclip"; - scale: 1; - description { state: "default" 0.0; - min: 4 7; - max: 4 7; - align: 0.0 0.0; - rel1.to: "elm.swallow.slot.middle"; - } - } - part { name: "pad.slot.top"; type: SPACER; - scale: 1; - description { state: "default" 0.0; - align: 0.5 0.0; - min: 0 16; - max: 9999 14; - rel1.to_y: "elm.swallow.size"; - rel1.relative: 0.0 0.0; - rel1.to_x: "elm.swallow.size"; - rel1.relative: 0.0 0.0; - rel2.to_x: "elm.swallow.size"; - rel2.relative: 1.0 0.0; - } - } - part { name: "elm.swallow.slot.bottom"; type: SWALLOW; - clip_to: "bottomclip"; - description { state: "default" 0.0; - align: 0.5 1.0; - rel1.to: "pad.slot.top"; - rel1.relative: 0.0 1.0; - rel2.to: "elm.swallow.slot.middle"; - } - description { state: "visible" 0.0; - inherit: "default" 0.0; - rel1.to: "pad.top_left"; - rel1.relative: 0.0 1.0; - align: 0.5 0.0; - } - } - part { name: "pop"; type: SPACER; mouse_events: 1; repeat_events:1; - description { state: "default" 0.0; - rel1.to: "elm.swallow.slot.middle"; - rel2.to: "elm.swallow.slot.middle"; - } - } - part { name: "elm.swallow.slot.middle"; type: SWALLOW; repeat_events:1; - description { state: "default" 0.0; - rel1.to: "elm.swallow.size"; - rel2.to: "elm.swallow.size"; - } - } - } - programs { - program { name: "end"; - signal: "mouse,up,1"; source: "base"; - action: SIGNAL_EMIT "elm,action,dismiss" ""; - } - program { name: "show"; - signal: "elm,action,show"; source: "elm"; - action: STATE_SET "visible" 0.0; - target: "base"; - } - program { name: "hide"; - signal: "elm,action,hide"; source: "elm"; - action: STATE_SET "default" 0.0; - target: "base"; - } - program { name: "bottomshow"; - signal: "elm,action,slot,bottom,show"; source: "elm"; - action: STATE_SET "visible" 0.0; - transition: DECELERATE 0.3; - target: "bottom"; - target: "elm.swallow.slot.bottom"; - } - program { name: "bottomhide"; - signal: "elm,action,slot,bottom,hide"; source: "elm"; - action: STATE_SET "default" 0.0; - transition: DECELERATE 0.5; - target: "bottom"; - target: "elm.swallow.slot.bottom"; - } - } -} - -group { name: "elm/hover/base/main_menu"; - parts { - part { name: "elm.swallow.offset"; type: SWALLOW; - description { state: "default" 0.0; - visible: 0; - fixed: 1 1; - } - } - part { name: "elm.swallow.size"; type: SWALLOW; - description { state: "default" 0.0; - align: 0.0 0.0; - rel2.relative: 0.0 0.0; - fixed: 1 1; - } - } - part { name: "pad.pop_bottom_right"; type: SPACER; - scale: 1; - description { state: "default" 0.0; - min: 1 2; - max: 1 2; - align: 0.0 0.0; - } - } - part { name: "bottomclip"; type: RECT; - description { state: "default" 0.0; - rel1.to: "pad.pop_bottom_right"; - rel1.relative: 1.0 1.0; - } - } - part { name: "pad.left_top"; type: SPACER; - scale: 1; - description { state: "default" 0.0; - min: 1 2; - max: 1 2; - rel1.to: "elm.swallow.size"; - rel2.to: "elm.swallow.size"; - rel2.relative: 0.0 0.0; - } - } - part { name: "pad.right_bottom"; type: SPACER; - scale: 1; - description { state: "default" 0.0; - min: 1 14; - max: 1 14; - rel1.to: "elm.swallow.slot.bottom"; - rel1.relative: 1.0 1.0; - rel2.to: "elm.swallow.slot.bottom"; - } - } - part { name: "bottom"; type: RECT; - clip_to: "bottomclip"; - scale: 1; - description { state: "default" 0.0; - visible: 0; - rel1.to: "pad.left_top"; - rel1.relative: 0.0 1.0; - rel2.to: "pad.right_bottom"; - } - } - part { name: "pad.slot.top"; type: SPACER; - scale: 1; - description { state: "default" 0.0; - align: 0.5 0.0; - min: 0 16; - max: 9999 14; - rel1.to_y: "elm.swallow.size"; - rel1.to_x: "elm.swallow.size"; - rel2.to_x: "elm.swallow.size"; - rel2.relative: 1.0 0.0; - } - } - part { name: "elm.swallow.slot.bottom"; type: SWALLOW; - clip_to: "bottomclip"; - description { state: "default" 0.0; - align: 0.5 1.0; - rel1.to: "pad.slot.top"; - rel1.relative: 0.0 1.0; - rel2.to: "elm.swallow.size"; - fixed: 1 1; - } - description { state: "visible" 0.0; - inherit: "default" 0.0; - align: 0.5 0.0; - } - } - } - programs { - program { name: "bottomshow"; - signal: "elm,action,slot,bottom,show"; source: "elm"; - action: STATE_SET "visible" 0.0; - transition: DECELERATE 0.3; - target: "elm.swallow.slot.bottom"; - } - } -} - -group { name: "elm/hover/base/main_menu_submenu"; - parts { - part { name: "elm.swallow.offset"; type: SWALLOW; repeat_events:1; - description { state: "default" 0.0; - align: 0.0 0.0; - rel2.relative: 0.0 0.0; - } - } - part { name: "elm.swallow.size"; type: SWALLOW; - description { state: "default" 0.0; - align: 0.0 0.0; - rel1.to: "elm.swallow.offset"; - rel1.relative: 1.0 1.0; - rel2.to: "elm.swallow.offset"; - } - } - part { name: "base"; type: RECT; - mouse_events: 1; - description { state: "default" 0.0; - color: 0 0 0 0; - } - } - part { name: "pad.pop_bottom_right"; type: SPACER; - scale: 1; - description { state: "default" 0.0; - min: 1 2; - max: 1 2; - align: 0.0 0.0; - rel1.to: "pop"; - } - } - part { name: "bottomclip"; type: RECT; - description { state: "default" 0.0; - rel1.to_y: "pad.pop_bottom_right"; - rel1.relative: 0.0 1.0; - } - } - part { name: "pad.left_top"; type: SPACER; - scale: 1; - description { state: "default" 0.0; - min: 1 2; - max: 1 2; - rel1.to: "elm.swallow.size"; - rel2.to: "elm.swallow.size"; - rel2.relative: 0.0 0.0; - } - } - part { name: "pad.right_bottom"; type: SPACER; - scale: 1; - description { state: "default" 0.0; - min: 1 14; - max: 1 14; - rel1.to: "elm.swallow.slot.bottom"; - rel1.relative: 1.0 1.0; - rel2.to: "elm.swallow.slot.bottom"; - } - } - part { name: "bottom"; type: SPACER; - clip_to: "bottomclip"; - scale: 1; - description { state: "default" 0.0; - rel1.to: "pad.left_top"; - rel1.relative: 0.0 1.0; - rel2.to: "pad.right_bottom"; - } - description { state: "visible" 0.0; - inherit: "default" 0.0; - } - } - part { name: "pad.slot.top"; type: SPACER; - scale: 1; - description { state: "default" 0.0; - align: 0.5 0.0; - min: 0 16; - max: 9999 14; - rel1.to_y: "elm.swallow.size"; - rel1.to_x: "elm.swallow.size"; - rel2.to_x: "elm.swallow.size"; - rel2.relative: 1.0 0.0; - } - } - part { name: "elm.swallow.slot.bottom"; type: SWALLOW; - clip_to: "bottomclip"; - description { state: "default" 0.0; - align: 0.5 1.0; - rel1.to: "pad.slot.top"; - rel1.relative: 0.0 1.0; - rel2.to: "elm.swallow.slot.middle"; - } - description { state: "visible" 0.0; - inherit: "default" 0.0; - align: 0.5 0.0; - } - } - part { name: "pop"; type: SPACER; mouse_events: 1; repeat_events:1; - description { state: "default" 0.0; - rel1.to: "elm.swallow.slot.middle"; - rel2.to: "elm.swallow.slot.middle"; - } - } - part { name: "elm.swallow.slot.middle"; type: SWALLOW; repeat_events:1; - description { state: "default" 0.0; - rel1.to: "elm.swallow.size"; - rel2.to: "elm.swallow.size"; - } - } - } - programs { - program { name: "end"; - signal: "mouse,up,1"; source: "base"; - action: SIGNAL_EMIT "elm,action,dismiss" ""; - } - program { name: "show"; - signal: "elm,action,show"; source: "elm"; - action: STATE_SET "visible" 0.0; - target: "base"; - } - program { name: "hide"; - signal: "elm,action,hide"; source: "elm"; - action: STATE_SET "default" 0.0; - target: "base"; - } - program { name: "bottomshow"; - signal: "elm,action,slot,bottom,show"; source: "elm"; - action: STATE_SET "visible" 0.0; - transition: DECELERATE 0.3; - target: "bottom"; - target: "elm.swallow.slot.bottom"; - } - program { name: "bottomhide"; - signal: "elm,action,slot,bottom,hide"; source: "elm"; - action: STATE_SET "default" 0.0; - transition: DECELERATE 0.5; - target: "bottom"; - target: "elm.swallow.slot.bottom"; - } - } -} diff --git a/ElmSharp/theme/tv/widgets/hoversel.edc b/ElmSharp/theme/tv/widgets/hoversel.edc deleted file mode 100644 index e8031c2..0000000 --- a/ElmSharp/theme/tv/widgets/hoversel.edc +++ /dev/null @@ -1,1003 +0,0 @@ -/* - * Copyright (c) 2010 Samsung Electronics Co., Ltd All Rights Reserved - * - * BSD 2-Clause License (http://www.opensource.org/licenses/bsd-license.php) - * - * Redistribution and use in source and binary forms, with or without - * modification, are permitted provided that the following conditions are met: - * - * 1. Redistributions of source code must retain the above copyright notice, this - * list of conditions and the following disclaimer. - * 2. Redistributions in binary form must reproduce the above copyright notice, - * this list of conditions and the following disclaimer in the documentation - * and/or other materials provided with the distribution. - * - * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND - * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED - * WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE - * DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR - * ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES - * (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; - * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND - * ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT - * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS - * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. - */ - -#define HOVERSEL_FONT_SIZE 30 - -/********************************************************************************* -Document: Tizen TV_General Guide_GUI Guideline_v1.1_140709.pdf -HOVERSEL -Page No.: 84~89 -*********************************************************************************/ -images { - image: "round_rectangle_4X4.png" COMP; - image: "ico_dropdown_menu_open_arrow.png" COMP; - image: "ico_dropdown_menu_check.png" COMP; -} - -group { name: "elm/button/base/hoversel_vertical/default"; - data.item: "focus_highlight" "on"; - parts { - part { name: "base"; type: RECT; - scale: 1; - description { state: "default" 0.0; - min: 0 70; - color: 193 193 193 204; - } - description { state: "focus" 0.0; - inherit: "default" 0.0; - color: 255 255 255 255; - } - description { state: "disabled" 0.0; - inherit: "default" 0.0; - color: 193 193 193 51; - } - } - part { name: "pad.left"; type: SPACER; - scale: 1; - description { state: "default" 0.0; - align: 0.0 0.5; - min: 32 0; - max: 32 0; - } - } - part { name: "pad.icon"; type: SPACER; - scale: 1; - description { state: "default" 0.0; - rel2.to: "down_icon"; - rel2.relative: 0.0 1.0; - align: 1 0.5; - fixed: 1 1; - min: 20 0; - max: 20 0; - } - description { state: "visible" 0.0; - inherit: "default" 0.0; - min: 56 0; - max: 56 0; - } - } - part { name: "pad.right"; type: SPACER; - scale: 1; - description { state: "default" 0.0; - align: 1.0 0.5; - min: 24 0; - max: 24 0; - } - } - part { name: "button_base"; - scale: 1; - description { state: "default" 0.0; - rel1.to: "base"; - rel2.to: "base"; - color_class: "hoversel/default/bg"; - image { - normal: "round_rectangle_4X4.png"; - border: 4 4 4 4; - border_scale: 1; - } - } - description { state: "focus" 0.0; - inherit: "default" 0.0; - color_class: "hoversel/default/bg_focused"; - } - description { state: "disabled" 0.0; - inherit: "default" 0.0; - color_class: "hoversel/default/bg_disabled"; - } - } - part { name: "down_icon"; - scale: 1; - clip_to: "base"; - description { state: "default" 0.0; - rel2.to_x: "pad.right"; - rel2.relative: 0.0 1.0; - align: 1.0 0.5; - fixed: 1 1; - min: 26 26; - max: 26 26; - image.normal: "ico_dropdown_menu_open_arrow.png"; - } - } - part { name: "elm.text"; type: TEXT; mouse_events: 0; - scale: 1; - description { state: "default" 0.0; - rel1.to_x: "pad.left"; - rel1.relative: 1.0 0.0; - rel2.to_x: "pad.icon"; - rel2.relative: 0.0 1.0; - align: 0 0.5; - fixed: 1 1; - color_class: "hoversel/default/text"; - text { - size: HOVERSEL_FONT_SIZE; - max: 1 0; - text_class: "button"; - align: 0.0 0.5; - } - } - description { state: "focus" 0.0; - inherit: "default" 0.0; - color_class: "hoversel/default/text_focused"; - } - description { state: "visible" 0.0; - inherit: "default" 0.0; - } - description { state: "disabled" 0.0; - inherit: "default" 0.0; - color: 175 175 175 102; - color_class: "hoversel/default/text_disabled"; - } - description { state: "disabled_visible" 0.0; - inherit: "default" 0.0; - color_class: "hoversel/default/text_disabled_visible"; - } - } - part { name: "pad.text"; type: SPACER; - scale: 1; - description { state: "default" 0.0; - min: 10 0; - max: 10 0; - fixed: 1 1; - align: 0.0 0.5; - rel1.to_x: "elm.text"; - rel1.relative: 1.0 0.0; - rel2.to_x: "elm.text"; - rel2.relative: 1.0 1.0; - } - } - part { name: "elm.swallow.content"; type: SWALLOW; - scale: 1; - clip_to: "base"; - description { state: "default" 0.0; - min: 26 26; - max: 26 26; - fixed: 1 1; - align: 0.0 0.5; - rel1.to_x: "pad.text"; - rel1.relative: 1.0 0.5; - rel2.to_x: "pad.text"; - rel2.relative: 1.0 0.5; - } - } - part { name: "event"; type: RECT; - description { state: "default" 0.0; - color: 0 0 0 0; - fixed: 1 1; - } - description { state: "disabled" 0.0; - inherit: "default" 0.0; - visible: 0; - } - } - } - programs { - program { name: "button_click"; - signal: "mouse,down,1"; source: "event"; - action: SIGNAL_EMIT "elm,action,press" ""; - after: "button_click_anim"; - } - program { name: "button_click_anim"; - action: STATE_SET "focus" 0.0; - target: "button_base"; - target: "base"; - target: "elm.text"; - } - program { name: "button_unclick"; - signal: "mouse,up,1"; source: "event"; - action: SIGNAL_EMIT "elm,action,unpress" ""; - after: "button_unclick_anim"; - } - program { name: "button_unclick_anim"; - action: STATE_SET "focus" 0.0; - target: "elm.text"; - target: "button_base"; - target: "base"; - } - program { name: "mouse_unclick_after"; - signal: "mouse,clicked,1"; source: "event"; - action: SIGNAL_EMIT "elm,action,click" ""; - } - program { name: "key_press"; - signal: "elm,anim,activate"; source: "elm"; - action: STATE_SET "focus" 0.0; - target: "elm.text"; - target: "button_base"; - target: "base"; - after: "key_unpress"; - } - program { name: "key_unpress"; - action: STATE_SET "focus" 0.0; - transition: DECELERATE 0.2; - target: "button_base"; - target: "base"; - target: "elm.text"; - } - program { name: "focused"; - signal: "elm,action,focus"; source: "elm"; - action: STATE_SET "focus" 0.0; - target: "elm.text"; - target: "button_base"; - target: "base"; - } - program { name: "unfocused"; - signal: "elm,action,unfocus"; source: "elm"; - action: STATE_SET "default" 0.0; - target: "elm.text"; - target: "button_base"; - target: "base"; - } - program { name: "icon_show"; - signal: "elm,state,icon,visible"; source: "elm"; - action: STATE_SET "visible" 0.0; - target: "pad.icon"; - } - program { name: "icon_hide"; - signal: "elm,state,icon,hidden"; source: "elm"; - action: STATE_SET "default" 0.0; - target: "pad.icon"; - } - program { name: "text_show"; - signal: "elm,state,text,visible"; source: "elm"; - script { - new st[31]; - new Float: vl; - get_state(PART:"elm.text", st, 30, vl); - if ((!strcmp(st, "disabled")) || (!strcmp(st, "disabled_visible"))) - set_state(PART:"elm.text", "disabled_visible", 0.0); - else - set_state(PART:"elm.text", "visible", 0.0); - } - } - program { name: "text_hide"; - signal: "elm,state,text,hidden"; source: "elm"; - script { - new st[31]; - new Float: vl; - get_state(PART:"elm.text", st, 30, vl); - if ((!strcmp(st, "default")) || (!strcmp(st, "visible"))) - set_state(PART:"elm.text", "default", 0.0); - else - set_state(PART:"elm.text", "disabled", 0.0); - } - } - program { name: "disable"; - signal: "elm,state,disabled"; source: "elm"; - script { - new st[31]; - new Float: vl; - set_state(PART:"button_base", "disabled", 0.0); - set_state(PART:"event", "disabled", 0.0); - set_state(PART:"down_icon", "disabled", 0.0); - get_state(PART:"elm.text", st, 30, vl); - if ((!strcmp(st, "visible")) || (!strcmp(st, "disabled_visible"))) - set_state(PART:"elm.text", "disabled_visible", 0.0); - else - set_state(PART:"elm.text", "disabled", 0.0); - } - } - program { name: "enable"; - signal: "elm,state,enabled"; source: "elm"; - script { - new st[31]; - new Float: vl; - set_state(PART:"button_base", "visible", 0.0); - set_state(PART:"event", "visible", 0.0); - get_state(PART:"elm.text", st, 30, vl); - if ((!strcmp(st, "visible")) || (!strcmp(st, "disabled_visible"))) - set_state(PART:"elm.text", "visible", 0.0); - else - set_state(PART:"elm.text", "default", 0.0); - } - } - } -} - -/****************************************************************************** -Document: Tizen TV_General Guide_GUI Guideline_v1.1_140709.pdf -HOVERSEL -Page No.: 84~89 -******************************************************************************/ -group { name: "elm/button/base/hoversel_vertical_entry/default"; - data.item: "focus_highlight" "on"; - script { - public is_selected = 0; - } - parts { - part { name: "base"; type: RECT; - description { state: "default" 0.0; - min: 0 70; - color: 98 98 98 255; - } - description { state: "focus" 0.0; - inherit: "default" 0.0; - color: 255 255 255 255; - } - description { state: "highlight" 0.0; - inherit: "focus" 0.0; - color_class: "open_ux_theme"; - } - description { state: "highlight_focus" 0.0; - inherit: "focus" 0.0; - } - description { state: "disabled" 0.0; - inherit: "default" 0.0; - } - } - part { name: "pad.left"; type: SPACER; - scale: 1; - description { state: "default" 0.0; - align: 0 0.5; - fixed: 1 1; - min: 32 0; - max: 32 0; - } - } - part { name: "pad.right"; type: SPACER; - scale: 1; - description { state: "default" 0.0; - align: 1.0 0.5; - min: 24 0; - max: 24 0; - } - } - part { name: "clipper.all_item"; type: RECT; - scale: 1; - description { state: "default" 0.0; - rel1.to: "base"; - rel2.to: "base"; - } - description { state: "last_item" 0.0; - inherit: "default" 0.0; - visible: 0; - } - } - part { name: "clipper.last_item"; type: RECT; - scale: 1; - description { state: "default" 0.0; - rel1.to: "base"; - rel2.to: "base"; - visible: 0; - } - description { state: "last_item" 0.0; - inherit: "default" 0.0; - visible: 1; - } - } - part { name: "button_image"; type: RECT; - scale: 1; - clip_to: "clipper.all_item"; - description { state: "default" 0.0; - rel1.to: "base"; - rel2.to: "base"; - color_class: "hoversel_item/default/bg"; - } - description { state: "focus" 0.0; - inherit: "default" 0.0; - color_class: "hoversel_item/default/bg_focused"; - } - description { state: "highlight" 0.0; - inherit: "default" 0.0; - color_class: "hoversel_item/default/bg_highlight"; - } - description { state: "highlight_focus" 0.0; - inherit: "default" 0.0; - color_class: "hoversel_item/default/bg_focused_highlight"; - } - description { state: "disabled" 0.0; - inherit: "default" 0.0; - color_class: "hoversel_item/default/bg_disabled"; - } - } - part { name: "pad.last_item"; type: SPACER; - scale: 1; - description { state: "default" 0.0; - min: 0 4; - fixed: 1 1; - rel1.to: "base"; - rel1.relative: 0.0 0.0; - rel2.to: "base"; - rel2.relative: 1.0 0.0; - align: 0.5 1.0; - } - } - part { name: "button_image_last"; - scale: 1; - clip_to: "clipper.last_item"; - description { state: "default" 0.0; - rel1.to: "pad.last_item"; - rel2.to: "base"; - image { - normal: "round_rectangle_4X4.png"; - border: 4 4 4 4; - border_scale: 1; - } - color_class: "open_ux_theme"; - } - description { state: "focus" 0.0; - inherit: "default" 0.0; - color_class: "hoversel_item/default/bg_focused"; - } - description { state: "highlight" 0.0; - inherit: "default" 0.0; - color_class: "hoversel_item/default/bg_highlight"; - } - description { state: "highlight_focus" 0.0; - inherit: "default" 0.0; - color_class: "hoversel_item/default/bg_focused_highlight"; - } - description { state: "disabled" 0.0; - inherit: "default" 0.0; - color_class: "hoversel_item/default/bg_disabled"; - } - } - part { name: "list_division"; type: RECT; - scale: 1; - description { state: "default" 0.0; - rel1.to: "base"; - rel2.to: "base"; - rel2.relative: 1 0; - fixed: 1 1; - color: 222 222 222 255; - min: 2 2; - max: 9999 2; - } - description { state: "focus" 0.0; - inherit: "default" 0.0; - visible: 0; - } - description { state: "highlight" 0.0; - inherit: "default" 0.0; - } - description { state: "highlight_focus" 0.0; - inherit: "default" 0.0; - visible: 0; - } - description { state: "disabled" 0.0; - inherit: "default" 0.0; - } - } - part { name: "check"; - scale: 1; - clip_to:"base"; - description { state: "default" 0.0; - rel2.to_x: "pad.right"; - rel2.relative: 0.0 1.0; - align: 1 0.5; - fixed: 1 1; - min: 0 0; - max: 0 0; - image.normal: "ico_dropdown_menu_check.png"; - visible: 0; - } - description { state: "highlight" 0.0; - inherit: "default" 0.0; - min: 26 26; - max: 26 26; - visible: 1; - } - } - part { name: "pad.middle_right"; type: SPACER; - scale: 1; - description { state: "default" 0.0; - rel1.to: "check"; - rel1.relative: 1 0; - rel2.to: "check"; - rel2.relative: 0 1; - fixed: 1 1; - align: 1 0.5; - min: 20 0; - max: 20 0; - } - description { state: "visible" 0.0; - inherit: "default" 0.0; - min: 56 0; - max: 56 0; - } - } - part { name: "elm.text"; type: TEXT; mouse_events: 0; - scale: 1; - description { state: "default" 0.0; - rel1.to: "pad.left"; - rel1.relative: 1.0 0.0; - rel2.to: "pad.middle_right"; - rel2.relative: 0 1; - align: 0.0 0.5; - fixed: 1 1; - color: 89 89 89 255; - text.text_source: "elm.text"; - text { - size: 30; - max: 1 0; - align: 0 0.5; - text_class: "button"; - } - } - description { state: "visible" 0.0; - inherit: "default" 0.0; - } - description { state: "focus" 0.0; - inherit: "default" 0.0; - color: 255 255 255 255; - } - description { state: "highlight" 0.0; - inherit: "default" 0.0; - color: 255 255 255 255; - color_class: "open_ux_theme"; - color3: 0 0 0 0; - } - description { state: "highlight_focus" 0.0; - inherit: "default" 0.0; - color: 255 255 255 255; - color3: 0 0 0 0; - } - } - part { name: "pad.middle_left"; type: SPACER; - scale: 1; - description { state: "default" 0.0; - rel1.to: "elm.text"; - rel1.relative: 1.0 0.0; - rel2.to: "elm.text"; - fixed: 1 1; - align: 0.0 0.5; - min: 10 0; - max: 10 0; - } - } - part { name: "elm.swallow.content"; type: SWALLOW; - scale: 1; - clip_to: "base"; - description { state: "default" 0.0; - rel1.to: "pad.middle_left"; - rel1.relative: 1.0 0.5; - rel2.to_x: "pad.middle_left"; - rel2.relative: 1.0 0.5; - align: 0.0 0.5; - fixed: 1 1; - min: 26 26; - max: 26 26; - } - } - part { name: "event"; type: RECT; - scale: 1; - description { state: "default" 0.0; - color: 0 0 0 0; - } - description { state: "disabled" 0.0; - inherit: "default" 0.0; - visible: 0; - } - } - } - programs { - program { name: "init"; - signal: "load"; - script { - new var = 0; - set_int(is_selected, var); - } - } - program { name: "button_click"; - signal: "mouse,down,1"; source: "event"; - action: SIGNAL_EMIT "elm,action,press" ""; - after: "button_click_anim"; - } - program { name: "button_click_anim"; - action: STATE_SET "highlight" 0.0; - target: "elm.text"; - target: "button_image"; - target: "button_image_last"; - target: "base"; - } - program { name: "button_unclick"; - signal: "mouse,up,1"; source: "event"; - action: SIGNAL_EMIT "elm,action,unpress" ""; - after: "button_unclick_anim"; - } - program { name: "mouse_unclick_after"; - signal: "mouse,clicked,1"; source: "event"; - action: SIGNAL_EMIT "elm,action,click" ""; - } - program { name: "button_pressed_anim"; - signal: "elm,anim,activate"; source: "elm"; - action: STATE_SET "highlight" 0.0; - target: "elm.text"; - target: "button_image"; - target: "button_image_last"; - target: "list_division"; - target: "base"; - } - program { name: "button_unclick_anim"; - action: STATE_SET "default" 0.0; - target: "elm.text"; - target: "button_image"; - target: "button_image_last"; - target: "base"; - } - program { name: "focused"; - signal: "elm,action,focus"; source: "elm"; - action: STATE_SET "focus" 0.0; - target: "elm.text"; - target: "button_image"; - target: "button_image_last"; - target: "list_division"; - target: "base"; - } - program { name: "unfocused"; - signal: "elm,action,unfocus"; source: "elm"; - script { - set_state(PART:"button_image", "default", 0.0); - set_state(PART:"button_image_last", "default", 0.0); - set_state(PART:"list_division", "default", 0.0); - if(!get_int(is_selected)) - { - set_state(PART:"elm.text", "default", 0.0); - set_state(PART:"base", "default", 0.0); - } - else - { - set_state(PART:"elm.text", "highlight", 0.0); - set_state(PART:"base", "highlight", 0.0); - } - } - } - program { name: "button_highlight"; - signal: "elm,state,highlight"; source: "elm"; - script { - new var = 1; - set_int(is_selected, var); - set_state(PART:"elm.text", "highlight", 0.0); - set_state(PART:"base", "highlight", 0.0); - set_state(PART:"check", "highlight", 0.0); - } - } - program { name: "icon_show"; - signal: "elm,state,icon,visible"; source: "elm"; - action: STATE_SET "visible" 0.0; - target: "pad.middle_right"; - } - program { name: "icon_hide"; - signal: "elm,state,icon,hidden"; source: "elm"; - action: STATE_SET "default" 0.0; - target: "pad.middle_right"; - } - program { name: "disable"; - signal: "elm,state,disabled"; source: "elm"; - script { - new st[31]; - new Float: vl; - set_state(PART:"base", "disabled", 0.0); - set_state(PART:"event", "disabled", 0.0); - get_state(PART:"elm.text", st, 30, vl); - if ((!strcmp(st, "visible")) || (!strcmp(st, "disabled_visible"))) - set_state(PART:"elm.text", "disabled_visible", 0.0); - else - set_state(PART:"elm.text", "disabled", 0.0); - } - } - program { name: "any_item"; - signal: "elm,state,any,item"; source: "elm"; - action: STATE_SET "default" 0.0; - target: "clipper.all_item"; - target: "clipper.last_item"; - } - program { name: "last_item"; - signal: "elm,state,last,item"; source: "elm"; - action: STATE_SET "last_item" 0.0; - target: "clipper.all_item"; - target: "clipper.last_item"; - } - } -} - -/***************************************************************************************** -Document: Tizen TV_General Guide_GUI Guideline_v1.1_140613.pdf -HOVERSEL -Page No.: 86, Style Name: menu_text close -*****************************************************************************************/ -group { name: "elm/hover/base/hoversel_vertical/default"; - parts { - part { name: "elm.swallow.offset"; type: SWALLOW; - scale: 1; - description { state: "default" 0.0; - rel1.relative: 0.0 0.0; - rel2.relative: 0.0 0.0; - align: 0.0 0.0; - } - } - part { name: "elm.swallow.size"; type: SWALLOW; - scale: 1; - description { state: "default" 0.0; - rel1.to: "elm.swallow.offset"; - rel1.relative: 1.0 1.0; - rel2.to: "elm.swallow.offset"; - align: 0.0 0.0; - } - } - part { name: "button_image"; type: SPACER; - scale: 1; - description { state: "default" 0.0; - rel1.to_x: "limit0"; - rel1.to_y: "pad.top.upper"; - rel1.relative: 1.0 0.5; - rel2.to_x: "limit1"; - rel2.to_y: "elm.swallow.slot.middle"; - rel2.relative: 0.0 0.0; - align: 0 0; - } - description { state: "bottom" 0.0; - rel1.to_x: "limit0"; - rel1.to_y: "elm.swallow.slot.middle"; - rel1.relative: 1.0 1.0; - rel2.to_x: "limit1"; - rel2.to_y: "pad.bottom.lower"; - rel2.relative: 0.0 0.5; - } - } - part { name: "limit0"; type: SPACER; - scale: 1; - description { state: "default" 0.0; - rel1.to_x: "elm.swallow.slot.top"; - rel2.to_x: "elm.swallow.slot.middle"; - rel2.relative: 0.0 1.0; - align: 1 1; - min: 1 1; - max: 1 99999; - } - description { state: "bottom" 0.0; - inherit: "default" 0.0; - rel1.to_x: "elm.swallow.slot.bottom"; - } - } - part { name: "limit1"; type: SPACER; - scale: 1; - description { state: "default" 0.0; - rel1.to_x: "elm.swallow.slot.middle"; - rel1.relative: 1.0 0.0; - rel2.to_x: "elm.swallow.slot.top"; - align: 0 0; - min: 1 1; - max: 1 99999; - } - description { state: "bottom" 0.0; - inherit: "default" 0.0; - rel2.to_x: "elm.swallow.slot.bottom"; - } - } - part { name: "base"; type: RECT; - scale: 1; - description { state: "default" 0.0; - color: 0 0 0 128; - } - description { state: "visible" 0.0; - inherit: "default" 0.0; - } - } - part { name: "topclip"; type: RECT; - scale: 1; - description { state: "default" 0.0; - rel2.to_y: "button_image"; - } - } - part { name: "pad.middle.left_top"; type: SPACER; - scale: 1; - clip_to: "topclip"; - description { state: "default" 0.0; - rel1.to: "elm.swallow.slot.middle"; - rel1.relative: 0.0 1.0; - rel2.to: "elm.swallow.slot.middle"; - align: 0.0 0.0; - min: 0 0; - max: 0 0; - } - } - part { name: "pad.middle.upper.right_bottom"; type: SPACER; - scale: 1; - clip_to: "topclip"; - description { state: "default" 0.0; - rel1.to: "pad.middle.upper"; - rel2.to: "pad.middle.upper"; - rel2.relative: 1.0 0.0; - align: 1.0 1.0; - min: 0 0; - max: 0 0; - } - } - part { name: "elm.swallow.slot.top"; type: SWALLOW; - clip_to: "topclip"; - scale: 1; - description { state: "default" 0.0; - rel1.to: "pad.middle.left_top"; - rel1.relative: 1.0 0.0; - rel2.to: "pad.middle.upper.right_bottom"; - rel2.relative: 0.0 0.0; - align: 0.5 0.0; - } - description { state: "visible" 0.0; - inherit: "default" 0.0; - align: 0.5 1.0; - } - } - part { name: "bottomclip"; type: RECT; - scale: 1; - description { state: "default" 0.0; - rel1.to_y: "button_image"; - } - } - part { name: "pad.middle.lower.left_top"; type: RECT; - clip_to: "topclip"; - scale: 1; - description { state: "default" 0.0; - rel1.to: "pad.middle.lower"; - rel1.relative: 0.0 1.0; - rel2.to: "pad.middle.lower"; - align: 0.0 0.0; - min: 0 0; - max: 0 0; - } - } - part { name: "pad.middle.right_bottom"; type: SPACER; - clip_to: "topclip"; - scale: 1; - description { state: "default" 0.0; - rel1.to: "elm.swallow.slot.middle"; - rel2.to: "elm.swallow.slot.middle"; - rel2.relative: 1.0 0.0; - align: 1.0 1.0; - min: 0 0; - max: 0 0; - } - } - part { name: "elm.swallow.slot.bottom"; type: SWALLOW; - clip_to: "bottomclip"; - scale: 1; - description { state: "default" 0.0; - rel1.to: "pad.middle.lower.left_top"; - rel1.relative: 1.0 1.0; - rel2.to: "pad.middle.right_bottom"; - rel2.relative: 0.0 1.0; - align: 0.5 1.0; - } - description { state: "visible" 0.0; - inherit: "default" 0.0; - align: 0.5 0.0; - } - } - part { name: "elm.swallow.slot.middle"; type: SWALLOW; - scale: 1; - description { state: "default" 0.0; - rel1.to: "elm.swallow.size"; - rel2.to: "elm.swallow.size"; - } - } - part { name: "pad.top.upper"; type: SPACER; - scale: 1; - description { state: "default" 0.0; - rel1.to_x: "limit0"; - rel2.to_x: "limit1"; - rel2.to_y: "elm.swallow.slot.top"; - rel1.relative: 1.0 1.0; - rel2.relative: 1.0 0.0; - align: 0.5 1.0; - min: 12 0; - max: 9999 0; - } - } - part { name: "pad.bottom.lower"; type: SPACER; - scale: 1; - description { state: "default" 0.0; - rel1.to_x: "limit0"; - rel1.to_y: "elm.swallow.slot.bottom"; - rel1.relative: 1.0 1.0; - rel2.to_x: "limit1"; - rel2.relative: 0.0 1.0; - align: 0.5 0.0; - min: 1 0; - max: 9999 0; - } - } - part { name: "pad.middle.upper"; type: SPACER; - scale: 1; - description { state: "default" 0.0; - rel1.to_x: "elm.swallow.size"; - rel1.relative: 0.0 1.0; - rel2.to_x: "elm.swallow.size"; - rel2.to_y: "elm.swallow.size"; - rel2.relative: 1.0 0.0; - align: 0.5 1.0; - min: 1 0; - max: 9999 0; - } - } - part { name: "pad.middle.lower"; type: SPACER; - scale: 1; - description { state: "default" 0.0; - rel1.to_x: "elm.swallow.size"; - rel1.to_y: "elm.swallow.size"; - rel1.relative: 0.0 1.0; - rel2.to_x: "elm.swallow.size"; - align: 0.5 0.0; - min: 1 0; - max: 9999 0; - } - } - } - programs { - program { name: "end"; - signal: "mouse,up,1"; source: "base"; - action: SIGNAL_EMIT "elm,action,dismiss" ""; - } - program { name: "show"; - signal: "elm,action,show"; source: "elm"; - action: STATE_SET "visible" 0.0; - target: "base"; - } - program { name: "hide"; - signal: "elm,action,hide"; source: "elm"; - action: STATE_SET "default" 0.0; - target: "base"; - } - program { name: "topshow"; - signal: "elm,action,slot,top,show"; source: "elm"; - action: STATE_SET "visible" 0.0; - transition: DECELERATE 0.5; - target: "elm.swallow.slot.top"; - } - program { name: "topshow3"; - signal: "elm,action,slot,top,show"; source: "elm"; - action: STATE_SET "default" 0.0; - target: "button_image"; - target: "limit0"; - target: "limit1"; - } - program { name: "tophide"; - signal: "elm,action,slot,top,hide"; source: "elm"; - action: STATE_SET "default" 0.0; - transition: DECELERATE 0.5; - target: "elm.swallow.slot.top"; - } - program { name: "bottomshow"; - signal: "elm,action,slot,bottom,show"; source: "elm"; - action: STATE_SET "visible" 0.0; - transition: DECELERATE 0.5; - target: "elm.swallow.slot.bottom"; - } - program { name: "bottomshow3"; - signal: "elm,action,slot,bottom,show"; source: "elm"; - action: STATE_SET "bottom" 0.0; - target: "button_image"; - target: "limit0"; - target: "limit1"; - } - program { name: "bottomhide"; - signal: "elm,action,slot,bottom,hide"; source: "elm"; - action: STATE_SET "default" 0.0; - transition: DECELERATE 0.5; - target: "elm.swallow.slot.bottom"; - } - } -} - -#undef HOVERSEL_FONT_SIZE diff --git a/ElmSharp/theme/tv/widgets/index.edc b/ElmSharp/theme/tv/widgets/index.edc deleted file mode 100644 index 6a783f2..0000000 --- a/ElmSharp/theme/tv/widgets/index.edc +++ /dev/null @@ -1,680 +0,0 @@ -/* - * Copyright (c) 2010 Samsung Electronics Co., Ltd All Rights Reserved - * - * BSD 2-Clause License (http://www.opensource.org/licenses/bsd-license.php) - * - * Redistribution and use in source and binary forms, with or without - * modification, are permitted provided that the following conditions are met: - * - * 1. Redistributions of source code must retain the above copyright notice, this - * list of conditions and the following disclaimer. - * 2. Redistributions in binary form must reproduce the above copyright notice, - * this list of conditions and the following disclaimer in the documentation - * and/or other materials provided with the distribution. - * - * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND - * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED - * WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE - * DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR - * ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES - * (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; - * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND - * ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT - * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS - * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. - */ - - group { "elm/index/event/default"; - alias: "elm/index/event/level0"; - inherit_only: 1; - parts { - /* Swallow for event rectangle */ - swallow { "elm.swallow.event.0"; - mouse; - desc { "default"; - fixed: 1 1; - rel.to: "elm.swallow.index.0"; - } - } - } - programs { - /* Program for index show */ - program { "active"; - signal: "elm,state,active"; - source: "elm"; - after: "on_active"; - } - /* Program for index autohide */ - program { "inactive"; - signal: "elm,state,inactive"; - source: "elm"; - after: "on_inactive"; - } - /* Program for indicator show */ - program { "active_indicator"; - signal: "elm,indicator,state,active"; - source: "elm"; - after: "on_active_indicator"; - } - /* Program for indicator hide */ - program { "inactive_indicator"; - signal: "elm,indicator,state,inactive"; - source: "elm"; - after: "on_inactive_indicator"; - } - /* Program for access active */ - program { "active_access"; - signal: "elm,access,state,active"; - source: "elm"; - after: "on_active_access"; - } - /* Program for access inactive */ - program { "inactive_access"; - signal: "elm,access,state,inactive"; - source: "elm"; - after: "on_inactive_access"; - } - } - } - /* Event for index with level1 */ - group { "elm/index/event/level1"; - inherit_only: 1; - mouse; - parts { - swallow { "elm.swallow.event.1"; - desc { "default"; - fixed: 1 1; - rel.to: "elm.swallow.index.1"; - } - } - } - programs { - /* Program for level changed to 0 */ - program { "level_0"; - signal: "elm,state,level,0"; - source: "elm"; - after: "on_level_0"; - } - /* Program for level changed to 1 */ - program { "level_1"; - signal: "elm,state,level,1"; - source: "elm"; - after: "on_level_1"; - } - } - } - group { "elm/index/base/template"; - inherit_only: 1; - nomouse; - parts { - spacer { "base"; - } - /* Swallow for index item box for level 0 */ - swallow { "elm.swallow.index.0"; - } - /* Swallow for index item box for level 1 */ - // swallow { "elm.swallow.index.1"; - // } - /* Rect for accessibility */ - rect { "access"; - } - } - /* Event for index level 0 */ - inherit: "elm/index/event/default"; - /* Event for index level 1 */ - // inherit: "elm/index/event/level1"; - programs { - /* Program for index show */ - program { "on_active"; - } - /* Program for index autohide */ - program { "on_inactive"; - } - /* Program for indicator show */ - program { "on_active_indicator"; - } - /* Program for indicator hide */ - program { "on_inactive_indicator"; - } - /* Program for access active */ - program { "on_active_access"; - } - /* Program for access inactive */ - program { "on_inactive_access"; - } - /* Program for level changed to 0 */ - // program { "on_level_0"; // level 0 - // } - /* Program for level changed to 1 */ - // program { "on_level_1"; // level 1 - // } - } - } - /* Event for index item */ - group { "elm/index/item/event/default"; - inherit_only: 1; - programs { - /* Program for index item activate */ - program { "active"; - signal: "elm,state,active"; - source: "elm"; - after: "on_active"; - } - /* Program for index item inactivate */ - program { "inactive"; - signal: "elm,state,inactive"; - source: "elm"; - after: "on_inactive"; - } - } - } - group { "elm/index/item/template"; - inherit_only: 1; - nomouse; - parts { - /* Base part for index item */ - spacer { "base"; - desc { "default"; - } - } - /* Text for index item */ - text { "elm.text"; - } - } - inherit: "elm/index/item/event/default"; - programs { - /* Program for index item activate */ - program { "on_active"; - } - /* Program for index item inactivate */ - program { "on_inactive"; - } - } - } - group { "elm/index/base/vertical/default"; - alias: "elm/index/base/vertical/fastscroll"; - nomouse; - images { - set { - name: "core_index_scroll_popup_bg"; - image { - image: "core_index_scroll_popup_bg.png" COMP; - } - } - } - parts { - spacer { "base"; - desc { "default"; - } - } - rect { "clipper"; - desc { "default"; - hid; - rel.to: "base"; - color: 255 255 255 0; - } - desc { "active"; - vis; - rel.to: "base"; - color: 255 255 255 255; - } - } - rect { "clipper_indicator"; - clip: "clipper"; - desc { "default"; - hid; - rel.to: "base"; - color: 255 255 255 0; - } - desc { "active"; - vis; - rel.to: "base"; - color: 255 255 255 255; - } - } - rect { "bg"; - clip: "clipper"; - desc { "default"; - rel.to_x: "elm.swallow.index.0"; - rel.to_y: "base"; - color_class: "index/default/bg"; - } - } - swallow { "elm.swallow.index.0"; - clip: "clipper"; - desc { "default"; - align: 1.0 0.5; - fixed: 1 1; - rel.to:"base"; - rel1.relative: 1.0 0.0; - } - } - // Popup Indicator group: "clipper_indicator "popup_bg" "sizer_text" - // "elm.text" "padding_text_left" "padding_text_bottom_right" - image { "popup_bg"; - clip: "clipper_indicator"; - desc { "default"; - fixed: 1 1; - image.normal: "core_index_scroll_popup_bg"; - rel1.to: "padding_text_left"; - rel2.to: "padding_text_bottom_right"; - color_class: "index/default/bg_popup"; - } - } - spacer { "sizer_text"; - scale; - clip: "clipper_indicator"; - desc { "default"; - min: 1 1; - fixed: 1 1; - rel.to: "base"; - rel1.relative: 0.5 0.5; - rel2.relative: 0.5 0.5; - } - } - text { "elm.text"; - scale; - clip: "clipper_indicator"; - desc { "default"; - min: INDEX_SCROLL_TEXT1_DEFAULT_SIZE_INC; - fixed: 1 1; - rel.to: "sizer_text"; - rel1.relative: 1.0 0.0; - text { - font: "BreezeSans:weight=Light"; - size: 112; - size_range: 50 112; - fit: 1 0; - } - color_class: "index/default/text_popup"; - } - } - spacer { "padding_text_left"; - scale; - clip: "clipper_indicator"; - desc { "default"; - min: INDEX_TEXT_LEFT_PADDING_SIZE_INC 0; - fixed: 1 0; - rel.to: "elm.text"; - rel2.relative: 0.0 1.0; - align: 1.0 0.5; - } - } - spacer { "padding_text_bottom_right"; - scale; - clip: "clipper_indicator"; - desc { "default"; - min: INDEX_TEXT_RIGHT_PADDING_SIZE_INC INDEX_TEXT_BOTTOM_PADDING_SIZE_INC; - fixed: 1 1; - rel.to: "elm.text"; - rel1.relative: 1.0 1.0; - align: 0.0 0.0; - } - } - rect { "access"; - desc { "default"; - fixed: 1 1; - rel.to: "elm.swallow.index.0"; - rel1.offset: -3 0; - color: 0 0 0 0; - hid; - } - desc { "active"; - inherit: "default"; - vis; - } - } - } - inherit: "elm/index/event/default"; - script { - public animate = 0; - } - programs { - program { "on_active"; - action: STATE_SET "active"; - target: "clipper"; - } - program { "on_inactive"; - action: STATE_SET "default"; - target: "clipper"; - } - program { "on_active_indicator"; - script { - if (get_int(animate) == 0) { - set_int(animate, 1); - } - else { - set_state(PART:"clipper_indicator", "default", 0.0); - } - } - after: "anim_active"; - } - program { "anim_active"; - action: STATE_SET "active"; - target: "clipper_indicator"; - transition: GLIDE_EASE_OUT(0.15); - after: "anim_finished"; - } - program { "on_inactive_indicator"; - script { - if (get_int(animate) == 0) { - set_int(animate, 1); - } - else { - set_state(PART:"clipper_indicator", "active", 0.0); - } - } - after: "anim_inactive"; - } - program { "anim_inactive"; - action: STATE_SET "default"; - target: "clipper_indicator"; - transition: GLIDE_EASE_OUT(0.45); - after: "anim_finished"; - } - program { "anim_finished"; - script { - set_int(animate, 0); - } - } - program { "on_active_access"; - action: STATE_SET "active"; - target: "access"; - } - program { "on_inactive_access"; - action: STATE_SET "default"; - target: "access"; - } - } - } - group { "elm/index/item/vertical/default"; - alias: "elm/index/item_odd/vertical/default"; - data.item: "stacking" "above"; - data.item: "selectraise" "on"; - nomouse; - images { - image: "core_index_fastscroll_rollover_line_focus.#.png" COMP; - } - parts { - rect { "base"; - scale; - desc { "default"; - min: INDEX_ITEM_WIDTH_INC INDEX_ITEM_HEIGHT_INC; - color: 255 255 255 255; - hid; - } - desc { "active"; - inherit: "default"; - vis; - } - } - spacer { "padding_right"; - scale; - desc { "default"; - align: 1.0 0.5; - min: INDEX_SCROLL_BG_LINE_WIDTH_INC 0; - fixed: 1 0; - rel.to: "base"; - rel1.relative: 1.0 0.0; - } - } - spacer { "padding_top_bg_item"; - scale; - desc { "default"; - align: 0.5 1.0; - rel.to: "base"; - rel2.relative: 1.0 0.0; - min: 0 INDEX_SCROLL_BG_LINE_WIDTH_INC; - fixed: 0 1; - } - } - text { "elm.text"; - scale; - desc { "default"; - min: INDEX_ITEM_TEXT_WIDTH_INC INDEX_ITEM_TEXT_HEIGHT_INC; - fixed: 1 1; - rel1 { - to_x: "bg_line_left"; - to_y: "base"; - } - rel2 { - to_x: "base"; - to_y: "bg_divider"; - relative: 1.0 0.0; - } - text { - font: "Tizen:weight=Light"; - size: 24; - size_range: 18 24; - fit: 1 0; - text_class: "tizen"; - } - color_class: "index_item/default/text"; - } - desc { "active"; - inherit: "default"; - color_class: "index_item/default/text_pressed"; - } - } - rect { "bg_line_left"; - scale; - desc { "default"; - align: 0.0 0.5; - min: INDEX_SCROLL_BG_LINE_WIDTH_INC 0; - fixed: 1 0; - rel.to: "base"; - rel2.relative: 0.0 1.0; - color_class: "index_item/default/line"; - } - desc { "active"; - inherit: "default"; - } - } - rect { "bg_divider"; - scale; - desc { "default"; - align: 0.5 1.0; - min: 0 INDEX_DIVIDER_HEIGHT_INC; - fixed: 0 1; - rel.to: "base"; - rel1.relative: 0.0 1.0; - color_class: "index_item/default/divider"; - } - desc { "inactive"; - inherit: "default"; - hid; - } - } - image { "bg_item"; - scale; - desc { "default"; - image.normal: "core_index_fastscroll_rollover_line_focus.#.png"; - rel1.to: "padding_top_bg_item"; - rel2.to: "bg_divider"; - fixed: 1 1; - color_class: "index_item/default/border"; - hid; - } - desc { "active"; - inherit: "default"; - vis; - } - } - } - inherit: "elm/index/item/event/default"; - programs { - program { "on_active"; - action: STATE_SET "active"; - transition: DECELERATE 0.0; - target: "elm.text"; - target: "bg_line_left"; - target: "bg_item"; - target: "base"; - } - program { "on_inactive"; - action: STATE_SET "default"; - transition: DECELERATE 0.0; - target: "elm.text"; - target: "bg_line_left"; - target: "bg_item"; - target: "base"; - } - program { "item_last"; - signal: "elm,last,item"; - source: "elm"; - action: STATE_SET "inactive"; - target: "bg_divider"; - } - } - } - group { "elm/index/base/vertical/pagecontrol"; - alias: "elm/index/base/horizontal/pagecontrol"; - nomouse; - parts { - spacer { "base"; - desc { "default"; - } - } - rect { "clipper"; - desc { "default"; - hid; - rel.to: "base"; - color: 255 255 255 0; - } - desc { "active"; - vis; - rel.to: "base"; - color: 255 255 255 255; - } - } - swallow { "elm.swallow.index.0"; - scale; - clip: "clipper"; - desc { "default"; - rel.to: "base"; - rel1.relative: 0.5 0.5; - rel2.relative: 0.5 0.5; - fixed: 1 1; - } - } - } - inherit: "elm/index/event/default"; - programs { - program { "on_active"; - action: STATE_SET "active"; - transition: DECELERATE 0.5; - target: "clipper"; - } - program { "on_inactive"; - action: STATE_SET "default"; - transition: DECELERATE 0.5; - target: "clipper"; - } - program { "on_active_indicator"; - } - program { "on_inactive_indicator"; - } - program { "on_priority_up"; - } - program { "on_priority_down"; - } - program { "on_active_access"; - } - program { "on_inactive_access"; - } - } - } - group { "elm/index/item/vertical/pagecontrol"; - alias: "elm/index/item_odd/vertical/pagecontrol"; - alias: "elm/index/item/horizontal/pagecontrol"; - alias: "elm/index/item_odd/horizontal/pagecontrol"; - images { - image: "core_page_indicator_on.png" COMP; - image: "core_page_indicator_on_ef.png" COMP; - image: "core_page_indicator_off.png" COMP; - image: "core_page_indicator_off_ef.png" COMP; - } - nomouse; - parts { - spacer { "base"; - scale; - desc { "default"; - min: INDEX_PAGECONTROL_IND_INC; - max: INDEX_PAGECONTROL_IND_INC; - } - } - image { "bg_indicator_off"; - scale; - desc { "default"; - fixed: 1 1; - rel.to: "base"; - min: INDEX_PAGECONTROL_IND_MIN_INC; - max: INDEX_PAGECONTROL_IND_MIN_INC; - image.normal: "core_page_indicator_off.png"; - color_class: "index_item/pagecontrol/icon"; - } - desc { "active"; - inherit: "default"; - hid; - } - } - image { "bg_indicator_off_shadow"; - scale; - desc { "default"; - fixed: 1 1; - image.normal: "core_page_indicator_off_ef.png"; - rel.to: "bg_indicator_off"; - } - desc { "active"; - inherit: "default"; - hid; - } - } - image { "bg_indicator_on"; - scale; - desc { "default"; - fixed: 1 1; - min: INDEX_PAGECONTROL_IND_MIN_INC; - max: INDEX_PAGECONTROL_IND_MIN_INC; - image.normal: "core_page_indicator_on.png"; - color_class: "index_item/pagecontrol/icon_on"; - hid; - } - desc { "active"; - inherit: "default"; - vis; - } - } - image { "bg_indicator_on_shadow"; - scale; - desc { "default"; - fixed: 1 1; - image.normal: "core_page_indicator_on_ef.png"; - rel.to: "bg_indicator_on"; - hid; - } - desc { "active"; - inherit: "default"; - vis; - } - } - } - inherit: "elm/index/item/event/default"; - programs { - program { "on_active"; - action: STATE_SET "active"; - target: "bg_indicator_off"; - target: "bg_indicator_off_shadow"; - target: "bg_indicator_on"; - target: "bg_indicator_on_shadow"; - } - program { "on_inactive"; - action: STATE_SET "default"; - target: "bg_indicator_off"; - target: "bg_indicator_off_shadow"; - target: "bg_indicator_on"; - target: "bg_indicator_on_shadow"; - } - } - } - diff --git a/ElmSharp/theme/tv/widgets/layout.edc b/ElmSharp/theme/tv/widgets/layout.edc deleted file mode 100644 index 5d250fc..0000000 --- a/ElmSharp/theme/tv/widgets/layout.edc +++ /dev/null @@ -1,165 +0,0 @@ -/* - * Copyright (c) 2010 Samsung Electronics Co., Ltd All Rights Reserved - * - * BSD 2-Clause License (http://www.opensource.org/licenses/bsd-license.php) - * - * Redistribution and use in source and binary forms, with or without - * modification, are permitted provided that the following conditions are met: - * - * 1. Redistributions of source code must retain the above copyright notice, this - * list of conditions and the following disclaimer. - * 2. Redistributions in binary form must reproduce the above copyright notice, - * this list of conditions and the following disclaimer in the documentation - * and/or other materials provided with the distribution. - * - * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND - * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED - * WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE - * DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR - * ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES - * (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; - * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND - * ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT - * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS - * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. - */ -/********************************************************************************************** -Document: "Tizen TV_General Guide_GUI Guideline_v1.0_140430.ppt" page no. 36 , name:"nocontent" -***********************************************************************************************/ -#define FONT_SIZE 35 -#define FONT_SIZE_SMALL 24 - -group { name: "elm/layout/application/default"; - parts { - part { name: "elm.swallow.bg"; - type: SWALLOW; - scale: 1; - description { state: "default" 0.0; - } - } - part { name: "elm.swallow.content"; - type: SWALLOW; - scale: 1; - description { state: "default" 0.0; - } - } - } -} - -group { name: "elm/layout/application/nocontent"; - parts { - part { name: "base"; type: RECT; mouse_events: 0; - scale: 1; - description { state: "default" 0.0; - color: 0 0 0 38; - } - } - part { name: "right.pad"; type: SPACER; mouse_events: 0; - scale: 1; - description { state: "default" 0.0; - rel1.to: "base"; - rel2.to: "base"; - min: 50 50; - max: 50 -1; - align: 1.0 0.0; - } - } - part { name: "left.pad"; type: SPACER; mouse_events: 0; - scale: 1; - description { state: "default" 0.0; - rel1.to: "base"; - rel2.to: "base"; - min: 50 50; - max: 50 -1; - align: 0.0 0.0; - } - } - part { name: "base.pad"; type: SPACER; mouse_events: 0; - scale: 1; - description { state: "default" 0.0; - rel1.to: "left.pad"; - rel1.relative: 1.0 0.0; - rel2.to: "right.pad"; - rel2.relative: 0 1.0; - min: 0 70; - max: -1 70; - align: 0.0 0.5; - } - } - - part { name: "elm.text"; type: TEXT; mouse_events: 0; - scale: 1; - multiline: 1; - description { state: "default" 0.0; - rel1.to: "base.pad"; - rel2.to: "base.pad"; - color: 211 211 211 255; - align: 0 0; - min: 0 40; - max: -1 40; - text { - size: FONT_SIZE; - min: 0 0; - font: FONT_M; - } - } - } - part { name: "elm.text.1"; type: TEXT; mouse_events: 0; - scale: 1; - multiline: 1; - description { state: "default" 0.0; - rel1.to: "elm.text"; - rel1.relative: 0.0 1.0; - rel2.to: "right.pad"; - rel2.relative: 0.0 1.0; - color: 134 134 134 255; - min: 0 30; - max: -1 30; - align: 0 0; - text { - font: FONT_M; - size: FONT_SIZE_SMALL; - min: 0 0; - } - } - } - } -} - -/*********************************************************************************************** -Document: "Tizen TV_General Guide_GUI Guideline_v1.0_140430.ppt" page no. 48, name:"nocontent.1" -***********************************************************************************************/ -group { name: "elm/layout/application/nocontent.1"; - inherit:"elm/layout/application/nocontent"; - parts { - part { name: "right.pad"; type: SPACER; mouse_events: 0; - scale: 1; - description { state: "default" 0.0; - min: 30 30; - max: 30 -1; - } - } - part { name: "left.pad"; type: SPACER; mouse_events: 0; - scale: 1; - description { state: "default" 0.0; - min: 30 30; - max: 30 -1; - } - } - } -} - -group { "elm/layout/background/default"; - parts { - rect { "bg"; - scale; - desc { "default"; - color_class: "layout/background/bg"; - } - } - swallow { "elm.swallow.content"; - scale; - desc { "default"; } - } - } -} diff --git a/ElmSharp/theme/tv/widgets/list.edc b/ElmSharp/theme/tv/widgets/list.edc deleted file mode 100644 index fb993d5..0000000 --- a/ElmSharp/theme/tv/widgets/list.edc +++ /dev/null @@ -1,445 +0,0 @@ -/* - * Copyright (c) 2010 Samsung Electronics Co., Ltd All Rights Reserved - * - * BSD 2-Clause License (http://www.opensource.org/licenses/bsd-license.php) - * - * Redistribution and use in source and binary forms, with or without - * modification, are permitted provided that the following conditions are met: - * - * 1. Redistributions of source code must retain the above copyright notice, this - * list of conditions and the following disclaimer. - * 2. Redistributions in binary form must reproduce the above copyright notice, - * this list of conditions and the following disclaimer in the documentation - * and/or other materials provided with the distribution. - * - * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND - * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED - * WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE - * DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR - * ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES - * (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; - * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND - * ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT - * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS - * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. - */ - -group { name: "elm/list/item/default"; - alias: "elm/list/item_odd/default"; - data.item: "texts" "elm.text"; - data.item: "focus_highlight" "on"; - parts { - part { name: "base"; type: RECT; - scale: 1; - ignore_flags: ON_HOLD; - description { state: "default" 0.0; - min: 0 96; - color: 0 0 0 0; - } - } - part { name: "border_down"; type: RECT; - description { state: "default" 0.0; - fixed: 0 1; - min: 64 2; - rel1.relative: 0.0 1.0; - color: 222 222 222 222; - } - description { state: "focused" 0.0; - inherit: "default" 0.0; - visible: 0; - } - } - part { name: "border_up"; type: RECT; - scale: 1; - description { state: "default" 0.0; - fixed: 0 1; - min: 64 2; - rel2.relative: 1.0 0.0; - color: 222 222 222 222; - } - description { state: "focused" 0.0; - inherit: "default" 0.0; - visible: 0; - } - } - part { name: "base_highlight_bg"; type: IMAGE; - mouse_events: 0; - scale: 1; - description { state: "default" 0.0; - image { - normal: "round_rectangle_4X4.png"; - border: 4 4 4 4; - border_scale: 1; - } - color: 255 255 255 255; - } - } - part { name: "base_highlight"; type: RECT; - mouse_events: 0; - scale: 1; - description { state: "default" 0.0; - color: 255 255 255 255; - } - description { state: "focused" 0.0; - inherit: "default" 0.0; - color_class: "open_ux_theme"; - } - } - part { name: "pad.text.1_right"; type: SPACER; - scale: 1; - description { state: "default" 0.0; - fixed: 0 1; - align: 1.0 0.5; - min: 32 96; - max: 32 96; - } - } - part { name: "pad.text.1_left"; type: SPACER; - scale: 1; - description { state: "default" 0.0; - fixed: 0 1; - align: 0.0 0.5; - min: 32 96; - max: 32 96; - } - } - part { name: "elm.text"; type: TEXT; mouse_events: 0; - effect: SHADOW BOTTOM; - ignore_flags: ON_HOLD; - scale: 1; - description { state: "default" 0.0; - align: 0.0 0.5; - min: 0 40; - rel1.to: "pad.text.1_left"; - rel1.relative: 1.0 0.0; - rel2.to: "pad.text.1_right"; - rel2.relative: 0.0 1.0; - color: 89 89 89 255; - text { font: FONT_M; size: 30; - min: 1 1; - max: 1 0; - ellipsis: -1; - } - } - description { state: "focused" 0.0; - inherit: "default" 0.0; - color: 255 255 255 255; - } - description { state: "disabled" 0.0; - inherit: "default" 0.0; - color: 89 89 89 51; - } - } - } - programs { - program { - signal: "elm,state,default"; source: "elm"; - action: STATE_SET "default" 0.0; - target: "elm.text"; - } - program { name: "select_text.1"; - signal: "elm,state,focused"; source: "elm"; - action: STATE_SET "focused" 0.0; - target: "elm.text"; - target: "base_highlight"; - target: "border_up"; - target: "border_down"; - } - program { name: "unselect_text.1"; - signal: "elm,state,unfocused"; source: "elm"; - action: STATE_SET "default" 0.0; - target: "elm.text"; - target: "base_highlight"; - target: "border_up"; - target: "border_down"; - } - program { - signal: "elm,state,disabled"; source: "elm"; - action: STATE_SET "disabled" 0.0; - target: "elm.text"; - } - program { - signal: "elm,state,enabled"; source: "elm"; - action: STATE_SET "default" 0.0; - target: "elm.text"; - } - } -} - -/****************************************************************** -Tizen TV_General Guide_GUI Guideline_v1.0_140508.ppt 90 1text -*******************************************************************/ - -group { name: "elm/list/item/1text"; - alias: "elm/list/item_odd/1text"; - data.item: "texts" "elm.text"; - data.item: "focus_highlight" "on"; - inherit: "elm/list/item/default"; - parts { - part { name: "border_down"; type: RECT; - description { state: "default" 0.0; - fixed: 0 1; - min: 64 2; - rel1.relative: 0.0 1.0; - color: 222 222 222 222; - } - description { state: "last" 0.0; - inherit: "default" 0.0; - visible: 0; - } - description { state: "single" 0.0; - inherit: "last" 0.0; - } - description { state: "focused" 0.0; - inherit: "default" 0.0; - visible: 0; - } - } - part { name: "border_up"; type: RECT; - scale: 1; - description { state: "default" 0.0; - fixed: 0 1; - min: 64 2; - rel2.relative: 1.0 0.0; - color: 222 222 222 222; - } - description { state: "first" 0.0; - inherit: "default" 0.0; - visible: 0; - } - description { state: "single" 0.0; - inherit: "first" 0.0; - } - description { state: "focused" 0.0; - inherit: "default" 0.0; - visible: 0; - } - } - part { name: "base_highlight_bg"; type: IMAGE; - mouse_events: 0; - scale: 1; - description { state: "default" 0.0; - image { - normal: "round_rectangle_4X4.png"; - border: 4 4 4 4; - border_scale: 1; - } - color: 255 255 255 255; - } - description { state: "focused" 0.0; - inherit: "default" 0.0; - color_class: "open_ux_theme"; - } - } - part { name: "base_highlight"; type: RECT; - mouse_events: 0; - scale: 1; - description { state: "default" 0.0; - color: 255 255 255 255; - } - description { state: "first" 0.0; - inherit: "default" 0.0; - rel1.offset: 0 10; - } - description { state: "last" 0.0; - inherit: "default" 0.0; - rel2.offset: 0 -11; - } - description { state: "single" 0.0; - inherit: "default" 0.0; - rel1.offset: 0 10; - rel2.offset: 0 -11; - } - description { state: "focused" 0.0; - inherit: "default" 0.0; - color_class: "open_ux_theme"; - } - description { state: "first_focused" 0.0; - inherit: "first" 0.0; - color_class: "open_ux_theme"; - } - description { state: "last_focused" 0.0; - inherit: "last" 0.0; - color_class: "open_ux_theme"; - } - description { state: "single_focused" 0.0; - inherit: "single" 0.0; - color_class: "open_ux_theme"; - } - } - part { name: "pad.text.1_right"; type: SPACER; - scale: 1; - description { state: "default" 0.0; - fixed: 0 1; - align: 1.0 0.5; - min: 32 96; - max: 32 96; - } - } - part { name: "pad.text.1_left"; type: SPACER; - scale: 1; - description { state: "default" 0.0; - fixed: 0 1; - align: 0.0 0.5; - min: 32 96; - max: 32 96; - } - } - part { name: "elm.text"; type: TEXT; mouse_events: 0; - effect: SHADOW BOTTOM; - ignore_flags: ON_HOLD; - scale: 1; - description { state: "default" 0.0; - align: 0.0 0.5; - min: 0 40; - rel1.to: "pad.text.1_left"; - rel1.relative: 1.0 0.0; - rel2.to: "pad.text.1_right"; - rel2.relative: 0.0 1.0; - color: 89 89 89 255; - text { font: FONT_M; size: 30; - min: 1 1; - max: 1 0; - ellipsis: -1; - } - } - description { state: "focused" 0.0; - inherit: "default" 0.0; - color: 255 255 255 255; - } - description { state: "disabled" 0.0; - inherit: "default" 0.0; - color: 89 89 89 51; - } - } - } - programs { - program { - signal: "elm,state,default"; source: "elm"; - action: STATE_SET "default" 0.0; - target: "elm.text"; - } - program { name: "select_text.1"; - signal: "elm,state,focused"; source: "invalidation"; - } - program { - signal: "elm,state,focused"; source: "elm"; - script { - new st[31], Float:vl; - get_state(PART:"base_highlight", st, 30, vl); - if (!strncmp(st, "first", 5)) - set_state(PART:"base_highlight", "first_focused", 0.0); - else if (!strncmp(st, "last", 4)) - set_state(PART:"base_highlight", "last_focused", 0.0); - else if (!strncmp(st, "single", 6)) - set_state(PART:"base_highlight", "single_focused", 0.0); - else - set_state(PART:"base_highlight", "focused", 0.0); - set_state(PART:"elm.text", "focused", 0.0); - set_state(PART:"base_highlight_bg", "focused", 0.0); - } - } - program { name: "unselect_text.1"; - signal: "elm,state,unfocused"; source: "invalidation"; - } - program { - signal: "elm,state,unfocused"; source: "elm"; - script { - new st[31], Float:vl; - get_state(PART:"base_highlight", st, 30, vl); - if (!strncmp(st, "first", 5)) - set_state(PART:"base_highlight", "first", 0.0); - else if (!strncmp(st, "last", 4)) - set_state(PART:"base_highlight", "last", 0.0); - else if (!strncmp(st, "single", 6)) - set_state(PART:"base_highlight", "single", 0.0); - else - set_state(PART:"base_highlight", "default", 0.0); - set_state(PART:"elm.text", "default", 0.0); - set_state(PART:"base_highlight_bg", "default", 0.0); - } - } - program { - signal: "elm,state,disabled"; source: "elm"; - action: STATE_SET "disabled" 0.0; - target: "elm.text"; - } - program { - signal: "elm,state,enabled"; source: "elm"; - action: STATE_SET "default" 0.0; - target: "elm.text"; - } - program { - signal: "elm,state,list,first"; source: "elm"; - action: STATE_SET "first" 0.0; - target: "base_highlight"; - target: "border_up"; - } - program { - signal: "elm,state,list,last"; source: "elm"; - action: STATE_SET "last" 0.0; - target: "base_highlight"; - target: "border_down"; - } - program { - signal: "elm,state,list,single"; source: "elm"; - action: STATE_SET "single" 0.0; - target: "base_highlight"; - target: "border_up"; - target: "border_down"; - } - } -} - -/****************************************************************** -Tizen TV_General Guide_GUI Guideline_v1.0_140508.ppt 91 1text.1icon -*******************************************************************/ - -group { name: "elm/list/item/1text.1icon"; - alias: "elm/list/item_odd/1text.1icon"; - data.item: "texts" "elm.text"; - data.item: "contents" "elm.swallow.icon"; - inherit: "elm/list/item/1text"; - parts{ - part { name: "elm.swallow.icon"; type: SWALLOW; - description { state: "default" 0.0; - fixed: 1 1; - visible: 1; - align: 0.0 0.5; - rel1.to: "pad.text.1_left"; - rel1.relative: 1.0 0.0; - rel2.to: "pad.text.1_left"; - rel2.relative: 1.0 1.0; - } - } - part { name: "pad.text.1_middle"; type: SPACER; - scale: 1; - description { state: "default" 0.0; - fixed: 0 1; - align: 0.0 0.5; - min: 20 96; - max: 20 96; - rel1.to: "elm.swallow.icon"; - rel1.relative: 1.0 0.0; - rel2.to: "elm.swallow.icon"; - rel2.relative: 1.0 1.0; - } - } - part { name: "elm.text"; - description { state: "default" 0.0; - rel1.to: "pad.text.1_middle"; - rel1.relative: 1.0 0.0; - rel2.to: "pad.text.1_right"; - rel2.relative: 0.0 1.0; - } - description { state: "focused" 0.0; - inherit: "default" 0.0; - color: 255 255 255 255; - } - description { state: "disabled" 0.0; - inherit: "default" 0.0; - } - } - } -} - diff --git a/ElmSharp/theme/tv/widgets/naviframe.edc b/ElmSharp/theme/tv/widgets/naviframe.edc deleted file mode 100644 index 1b83037..0000000 --- a/ElmSharp/theme/tv/widgets/naviframe.edc +++ /dev/null @@ -1,945 +0,0 @@ -/* - * Copyright (c) 2010 Samsung Electronics Co., Ltd All Rights Reserved - * - * BSD 2-Clause License (http://www.opensource.org/licenses/bsd-license.php) - * - * Redistribution and use in source and binary forms, with or without - * modification, are permitted provided that the following conditions are met: - * - * 1. Redistributions of source code must retain the above copyright notice, this - * list of conditions and the following disclaimer. - * 2. Redistributions in binary form must reproduce the above copyright notice, - * this list of conditions and the following disclaimer in the documentation - * and/or other materials provided with the distribution. - * - * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND - * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED - * WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE - * DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR - * ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES - * (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; - * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND - * ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT - * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS - * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. - */ - - -styles { - style { "naviframe_default_maintitle_text"; - base: "font=Tizen:width=Condensed align=center font_size="NAVIFRAME_TITLE_TEXT_FONT_SIZE_INC" color=#FFFFFFFF wrap=none ellipsis=1.0 text_class=tizen color_class=naviframe_item/default/text_maintitle"; - tag: "br" "\n"; - tag: "tab" "\t"; - } - style { "naviframe_default_maintitle_text_subtitle_enabled"; - base: "font=Tizen:width=Condensed align=center font_size="NAVIFRAME_SUBTITLE_VISIBLE_TEXT_FONT_SIZE_INC" color=#FFFFFFFF wrap=none ellipsis=1.0 text_class=tizen color_class=naviframe_item/default/text_maintitle_subtitle_enabled"; - tag: "br" "\n"; - tag: "tab" "\t"; - } - style { "naviframe_default_subtitle_text"; - base: "font=Tizen:width=Condensed align=center font_size="NAVIFRAME_VISIBLE_TEXT_FONT_SIZE_INC" color=#FFFFFFFF wrap=none ellipsis=1.0 text_class=tizen color_class=naviframe_item/default/text_subtitle"; - tag: "br" "\n"; - tag: "tab" "\t"; - } -} - -group { "elm/naviframe/base/default"; - parts { - spacer { "base"; - desc { "default"; - } - } - rect { "bg"; - desc { "default"; - color: 0 0 0 0; - } - } - } -} - -group { "elm/naviframe/item/event/default"; - inherit_only: 1; - programs { - program { "deferred_pushed_new"; - signal: "elm,state,new,pushed,deferred"; - source: "elm"; - after: "on_deferred_pushed_new"; - } - program { "deferred_pushed_cur"; - signal: "elm,state,cur,pushed,deferred"; - source: "elm"; - after: "on_deferred_pushed_cur"; - } - program { "deferred_popped_prev"; - signal: "elm,state,prev,popped,deferred"; - source: "elm"; - after: "on_deferred_popped_prev"; - } - program { "deferred_popped_cur"; - signal: "elm,state,cur,popped,deferred"; - source: "elm"; - after: "on_deferred_popped_cur"; - } - program { "pushed_new"; - signal: "elm,state,new,pushed"; - source: "elm"; - after: "on_pushed_new"; - } - program { "popped_prev"; - signal: "elm,state,prev,popped"; - source: "elm"; - after: "on_popped_prev"; - } - program { "finished_show"; - action: SIGNAL_EMIT "elm,action,show,finished" ""; - } - program { "finished_pushed"; - action: SIGNAL_EMIT "elm,action,pushed,finished" ""; - } - program { "finished_popped"; - action: SIGNAL_EMIT "elm,action,popped,finished" ""; - } - program { "visible"; - signal: "elm,state,visible"; - source: "elm"; - after: "on_visible"; - } - program { "invisible"; - signal: "elm,state,invisible"; - source: "elm"; - after: "on_invisible"; - } - program { "orient_90"; - source: "elm"; - signal: "elm,state,orient,90"; - after: "on_orient_90"; - } - program { "orient_270"; - source: "elm"; - signal: "elm,state,orient,270"; - after: "on_orient_270"; - } - program { "orient_0"; - source: "elm"; - signal: "elm,state,orient,0"; - after: "on_orient_0"; - } - program { "orient_180"; - source: "elm"; - signal: "elm,state,orient,180"; - after: "on_orient_180"; - } - } -} - -group { "elm/naviframe/item/default/default"; - alias: "elm/naviframe/item/basic/default"; - inherit: "elm/naviframe/item/event/default"; - data.item: "tizen_effect" 1; - images { - set { - name: "core_icon_badge_container.#"; - image { - image: "core_icon_badge_container.#.png" COMP; - } - } - set { - name: "core_theme_bg_01"; - image { - image: "core_theme_bg_01.png" COMP; - } - } - } - script { - public is_landscape = 0; //Landscape status - public is_prev_btn_visible = 0; //Previous button visible status - public is_title_left_btn_visible = 0; //Title left button visible status - public is_title_right_btn_visible = 0; //Title right button visible status - public is_tabbar_visible = 0; //Tabbar visible status (This value is used for tabbar group) - } - parts { - spacer { "base"; - desc { "default"; - } - } - rect { "clipper"; - nomouse; - desc { "default"; - vis; - } - desc { "hidden"; - hid; - } - } - image { "bg_image"; - scale; - nomouse; - clip: "clipper"; - desc { "default"; - rel.to: "base"; - align: 0.5 0.0; - fixed: 0 1; - min: 0 NAVIFRAME_BG_PORTRAIT_HEIGHT_INC; - image.normal: "core_theme_bg_01"; - } - desc { "landscape"; - inherit: "default"; - min: 0 NAVIFRAME_BG_LANDSCAPE_HEIGHT_INC; - } - } - rect { "bg_title"; - scale; - nomouse; - desc { "default"; - min: 0 NAVIFRAME_TITLE_HEIGHT_INC; - max: -1 NAVIFRAME_TITLE_HEIGHT_INC; - align: 0.0 0.0; - fixed: 0 1; - rel1 { to: "base"; relative: 0.0 0.0; } - rel2 { to: "base"; relative: 1.0 0.0; } - color_class: "naviframe_item/default/bg_title"; - } - desc { "hidden"; - inherit: "default"; - min: 0 0; - max: -1 0; - } - } - rect { "clipper_title"; - nomouse; - clip: "clipper"; - desc { "default"; - rel.to_y: "bg_title"; - } - desc { "hidden"; - inherit: "default"; - hid; - } - } - spacer { "padding_left_title_text"; - scale; - desc { "default"; - rel1.to: "bg_title"; - rel2.to: "bg_title_left_btn"; - } - desc { "visible_title_badge"; - rel1.to: "bg_title"; - rel2.to: "padding_title_badge2"; - } - desc { "visible_prev_btn"; - rel1.to: "bg_title"; - rel2 { to_x: "elm.swallow.prev_btn"; to_y: "bg_title"; relative: 1.0 1.0; } - } - } - spacer { "padding_right_title_text"; - scale; - desc { "default"; - rel1.to: "bg_title_right_btn"; - rel2.to: "bg_title"; - } - desc { "visible_title_badge"; - rel1.to: "padding_left_icon_badge"; - rel2.to: "bg_title"; - } - desc { "visible_prev_btn"; - rel1.to: "padding_right_prev_btn"; - rel2.to: "bg_title"; - } - } - textblock { "elm.text.title"; - scale; - nomouse; - clip: "clipper_title_text"; - desc { "default"; - text { - style: "naviframe_default_maintitle_text"; - size: NAVIFRAME_TITLE_TEXT_FONT_SIZE_INC; - size_range: NAVIFRAME_TITLE_TEXT_FONT_RANGE_INC; - fit: 1 0; - } - fixed: 1 1; - rel1 { to_x: "padding_left_title_text"; to_y: "bg_title"; relative: 1.0 0.0; } - rel2 { to_x: "padding_right_title_text"; to_y: "bg_title"; relative: 0.0 1.0; } - } - desc { "visible_subtitle"; - text { - style: "naviframe_default_maintitle_text_subtitle_enabled"; - size: NAVIFRAME_SUBTITLE_VISIBLE_TEXT_FONT_SIZE_INC; - size_range: NAVIFRAME_SUBTITLE_VISIBLE_TEXT_FONT_RANGE_INC; - fit: 1 0; - } - fixed: 1 1; - rel1 { to_x: "padding_left_title_text"; to_y: "padding_top_title"; relative: 1.0 1.0; } - rel2 { to_x: "padding_right_title_text"; to_y: "elm.text.subtitle"; relative: 0.0 0.0; } - } - } - rect { "clipper_title_text"; - nomouse; - clip: "clipper_title"; - desc { "default"; - rel.to: "elm.text.title"; - } - } - spacer { "padding_top_title"; - desc { "default"; - min: 0 NAVIFRAME_TITLE_TOP_PADDING_HEIGHT_INC; - max: -1 NAVIFRAME_TITLE_TOP_PADDING_HEIGHT_INC; - fixed: 0 1; - align: 0.5 0.0; - rel1 { to: "bg_title"; relative: 0.0 0.0; } - rel2 { to: "bg_title"; relative: 1.0 0.0; } - } - } - textblock { "elm.text.subtitle"; - scale; - nomouse; - clip: "clipper_subtitle_text"; - desc { "default"; - text { - style: "naviframe_default_subtitle_text"; - } - min: 0 NAVIFRAME_SUBTITLE_HEIGHT_INC; - max: -1 NAVIFRAME_SUBTITLE_HEIGHT_INC; - fixed: 1 1; - align: 0.5 1.0; - rel1 { to_x: "padding_left_title_text"; to_y: "padding_bottom_subtitle"; relative: 1.0 0.0; } - rel2 { to_x: "padding_right_title_text"; to_y: "padding_bottom_subtitle"; relative: 0.0 0.0; } - } - } - rect { "clipper_subtitle_text"; - nomouse; - clip: "clipper_title"; - desc { "default"; - rel.to: "elm.text.subtitle"; - } - } - spacer { "padding_bottom_subtitle"; - desc { "default"; - min: 0 NAVIFRAME_SUBTITLE_BOTTOM_PADDING_HEIGHT_INC; - max: -1 NAVIFRAME_SUBTITLE_BOTTOM_PADDING_HEIGHT_INC; - fixed: 0 1; - align: 0.5 1.0; - rel1 { to: "bg_title"; relative: 0.0 1.0; } - rel2 { to: "bg_title"; relative: 1.0 1.0; } - } - } - rect { "event"; - ignore: ON_HOLD; - desc { "default"; - rel.to: "bg_title"; - color: 0 0 0 0; - } - } - rect { "access.title"; - repeat; - desc { "default"; - rel1 { to_x: "padding_left_title_text"; to_y: "bg_title"; relative: 1.0 0.0; } - rel2 { to_x: "padding_right_title_text"; to_y: "bg_title"; relative: 0.0 1.0; } - color: 0 0 0 0; - } - } - swallow { "elm.swallow.icon"; - scale; - clip: "clipper_title"; - desc { "default"; - max: 0 0; - fixed: 1 0; - align: 0.0 0.5; - rel1 { relative: 1.0 0.0; to: "padding_left_title"; } - rel2 { relative: 1.0 1.0; to: "padding_left_title"; } - hid; - } - } - spacer { "padding_left_icon_badge"; - scale; - desc { "default"; - min: 0 0; - max: 0 -1; - fixed: 1 0; - align: 1.0 0.5; - rel1 { to_x: "padding_left_badge_text"; to_y: "bg_title"; relative: 0.0 0.0; } - rel2 { to_x: "padding_left_badge_text"; to_y: "bg_title"; relative: 0.0 1.0; } - } - desc { "visible"; - inherit: "default"; - min: NAVIFRAME_BADGE_ICON_LEFT_PADDING_WIDTH_INC 0; - max: NAVIFRAME_BADGE_ICON_LEFT_PADDING_WIDTH_INC -1; - } - } - image { "icon_badge"; - scale; - nomouse; - clip: "clipper_title"; - desc { "default"; - min: 0 0; - max: 0 0; - fixed: 1 1; - rel1 { to_x: "padding_left_badge_text"; to_y: "title_badge"; } - rel2 { to_x: "padding_right_badge_text"; to_y: "title_badge"; } - color: 195 219 226 255; - image.normal: "core_icon_badge_container.#"; - hid; - } - desc { "visible"; - rel1 { to_x: "padding_left_badge_text"; to_y: "title_badge"; } - rel2 { to_x: "padding_right_badge_text"; to_y: "title_badge"; } - color: 195 219 226 255; - image.normal: "core_icon_badge_container.#"; - vis; - } - } - spacer { "padding_left_badge_text"; - scale; - desc { "default"; - min: 0 0; - max: 0 -1; - fixed: 1 0; - align: 1.0 0.5; - rel1 { to_x: "title_badge"; to_y: "bg_title"; relative: 0.0 0.0; } - rel2 { to_x: "title_badge"; to_y: "bg_title"; relative: 0.0 1.0; } - } - desc { "visible"; - inherit: "default"; - min: NAVIFRAME_BADGE_TEXT_LEFT_PADDING_WIDTH_INC 0; - max: NAVIFRAME_BADGE_TEXT_LEFT_PADDING_WIDTH_INC -1; - } - } - spacer { "padding_right_badge_text"; - scale; - desc { "default"; - min: 0 0; - max: 0 -1; - fixed: 1 0; - align: 1.0 0.5; - rel1 { to_x: "padding_right_title"; to_y: "bg_title"; relative: 0.0 0.0; } - rel2 { to_x: "padding_right_title"; to_y: "bg_title"; relative: 0.0 1.0; } - } - desc { "visible"; - inherit: "default"; - min: NAVIFRAME_BADGE_TEXT_LEFT_PADDING_WIDTH_INC 0; - max: NAVIFRAME_BADGE_TEXT_LEFT_PADDING_WIDTH_INC -1; - } - } - text { "title_badge"; - scale; - nomouse; - clip: "clipper_title"; - desc { "default"; - text { - font: "Tizen:weight=Normal"; size: "32"; - text_class: "tizen"; - min: 1 0; - max: 1 0; - align: 1.0 0.5; - ellipsis: -1; - } - color: 7 7 7 255; - min: 0 NAVIFRAME_BADGE_HEIGHT_INC; - max: -1 NAVIFRAME_BADGE_HEIGHT_INC; - fixed: 1 1; - align: 1.0 0.5; - rel1 { to_x: "padding_right_badge_text"; to_y: "elm.text.title"; relative: 0.0 0.0; } - rel2 { to_x: "padding_right_badge_text"; to_y: "elm.text.title"; relative: 0.0 1.0; } - } - } - text { "title_badge2"; - scale; - nomouse; - clip: "clipper_title"; - desc { "default"; - text { - font: "Tizen:weight=Normal"; size: "32"; - text_class: "tizen"; - min: 1 0; - max: 1 0; - align: 0.0 0.5; - ellipsis: -1; - } - color: 7 7 7 255; - min: 0 NAVIFRAME_BADGE_HEIGHT_INC; - max: -1 NAVIFRAME_BADGE_HEIGHT_INC; - fixed: 1 1; - align: 0.0 0.5; - rel1 { to_x: "padding_left_title"; to_y: "elm.text.title"; relative: 1.0 0.0; } - rel2 { to_x: "padding_left_title"; to_y: "elm.text.title"; relative: 1.0 1.0; } - hid; - } - } - spacer { "padding_title_badge2"; - scale; - desc { "default"; - min: 0 0; - max: 0 -1; - fixed: 1 0; - align: 0.0 0.5; - rel1 { to_x: "title_badge2"; to_y: "bg_title"; relative: 1.0 0.0; } - rel2 { to_x: "title_badge2"; to_y: "bg_title"; relative: 1.0 1.0; } - } - desc { "visible"; - inherit: "default"; - min: NAVIFRAME_BADGE2_PADDING_WIDTH_INC 0; - max: NAVIFRAME_BADGE2_PADDING_WIDTH_INC -1; - } - } - spacer { "padding_left_title"; - scale; - desc { "default"; - min: NAVIFRAME_TITLE_LEFT_PADDING_WIDTH_INC 0; - max: NAVIFRAME_TITLE_LEFT_PADDING_WIDTH_INC -1; - fixed: 1 0; - align: 0.0 0.0; - rel1 { to: "bg_title"; relative: 0.0 0.0; } - rel2 { to: "bg_title"; relative: 0.0 1.0; } - } - desc { "hidden"; - inherit: "default"; - min: 0 0; - max: 0 -1; - } - } - spacer { "bg_title_left_btn"; - scale; - desc { "default"; - min: 0 0; - fixed: 1 0; - align: 0.0 0.5; - rel1 { to: "padding_left_title"; relative: 1.0 0.0; } - rel2 { to: "padding_left_title"; relative: 1.0 1.0; } - } - desc { "visible"; - inherit: "default"; - min: NAVIFRAME_TITLE_FUNC_BTN_SIZE_INC; - max: NAVIFRAME_TITLE_FUNC_BTN_SIZE_INC; - } - } - swallow { "title_left_btn"; - scale; - clip: "clipper_title"; - desc { "default"; - fixed: 1 1; - rel.to: "bg_title_left_btn"; - hid; - } - desc { "visible"; - inherit: "default"; - vis; - } - } - spacer { "bg_title_right_btn"; - scale; - desc { "default"; - min: 0 0; - fixed: 1 0; - align: 1.0 0.5; - rel1 { to: "padding_right_title"; relative: 0.0 0.0; } - rel2 { to: "padding_right_title"; relative: 0.0 1.0; } - } - desc { "visible"; - inherit: "default"; - min: NAVIFRAME_TITLE_FUNC_BTN_SIZE_INC; - max: NAVIFRAME_TITLE_FUNC_BTN_SIZE_INC; - } - } - spacer { "padding_right_title"; - scale; - desc { "default"; - min: NAVIFRAME_TITLE_RIGHT_PADDING_WIDTH_INC 0; - max: NAVIFRAME_TITLE_RIGHT_PADDING_WIDTH_INC -1; - fixed: 1 0; - align: 1.0 0.0; - rel1 { to: "bg_title"; relative: 1.0 0.0; } - rel2 { to: "bg_title"; relative: 1.0 1.0; } - } - desc { "hidden"; - inherit: "default"; - min: 0 0; - max: 0 -1; - } - } - swallow { "title_right_btn"; - scale; - clip: "clipper_title"; - desc { "default"; - fixed: 1 1; - rel.to: "bg_title_right_btn"; - hid; - } - desc { "visible"; - inherit: "default"; - vis; - } - } - swallow { "elm.swallow.content"; - scale; - norepeat; - clip: "clipper_content"; - desc { "default"; - align: 0.0 0.0; - rel1 { to_x: "base"; to_y: "bg_title"; relative: 0.0 1.0; } - rel2 { to_x: "base"; to_y: "toolbar"; relative: 1.0 0.0; } - } - } - rect { "clipper_content"; - nomouse; - clip: "clipper"; - desc { "default"; - rel.to_y: "elm.swallow.content"; - } - } - rect { "bg_toolbar"; - scale; - clip: "clipper_toolbar"; - desc { "default"; - rel.to: "toolbar"; - color: NAVIFRAME_TOOLBAR_COLOR_INC; - } - } - swallow { "toolbar"; - scale; - clip: "clipper_toolbar"; - desc { "default"; - min: 0 0; - max: -1 0; - fixed: 0 1; - align: 0.5 1.0; - rel1 { to: "base"; relative: 0.0 1.0; } - rel2 { to: "base"; relative: 1.0 1.0; } - hid; - } - desc { "visible"; - inherit: "default"; - min: 0 NAVIFRAME_TOOLBAR_HEIGHT_INC; - max: -1 NAVIFRAME_TOOLBAR_HEIGHT_INC; - vis; - } - } - rect { "clipper_toolbar"; - nomouse; - clip: "clipper"; - desc { "default"; - rel.to: "toolbar"; - } - } - spacer { "padding_left_prev_btn"; - scale; - desc { "default"; - min: NAVIFRAME_BACK_BUTTON_LR_PADDING_WIDTH_INC 0; - max: NAVIFRAME_BACK_BUTTON_LR_PADDING_WIDTH_INC -1; - align: 0.0 0.0; - fixed: 1 1; - rel1 { to: "bg_title"; relative: 0.0 0.0; } - rel2 { to: "bg_title"; relative: 0.0 1.0; } - } - } - swallow { "elm.swallow.prev_btn"; - clip: "clipper_title"; - scale; - desc { "default"; - min: BUTTON_NAVIFRAME_BACK_BUTTON_SIZE_INC; - max: BUTTON_NAVIFRAME_BACK_BUTTON_SIZE_INC; - align: 0.0 0.5; - fixed: 1 1; - rel1 { to: "padding_left_prev_btn"; relative: 1.0 0.0; } - rel2 { to: "padding_left_prev_btn"; relative: 1.0 1.0; } - vis; - } - desc { "hidden"; - inherit: "default"; - hid; - } - } - spacer { "padding_right_prev_btn"; - scale; - desc { "default"; - min: NAVIFRAME_BACK_BUTTON_TITLE_RIGHT_PADDING_WIDTH_INC 0; - max: NAVIFRAME_BACK_BUTTON_TITLE_RIGHT_PADDING_WIDTH_INC -1; - align: 1.0 0.0; - fixed: 1 1; - rel1 { to: "bg_title"; relative: 1.0 0.0; } - rel2 { to: "bg_title"; relative: 1.0 1.0; } - } - } - swallow { "toolbar_more_btn"; - clip: "clipper_title"; - desc { "default"; - min: 0 0; - max: 0 0; - align: 0.0 0.0; - fixed: 1 1; - rel.to: "base"; - hid; - } - } - } - programs { - program { "on_deferred_pushed_new"; - after: "finished_show"; - } - program { "on_deferred_pushed_cur"; - after: "finished_pushed"; - } - program { "on_deferred_popped_prev"; - after: "finished_show"; - } - program { "on_deferred_popped_cur"; - after: "finished_popped"; - } - program { "on_pushed_new"; - } - program { "on_popped_prev"; - } - program { "on_visible"; - } - program { "on_invisible"; - } - program { "clicked_title"; - signal: "mouse,clicked,1"; - source: "event"; - action: SIGNAL_EMIT "elm,action,title,clicked" ""; - } - program { "show_title"; - signal: "elm,state,title,show"; - source: "elm"; - script { - set_state(PART:"bg_title", "default", 0.0); - set_state(PART:"clipper_title", "default", 0.0); - if (get_int(is_title_left_btn_visible)) { - set_state(PART:"padding_left_title", "hidden", 0.0); - set_state(PART:"bg_title_left_btn", "visible", 0.0); - set_state(PART:"title_left_btn", "visible", 0.0); - set_state(PART:"bg_title_right_btn", "visible", 0.0); - set_state(PART:"padding_right_title", "hidden", 0.0); - } - else if (get_int(is_prev_btn_visible)) { - set_state(PART:"elm.swallow.prev_btn", "default", 0.0); - set_state(PART:"padding_left_title_text", "visible_prev_btn", 0.0); - set_state(PART:"padding_right_title_text", "visible_prev_btn", 0.0); - } - if (get_int(is_title_right_btn_visible)) { - set_state(PART:"padding_right_title", "hidden", 0.0); - set_state(PART:"bg_title_right_btn", "visible", 0.0); - set_state(PART:"title_right_btn", "visible", 0.0); - set_state(PART:"bg_title_left_btn", "visible", 0.0); - set_state(PART:"padding_left_title", "hidden", 0.0); - if (get_int(is_prev_btn_visible) == 1) { - set_state(PART:"padding_left_title_text", "default", 0.0); - set_state(PART:"padding_right_title_text", "default", 0.0); - } - } - } - } - program { "show_title_anim"; - signal: "elm,action,title,show"; - source: "elm"; - after: "show_title"; - } - program { "hide_title"; - signal: "elm,state,title,hide"; - source: "elm"; - script { - set_state(PART:"bg_title", "hidden", 0.0); - set_state(PART:"clipper_title", "hidden", 0.0); - set_state(PART:"padding_left_title", "default", 0.0); - set_state(PART:"bg_title_left_btn", "default", 0.0); - set_state(PART:"title_left_btn", "default", 0.0); - set_state(PART:"bg_title_right_btn", "default", 0.0); - set_state(PART:"padding_right_title", "default", 0.0); - set_state(PART:"title_right_btn", "default", 0.0); - set_state(PART:"elm.swallow.prev_btn", "hidden", 0.0); - if (get_int(is_prev_btn_visible) == 1) { - set_state(PART:"padding_left_title_text", "visible_prev_btn", 0.0); - set_state(PART:"padding_right_title_text", "visible_prev_btn", 0.0); - } - } - } - program { "hide_title_anim"; - signal: "elm,action,title,hide"; - source: "elm"; - after: "hide_title"; - } - program { "show_subtitle"; - signal: "elm,state,subtitle,show"; - source: "elm"; - script { - set_state(PART:"elm.text.title", "visible_subtitle", 0.0); - } - } - program { "hide_subtitle"; - signal: "elm,state,subtitle,hide"; - source: "elm"; - script { - set_state(PART:"elm.text.title", "default", 0.0); - } - } - program { "show_prev_btn"; - signal: "elm,state,prev_btn,show"; - source: "elm"; - script { - set_int(is_prev_btn_visible, 1); - if (get_int(is_title_left_btn_visible) == 0) { - set_state(PART:"elm.swallow.prev_btn", "default", 0.0); - set_state(PART:"padding_left_title_text", "visible_prev_btn", 0.0); - set_state(PART:"padding_right_title_text", "visible_prev_btn", 0.0); - } - } - } - program { "hide_prev_btn"; - signal: "elm,state,prev_btn,hide"; - source: "elm"; - script { - set_state(PART:"elm.swallow.prev_btn", "hidden", 0.0); - set_state(PART:"padding_left_title_text", "default", 0.0); - set_state(PART:"padding_right_title_text", "default", 0.0); - set_int(is_prev_btn_visible, 0); - } - } - program { "show_title_left_btn"; - signal: "elm,state,title_left_btn,show"; - source: "elm"; - script { - set_state(PART:"padding_left_title", "hidden", 0.0); - set_state(PART:"bg_title_left_btn", "visible", 0.0); - set_state(PART:"title_left_btn", "visible", 0.0); - set_state(PART:"bg_title_right_btn", "visible", 0.0); - set_state(PART:"padding_right_title", "hidden", 0.0); - set_state(PART:"elm.swallow.prev_btn", "hidden", 0.0); - set_state(PART:"padding_left_title_text", "default", 0.0); - set_state(PART:"padding_right_title_text", "default", 0.0); - set_int(is_title_left_btn_visible, 1); - } - } - program { "hide_title_left_btn"; - signal: "elm,state,title_left_btn,hide"; - source: "elm"; - script { - set_state(PART:"title_left_btn", "default", 0.0); - if (get_int(is_title_right_btn_visible) == 0) { - set_state(PART:"padding_left_title", "default", 0.0); - set_state(PART:"bg_title_left_btn", "default", 0.0); - set_state(PART:"padding_right_title", "default", 0.0); - set_state(PART:"bg_title_right_btn", "default", 0.0); - - if (get_int(is_prev_btn_visible) == 1) { - set_state(PART:"elm.swallow.prev_btn", "default", 0.0); - set_state(PART:"padding_left_title_text", "visible_prev_btn", 0.0); - set_state(PART:"padding_right_title_text", "visible_prev_btn", 0.0); - } - } - set_int(is_title_left_btn_visible, 0); - } - } - program { "show_title_right_btn"; - signal: "elm,state,title_right_btn,show"; - source: "elm"; - script { - set_state(PART:"padding_right_title", "hidden", 0.0); - set_state(PART:"bg_title_right_btn", "visible", 0.0); - set_state(PART:"title_right_btn", "visible", 0.0); - set_state(PART:"bg_title_left_btn", "visible", 0.0); - set_state(PART:"padding_left_title", "hidden", 0.0); - if (get_int(is_prev_btn_visible) == 1) { - set_state(PART:"padding_left_title_text", "default", 0.0); - set_state(PART:"padding_right_title_text", "default", 0.0); - } - set_int(is_title_right_btn_visible, 1); - } - } - program { "hide_title_right_btn"; - signal: "elm,state,title_right_btn,hide"; - source: "elm"; - script { - set_state(PART:"title_right_btn", "default", 0.0); - if (get_int(is_title_left_btn_visible) == 0) { - set_state(PART:"padding_right_title", "default", 0.0); - set_state(PART:"bg_title_right_btn", "default", 0.0); - set_state(PART:"padding_left_title", "default", 0.0); - set_state(PART:"bg_title_left_btn", "default", 0.0); - - if (get_int(is_prev_btn_visible) == 1) { - set_state(PART:"elm.swallow.prev_btn", "default", 0.0); - set_state(PART:"padding_left_title_text", "visible_prev_btn", 0.0); - set_state(PART:"padding_right_title_text", "visible_prev_btn", 0.0); - } - } - set_int(is_title_right_btn_visible, 0); - } - } - program { "show_title_badge"; - signal: "elm,state,title_badge,show"; - source: "elm"; - script { - new buf[128]; - - set_state(PART:"padding_left_badge_text", "visible", 0.0); - set_state(PART:"padding_right_badge_text", "visible", 0.0); - set_state(PART:"icon_badge", "visible", 0.0); - set_state(PART:"padding_left_icon_badge", "visible", 0.0); - - get_text(PART:"title_badge", buf, 128); - set_text(PART:"title_badge2", buf); - set_state(PART:"padding_title_badge2", "visible", 0.0); - set_state(PART:"padding_left_title_text", "visible_title_badge", 0.0); - set_state(PART:"padding_right_title_text", "visible_title_badge", 0.0); - } - } - program { "hide_title_badge"; - signal: "elm,state,title_badge,hide"; - source: "elm"; - script { - set_state(PART:"padding_left_badge_text", "default", 0.0); - set_state(PART:"padding_right_badge_text", "default", 0.0); - set_state(PART:"icon_badge", "default", 0.0); - set_state(PART:"padding_left_icon_badge", "default", 0.0); - - set_text(PART:"title_badge2", ""); - set_state(PART:"padding_title_badge2", "default", 0.0); - set_state(PART:"padding_left_title_text", "default", 0.0); - set_state(PART:"padding_right_title_text", "default", 0.0); - } - } - program { "show_toolbar"; - signal: "elm,state,toolbar,show"; - source: "elm"; - script { - set_state(PART:"toolbar", "visible", 0.0); - } - } - program { "hide_toolbar"; - signal: "elm,state,toolbar,hide"; - source: "elm"; - script { - set_state(PART:"toolbar", "default", 0.0); - } - } - program { "landscape"; - script { - if (!get_int(is_landscape)) { - set_int(is_landscape, 1); - } - set_state(PART:"bg_image", "landscape", 0.0); - } - } - program { "portrait"; - script { - if (get_int(is_landscape)) { - set_int(is_landscape, 0); - } - set_state(PART:"bg_image", "default", 0.0); - } - } - program { "on_orient_90"; - after: "landscape"; - } - program { "on_orient_270"; - after: "landscape"; - } - program { "on_orient_0"; - after: "portrait"; - } - program { "on_orient_180"; - after: "portrait"; - } - } -} - - diff --git a/ElmSharp/theme/tv/widgets/popup.edc b/ElmSharp/theme/tv/widgets/popup.edc deleted file mode 100644 index edf5c10..0000000 --- a/ElmSharp/theme/tv/widgets/popup.edc +++ /dev/null @@ -1,563 +0,0 @@ -/* - * Copyright (c) 2010 Samsung Electronics Co., Ltd All Rights Reserved - * - * BSD 2-Clause License (http://www.opensource.org/licenses/bsd-license.php) - * - * Redistribution and use in source and binary forms, with or without - * modification, are permitted provided that the following conditions are met: - * - * 1. Redistributions of source code must retain the above copyright notice, this - * list of conditions and the following disclaimer. - * 2. Redistributions in binary form must reproduce the above copyright notice, - * this list of conditions and the following disclaimer in the documentation - * and/or other materials provided with the distribution. - * - * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND - * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED - * WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE - * DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR - * ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES - * (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; - * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND - * ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT - * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS - * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. - */ - -// MACRO -#define POPUP_BASE_DEFAULT_TEXT_FONT_SIZE_INC 30 -#define POPUP_DESCRIPTION_DEFAULT_TEXT_FONT_SIZE_INC 28 - -#define POPUP_BASE_DEFAULT_BASE_DEFAULT_MIN_INC 688 378 -#define POPUP_BASE_DEFAULT_BASE_DEFAULT_MAX_INC 688 378 -#define POPUP_BASE_DEFAULT_BASE_LANDSCAPE_MIN_INC 720 0 -#define POPUP_BASE_DEFAULT_BASE_LANDSCAPE_MAX_INC 720 648 -#define POPUP_BASE_DEFAULT_TITLE_DEFAULT_MIN_INC 670 84 -#define POPUP_BASE_DEFAULT_BUTTON_BG_DEFAULT_MIN_INC 688 146 - -#define POPUP_BUTTON_DEFAULT_ACTION_AREA_HEIGHT "146" - -#define POPUP_BUTTON_MIN_SIZE 196 70 -#define POPUP_BUTTON_PADDING_SIZE 20 70 - - -// notify -group { name: "elm/notify/center/popup/default"; - alias: "elm/notify/bottom/popup/default"; - alias: "elm/notify/top/popup/default"; - alias: "elm/notify/left/popup/default"; - alias: "elm/notify/right/popup/default"; - alias: "elm/notify/top_left/popup/default"; - alias: "elm/notify/top_right/popup/default"; - alias: "elm/notify/bottom_left/popup/default"; - alias: "elm/notify/bottom_right/popup/default"; - - data.item: "hide_finished_signal" "on"; - parts { - part { name: "base"; - type: SPACER; - scale: 1; - description { state: "default" 0.0; - min: POPUP_BASE_DEFAULT_BASE_DEFAULT_MIN_INC; - max: POPUP_BASE_DEFAULT_BASE_DEFAULT_MAX_INC; - } - description { state: "landscape" 0.0; - min: POPUP_BASE_DEFAULT_BASE_LANDSCAPE_MIN_INC; - max: POPUP_BASE_DEFAULT_BASE_LANDSCAPE_MAX_INC; - } - } - part { name: "elm.swallow.content"; - type: SWALLOW; - scale: 1; - description { state: "default" 0.0; - rel1.to: "base"; - rel2.to: "base"; - } - } - } - programs { - /* Program for show animation */ - program { "show_animation"; - signal: "elm,state,show,animation"; - source: "elm"; - action: SIGNAL_EMIT "elm,action,show,finished" ""; - } - /* Program for show animation */ - program { "show"; - signal: "show"; - source: ""; - action: SIGNAL_EMIT "elm,action,show,finished" ""; - } - /* Program for hide animation */ - program { "hide"; - signal: "elm,state,hide"; - source: "elm"; - action: SIGNAL_EMIT "elm,action,hide,finished" "elm"; - } - } -} - -// popup -group { name: "elm/popup/base/default"; - images { - image: "modal_dialogs_bg.png" COMP; - image: "round_rectangle_8X8_top.png" COMP; - } - data { - item: "focus_highlight" "on"; - item: "default_orient" "2"; //top, center:1 bottom:2 - } - styles { - style { name: "popup_title_style"; - base: "font=Tizen:style=Regular align=center font_size="POPUP_BASE_DEFAULT_TEXT_FONT_SIZE_INC" color=#FFF wrap=mixed ellipsis=1.0 color_class=popup/default/text_maintitle"; - tag: "br" "\n"; - tag: "tab" "\t"; - } - } - parts { - part { name: "base"; - scale: 1; - type: SPACER; - description { state: "default" 0.0; - min: POPUP_BASE_DEFAULT_BASE_DEFAULT_MIN_INC; - max: POPUP_BASE_DEFAULT_BASE_DEFAULT_MAX_INC; - } - description { state: "landscape" 0.0; - inherit: "default" 0.0; - min: POPUP_BASE_DEFAULT_BASE_LANDSCAPE_MIN_INC; - max: POPUP_BASE_DEFAULT_BASE_LANDSCAPE_MAX_INC; - } - } - part { name: "bg"; - scale: 1; - type: IMAGE; - description { - rel1.to: "base"; - rel2.to: "base"; - image { - normal: "modal_dialogs_bg.png"; - border: 18 18 15 21; - } - color_class: "popup/default/bg_content"; - } - } - part { name: "access.outline"; - type: RECT; - repeat_events: 1; - description { state: "default" 0.0; - fixed: 1 1; - rel1.to: "base"; - rel2.to: "base"; - color: 0 0 0 0; - } - } - part { name: "elm.bg.title"; - type: IMAGE; - scale: 1; - description { state: "default" 0.0; - fixed: 1 1; - align: 0.5 0.0; - min: 0 84; - rel1 { - relative: 0.0 0.0; - to: "base"; - offset: 9 6; - } - rel2 { - relative: 1.0 0.0; - to: "base"; - offset: -10 6; - } - image { - normal: "round_rectangle_8X8_top.png"; - border: 8 8 8 0; - } - visible: 0; - color_class: "popup/default/bg_title"; - } - description { state: "visible" 0.0; - inherit: "default" 0.0; - visible: 1; - } - } - part { name: "elm.text.title"; - type: TEXTBLOCK; - scale:1; - description { state: "default" 0.0; - fixed: 1 1; - text { - style: "popup_title_style"; - size: POPUP_BASE_DEFAULT_TEXT_FONT_SIZE_INC; - } - rel1.to: "elm.bg.title"; - rel2.to: "elm.bg.title"; - } - } - part { name: "access.title"; - type: RECT; - repeat_events: 1; - description { state: "default" 0.0; - rel1.to: "elm.bg.title"; - rel2.to: "elm.bg.title"; - color: 0 0 0 0; - } - } - part { name: "elm.swallow.content"; - type: SWALLOW; - scale: 1; - description { state: "default" 0.0; - fixed: 1 1; - rel1.to: "base"; - rel2.to: "base"; - } - description { state: "show_title_area" 0.0; - inherit: "default" 0.0; - rel1 { - relative: 0.0 1.0; - to_x: "base"; - to_y: "elm.bg.title"; - } - rel2.to: "base"; - } - description { state: "show_action_area" 0.0; - inherit: "default" 0.0; - rel1.to: "base"; - rel2 { - relative: 1.0 0.0; - to_x: "base"; - to_y: "elm.swallow.action_area.bg"; - } - } - description { state: "show_action_title_area" 0.0; - inherit: "default" 0.0; - rel1 { - relative: 0.0 1.0; - to_x: "base"; - to_y: "elm.bg.title"; - } - rel2 { - relative: 1.0 0.0; - to_x: "base"; - to_y: "elm.swallow.action_area.bg"; - } - } - } - part { name: "access.body"; - type: RECT; - repeat_events: 1; - description { state: "default" 0.0; - rel1.to: "elm.swallow.content"; - rel2.to: "elm.swallow.content"; - color: 0 0 0 0; - } - } - part { name: "elm.swallow.action_area.bg"; - type: RECT; - scale : 1; - description { state: "default" 0.0; - fixed : 1 1; - align: 0.5 1.0; - visible: 0; - rel1 { - relative: 0.0 1.0; - to: "base"; - } - rel2.to: "base"; - } - description { state: "visible" 0.0; - inherit: "default" 0.0; - min: POPUP_BASE_DEFAULT_BUTTON_BG_DEFAULT_MIN_INC; - } - } - part { name: "elm.swallow.action_area"; - type: SWALLOW; - scale : 1; - description { state: "default" 0.0; - rel1.to: "elm.swallow.action_area.bg"; - rel2.to: "elm.swallow.action_area.bg"; - } - } - } - programs { - program { name: show_title_area; - signal: "elm,state,title_area,visible"; - source: "elm"; - script { - new st[31]; - new Float:vl; - get_state(PART:"elm.swallow.action_area.bg", st, 30, vl); - if (!strcmp(st, "visible")) - set_state(PART:"elm.swallow.content", "show_action_title_area", 0.0); - else - set_state(PART:"elm.swallow.content", "show_title_area", 0.0); - set_state(PART:"elm.bg.title", "visible", 0.0); - } - } - program { name: hide_title_area; - signal: "elm,state,title_area,hidden"; - source: "elm"; - action: STATE_SET "default" 0.0; - script { - new st[31]; - new Float:vl; - get_state(PART:"elm.swallow.action_area.bg", st, 30, vl); - if ((!strcmp(st, "visible")) || (!strcmp(st, "landscape_visible"))) - set_state(PART:"elm.swallow.content", "show_action_area", 0.0); - else - set_state(PART:"elm.swallow.content", "default", 0.0); - set_state(PART:"elm.bg.title", "default", 0.0); - } - } - program { name: show_action_area; - signal: "elm,state,action_area,visible"; - source: "elm"; - script { - new st[31]; - new Float:vl; - get_state(PART:"elm.bg.title", st, 30, vl); - if ((!strcmp(st, "visible"))) - set_state(PART:"elm.swallow.content", "show_action_title_area", 0.0); - else - set_state(PART:"elm.swallow.content", "show_action_area", 0.0); - set_state(PART:"elm.swallow.action_area.bg", "visible", 0.0); - } - } - program { name: hide_action_area; - signal: "elm,state,action_area,hidden"; - source: "elm"; - action: STATE_SET "default" 0.0; - script { - new st[31]; - new Float:vl; - get_state(PART:"elm.bg.title", st, 30, vl); - if ((!strcmp(st, "visible"))) - set_state(PART:"elm.swallow.content", "show_title_area", 0.0); - else - set_state(PART:"elm.swallow.content", "default", 0.0); - set_state(PART:"elm.swallow.action_area.bg", "default", 0.0); - } - } - program { name: "change_to_landscape"; - action: STATE_SET "landscape" 0.0; - target: "base"; - after: "orientation_change"; - } - program { name: "orientation_change"; - action: SIGNAL_EMIT "elm,state,orientation,changed" ""; - } - program { name: "change_to_portrait"; - action: STATE_SET "default" 0.0; - target: "base"; - after: "orientation_change"; - } - program { name: "landscape_mode"; - source: "elm"; - signal: "elm,state,orient,90"; - after: "change_to_landscape"; - } - program { name: "landscape_mode2"; - source: "elm"; - signal: "elm,state,orient,270"; - after: "change_to_landscape"; - } - program { name: "portrait_mode"; - source: "elm"; - signal: "elm,state,orient,0"; - after: "change_to_portrait"; - } - program { name: "portrait_mode2"; - source: "elm"; - signal: "elm,state,orient,180"; - after: "change_to_portrait"; - } - } -} - -// content -group { name: "elm/popup/content/default"; - parts{ - part { name:"elm.swallow.content"; - type: SWALLOW; - scale: 1; - description { state: "default" 0.0; - } - } - } -} - -// label -group { name: "elm/label/base/popup/default"; - styles { - style { name: "textblock_style"; - base: "font=Tizen:style=Regular font_size="POPUP_DESCRIPTION_DEFAULT_TEXT_FONT_SIZE_INC" align=center color=#FFF wrap=mixed color_class=popup/default/text_content"; - tag: "br" "\n"; - tag: "ps" "ps"; - tag: "hilight" "+ font_weight=Bold"; - tag: "b" "+ font_weight=Bold"; - tag: "tab" "\t"; - } - } - parts { - part { name: "elm.text"; - type: TEXTBLOCK; - scale: 1; - description { state: "default" 0.0; - text { - style: "textblock_style"; - min: 0 1; - } - } - } - } -} - -// button -group { name: "elm/popup/buttons1/popup/default"; - data.item: "action_area_height" POPUP_BUTTON_DEFAULT_ACTION_AREA_HEIGHT; - parts{ - part{ name:"elm.swallow.content.button1"; - type: SWALLOW; - scale: 1; - description { state: "default" 0.0; - fixed: 1 1; - rel1.relative: 0.5 0.5; - rel2.relative: 0.5 0.5; - min: POPUP_BUTTON_MIN_SIZE; - } - } - } -} - -group { name: "elm/popup/buttons2/popup/default"; - data.item: "action_area_height" POPUP_BUTTON_DEFAULT_ACTION_AREA_HEIGHT; - parts{ - part { name:"elm.swallow.content.button1"; - type: SWALLOW; - scale: 1; - description { state: "default" 0.0; - fixed: 0 1; - rel1 { - relative: 0.0 0.5; - to: "pad"; - } - rel2 { - relative: 0.0 0.5; - to: "pad"; - } - align: 1.0 0.5; - min: POPUP_BUTTON_MIN_SIZE; - } - } - part { name: "pad"; - type: SPACER; - scale: 1; - description { state: "default" 0.0; - fixed: 1 1; - rel1.relative: 0.5 0.5; - rel2.relative: 0.5 0.5; - min: POPUP_BUTTON_PADDING_SIZE; - } - } - part{ name:"elm.swallow.content.button2"; - type: SWALLOW; - scale: 1; - description { state: "default" 0.0; - fixed: 0 1; - rel1 { - relative: 1.0 0.5; - to: "pad"; - } - rel2 { - relative: 1.0 0.5; - to: "pad"; - } - align: 0.0 0.5; - min: POPUP_BUTTON_MIN_SIZE; - } - } - } -} - -group { name: "elm/popup/buttons3/popup/default"; - data.item: "action_area_height" POPUP_BUTTON_DEFAULT_ACTION_AREA_HEIGHT; - parts{ - part { name:"elm.swallow.content.button1"; - type: SWALLOW; - scale: 1; - description { state: "default" 0.0; - fixed: 1 1; - rel1 { - relative: 0.0 0.5; - to: "pad.left"; - } - rel2 { - relative: 0.0 0.5; - to: "pad.left"; - } - align: 1.0 0.5; - min: POPUP_BUTTON_MIN_SIZE; - } - } - part { name: "pad.left"; - type: SPACER; - scale: 1; - description { state: "default" 0.0; - fixed: 1 1; - rel1 { - relative: 0.0 0.5; - to: "elm.swallow.content.button2"; - } - rel2 { - relative: 0.0 0.5; - to: "elm.swallow.content.button2"; - } - align: 1.0 0.5; - min: POPUP_BUTTON_PADDING_SIZE; - } - } - part{ name:"elm.swallow.content.button2"; - type: SWALLOW; - scale: 1; - description { state: "default" 0.0; - fixed: 1 1; - rel1.relative: 0.5 0.5; - rel2.relative: 0.5 0.5; - min: POPUP_BUTTON_MIN_SIZE; - } - } - part { name: "pad.right"; - type: SPACER; - scale: 1; - description { state: "default" 0.0; - fixed: 1 1; - rel1 { - relative: 1.0 0.5; - to: "elm.swallow.content.button2"; - } - rel2 { - relative: 1.0 0.5; - to: "elm.swallow.content.button2"; - } - align: 0.0 0.5; - min: POPUP_BUTTON_PADDING_SIZE; - } - } - part{ name:"elm.swallow.content.button3"; - type: SWALLOW; - scale: 1; - description { state: "default" 0.0; - fixed: 1 1; - rel1 { - relative: 1.0 0.5; - to: "pad.right"; - } - rel2 { - relative: 1.0 0.5; - to: "pad.right"; - } - align: 0.0 0.5; - min: POPUP_BUTTON_MIN_SIZE; - } - } - } -} diff --git a/ElmSharp/theme/tv/widgets/progressbar.edc b/ElmSharp/theme/tv/widgets/progressbar.edc deleted file mode 100644 index bf9bf67..0000000 --- a/ElmSharp/theme/tv/widgets/progressbar.edc +++ /dev/null @@ -1,903 +0,0 @@ -/* - * Copyright (c) 2010 Samsung Electronics Co., Ltd All Rights Reserved - * - * BSD 2-Clause License (http://www.opensource.org/licenses/bsd-license.php) - * - * Redistribution and use in source and binary forms, with or without - * modification, are permitted provided that the following conditions are met: - * - * 1. Redistributions of source code must retain the above copyright notice, this - * list of conditions and the following disclaimer. - * 2. Redistributions in binary form must reproduce the above copyright notice, - * this list of conditions and the following disclaimer in the documentation - * and/or other materials provided with the distribution. - * - * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND - * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED - * WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE - * DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR - * ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES - * (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; - * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND - * ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT - * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS - * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. - */ - -#define ADD_PULSE_PARTS PULSE_PART(1,0) PULSE_PART(2,1) \ -PULSE_PART(3,2) PULSE_PART(4,3) PULSE_PART(5,4) PULSE_PART(6,5) PULSE_PART(7,6) PULSE_PART(8,7) PULSE_PART(9,8) PULSE_PART(10,9) \ -PULSE_PART(11,10) PULSE_PART(12,11) PULSE_PART(13,12) PULSE_PART(14,13) PULSE_PART(15,14) PULSE_PART(16,15) PULSE_PART(17,16) PULSE_PART(18,17) \ -PULSE_PART(19,18) PULSE_PART(20,19) PULSE_PART(21,20) PULSE_PART(22,21) PULSE_PART(23,22) PULSE_PART(24,23) PULSE_PART(25,24) PULSE_PART(26,25) \ -PULSE_PART(27,26) PULSE_PART(28,27) PULSE_PART(29,28) PULSE_PART(30,29) PULSE_PART(31,30) PULSE_PART(32,31) PULSE_PART(33,32) PULSE_PART(34,33) \ -PULSE_PART(35,34) PULSE_PART(36,35) PULSE_PART(37,36) PULSE_PART(38,37) PULSE_PART(39,38) PULSE_PART(40,39) PULSE_PART(41,40) PULSE_PART(42,41) \ -PULSE_PART(43,42) PULSE_PART(44,43) PULSE_PART(45,44) PULSE_PART(46,45) PULSE_PART(47,46) PULSE_PART(48,47) PULSE_PART(49,48) PULSE_PART(50,49) \ -PULSE_PART(51,50) PULSE_PART(52,51) PULSE_PART(53,52) PULSE_PART(54,53) PULSE_PART(55,54) PULSE_PART(56,55) PULSE_PART(57,56) PULSE_PART(58,57) \ -PULSE_PART(59,58) PULSE_PART(60,59) PULSE_PART(61,60) PULSE_PART(62,61) PULSE_PART(63,62) PULSE_PART(64,63) PULSE_PART(65,64) PULSE_PART(66,65) \ -PULSE_PART(67,66) PULSE_PART(68,67) PULSE_PART(69,68) PULSE_PART(70,69) PULSE_PART(71,70) PULSE_PART(72,71) PULSE_PART(73,72) PULSE_PART(74,73) \ -PULSE_PART(75,74) PULSE_PART(76,75) PULSE_PART(77,76) PULSE_PART(78,77) PULSE_PART(79,78) PULSE_PART(80,79) PULSE_PART(81,80) PULSE_PART(82,81) \ -PULSE_PART(83,82) PULSE_PART(84,83) PULSE_PART(85,84) PULSE_PART(86,85) PULSE_PART(87,86) PULSE_PART(88,87) PULSE_PART(89,88) PULSE_PART(90,89) \ -PULSE_PART(91,90) PULSE_PART(92,91) PULSE_PART(93,92) PULSE_PART(94,93) PULSE_PART(95,94) PULSE_PART(96,95) PULSE_PART(97,96) PULSE_PART(98,97) \ -PULSE_PART(99,98) PULSE_PART(100,99) - -#define PULSE_PART(i,j) \ -part { name: "pulse_area_"i"_blank"; type: RECT; mouse_events: 0; \ - clip_to: "pulse_clipper"; \ - description { state: "default" 0.0; \ - min: 10 4; \ - max: 10 4; \ - fixed: 1 1; \ - rel1 { \ - to_x: "pulse_area_"j"_filled"; \ - to_y: "pulse_area_"j"_filled"; \ - relative: 1.0 0.0; \ - } \ - rel2 { \ - to_x: "pulse_area_"j"_filled"; \ - to_y: "pulse_area_"j"_filled"; \ - relative: 1.0 1.0; \ - } \ - align: 0.0 0.5; \ - color: 255 255 255 26; \ - } \ -} \ -part { name: "pulse_area_"i"_filled"; type: RECT; mouse_events: 0; \ - clip_to: "pulse_clipper"; \ - description { state: "default" 0.0; \ - min: 10 4; \ - max: 10 4; \ - fixed: 1 1; \ - rel1 { \ - to_x: "pulse_area_"i"_blank"; \ - to_y: "pulse_area_"i"_blank"; \ - relative: 1.0 0.0; \ - } \ - rel2 { \ - to_x: "pulse_area_"i"_blank"; \ - to_y: "pulse_area_"i"_blank"; \ - relative: 1.0 1.0; \ - } \ - align: 0.0 0.5; \ - color: 255 255 255 178; \ - } \ -} \ - - -/***************************************************************************** -Document: Tizen TV_General Guide_GUI Guideline_v1.0_140508_1.ppt, Page no. 95, -Progessbar filling style, single progress filling, -Gray color filling over a trasparent bg -******************************************************************************/ -group { name: "elm/progressbar/horizontal/default"; - parts { - part { name: "elm.background.progressbar"; type: RECT; mouse_events: 0; - description { state: "default" 0.0; - min: 4 4; - max: 9999 4; - } - } - part { name: "elm.swallow.bar"; mouse_events: 0; type: SWALLOW; - description { - min: 4 4; - max: 9999 4; - fixed: 1 1;state: "default" 0.0; - rel1 { - to_x: "elm.text"; - to_y: "elm.background.progressbar"; - } - rel2.to: "elm.background.progressbar"; - } - } - part { name: "elm.swallow.content"; type: SWALLOW; - description { state: "default" 0.0; - visible: 0; - align: 0.0 0.5; - rel1.to_y: "elm.background.progressbar"; - rel2 { - relative: 0.0 1.0; - to_y: "elm.background.progressbar"; - } - } - description { state: "visible" 0.0; - inherit: "default" 0.0; - visible: 1; - aspect: 1.0 1.0; - aspect_preference: VERTICAL; - } - } - part { name: "elm.text"; type: TEXT; mouse_events: 0; - scale: 1; - description { state: "default" 0.0; - visible: 0; - fixed: 1 1; - align: 0.0 0.5; - rel1.to_x: "elm.swallow.content"; - rel1.relative: 1.0 0.0; - rel2.to_x: "elm.swallow.content"; - color: 0 0 0 0; - text { - font: "Sans,Edje-Vera"; - size: 10; - min: 0 0; - align: 0.0 0.5; - } - } - description { state: "visible" 0.0; - inherit: "default" 0.0; - visible: 1; - text.min: 1 1; - text.ellipsis: -1; - } - } - part { name: "background"; type: RECT; mouse_events: 0; - clip_to: "elm.background.progressbar"; - description { state: "default" 0.0; - rel1.to: "elm.swallow.bar"; - rel2.to: "elm.swallow.bar"; - color_class: "progressbar/default/bg"; - } - } - part { name: "elm.text.status"; type: TEXT; mouse_events: 0; - description { state: "default" 0.0; - fixed: 1 1; - visible: 1; - rel1 { - to: "background"; - relative: 0.5 0.5; - } - rel2 { - to: "background"; - relative: 0.5 0.5; - } - text { - font: "Sans:style=Bold,Edje-Vera-Bold"; - size: 10; - min: 1 1; - ellipsis: -1; - align: 0.5 0.0; - } - color: 0 0 0 0; - } - description { state: "hidden" 0.0; - inherit: "default" 0.0; - visible: 0; - text.min: 0 0; - } - } - part { name: "elm.progress.progressbar"; type: RECT; mouse_events: 0; - clip_to: "elm.background.progressbar"; - description { state: "default" 0.0; - min: 10 4; - max: 9999 4; - fixed: 1 1; - rel1.to: "elm.swallow.bar"; - rel2 { - to_y: "elm.swallow.bar"; - to_x: "elm.cur.progressbar"; - } - color_class: "progressbar/default/bar"; - } - description { state: "invert" 0.0; - inherit: "default" 0.0; - rel1 { - to_y: "elm.swallow.bar"; - to_x: "elm.cur.progressbar"; - } - rel2.to: "elm.swallow.bar"; - } - description { state: "state_begin" 0.0; //OK - inherit: "default" 0.0; - min: 10 4; - max: 10 4; - rel1.to: "elm.swallow.bar"; - rel2 { - to: "elm.swallow.bar"; - relative: 0.0 1.0; - } - align: 0.0 0.5; - } - description { state: "state_end" 0.0; - inherit: "default" 0.0; - min: 10 4; - max: 10 4; - rel1 { - to: "pulse_area0"; - relative: 1.0 0.0; - } - rel2 { - to: "pulse_area0"; - relative: 1.0 1.0; - } - align: 0.0 0.5; - } - description { state: "state_end1" 0.0; //OK - inherit: "state_begin" 0.0; - } - description { state: "state_begin1" 0.0; //OK - inherit: "state_end" 0.0; - } - } - part { name: "pulse_clipper"; type: RECT; mouse_events: 0; - clip_to: "elm.background.progressbar"; - description { state: "default" 0.0; - fixed: 1 1; - rel1.to: "elm.background.progressbar"; - rel2.to: "elm.background.progressbar"; - visible: 0; - }//tt - description { state: "state_pulse" 0.0; //OK - inherit: "default" 0.0; - visible: 1; - } - description { state: "state_begin" 0.0; //OK - inherit: "default" 0.0; - visible: 1; - } - } - part { name: "pulse_area0"; type: SPACER; mouse_events: 0; - description { state: "default" 0.0; - min: 20 4; - max: 20 4; - fixed: 1 1; - rel1.to: "elm.swallow.bar"; - rel2 { - to_y: "elm.swallow.bar"; - to_x: "elm.cur.progressbar"; - relative: 0.0 1.0; - } - align: 0.0 0.5; - } - } - part { name: "pulse_area_0_blank"; type: RECT; mouse_events: 0; - clip_to: "pulse_clipper"; - description { state: "default" 0.0; - min: 10 4; - max: 10 4; - fixed: 1 1; - rel1 { - to_x: "elm.progress.progressbar"; - to_y: "elm.progress.progressbar"; - relative: 1.0 0.0; - } - rel2 { - to_x: "elm.progress.progressbar"; - to_y: "elm.progress.progressbar"; - relative: 1.0 1.0; - } - align: 0.0 0.5; - color: 255 255 255 26; - } - } - part { name: "pulse_area_0_filled"; type: RECT; mouse_events: 0; - clip_to: "pulse_clipper"; - description { state: "default" 0.0; - min: 10 4; - max: 10 4; - fixed: 1 1; - rel1 { - to_x: "pulse_area_0_blank"; - to_y: "pulse_area_0_blank"; - relative: 1.0 0.0; - } - rel2 { - to_x: "pulse_area_0_blank"; - to_y: "pulse_area_0_blank"; - relative: 1.0 1.0; - } - align: 0.0 0.5; - color: 255 255 255 178; - } - } - ADD_PULSE_PARTS - part { name: "text-bar"; type: TEXT; mouse_events: 0; - clip_to: "progress-rect"; - effect: SOFT_SHADOW; - scale: 1; - description { state: "default" 0.0; - align: 0.0 0.0; - fixed: 1 1; - visible: 1; - rel1.to: "elm.text.status"; - rel2.to: "elm.text.status"; - text { - text_source: "elm.text.status"; - font: "Sans:style=Bold,Edje-Vera-Bold"; - size: 10; - min: 1 1; - ellipsis: -1; - align: 0.0 0.0; - } - color: 224 224 224 0; - color3: 0 0 0 64; - } - description { state: "hidden" 0.0; - inherit: "default" 0.0; - visible: 0; - text.min: 0 0; - } - } - part { name: "over1"; type: RECT; mouse_events: 0; - description { state: "default" 0.0; - rel1.to: "elm.progress.progressbar"; - rel2.to: "elm.progress.progressbar"; - rel2.relative: 1.0 0.5; - color: 0 0 0 0; - } - } - part { name: "over2"; type: RECT; mouse_events: 1; - repeat_events: 1; - description { state: "default" 0.0; - rel1.to: "elm.progress.progressbar"; - rel2.to: "elm.progress.progressbar"; - color: 0 0 0 0; - } - } - part { name: "elm.cur.progressbar"; mouse_events: 0; - dragable { - confine: "background"; - x: 1 1 1; - y: 0 0 0; - } - description { state: "default" 0.0; - min: 4 4; - max: 9999 4; - fixed: 1 1; - visible: 0; - rel1.to: "background"; - rel2.to: "background"; - } - } - part { name: "progress-rect"; type: RECT; mouse_events: 0; - description { state: "default" 0.0; - rel1.to: "elm.progress.progressbar"; - rel2.to: "elm.progress.progressbar"; - } - } - } - programs { - program { name: "label_show"; - signal: "elm,state,text,visible"; - source: "elm"; - action: STATE_SET "visible" 0.0; - target: "elm.text"; - } - program { name: "label_hide"; - signal: "elm,state,text,hidden"; - source: "elm"; - action: STATE_SET "default" 0.0; - target: "elm.text"; - } - program { name: "icon_show"; - signal: "elm,state,icon,visible"; - source: "elm"; - action: STATE_SET "visible" 0.0; - target: "elm.swallow.content"; - } - program { name: "icon_hide"; - signal: "elm,state,icon,hidden"; - source: "elm"; - action: STATE_SET "default" 0.0; - target: "elm.swallow.content"; - } - program { name: "units_show"; - signal: "elm,state,units,visible"; - source: "elm"; - action: STATE_SET "default" 0.0; - target: "text-bar"; - target: "elm.text.status"; - } - program { name: "units_hide"; - signal: "elm,state,units,hidden"; - source: "elm"; - action: STATE_SET "hidden" 0.0; - target: "text-bar"; - target: "elm.text.status"; - } - program { name: "slide_to_end"; - action: STATE_SET "state_end" 0.0; - transition: LINEAR 0.5; - target: "elm.progress.progressbar"; - after: "slide_to_begin"; - } - program { name: "slide_to_begin"; - signal: "elm,state,slide,begin"; - action: STATE_SET "state_begin" 0.0; - target: "elm.progress.progressbar"; -// transition: LINEAR 0.5; - after: "slide_to_end"; - } - program { name: "start_pulse"; - signal: "elm,state,pulse,start"; - source: "elm"; - action: STATE_SET "state_pulse" 0.0; - target: "pulse_clipper"; - after: "slide_to_end"; - } - program { name: "stop_pulse"; - signal: "elm,state,pulse,stop"; - source: "elm"; - action: ACTION_STOP; - target: "slide_to_begin"; - target: "slide_to_end"; - target: "start_pulse"; - after: "state_pulse"; - } - program { name: "state_pulse"; - signal: "elm,state,pulse"; - source: "elm"; - action: STATE_SET "state_begin" 0.0; - target: "elm.progress.progressbar"; - target: "pulse_clipper"; - after: "units_hide"; - } - program { name: "state_fraction"; - signal: "elm,state,fraction"; - source: "elm"; - action: ACTION_STOP; - target: "slide_to_begin"; - target: "slide_to_end"; - target: "start_pulse"; - action: STATE_SET "default" 0.0; - target: "elm.progress.progressbar"; - } - program { name: "set_invert_on"; - signal: "elm,state,inverted,on"; - source: "elm"; - action: STATE_SET "invert" 0.0; - target: "elm.progress.progressbar"; - } - program { name: "set_invert_off"; - signal: "elm,state,inverted,off"; - source: "elm"; - action: STATE_SET "default" 0.0; - target: "elm.progress.progressbar"; - } - } -} - -/***************************************************************************** -Document: Tizen TV_General Guide_GUI Guideline_v1.0_140508_1.ppt, Page no. 95, -Vertical Progessbar filling style, single progress filling, -Gray color filling over a trasparent bg -******************************************************************************/ -group { name: "elm/progressbar/vertical/default"; - parts { - part { name: "elm.background.progressbar"; type: RECT; mouse_events: 0; - description { state: "default" 0.0; - } - } - part { name: "elm.swallow.bar"; type: SWALLOW; - scale: 1; - description { state: "default" 0.0; - min: 4 4; - max: 4 9999; - fixed: 1 1; - align: 0.5 1.0; - rel1 { - to_y: "elm.text"; - relative: 0.0 1.0; - } - rel2 { - to_y: "elm.text.box"; - relative: 1.0 0.0; - } - } - } - part { name: "elm.swallow.content"; type: SWALLOW; - description { state: "default" 0.0; - visible: 0; - align: 0.5 0.0; - rel1.to_x: "elm.swallow.bar"; - rel2 { - relative: 1.0 0.0; - to_x: "elm.swallow.bar"; - } - } - description { state: "visible" 0.0; - inherit: "default" 0.0; - visible: 1; - aspect: 1.0 1.0; - aspect_preference: HORIZONTAL; - } - } - part { name: "elm.text"; type: TEXT; mouse_events: 0; - scale: 1; - description { state: "default" 0.0; - visible: 0; - fixed: 1 1; - align: 0.5 0.0; - rel1.to_y: "elm.swallow.content"; - rel1.relative: 0.5 1.0; - rel2.to_y: "elm.swallow.content"; - rel2.relative: 0.5 1.0; - color: 0 0 0 0; - text { - font: "Sans,Edje-Vera"; - size: 10; - min: 0 0; - align: 0.5 0.0; - } - } - description { state: "visible" 0.0; - inherit: "default" 0.0; - visible: 1; - text.min: 1 1; - text.ellipsis: -1; - } - } - part { name: "background"; type: RECT; mouse_events: 0; - clip_to: "elm.background.progressbar"; - description { state: "default" 0.0; - rel1.to: "elm.swallow.bar"; - rel2.to: "elm.swallow.bar"; - color_class: "progressbar/default/bg"; - } - } - part { name: "elm.progress.progressbar"; type: RECT; mouse_events: 0; - clip_to: "elm.background.progressbar"; - description { state: "default" 0.0; - min: 4 4; - max: 4 9999; - fixed: 1 1; - rel1.to: "elm.swallow.bar"; - rel2 { - to_x: "elm.swallow.bar"; - to_y: "elm.cur.progressbar"; - } - color_class: "progressbar/default/bar"; - } - description { state: "invert" 0.0; - inherit: "default" 0.0; - rel1 { - to_x: "elm.swallow.bar"; - to_y: "elm.cur.progressbar"; - } - rel2.to: "elm.swallow.bar"; - } - description { state: "state_begin" 0.0; - inherit: "default" 0.0; - rel1.to: "elm.swallow.bar"; - rel2 { - to: "elm.swallow.bar"; - relative: 1.0 0.1; - } - } - description { state: "state_end" 0.0; - inherit: "default" 0.0; - rel1 { - to: "elm.swallow.bar"; - relative: 0.0 0.9; - } - rel2.to: "elm.swallow.bar"; - } - } - part { name: "over1"; type: RECT; mouse_events: 0; - description { state: "default" 0.0; - rel1.to: "elm.progress.progressbar"; - rel2.to: "elm.progress.progressbar"; - rel2.relative: 1.0 0.5; - color: 0 0 0 0; - } - } - part { name: "over2"; type: RECT; mouse_events: 1; - repeat_events: 1; - description { state: "default" 0.0; - rel1.to: "elm.progress.progressbar"; - rel2.to: "elm.progress.progressbar"; - color: 0 0 0 0; - } - } - part { name: "elm.cur.progressbar"; mouse_events: 0; - dragable { - confine: "background"; - x: 0 0 0; - y: 1 1 1; - } - description { state: "default" 0.0; - min: 4 4; - max: 9999 4; - fixed: 1 1; - visible: 0; - rel1.to: "background"; - rel2.to: "background"; - } - } - part { name: "elm.text.box"; mouse_events: 0; type: RECT; - description { state: "default" 0.0; - visible: 0; - rel1.to: "elm.text.status"; - rel2.to: "elm.text.status"; - color: 255 255 255 0; - } - description { state: "visible" 0.0; - inherit: "default" 0.0; - visible: 1; - } - } - part { name: "elm.text.status"; type: TEXT; mouse_events: 0; - scale: 1; - description { state: "default" 0.0; - visible: 0; - fixed: 1 1; - align: 0.5 1.0; - rel1.relative: 0.0 1.0; - color: 0 0 0 0; - text { - font: "Sans:style=Bold,Edje-Vera-Bold"; - size: 10; - min: 0 0; - align: 0.5 0.0; - } - } - description { state: "visible" 0.0; - inherit: "default" 0.0; - fixed: 1 1; - visible: 1; - text.min: 1 1; - text.ellipsis: -1; - } - } - } - programs { - program { name: "label_show"; - signal: "elm,state,text,visible"; - source: "elm"; - action: STATE_SET "visible" 0.0; - target: "elm.text"; - } - program { name: "label_hide"; - signal: "elm,state,text,hidden"; - source: "elm"; - action: STATE_SET "default" 0.0; - target: "elm.text"; - } - program { name: "icon_show"; - signal: "elm,state,icon,visible"; - source: "elm"; - action: STATE_SET "visible" 0.0; - target: "elm.swallow.content"; - } - program { name: "icon_hide"; - signal: "elm,state,icon,hidden"; - source: "elm"; - action: STATE_SET "default" 0.0; - target: "elm.swallow.content"; - } - program { name: "units_show"; - signal: "elm,state,units,visible"; - source: "elm"; - action: STATE_SET "visible" 0.0; - target: "elm.text.status"; - target: "elm.text.box"; - } - program { name: "units_hide"; - signal: "elm,state,units,hidden"; - source: "elm"; - action: STATE_SET "default" 0.0; - target: "elm.text.status"; - target: "elm.text.box"; - } - program { name: "slide_to_end"; - action: STATE_SET "state_end" 0.0; - transition: LINEAR 0.5; - target: "elm.progress.progressbar"; - after: "slide_to_begin"; - } - program { name: "slide_to_begin"; - action: STATE_SET "state_begin" 0.0; - target: "elm.progress.progressbar"; - transition: LINEAR 0.5; - after: "slide_to_end"; - } - program { name: "start_pulse"; - signal: "elm,state,pulse,start"; - source: "elm"; - action: STATE_SET "state_begin" 0.0; - target: "elm.progress.progressbar"; - after: "slide_to_end"; - } - program { name: "stop_pulse"; - signal: "elm,state,pulse,stop"; - source: "elm"; - action: ACTION_STOP; - target: "slide_to_begin"; - target: "slide_to_end"; - target: "start_pulse"; - after: "state_pulse"; - } - program { name: "state_pulse"; - signal: "elm,state,pulse"; - source: "elm"; - action: STATE_SET "state_begin" 0.0; - target: "elm.progress.progressbar"; - after: "units_hide"; - } - program { name: "state_fraction"; - signal: "elm,state,fraction"; - source: "elm"; - action: ACTION_STOP; - target: "slide_to_begin"; - target: "slide_to_end"; - target: "start_pulse"; - action: STATE_SET "default" 0.0; - target: "elm.progress.progressbar"; - } - program { name: "set_invert_on"; - signal: "elm,state,inverted,on"; - source: "elm"; - action: STATE_SET "invert" 0.0; - target: "elm.progress.progressbar"; - target: "elm.cur.progressbar"; - } - program { name: "set_invert_off"; - signal: "elm,state,inverted,off"; - source: "elm"; - action: STATE_SET "default" 0.0; - target: "elm.progress.progressbar"; - target: "elm.cur.progressbar"; - } - } -} - - group { "elm/progressbar/horizontal/process_large"; - data.item: "vector_ux" "process_large"; - parts { - rect { "access"; - type: RECT; - desc { "default"; - fixed: 1 1; - color: 0 0 0 0; - } - } - swallow { "elm.swallow.bar"; - desc { "default"; - hid; - } - } - rect { "bg"; - scale; - desc { "default"; - rel1.to: "clipper"; - rel2.to: "clipper"; - color: 0 0 0 0; - } - } - rect { "clipper"; - scale; - desc { "default"; - min: PROGRESSBAR_LARGE_SIZE_INC; - max: PROGRESSBAR_LARGE_SIZE_INC; - color_class: "progressbar/process_large/icon_bottom"; - } - } - swallow { "tizen_vg_shape1"; - scale; - clip: "clipper"; - desc { "default"; - rel1.to: "clipper"; - rel2.to: "clipper"; - } - } - swallow { "tizen_vg_shape2"; - scale; - clip: "tizen_vg_shape2_clipper"; - desc { "default"; - rel1.to: "clipper"; - rel2.to: "clipper"; - } - } - rect { "tizen_vg_shape2_clipper"; - scale; - desc { "default"; - color_class: "progressbar/process_large/icon_middle"; - } - } - swallow { "tizen_vg_shape3"; - scale; - clip: "tizen_vg_shape3_clipper"; - desc { "default"; - rel1.to: "clipper"; - rel2.to: "clipper"; - } - } - rect { "tizen_vg_shape3_clipper"; - scale; - desc { "default"; - color_class: "progressbar/process_large/icon_top"; - } - } - } - programs { - program { "start_pulse"; - signal: "elm,state,pulse,start"; - source: "elm"; - action: STATE_SET "default"; - target: "clipper"; - } - program { "stop_pulse"; - signal: "elm,state,pulse,stop"; - source: "elm"; - action: ACTION_STOP; - target: "start_pulse"; - after: "init_pulse"; - } - program { "init_pulse"; - action: STATE_SET "default"; - target: "clipper"; - } - } - } - - group { "elm/progressbar/horizontal/process_medium"; - inherit: "elm/progressbar/horizontal/process_large"; - data.item: "vector_ux" "process_medium"; - parts { - rect { "clipper"; - scale; - desc { "default"; - min: PROGRESSBAR_MEDIUM_SIZE_INC; - max: PROGRESSBAR_MEDIUM_SIZE_INC; - color_class: "progressbar/process_medium/icon_bottom"; - } - } - rect { "tizen_vg_shape2_clipper"; - scale; - desc { "default"; - color_class: "progressbar/process_medium/icon_middle"; - } - } - rect { "tizen_vg_shape3_clipper"; - scale; - desc { "default"; - color_class: "progressbar/process_medium/icon_top"; - } - } - } - } - - group { "elm/progressbar/horizontal/process_small"; - inherit: "elm/progressbar/horizontal/process_large"; - data.item: "vector_ux" "process_small"; - parts { - rect { "clipper"; - scale; - desc { "default"; - min: PROGRESSBAR_SMALL_SIZE_INC; - max: PROGRESSBAR_SMALL_SIZE_INC; - color_class: "progressbar/process_small/icon_bottom"; - } - } - rect { "tizen_vg_shape2_clipper"; - scale; - desc { "default"; - color_class: "progressbar/process_small/icon_middle"; - } - } - rect { "tizen_vg_shape3_clipper"; - scale; - desc { "default"; - color_class: "progressbar/process_small/icon_top"; - } - } - } - } - diff --git a/ElmSharp/theme/tv/widgets/radio.edc b/ElmSharp/theme/tv/widgets/radio.edc deleted file mode 100644 index 30f48db..0000000 --- a/ElmSharp/theme/tv/widgets/radio.edc +++ /dev/null @@ -1,348 +0,0 @@ -/* - * Copyright (c) 2010 Samsung Electronics Co., Ltd All Rights Reserved - * - * BSD 2-Clause License (http://www.opensource.org/licenses/bsd-license.php) - * - * Redistribution and use in source and binary forms, with or without - * modification, are permitted provided that the following conditions are met: - * - * 1. Redistributions of source code must retain the above copyright notice, this - * list of conditions and the following disclaimer. - * 2. Redistributions in binary form must reproduce the above copyright notice, - * this list of conditions and the following disclaimer in the documentation - * and/or other materials provided with the distribution. - * - * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND - * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED - * WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE - * DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR - * ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES - * (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; - * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND - * ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT - * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS - * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. - */ - -/***************************************************************************** -Document: Tizen TV_General Guide_GUI Guideline_v1.0_140508_1.ppt, Page no. 77, -******************************************************************************/ -#define RADIO_SIZE 38 38 -#define RADIO_FONT_SIZE 24 - -group { name: "elm/radio/base/default"; - images { - image: "radiobtn_on_nor.png" COMP; - image: "radiobtn_off_nor.png" COMP; - image: "radiobtn_off_foc.png" COMP; - image: "radiobtn_on_foc.png" COMP; - } - data.item: "focus_highlight" "on"; - script { - public is_focus = 0; - public is_checkd = 0; - public set_focus() { - set_int(is_focus, 1); - } - public unset_focus() { - set_int(is_focus, 0); - } - public set_check_set() { - set_state(PART:"bg", "invisible", 0.0); - if (get_int(is_focus)) { - set_state(PART:"radio", "highlight", 0.0); - } - else { - set_state(PART:"radio", "visible", 0.0); - } - } - public set_check_unset() { - set_state(PART:"radio", "default", 0.0); - if (get_int(is_focus)) { - set_state(PART:"bg", "highlight", 0.0); - } - else { - set_state(PART:"bg", "default", 0.0); - } - } - } - parts { - part { name: "background"; - mouse_events: 0; - scale: 1; - type: RECT; - description { state: "default" 0.0; - rel.to: "bg"; - color_class: "radio/default/bg"; - } - } - part { name: "bg"; - mouse_events: 0; - scale: 1; - description { state: "default" 0.0; - rel2.relative: 0.0 1.0; - align: 0.0 0.5; - min: RADIO_SIZE; - max: RADIO_SIZE; - aspect: 1.0 1.0; - aspect_preference: VERTICAL; - image.normal: "radiobtn_off_nor.png"; - color_class: "radio/default/stroke"; - } - description { state: "invisible" 0.0; - inherit: "default" 0.0; - visible: 0; - } - description { state: "highlight" 0.0; - inherit: "default" 0.0; - image.normal: "radiobtn_off_foc.png"; - color_class: "radio/default/stroke_focused"; - } - description { state: "disabled" 0.0; - inherit: "default" 0.0; - color_class: "radio/default/stroke_disabled"; - } - } - part { name: "radio"; - mouse_events: 0; - scale: 1; - description { state: "default" 0.0; - rel1.to: "bg"; - rel2.to: "bg"; - image.normal: "radiobtn_on_nor.png"; - visible: 0; - color_class: "radio/default/icon"; - } - description { state: "highlight" 0.0; - inherit: "default" 0.0; - image.normal: "radiobtn_on_foc.png"; - visible: 1; - color_class: "radio/default/icon_focused"; - } - description { state: "visible" 0.0; - inherit: "default" 0.0; - visible: 1; - } - } - part { name: "elm.swallow.content"; - type: SWALLOW; - scale: 1; - description { state: "default" 0.0; - fixed: 1 0; - visible: 0; - align: 0.0 0.5; - max: 0 0; - rel1.to_x: "bg"; - rel1.relative: 1.0 0.0; - rel1.offset: 1 1; - rel2.to_x: "bg"; - rel2.offset: 1 -2; - } - description { state: "visible" 0.0; - inherit: "default" 0.0; - visible: 1; - aspect: 1.0 1.0; - min: RADIO_SIZE; - } - description { state: "disabled" 0.0; - inherit: "default" 0.0; - color: 255 255 255 128; - } - description { state: "disabled_visible" 0.0; - inherit: "default" 0.0; - color: 255 255 255 128; - visible: 1; - aspect: 1.0 1.0; - } - } - part { name: "elm.text"; - type: TEXT; - mouse_events: 0; - scale: 1; - description { state: "default" 0.0; - visible: 0; - rel1.to_x: "elm.swallow.content"; - rel1.relative: 1.0 0.0; - rel1.offset: 1 1; - rel2.offset: -2 -2; - color: 0 0 0 255; - text { font: FONT_M; - size: RADIO_FONT_SIZE; - min: 0 0; - align: -1.0 0.5; - } - } - description { state: "visible" 0.0; - inherit: "default" 0.0; - visible: 1; - text.min: 1 1; - text.ellipsis: -1; - } - description { state: "disabled" 0.0; - inherit: "default" 0.0; - color: 0 0 0 128; - color3: 0 0 0 0; - } - description { state: "disabled_visible" 0.0; - inherit: "default" 0.0; - color: 0 0 0 128; - color3: 0 0 0 0; - visible: 1; - text.min: 1 1; - text.ellipsis: -1; - } - } - part { name: "events"; - type: RECT; - description { state: "default" 0.0; - color: 0 0 0 0; - } - } - part { name: "disabler"; - type: RECT; - description { state: "default" 0.0; - color: 0 0 0 0; - visible: 0; - } - description { state: "disabled" 0.0; - inherit: "default" 0.0; - visible: 1; - } - } - } - programs { - program { name: "click"; - signal: "mouse,clicked,1"; - source: "events"; - action: SIGNAL_EMIT "elm,action,radio,toggle" ""; - } - program { name: "radio_on"; - signal: "elm,state,radio,on"; - source: "elm"; - script{ - set_check_set(); - } - } - program { name: "radio_off"; - signal: "elm,state,radio,off"; - source: "elm"; - script{ - set_check_unset(); - } - } - program { name: "text_show"; - signal: "elm,state,text,visible"; - source: "elm"; - action: STATE_SET "visible" 0.0; - target: "elm.text"; - } - program { name: "text_hide"; - signal: "elm,state,text,hidden"; - source: "elm"; - action: STATE_SET "default" 0.0; - target: "elm.text"; - } - program { name: "icon_show"; - signal: "elm,state,icon,visible"; - source: "elm"; - action: STATE_SET "visible" 0.0; - target: "elm.swallow.content"; - } - program { name: "icon_hide"; - signal: "elm,state,icon,hidden"; - source: "elm"; - action: STATE_SET "default" 0.0; - target: "elm.swallow.content"; - } - program { name: "disable"; - signal: "elm,state,disabled"; - source: "elm"; - action: STATE_SET "disabled" 0.0; - target: "bg"; - target: "bg"; - target: "disabler"; - after: "disable_text"; - } - program { name: "disable_text"; - script { - new st[31]; - new Float:vl; - get_state(PART:"elm.text", st, 30, vl); - if (!strcmp(st, "visible")) - set_state(PART:"elm.text", "disabled_visible", 0.0); - else - set_state(PART:"elm.text", "disabled", 0.0); - get_state(PART:"elm.swallow.content", st, 30, vl); - if (!strcmp(st, "visible")) - set_state(PART:"elm.swallow.content", "disabled_visible", 0.0); - else - set_state(PART:"elm.swallow.content", "disabled", 0.0); - } - } - program { name: "enable"; - signal: "elm,state,enabled"; - source: "elm"; - action: STATE_SET "default" 0.0; - target: "disabler"; - after: "enable_text"; - } - program { name: "enable_text"; - script { - new st[31]; - new Float:vl; - get_state(PART:"elm.text", st, 30, vl); - if (!strcmp(st, "disabled_visible")) - set_state(PART:"elm.text", "visible", 0.0); - else - set_state(PART:"elm.text", "default", 0.0); - get_state(PART:"elm.swallow.content", st, 30, vl); - if (!strcmp(st, "visible")) - set_state(PART:"elm.swallow.content", "visible", 0.0); - else - set_state(PART:"elm.swallow.content", "default", 0.0); - } - } - program { name: "focused"; - signal: "elm,action,focus"; source: "elm"; - script { - set_focus(); - } - after: "enable_focus"; - } - program { name: "enable_focus"; - script { - new st[31]; - new Float:vl; - get_state(PART:"bg", st, 30, vl); - if (!strcmp(st, "default")) - set_state(PART:"bg", "highlight", 0.0); - - get_state(PART:"radio", st, 30, vl); - if (!strcmp(st, "visible")) { - set_state(PART:"radio", "highlight", 0.0); - set_state(PART:"bg", "invisible", 0.0); - } - } - } - program { name: "unfocused"; - signal: "elm,action,unfocus"; source: "elm"; - script { - unset_focus(); - } - after: "disable_focus"; - } - program { name: "disable_focus"; - script { - new st[31]; - new Float:vl; - get_state(PART:"bg", st, 30, vl); - if (!strcmp(st, "highlight")) - set_state(PART:"bg", "default", 0.0); - - get_state(PART:"radio", st, 30, vl); - if (!strcmp(st, "highlight")) - set_state(PART:"radio", "visible", 0.0); - } - } - } -} diff --git a/ElmSharp/theme/tv/widgets/scroller.edc b/ElmSharp/theme/tv/widgets/scroller.edc deleted file mode 100644 index 043d812..0000000 --- a/ElmSharp/theme/tv/widgets/scroller.edc +++ /dev/null @@ -1,702 +0,0 @@ -/* - * Copyright (c) 2010 Samsung Electronics Co., Ltd All Rights Reserved - * - * BSD 2-Clause License (http://www.opensource.org/licenses/bsd-license.php) - * - * Redistribution and use in source and binary forms, with or without - * modification, are permitted provided that the following conditions are met: - * - * 1. Redistributions of source code must retain the above copyright notice, this - * list of conditions and the following disclaimer. - * 2. Redistributions in binary form must reproduce the above copyright notice, - * this list of conditions and the following disclaimer in the documentation - * and/or other materials provided with the distribution. - * - * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND - * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED - * WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE - * DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR - * ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES - * (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; - * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND - * ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT - * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS - * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. - */ - -/**************************************************************************** -DOC: Tizen TV_General Guide_GUI Guideline_v1.0_140430.ppt page : 61 style: black -****************************************************************************/ -group { name: "elm/scroller/base/default"; - alias: "elm/list/base/default"; - alias: "elm/scroller/base/map_bubble"; - alias: "elm/genscroller/base/default"; - - data { - item: "focus_highlight" "on"; - } - - script { - public sbvis_v, sbvis_h, sbalways_v, sbalways_h, sbvis_timer; - public timer0(val) { - new v; - v = get_int(sbvis_v); - if (v) { - v = get_int(sbalways_v); - if (!v) { - emit("do-hide-vbar", ""); - set_int(sbvis_v, 0); - } - } - v = get_int(sbvis_h); - if (v) { - v = get_int(sbalways_h); - if (!v) { - emit("do-hide-hbar", ""); - set_int(sbvis_h, 0); - } - } - set_int(sbvis_timer, 0); - return 0; - } - public visible_scroll() { - new v; - v = get_int(sbvis_v); - v |= get_int(sbalways_v); - if (!v) { - emit("do-show-vbar", ""); - set_int(sbvis_v, 1); - } - v = get_int(sbvis_h); - v |= get_int(sbalways_h); - if (!v) { - emit("do-show-hbar", ""); - set_int(sbvis_h, 1); - } - v = get_int(sbvis_timer); - if (v > 0) cancel_timer(v); - v = timer(5.0, "timer0", 0); - set_int(sbvis_timer, v); - } - public mask(val) { - new x, y , w, h, x1, y1 , w1, h1; - get_geometry(PART:"pad.drag_up", x,y,w, h); - get_geometry(PART:"pad.vbar_up", x1,y1,w1, h1); - - if( y >= y1 && y <=(y1+h1) ) - { - set_state(PART:"mask.top", "default", 0.0); - } - else - { - set_state(PART:"mask.top", "show", 0.0); - } - get_geometry(PART:"pad.drag_down", x,y,w, h); - get_geometry(PART:"pad.vbar_down", x1,y1,w1, h1); - - if( (y+h) >= y1 && (y+h) <= (y1+h1) ) - { - set_state(PART:"mask.bottom", "hidden", 0.0); - } - else - { - set_state(PART:"mask.bottom", "default", 0.0); - } - if(val < 100) - timer(0.01,"mask",val+1); - } - - } - - images { - image: "scrollbar_vertical.png" COMP; - image: "scrollbar_horizontal.png" COMP; - image: "scrollbar_mask_top.png" COMP; - image: "scrollbar_mask_bottom.png" COMP; - } - parts { - part { name: "bg"; type: RECT; - description { state: "default" 0.0; - color: 255 255 255 0; - } - } - part { name: "clipper"; type: RECT; mouse_events: 0; - description { state: "default" 0.0; - rel1.to: "bg"; - rel2.to: "bg"; - } - } - part { name: "elm.swallow.content"; type: SWALLOW; - clip_to: "clipper"; - description { state: "default" 0.0; - rel1.to: "bg"; - rel2.to: "bg"; - } - } - part { name: "mask.top"; mouse_events: 1; - repeat_events: 1; - clip_to: "clipper"; - description { state: "default" 0.0; - rel1.to: "elm.swallow.content"; - align: 0 0; - min: 0 36; - max: -1 36; - fixed: 1 1; - image.normal: "scrollbar_mask_top.png"; - visible: 0; - } - description { state: "show" 0.0; - inherit: "default"; - visible: 0; - } - } - part { name: "mask.bottom"; mouse_events: 1; - repeat_events: 1; - clip_to: "clipper"; - description { state: "default" 0.0; - rel2.to: "elm.swallow.content"; - align: 1 1; - min: 0 36; - max: -1 36; - fixed: 1 1; - image.normal: "scrollbar_mask_bottom.png"; - visible: 0; - } - description { state: "hidden" 0.0; - inherit: "default"; - visible: 0; - } - } - part { name: "pad.vbar_up"; type: SPACER; - repeat_events: 1; - description { state: "default" 0.0; - min: 4 18; - max: 4 18; - fixed: 1 1; - align: 0.0 0.0; - rel1.to: "sb_vbar"; - rel2.to: "sb_vbar"; - } - } - part { name: "pad.drag_up"; type: SPACER; - repeat_events: 1; - description { state: "default" 0.0; - min: 4 4; - max: 4 4; - fixed: 1 1; - align: 0.0 0.0; - rel1.to: "elm.dragable.vbar"; - rel2.to: "elm.dragable.vbar"; - } - } - part { name: "pad.vbar_down"; type: SPACER; - repeat_events: 1; - description { state: "default" 0.0; - min: 4 18; - max: 4 18; - fixed: 1 1; - align: 0.0 1.0; - rel1.to: "sb_vbar"; - rel2.to: "sb_vbar"; - } - } - part { name: "pad.drag_down"; type: SPACER; - repeat_events: 1; - description { state: "default" 0.0; - min: 4 4; - max: 4 4; - fixed: 1 1; - align: 0.0 1.0; - rel1.to: "elm.dragable.vbar"; - rel2.to: "elm.dragable.vbar"; - } - } - - part { name: "conf_over"; type: RECT; mouse_events: 0; - description { state: "default" 0.0; - rel1.to: "bg"; - rel2.to: "bg"; - color: 255 255 0 0; - } - description { state: "enabled" 0.0; - inherit: "default" 0.0; - color: 200 155 0 0; - } - } - part { name: "focus_highlight"; type: RECT; mouse_events: 0; - description { state: "default" 0.0; - color: 200 155 0 0; - } - description { state: "enabled" 0.0; - inherit: "default" 0.0; - color: 200 155 0 0; - } - } - part { name: "sb_vbar_clip_master"; type: RECT; mouse_events: 0; - description { state: "default" 0.0; - } - description { state: "hidden" 0.0; - visible: 0; - } - } - part { name: "sb_vbar_clip"; type: RECT; mouse_events: 0; - clip_to: "sb_vbar_clip_master"; - description { state: "default" 0.0; - } - description { state: "hidden" 0.0; - visible: 0; - } - } - part { name: "sb_vbar"; type: RECT; mouse_events: 1; - description { state: "default" 0.0; - fixed: 1 1; - visible: 0; - min: 10 17; - align: 1.0 0.0; - rel1 { - relative: 1.0 0.0; - to_y: "elm.swallow.content"; - to_x: "elm.swallow.content"; - } - rel2 { - relative: 1.0 0.0; - to_y: "sb_hbar"; - to_x: "elm.swallow.content"; - } - } - } - part { name: "elm.dragable.vbar"; mouse_events: 0; - clip_to: "sb_vbar_clip"; - dragable { - x: 0 0 0; - y: 1 1 0; - confine: "sb_vbar"; - } - description { state: "default" 0.0; - fixed: 1 1; - min: 8 9; - max: 8 -1; - rel1 { - relative: 0.5 0.5; - to: "sb_vbar"; - } - rel2 { - relative: 0.5 0.5; - to: "sb_vbar"; - } - color: 0 0 0 64; - image { - normal: "scrollbar_vertical.png"; - border: 4 4 4 4; - middle: SOLID; - } - } - } - part { name: "sb_hbar_clip_master"; type: RECT; mouse_events: 0; - description { state: "default" 0.0; - } - description { state: "hidden" 0.0; - visible: 0; - } - } - part { name: "sb_hbar_clip"; type: RECT; mouse_events: 0; - clip_to: "sb_hbar_clip_master"; - description { state: "default" 0.0; - } - description { state: "hidden" 0.0; - visible: 0; - } - } - part { name: "sb_hbar"; type: RECT; mouse_events: 1; - description { state: "default" 0.0; - fixed: 1 1; - visible: 0; - min: 17 10; - align: 0.0 1.0; - rel1 { - relative: 0.0 1.0; - to_x: "elm.swallow.content"; - to_y: "elm.swallow.content"; - } - rel2 { - relative: 0.0 1.0; - to_x: "sb_vbar"; - to_y: "elm.swallow.content"; - } - } - } - part { name: "elm.dragable.hbar"; mouse_events: 0; - clip_to: "sb_hbar_clip"; - dragable { - x: 1 1 0; - y: 0 0 0; - confine: "sb_hbar"; - } - description { state: "default" 0.0; - fixed: 1 1; - min: 9 8 ; - max: -1 8 ; - rel1 { - relative: 0.5 0.5; - to: "sb_hbar"; - } - rel2 { - relative: 0.5 0.5; - to: "sb_hbar"; - } - color: 0 0 0 64; - image { - normal: "scrollbar_horizontal.png"; - border: 4 4 4 4; - middle: SOLID; - } - } - } - part { name: "disabler"; type: RECT; - description { state: "default" 0.0; - rel1.to: "clipper"; - rel2.to: "clipper"; - visible: 0; - } - description { state: "disabled" 0.0; - inherit: "default" 0.0; - visible: 1; - color: 128 128 128 128; - } - } - } - programs { - program { name: "load"; - signal: "load"; - source: ""; - script { - mask(0); - set_state(PART:"sb_hbar_clip", "hidden", 0.0); - set_state(PART:"sb_vbar_clip", "hidden", 0.0); - set_int(sbvis_h, 0); - set_int(sbvis_v, 0); - set_int(sbalways_v, 0); - set_int(sbalways_h, 0); - set_int(sbvis_timer, 0); - } - } - program { name: "vbar_show"; - signal: "elm,action,show,vbar"; - source: "elm"; - action: STATE_SET "default" 0.0; - target: "sb_vbar_clip_master"; - } - program { name: "vbar_hide"; - signal: "elm,action,hide,vbar"; - source: "elm"; - action: STATE_SET "hidden" 0.0; - target: "sb_vbar_clip_master"; - } - program { name: "vbar_show_always"; - signal: "elm,action,show_always,vbar"; - source: "elm"; - script { - new v; - v = get_int(sbvis_v); - v |= get_int(sbalways_v); - if (!v) { - set_int(sbalways_v, 1); - emit("do-show-vbar", ""); - set_int(sbvis_v, 1); - } - } - } - program { name: "vbar_show_notalways"; - signal: "elm,action,show_notalways,vbar"; - source: "elm"; - script { - new v; - v = get_int(sbalways_v); - if (v) { - set_int(sbalways_v, 0); - v = get_int(sbvis_v); - if (!v) { - emit("do-hide-vbar", ""); - set_int(sbvis_v, 0); - } - } - } - } - program { name: "sb_vbar_show"; - signal: "do-show-vbar"; - source: ""; - action: STATE_SET "default" 0.0; - transition: LINEAR 0.5; - target: "sb_vbar_clip"; - } - program { name: "sb_vbar_hide"; - signal: "do-hide-vbar"; - source: ""; - action: STATE_SET "hidden" 0.0; - transition: LINEAR 0.5; - target: "sb_vbar_clip"; - } - - program { name: "hbar_show"; - signal: "elm,action,show,hbar"; - source: "elm"; - action: STATE_SET "default" 0.0; - target: "sb_hbar_clip_master"; - } - program { name: "hbar_hide"; - signal: "elm,action,hide,hbar"; - source: "elm"; - action: STATE_SET "hidden" 0.0; - target: "sb_hbar_clip_master"; - } - program { name: "hbar_show_always"; - signal: "elm,action,show_always,hbar"; - source: "elm"; - script { - new v; - v = get_int(sbvis_h); - v |= get_int(sbalways_h); - if (!v) { - set_int(sbalways_h, 1); - emit("do-show-hbar", ""); - set_int(sbvis_h, 1); - } - } - } - program { name: "hbar_show_notalways"; - signal: "elm,action,show_notalways,hbar"; - source: "elm"; - script { - new v; - v = get_int(sbalways_h); - if (v) { - set_int(sbalways_h, 0); - v = get_int(sbvis_h); - if (!v) { - emit("do-hide-hbar", ""); - set_int(sbvis_h, 0); - } - } - } - } - program { name: "sb_hbar_show"; - signal: "do-show-hbar"; - source: ""; - action: STATE_SET "default" 0.0; - transition: LINEAR 0.5; - target: "sb_hbar_clip"; - } - program { name: "sb_hbar_hide"; - signal: "do-hide-hbar"; - source: ""; - action: STATE_SET "hidden" 0.0; - transition: LINEAR 0.5; - target: "sb_hbar_clip"; - } - program { name: "scroll"; - signal: "elm,action,scroll"; - source: "elm"; - script { - mask(100); - visible_scroll(); - } - } - program { name: "mouseoverv"; - signal: "mouse,in"; - source: "sb_vbar"; - script { - visible_scroll(); - } - - } - program { name: "mouseoverh"; - signal: "mouse,in"; - source: "sb_hbar"; - script { - visible_scroll(); - } - } - program { name: "focus"; - signal: "elm,action,focus"; - source: "elm"; - script { - mask(100); - visible_scroll(); - } - } - program { name: "highlight_show"; - signal: "elm,action,focus_highlight,show"; - source: "elm"; - action: STATE_SET "enabled" 0.0; - transition: ACCELERATE 0.3; - target: "focus_highlight"; - target: "conf_over"; - } - program { name: "highlight_hide"; - signal: "elm,action,focus_highlight,hide"; - source: "elm"; - action: STATE_SET "default" 0.0; - transition: DECELERATE 0.3; - target: "focus_highlight"; - target: "conf_over"; - } - program { name: "disable"; - signal: "elm,state,disabled"; - source: "elm"; - action: STATE_SET "disabled" 0.0; - target: "disabler"; - } - program { name: "enable"; - signal: "elm,state,enabled"; - source: "elm"; - action: STATE_SET "default" 0.0; - target: "disabler"; - } - program { - signal: "elm,scroller,arrow_up,hide"; - source: "elm"; - action: STATE_SET "invisible" 0.0; - target: "mask.top"; - } - } -} - -group { name: "elm/genlist/base/default"; - inherit: "elm/scroller/base/default"; - parts { - part { name: "bg"; type: RECT; - description { state: "default" 0.0; - color: 255 255 255 255; - color_class: "genlist/default/bg"; - } - } - } -} - -group { name: "elm/gengrid/base/default"; - inherit: "elm/scroller/base/default"; - parts { - part { name: "bg"; type: RECT; - description { state: "default" 0.0; - color: 255 255 255 255; - color_class: "gengrid/default/bg"; - } - } - } -} - -/******************************************************************************** -DOC: Tizen TV_General Guide_GUI Guideline_v1.0_140430.ppt page : 61 style: white -* ******************************************************************************/ -group { name: "elm/scroller/base/white"; - inherit: "elm/scroller/base/default"; - alias: "elm/list/base/white"; - alias: "elm/genlist/base/white"; - alias: "elm/gengrid/base/white"; - alias: "elm/scroller/base/map_bubble"; - alias: "elm/genscroller/base/white"; - - parts { - part { name: "elm.dragable.vbar"; - description { state: "default" 0.0; - color: 255 255 255 25; - } - } - part { name: "elm.dragable.hbar"; - description { state: "default" 0.0; - color: 255 255 255 25; - } - } - } -} - -group { name: "elm/genlist/base/white"; - inherit: "elm/genlist/base/default"; - - parts { - part { name: "elm.dragable.vbar"; - description { state: "default" 0.0; - color: 255 255 255 25; - } - } - part { name: "elm.dragable.hbar"; - description { state: "default" 0.0; - color: 255 255 255 25; - } - } - } -} - -group { name: "elm/gengrid/base/white"; - inherit: "elm/gengrid/base/default"; - - parts { - part { name: "elm.dragable.vbar"; - description { state: "default" 0.0; - color: 255 255 255 25; - } - } - part { name: "elm.dragable.hbar"; - description { state: "default" 0.0; - color: 255 255 255 25; - } - } - } -} - -/******************************************************************************** -DOC: Tizen TV_General Guide_GUI Guideline_v1.0_140430.ppt page : 70 style: white -********************************************************************************/ -group { name: "elm/scroller/base/no_bar"; - inherit: "elm/scroller/base/default"; - alias: "elm/list/base/no_bar"; - alias: "elm/scroller/base/map_bubble"; - alias: "elm/genscroller/base/no_bar"; - - parts { - part { name: "elm.dragable.vbar"; - description { state: "default" 0.0; - visible: 0; - } - } - part { name: "elm.dragable.hbar"; - description { state: "default" 0.0; - visible: 0; - } - } - } -} - -group { name: "elm/genlist/base/no_bar"; - inherit: "elm/genlist/base/default"; - - parts { - part { name: "elm.dragable.vbar"; - description { state: "default" 0.0; - visible: 0; - } - } - part { name: "elm.dragable.hbar"; - description { state: "default" 0.0; - visible: 0; - } - } - } -} - -group { name: "elm/gengrid/base/no_bar"; - inherit: "elm/gengrid/base/default"; - - parts { - part { name: "elm.dragable.vbar"; - description { state: "default" 0.0; - visible: 0; - } - } - part { name: "elm.dragable.hbar"; - description { state: "default" 0.0; - visible: 0; - } - } - } -} diff --git a/ElmSharp/theme/tv/widgets/slider.edc b/ElmSharp/theme/tv/widgets/slider.edc deleted file mode 100644 index 5045309..0000000 --- a/ElmSharp/theme/tv/widgets/slider.edc +++ /dev/null @@ -1,940 +0,0 @@ -/* - * Copyright (c) 2010 Samsung Electronics Co., Ltd All Rights Reserved - * - * BSD 2-Clause License (http://www.opensource.org/licenses/bsd-license.php) - * - * Redistribution and use in source and binary forms, with or without - * modification, are permitted provided that the following conditions are met: - * - * 1. Redistributions of source code must retain the above copyright notice, this - * list of conditions and the following disclaimer. - * 2. Redistributions in binary form must reproduce the above copyright notice, - * this list of conditions and the following disclaimer in the documentation - * and/or other materials provided with the distribution. - * - * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND - * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED - * WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE - * DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR - * ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES - * (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; - * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND - * ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT - * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS - * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. - */ - -/********************************************************************************* -Document: Tizen TV_General Guide_GUI Guideline_v1.0_140508_1.ppt, Page no.94, -style name: default -*********************************************************************************/ - -//ADD_COLOR_CLASS - -#define SLIDER_FONT_SIZE 26 - -group { name: "elm/slider/horizontal/default"; - data.item: "focus_highlight" "on"; - styles { - style { name: "slider_style"; - base: "font="FONT_M" font_size="26" align=centre color=#458fff left_margin=21 right_margin=21"; - tag: "hilight" "+ font_weight=Bold"; - tag: "em" "+ font_style=Bold"; - } - } - parts { - alias: "default" "elm.text"; - part { name: "base"; type: RECT; mouse_events: 0; - scale: 1; - description { state: "default" 0.0; - max: -1 8; - min: 0 8; - rel1 { to_y: "bg"; - to_x: "pad.level.left"; - relative: 1 0; - } - rel2 { to: "bg"; - to_x: "pad.level.right"; - relative: 0 1; - } - color_class: "slider/default/bg"; - } - } - part { name: "pad.level.left"; type: SPACER; mouse_events: 0; - scale: 1; - description { state: "default" 0.0; - rel1 { to: "elm.swallow.bar"; - relative: 0 1; - } - rel2 { to: "elm.swallow.bar"; - relative: 0 1; - } - min: 12 0; - max: 12 0; - fixed: 1 0; - align: 0 0; - } - } - part { name: "pad.level.right"; type: SPACER; mouse_events: 0; - scale: 1; - description { state: "default" 0.0; - rel1 { to: "elm.swallow.bar"; - relative: 0 1; - } - rel2.to: "elm.swallow.bar"; - min: 12 0; - max: 12 0; - align: 1 0; - fixed: 1 0; - } - } - part { name: "level"; type: RECT; mouse_events: 0; - description { state: "default" 0.0; - fixed: 1 1; - rel1.to: "base"; - rel2 { to_y: "base"; - to_x: "elm.dragable.slider"; - relative: 0.5 1.0; - } - color: 255 255 255 255; - } - description { state: "inverted" 0.0; - inherit: "default" 0.0; - visible: 0; - } - description { state: "disabled" 0.0; - inherit: "default" 0.0; - color: 255 0 0 100; - } - description { state: "disabled_inverted" 0.0; - inherit: "default" 0.0; - visible: 0; - } - } - part { name: "over"; type: RECT; mouse_events: 0; - description { state: "default" 0.0; - fixed: 1 1; - rel1 { to_y: "base"; - to_x: "elm.dragable.slider"; - relative: 0.5 0.0; - } - rel2.to: "base"; - color: 0 0 0 65; - } - } - part { name: "level2"; type: RECT; mouse_events: 0; - description { state: "default" 0.0; - fixed: 1 1; - visible: 1; - rel1 { to_y: "base"; - to_x: "elm.dragable.slider"; - relative: 0.5 0.0; - } - rel2.to: "base"; - color: 255 255 255 65; - } - description { state: "inverted" 0.0; - inherit: "default" 0.0; - visible: 1; - } - description { state: "disabled" 0.0; - inherit: "default" 0.0; - } - description { state: "disabled_inverted" 0.0; - inherit: "default" 0.0; - color: 255 0 0 100; - visible: 1; - } - } - part { name: "pad.bg"; type: SPACER; mouse_events: 0; - scale: 1; - description { state: "default" 0.0; - rel1.to: "elm.swallow.bar"; - rel2.to: "elm.swallow.bar"; - min: 12 0; - max: 12 0; - align: 0 0; - } - } - part { name: "pad.bg.right"; type: SPACER; mouse_events: 0; - scale: 1; - description { state: "default" 0.0; - rel1.to: "elm.swallow.bar"; - rel2.to: "elm.swallow.bar"; - min: 12 2; - max: 12 2; - align: 1 1; - } - } - part { name: "bg"; type: RECT; mouse_events: 0; - scale: 1; - description { state: "default" 0.0; - visible: 0; - align: 0.5 0.5; - rel1.to: "pad.bg"; - rel1.relative: 1 0; - rel2.to: "pad.bg.right"; - rel2.relative: 0 1; - color: 255 0 0 255; - } - } - part { name: "pad.swallow.left"; type: SPACER; mouse_events: 0; - scale: 1; - description { state: "default" 0.0; - align: 0 0; - min: 20 0; - max: 20 0; - rel1 { - to_x: "elm.text"; - relative: 1.0 0.0; - } - } - } - part { name: "pad.swallow.right"; type: SPACER; mouse_events: 0; - scale: 1; - description { state: "default" 0.0; - min: 20 0; - max: 20 0; - fixed: 1 1; - align: 1 1; - rel2 { - to_x: "elm.units"; - relative: 0.0 1.0; - } - } - } - part { name: "elm.swallow.bar"; type: SWALLOW; - scale: 1; - description { state: "default" 0.0; - min: 48 24; - max: -1 24; - align: 1.0 0.5; - rel1 { - to: "pad.swallow.left"; - relative: 1.0 0.0; - } - rel2 { - to_x: "pad.swallow.right"; - relative: 0.0 1.0; - } - } - } - part { name: "elm.swallow.icon"; type: SWALLOW; - description { state: "default" 0.0; - visible: 0; - align: 0.0 0.5; - rel1 { - to_y: "elm.swallow.bar"; - } - rel2 { - relative: 0.0 1.0; - to_y: "elm.swallow.bar"; - } - } - description { state: "visible" 0.0; - inherit: "default" 0.0; - visible: 1; - aspect: 1.0 1.0; - aspect_preference: VERTICAL; - } - } - part { name: "elm.text"; type: TEXT; mouse_events: 0; - scale: 1; - description { state: "default" 0.0; - visible: 0; - fixed: 1 1; - align: 1.0 0.5; - rel1.to_x: "elm.swallow.icon"; - rel1.relative: 1.0 0.0; - rel2.to_x: "elm.swallow.icon"; - rel2.relative: 1.0 1.0; - text { - font: "FONT_M"; - size: SLIDER_FONT_SIZE; - min: 0 0; - align: 0.0 0.5; - } - } - description { state: "visible" 0.0; - inherit: "default" 0.0; - visible: 1; - text.min: 1 1; - text.ellipsis: -1; - } - description { state: "disabled" 0.0; - inherit: "default" 0.0; - color: 255 128 128 128; - visible: 0; - } - description { state: "disabled_visible" 0.0; - inherit: "default" 0.0; - visible: 1; - text.min: 1 1; - text.ellipsis: -1; - } - } - part { name: "elm.swallow.end"; type: SWALLOW; - description { state: "default" 0.0; - visible: 0; - align: 1.0 0.5; - rel1 { - relative: 1.0 0.0; - to_y: "elm.swallow.bar"; - } - rel2 { - to_y: "elm.swallow.bar"; - } - } - description { state: "visible" 0.0; - inherit: "default" 0.0; - visible: 1; - aspect: 1.0 1.0; - aspect_preference: VERTICAL; - } - } - part { name: "elm.units"; type: TEXT; mouse_events: 0; - scale: 1; - description { state: "default" 0.0; - visible: 0; - fixed: 1 1; - rel1.to_x: "elm.swallow.end"; - rel2.to_x: "elm.swallow.end"; - color: 255 255 255 255; - align: 0 0.5; - text { - font: FONT_M; - size: SLIDER_FONT_SIZE; - min: 0 0; - align: 0.0 0.5; - } - } - description { state: "visible" 0.0; - inherit: "default" 0.0; - visible: 1; - text.min: 1 1; - text.ellipsis: -1; - } - description { state: "disabled" 0.0; - inherit: "default" 0.0; - color: 255 128 128 128; - visible: 0; - } - description { state: "disabled_visible" 0.0; - inherit: "default" 0.0; - visible: 1; - text.min: 1 1; - text.ellipsis: -1; - } - } - part { name: "button"; type: GROUP; mouse_events: 0; - source:"elm/slider/horizontal/indicator/default"; - description { state: "default" 0.0; - fixed: 1 1; - rel1.to: "elm.dragable.slider"; - rel2.to: "elm.dragable.slider"; - } - description { state: "hidden" 0.0; - inherit: "default" 0.0; - visible: 0; - } - } - part { name: "elm.dragable.slider"; type: RECT; - scale: 1; - dragable { - x: 1 1 0; - y: 0 0 0; - confine: "bg"; - } - description { state: "default" 0.0; - min: 0 0; - max: 0 0; - fixed: 1 1; - rel1 { - relative: 0.5 0.0; - to_x: "bg"; - } - rel2 { - relative: 0.5 1.0; - to_x: "bg"; - } - color: 0 0 0 0; - } - } - part { name: "slideevent"; type: RECT; mouse_events: 0; - scale: 1; - dragable.events: "elm.dragable.slider"; - description { state: "default" 0.0; - fixed: 1 1; - min: 24 24; - max: 24 24; - rel1.to: "elm.dragable.slider"; - rel2.to: "elm.dragable.slider"; - color: 0 0 0 0; - } - } - part { name: "elm.track.slider"; type: SWALLOW; mouse_events: 0; - description { state: "default" 0.0; - max: 0 0; - rel1.to: "elm.dragable.slider"; - rel2.to: "elm.dragable.slider"; - } - } - part { name: "disabler"; type: RECT; - description { state: "default" 0.0; - color: 0 0 0 0; - visible: 0; - } - description { state: "disabled" 0.0; - inherit: "default" 0.0; - visible: 1; - } - } - } - programs { - program { name: "mouse_down_bar"; - signal: "mouse,down,*"; source:"elm.swallow.bar"; - action: SIGNAL_EMIT "popup,show" "elm"; - } - program { name: "mouse_up_bar"; - signal: "mouse,up,*"; source:"elm.swallow.bar"; - action: SIGNAL_EMIT "popup,hide" "elm"; - } - - program { name: "indicator_show"; - signal: "elm,state,indicator,show"; source:"elm"; - action: SIGNAL_EMIT "popup,show" "elm"; - } - program { name: "indicator_hide"; - signal: "elm,state,indicator,hide"; source:"elm"; - action: SIGNAL_EMIT "highlight,hide" "elm"; - } - program { name: "popup_show"; - signal: "mouse,down,1"; source:"slideevent"; - action: SIGNAL_EMIT "popup,show" "elm"; - } - program { name: "popup_hide"; - signal: "mouse,up,1"; source:"slideevent"; - action: SIGNAL_EMIT "highlight,hide" "elm"; - } - program { name: "text_show"; - signal: "elm,state,text,visible"; source:"elm"; - action: STATE_SET "visible" 0.0; - target: "elm.text"; - } - program { name: "text_hide"; - signal: "elm,state,text,hidden"; source:"elm"; - action: STATE_SET "default" 0.0; - target: "elm.text"; - } - program { name: "icon_show"; - signal: "elm,state,icon,visible"; source:"elm"; - action: STATE_SET "visible" 0.0; - target: "elm.swallow.icon"; - } - program { name: "icon_hide"; - signal: "elm,state,icon,hidden"; source:"elm"; - action: STATE_SET "default" 0.0; - target: "elm.swallow.icon"; - } - program { name: "end_show"; - signal: "elm,state,end,visible"; source:"elm"; - action: STATE_SET "visible" 0.0; - target: "elm.swallow.end"; - } - program { name: "end_hide"; - signal: "elm,state,end,hidden"; source:"elm"; - action: STATE_SET "default" 0.0; - target: "elm.swallow.end"; - } - program { name: "units_show"; - signal: "elm,state,units,visible"; source:"elm"; - action: STATE_SET "visible" 0.0; - target: "elm.units"; - after: "limits,children,visible"; - } - program { name: "limits,children,visible"; - action: SIGNAL_EMIT "limits:limits,visible" "elm"; - } - program { name: "units_hide"; - signal: "elm,state,units,hidden"; source:"elm"; - action: STATE_SET "default" 0.0; - target: "elm.units"; - after: "limits,children,hide"; - } - program { name: "limits,children,hide"; - action: SIGNAL_EMIT "limits:limits,hide" "elm"; - } - program { name: "invert_on"; - signal: "elm,state,inverted,on"; source:"elm"; - action: STATE_SET "inverted" 0.0; - target: "level"; - target: "level2"; - } - program { name: "invert_off"; - signal: "elm,state,inverted,off"; source:"elm"; - action: STATE_SET "default" 0.0; - target: "level"; - target: "level2"; - } - program { - name: "go_disabled"; - signal: "elm,state,disabled"; source:"elm"; - action: STATE_SET "disabled" 0.0; - target: "disabler"; - after: "disable_text"; - after: "disable_ind"; - } - program { name: "disable_ind"; - action: SIGNAL_EMIT "elm.dragable.slider:elm,state,disabled" "elm"; - } - program { name: "disable_text"; - script { - new st[31]; - new Float:vl; - get_state(PART:"elm.text", st, 30, vl); - if (!strcmp(st, "visible")) - set_state(PART:"elm.text", "disabled_visible", 0.0); - else - set_state(PART:"elm.text", "disabled", 0.0); - - get_state(PART:"elm.units", st, 30, vl); - if (!strcmp(st, "visible")) - set_state(PART:"elm.units", "disabled_visible", 0.0); - else - set_state(PART:"elm.units", "disabled", 0.0); - - get_state(PART:"level2", st, 30, vl); - if (!strcmp(st, "inverted")) - { - set_state(PART:"level", "disabled_inverted", 0.0); - set_state(PART:"level2", "disabled_inverted", 0.0); - } - else - { - set_state(PART:"level", "disabled", 0.0); - set_state(PART:"level2", "disabled", 0.0); - } - } - } - program { name: "enable"; - signal: "elm,state,enabled"; source:"elm"; - action: STATE_SET "default" 0.0; - target: "disabler"; - after: "enable_text"; - after: "enable_ind"; - } - program { name: "enable_ind"; - action: SIGNAL_EMIT "elm.dragable.slider:elm,state,enabled" "elm"; - } - program { name: "enable_text"; - script { - new st[31]; - new Float:vl; - get_state(PART:"elm.text", st, 30, vl); - if (!strcmp(st, "disabled_visible")) - set_state(PART:"elm.text", "visible", 0.0); - else - set_state(PART:"elm.text", "default", 0.0); - - get_state(PART:"elm.units", st, 30, vl); - if (!strcmp(st, "disabled_visible")) - set_state(PART:"elm.units", "visible", 0.0); - else - set_state(PART:"elm.units", "default", 0.0); - - get_state(PART:"level2", st, 30, vl); - if (!strcmp(st, "disabled_inverted")) - { - set_state(PART:"level", "inverted", 0.0); - set_state(PART:"level2", "inverted", 0.0); - } - else - { - set_state(PART:"level", "default", 0.0); - set_state(PART:"level2", "default", 0.0); - } - } - } - } -} - -group { name: "elm/slider/horizontal/indicator/default"; - alias: "elm/slider/horizontal/popup/default"; - images{ - image: "tooltip_bg.png" COMP; - image: "tooltip_arrow.png" COMP; - image: "slider_thumb_stroke.png" COMP; - image: "slider_thumb_fill.png" COMP; - } - script { - public popup_show = 0; - public is_in_focuse = 0; - public is_mouse_in = 0; - public is_focus = 0; - public setcol; - - public set_value_show() { - set_int(popup_show, 0); - } - - public set_value_hide() { - set_int(popup_show, 1); - } - - public mouse_down() - { - if (get_int(popup_show) == 0) - { - set_state(PART:"progress_balloon", "clicked", 0.0); - set_state(PART:"progress_balloon_arrow", "clicked", 0.0); - set_state(PART:"elm.indicator", "clicked", 0.0); - set_state(PART:"knob_fill", "clicked", 0.0); - set_state(PART:"knob", "clicked", 0.0); - } - set_int(is_in_focuse, 1); - } - public mouse_up() - { - set_state(PART:"progress_balloon", "default", 0.0); - set_state(PART:"progress_balloon_arrow", "default", 0.0); - set_state(PART:"elm.indicator", "default", 0.0); - set_state(PART:"knob_fill", "default", 0.0); - set_state(PART:"knob", "clicked", 0.0); - } - public mouse_in_knob() - { - set_state(PART:"knob", "over", 0.0); - set_int(is_mouse_in, 1); - } - public mouse_out_knob() - { - set_int(is_mouse_in, 0); - if (get_int(is_in_focuse)) - { - set_state(PART:"knob", "clicked", 0.0); - } - else - set_state(PART:"knob", "default", 0.0); - } - } - parts{ - part { name: "knob_fill"; - repeat_events: 1; - scale: 1; - description { state: "default" 0.0; - image.normal: "slider_thumb_fill.png"; - min: 38 38; - max: 38 38; - align:0.5 0.5; - fixed: 1 1; - color_class: "open_ux_theme"; - } - description { state: "clicked" 0.0; - inherit: "default" 0.0; - color_class: "open_ux_theme"; - } - } - part { name: "knob"; - repeat_events: 1; - scale: 1; - description { state: "default" 0.0; - image.normal: "slider_thumb_stroke.png"; - min: 38 38; - max: 38 38; - fixed: 1 1; - color: 255 255 255 255; - } - description { state: "clicked" 0.0; - inherit: "default" 0.0; - } - description { state: "over" 0.0; - inherit: "clicked" 0.0; - } - description { state: "disabled" 0.0; - inherit: "default" 0.0; - } - } - part { name: "progress_balloon"; - scale: 1; - description { state: "default" 0.0; - visible: 0; - align: 0.5 1; - rel1.to: "pad.text_top.left"; - rel2.to: "pad.text_bottom.right"; - fixed: 1 1; - image.normal: "tooltip_bg.png"; - image.border: 6 6 7 7; - image.border_scale: 1; - } - description { state: "clicked" 0.0; - inherit: "default" 0.0; - visible: 1; - } - } - part { name: "pad.baloon_arrow_align"; type:SPACER; - scale: 1; - description { state: "default" 0.0; - rel1.to: "knob"; - rel2{ - to: "knob"; - relative: 1 0; - } - min: 0 2; - max: 0 2; - fixed: 1 1; - align: 0.5 0; - } - } - part { name: "progress_balloon_arrow"; - scale: 1; - description { state: "default" 0.0; - visible: 0; - rel1 { to: "pad.baloon_arrow_align"; - relative: 0 1; - } - rel2.to: "pad.baloon_arrow_align"; - min: 12 10; - max: 12 10; - align: 0.5 1; - fixed: 1 1; - image.normal: "tooltip_arrow.png"; - image.border: 6 6 7 7; - image.border_scale: 1; - } - description { state: "clicked" 0.0; - inherit: "default" 0.0; - image.normal: "tooltip_arrow.png"; - visible: 1; - } - } - part { name: "pad.text_top.left"; type: SPACER; - scale: 1; - description { state: "default" 0.0; - min: 11 11; - max: 11 11; - fixed: 1 1; - align: 1 0; - rel1.to: "elm.indicator"; - rel2 { to: "elm.indicator"; - relative: 0 0; - } - } - } - part { name: "pad.text_bottom.right"; type: SPACER; - scale: 1; - description { state: "default" 0.0; - min: 11 11; - max: 11 11; - fixed: 1 1; - align: 0 0; - rel1 { to: "elm.indicator"; - relative: 1 1; - } - rel2.to: "elm.indicator"; - } - } - part { name: "pad.text_align"; type: SPACER; - scale: 1; - description { state: "default" 0.0; - min: 0 6; - max: 0 6; - fixed: 1 1; - align: 0.5 1; - rel1 { to: "progress_balloon_arrow"; - relative: 0.5 0; - } - rel2 { to: "progress_balloon_arrow"; - relative: 0.5 0; - } - } - } - part { name: "elm.indicator"; type: TEXTBLOCK; mouse_events: 0; - scale: 1; - description { state: "default" 0.0; - visible: 0; - fixed: 1 1; - rel1.to: "pad.text_align"; - rel2 { to: "pad.text_align"; - relative: 0 0; - } - align: 0.5 1; - text { - style: "slider_style"; - min: 1 1; - ellipsis: -1; - } - } - description { state: "clicked" 0.0; - inherit: "default" 0.0; - visible: 1; - } - } - } - - programs { - program { name: "mouse_down_bar"; - signal: "mouse,down,*"; source:"knob"; - script { - mouse_down(); - } - } - program { name: "mouse_up_bar"; - signal: "mouse,up,*"; source:"knob"; - script { - mouse_up(); - } - } - program { name: "popup_show"; - signal: "popup,show"; source:"elm"; - script { - mouse_down(); - } - } - program { name: "popup_hide"; - signal: "popup,hide"; source:"elm"; - action: SIGNAL_EMIT "popup,hide,done" "elm"; - } - program { name: "popup_hide2"; - signal: "popup,hide"; source:"elm"; - script { - mouse_up(); - } - } - program { name: "set_val_show"; - signal: "elm,state,val,show"; source:"elm"; - script { - set_value_show(); - } - } - program { name: "set_val_hide"; - signal: "elm,state,val,hide"; source:"elm"; - script { - set_value_hide(); - } - } - program { name: "val_show"; - signal: "mouse,down,*"; source:"knob"; - script { - mouse_down(); - } - } - program { name: "val_hide"; - signal: "mouse,up,*"; source:"knob"; - script { - mouse_up(); - } - } - - - } -} - -/********************************************************************************* -Document: Tizen TV_General Guide_GUI Guideline_v1.0_140508_1.ppt, Page no.96, -style name: default -*********************************************************************************/ -group { name: "elm/slider/horizontal/progress"; - inherit: "elm/slider/horizontal/default"; - parts{ - part { name: "level"; type: RECT; mouse_events: 0; - description { state: "default" 0.0; - fixed: 1 1; - rel1.to: "base"; - rel2 { - to_y: "base"; - to_x: "elm.dragable.slider"; - relative: 0.5 1.0; - } - color_class: "open_ux_theme"; - } - description { state: "focus" 0.0; - inherit: "default" 0.0; - color_class: "open_ux_theme"; - } - } - part { name: "button"; type: GROUP; mouse_events: 0; - source:"elm/slider/horizontal/indicator/progress"; - description { state: "default" 0.0; - fixed: 1 1; - rel1.to: "elm.dragable.slider"; - rel2.to: "elm.dragable.slider"; - } - description { state: "hidden" 0.0; - inherit: "default" 0.0; - visible: 0; - } - } - } - programs { - program { name: "Focus"; - signal: "elm,action,focus"; source: "elm"; - action: STATE_SET "focus" 0.0; - target: "level"; - } - program { name: "Unfocus"; - signal: "elm,action,unfocus"; source: "elm"; - action: STATE_SET "default" 0.0; - target: "level"; - } - } -} - -group { name: "elm/slider/horizontal/indicator/progress"; - inherit: "elm/slider/horizontal/indicator/default"; - alias: "elm/slider/horizontal/popup/progress"; - parts { - part { name: "knob_fill"; - repeat_events: 1; - scale: 1; - description { state: "default" 0.0; - image.normal: "slider_thumb_fill.png"; - min: 38 38; - max: 38 38; - align:0.5 0.5; - fixed: 1 1; - color: 0 0 0 255; - } - description { state: "clicked" 0.0; - inherit: "default" 0.0; - } - } - part { name: "knob"; - repeat_events: 1; - scale: 1; - description { state: "default" 0.0; - image.normal: "slider_thumb_stroke.png"; - min: 38 38; - max: 38 38; - fixed: 1 1; - color: 255 255 255 255; - } - description { state: "over" 0.0; - inherit: "clicked" 0.0; - } - description { state: "disabled" 0.0; - inherit: "default" 0.0; - } - description { state: "focus" 0.0; - inherit: "default" 0.0; - color_class: "open_ux_theme"; - } - description { state: "clicked" 0.0; - inherit: "focus" 0.0; - color_class: "open_ux_theme"; - } - } - - } - programs { - program { name: "Focus"; - signal: "elm,action,focus"; source: "elm"; - action: STATE_SET "focus" 0.0; - target: "knob"; - } - program { name: "Unfocus"; - signal: "elm,action,unfocus"; source: "elm"; - action: STATE_SET "default" 0.0; - target: "knob"; - } - } -} diff --git a/ElmSharp/theme/tv/widgets/spinner.edc b/ElmSharp/theme/tv/widgets/spinner.edc deleted file mode 100644 index 13ca545..0000000 --- a/ElmSharp/theme/tv/widgets/spinner.edc +++ /dev/null @@ -1,990 +0,0 @@ -/* - * Copyright (c) 2010 Samsung Electronics Co., Ltd All Rights Reserved - * - * BSD 2-Clause License (http://www.opensource.org/licenses/bsd-license.php) - * - * Redistribution and use in source and binary forms, with or without - * modification, are permitted provided that the following conditions are met: - * - * 1. Redistributions of source code must retain the above copyright notice, this - * list of conditions and the following disclaimer. - * 2. Redistributions in binary form must reproduce the above copyright notice, - * this list of conditions and the following disclaimer in the documentation - * and/or other materials provided with the distribution. - * - * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND - * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED - * WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE - * DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR - * ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES - * (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; - * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND - * ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT - * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS - * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. - */ - -/************************************************************************* -Doc: Tizen TV_General Guide_GUI Guideline_v1.0_140709.ppt page:93 -**************************************************************************/ -/* -group { name: "elm/spinner/base/default"; - alias: "elm/spinner/base/horizontal"; - parts { - part { name: "bg"; - type: RECT; - scale: 1; - description { state: "default" 0.0; - color_class: "spinner/default/bg"; - } - } - part { name: "access"; - type: RECT; - repeat_events: 1; - description { state: "default" 0.0; - fixed: 1 1; - color: 0 0 0 0; - rel1.to: "bg"; - rel2.to: "bg"; - visible: 1; - } - description { state: "active" 0.0; - inherit: "default" 0.0; - visible: 0; - } - } - part { name: "elm.swallow.inc_button"; - type: SWALLOW; - scale: 1; - description { state: "default" 0.0; - align: 1.0 0.5; - min: 64 90; - max: 64 90; - } - } - part { name: "elm.swallow.dec_button"; - type: SWALLOW; - scale: 1; - description { state: "default" 0.0; - align: 0.0 0.5; - min: 64 90; - max: 64 90; - } - } - part { name: "elm.swallow.text_button"; - type: SWALLOW; - scale: 1; - description { state: "default" 0.0; - visible: 1; - min: 0 146; - max: -1 146; - rel1 { - to_x: "elm.swallow.dec_button"; - relative: 1.0 0.0; - } - rel2 { - to_x: "elm.swallow.inc_button"; - relative: 0.0 1.0; - } - } - description { state: "active" 0.0; - inherit: "default" 0.0; - visible: 0; - } - } - part { name: "elm.swallow.entry"; - type: SWALLOW; - scale: 1; - description { state: "default" 0.0; - visible: 0; - rel1.to: "elm.swallow.text_button"; - rel2.to: "elm.swallow.text_button"; - min: 0 146; - max: -1 146; - fixed: 1 1; - } - description { state: "active" 0.0; - inherit: "default" 0.0; - visible: 1; - } - } - part { name: "disabler"; - type: RECT; - description { state: "default" 0.0; - color: 0 0 0 0; - visible: 0; - } - description { state: "disabled" 0.0; - inherit: "default" 0.0; - visible: 1; - } - } - } - programs { - program { name: "entry_active"; - signal: "elm,state,entry,active"; - source: "elm"; - action: STATE_SET "active" 0.0; - //target: "elm.swallow.text_button"; - target: "elm.swallow.entry"; - } - program { name: "entry_inactive"; - signal: "elm,state,entry,inactive"; - source: "elm"; - action: STATE_SET "default" 0.0; - //target: "elm.swallow.text_button"; - target: "elm.swallow.entry"; - } - program { name: "text_button_active"; - signal: "elm,state,button,active"; - source: "elm"; - action: STATE_SET "default" 0.0; - target: "elm.swallow.text_button"; - } - program { name: "text_button_inactive"; - signal: "elm,state,button,inactive"; - source: "elm"; - action: STATE_SET "inactive" 0.0; - target: "elm.swallow.text_button"; - } - program { name: "access_activate"; - signal: "elm,state,access,active"; - source: "elm"; - action: STATE_SET "default" 0.0; - target: "access"; - } - program { name: "access_inactivate"; - signal: "elm,state,access,inactive"; - source: "elm"; - action: STATE_SET "active" 0.0; - target: "access"; - } - program { name: "disable"; - signal: "elm,state,disabled"; - source: "elm"; - action: STATE_SET "disabled" 0.0; - target: "disabler"; - } - program { name: "enable"; - signal: "elm,state,enabled"; - source: "elm"; - action: STATE_SET "default" 0.0; - target: "disabler"; - } - } -} -*/ - -group { name: "elm/spinner/base/vertical"; - parts { - part { name: "bg"; - type: RECT; - scale: 1; - description { state: "default" 0.0; - min: 146 348; - color_class: "spinner/vertical/bg"; - } - } - part { name: "access"; - type: RECT; - repeat_events: 1; - description { state: "default" 0.0; - fixed: 1 1; - color: 0 0 0 0; - rel1.to: "bg"; - rel2.to: "bg"; - visible: 1; - } - description { state: "active" 0.0; - inherit: "default" 0.0; - visible: 0; - } - } - part { name: "elm.swallow.inc_button"; - type: SWALLOW; - scale: 1; - description { state: "default" 0.0; - align: 0.5 0.0; - min: 146 80; - max: 146 80; - } - } - part { name: "elm.swallow.dec_button"; - type: SWALLOW; - scale: 1; - description { state: "default" 0.0; - align: 0.5 1.0; - min: 146 80; - max: 146 80; - } - } - part { name: "elm.swallow.text_button"; - type: SWALLOW; - scale: 1; - description { state: "default" 0.0; - visible: 1; - min: 0 146; - max: -1 146; - } - description { state: "inactive" 0.0; - inherit: "default" 0.0; - visible: 0; - } - } - part { name: "elm.swallow.entry"; - type: SWALLOW; - description { state: "default" 0.0; - visible: 0; - rel1.to: "elm.swallow.text_button"; - rel2.to: "elm.swallow.text_button"; - min: 0 146; - max: -1 146; - fixed: 1 1; - } - description { state: "active" 0.0; - inherit: "default" 0.0; - visible: 1; - } - } - part { name: "disabler"; - type: RECT; - description { state: "default" 0.0; - color: 0 0 0 0; - visible: 0; - } - description { state: "disabled" 0.0; - inherit: "default" 0.0; - visible: 1; - } - } - } - programs { - program { name: "entry_active"; - signal: "elm,state,entry,active"; - source: "elm"; - action: STATE_SET "active" 0.0; - target: "elm.swallow.entry"; - } - program { name: "entry_inactive"; - signal: "elm,state,entry,inactive"; - source: "elm"; - action: STATE_SET "default" 0.0; - target: "elm.swallow.entry"; - } - program { name: "text_button_active"; - signal: "elm,state,button,active"; - source: "elm"; - action: STATE_SET "default" 0.0; - target: "elm.swallow.text_button"; - } - program { name: "text_button_inactive"; - signal: "elm,state,button,inactive"; - source: "elm"; - action: STATE_SET "inactive" 0.0; - target: "elm.swallow.text_button"; - } - program { name: "access_activate"; - signal: "elm,state,access,active"; - source: "elm"; - action: STATE_SET "default" 0.0; - target: "access"; - } - program { name: "access_inactivate"; - signal: "elm,state,access,inactive"; - source: "elm"; - action: STATE_SET "active" 0.0; - target: "access"; - } - program { name: "disable"; - signal: "elm,state,disabled"; - source: "elm"; - action: STATE_SET "disabled" 0.0; - target: "disabler"; - } - program { name: "enable"; - signal: "elm,state,enabled"; - source: "elm"; - action: STATE_SET "default" 0.0; - target: "disabler"; - } - } -} - -group { name: "elm/spinner/base/vertical_date_picker"; - inherit: "elm/spinner/base/vertical"; - parts { - part { name: "bg"; - type: RECT; - scale: 1; - description { state: "default" 0.0; - min: 158 262; - color: 250 250 250 255; - } - } - } -} - - - - group { "elm/button/event/spinner"; - inherit_only: 1; - parts { - rect { "event"; - mouse; - desc { "default"; - color: 0 0 0 0; - rel.to: "base"; - } - desc { "disabled"; - inherit: "default"; - hid; - } - } - } - programs { - /* Program for pressed event */ - program { "pressed"; - signal: "mouse,down,1*"; - source: "event"; - action: SIGNAL_EMIT "elm,action,press" ""; - after: "on_pressed"; - } - /* Program for unpressed event */ - program { "unpressed"; - signal: "mouse,up,1*"; - source: "event"; - action: SIGNAL_EMIT "elm,action,unpress" ""; - after: "on_unpressed"; - } - /* Program for clicked event */ - program { "clicked"; - signal: "mouse,clicked,1"; - source: "event"; - action: SIGNAL_EMIT "elm,action,click" ""; - after: "on_clicked"; - } - /* Program for enabled event */ - program { "enabled"; - signal: "elm,state,enabled"; - source: "elm"; - action: STATE_SET "default"; - target: "event"; - after: "on_enabled"; - } - /* Program for disabled event */ - program { "disabled"; - signal: "elm,state,disabled"; - source: "elm"; - action: STATE_SET "disabled"; - target: "event"; - after: "on_disabled"; - } - program { "enable_event_pass"; - signal: "elm,event,pass,enabled"; - source: "elm"; - script { - set_mouse_events(PART:"event", 0); - } - } - program { "disable_event_pass"; - signal: "elm,event,pass,disabled"; - source:"elm"; - script { - set_mouse_events(PART:"event", 1); - } - } - program { "enable_event_repeat"; - signal: "elm,event,repeat,enabled"; - source: "elm"; - script { - set_repeat_events(PART:"event", 1); - } - } - program { "disable_event_repeat"; - signal: "elm,event,repeat,disabled"; - source:"elm"; - script { - set_repeat_events(PART:"event", 0); - } - } - } - } - - -group { "elm/button/base/spinner/increase/template"; - alias: "elm/button/base/spinner/decrease/template"; - inherit_only: 1; - nomouse; - parts { - spacer { "base"; - desc { "default"; - } - } - image { "icon"; - desc { "default"; - rel.to: "base"; - } - } - spacer { "focus_image"; - desc { "default"; - rel.to: "base"; - } - } - } - inherit: "elm/button/event/spinner"; - programs { - /* Program for pressed effect */ - program { "on_pressed"; - } - /* Program for unpressed effect */ - program { "on_unpressed"; - } - /* Program for clicked effect */ - program { "on_clicked"; - } - /* Program for disabled effect */ - program { "on_disabled"; - } - /* Program for enabled effect */ - program { "on_enabled"; - } - program { "enable_pass_event"; - signal: "elm,event,pass,enabled"; - source: "elm"; - script { - set_mouse_events(PART:"event", 0); - } - } - program { "disable_pass_event"; - signal: "elm,event,pass,disabled"; - source: "elm"; - script { - set_mouse_events(PART:"event", 1); - } - } - program { "enable_repeat_event"; - signal: "elm,event,repeat,enabled"; - source: "elm"; - script { - set_repeat_events(PART:"event", 1); - } - } - program { "disable_repeat_event"; - signal: "elm,event,repeat,disabled"; - source: "elm"; - script { - set_repeat_events(PART:"event", 0); - } - } - } -} - -group { "elm/button/base/spinner/template"; - inherit_only: 1; - parts { - spacer { "base"; - desc { "default"; - } - } - text { "elm.text"; - desc { "default"; - rel.to: "base"; - } - } - spacer { "focus_image"; - desc { "default"; - rel.to: "base"; - } - } - } - inherit: "elm/button/event/spinner"; - programs { - /* Program for pressed effect */ - program { "on_pressed"; - } - /* Program for unpressed effect */ - program { "on_unpressed"; - } - /* Program for clicked effect */ - program { "on_clicked"; - } - /* Program for disabled effect */ - program { "on_disabled"; - } - /* Program for enabled effect */ - program { "on_enabled"; - } - program { "enable_pass_event"; - signal: "elm,event,pass,enabled"; - source: "elm"; - script { - set_mouse_events(PART:"event", 0); - } - } - program { "disable_pass_event"; - signal: "elm,event,pass,disabled"; - source: "elm"; - script { - set_mouse_events(PART:"event", 1); - } - } - program { "enable_repeat_event"; - signal: "elm,event,repeat,enabled"; - source: "elm"; - script { - set_repeat_events(PART:"event", 1); - } - } - program { "disable_repeat_event"; - signal: "elm,event,repeat,disabled"; - source: "elm"; - script { - set_repeat_events(PART:"event", 0); - } - } - } -} - -#define BUTTON_SPINNER_BG_EFFECT_PARTS(corner_size, ratio, sizer_bg_effect, clipper_bg_effect, top_left, top_right, mid, bottom_left, bottom_right) \ - vector { "bg_effect_top_left"; \ - clip: clipper_bg_effect; \ - desc { "default"; \ - align: 0.0 0.0; \ - max: corner_size*ratio corner_size*ratio; \ - rel.to: sizer_bg_effect; \ - rel1.relative: 0.0 0.0; \ - rel2.relative: 0.5 0.5; \ - image.normal: top_left; \ - } \ - desc { "pressed"; \ - inherit: "default"; \ - max: corner_size corner_size; \ - } \ - } \ - vector { "bg_effect_top_right"; \ - clip: clipper_bg_effect; \ - desc { "default"; \ - align: 1.0 0.0; \ - max: corner_size*ratio corner_size*ratio; \ - rel.to: sizer_bg_effect; \ - rel1.relative: 0.5 0.0; \ - rel2.relative: 1.0 0.5; \ - image.normal: top_right; \ - } \ - desc { "pressed"; \ - inherit: "default"; \ - max: corner_size corner_size; \ - } \ - } \ - vector { "bg_effect_top_mid"; \ - clip: clipper_bg_effect; \ - desc { "default"; \ - rel1.to: "bg_effect_top_left"; \ - rel1.relative: 1.0 0.0; \ - rel2.to: "bg_effect_top_right"; \ - rel2.relative: 0.0 1.0; \ - image.normal: mid; \ - } \ - } \ - vector { "bg_effect_mid"; \ - clip: clipper_bg_effect; \ - desc { "default"; \ - rel1.to: "bg_effect_top_left"; \ - rel1.relative: 0.0 1.0; \ - rel2.to: "bg_effect_bottom_right"; \ - rel2.relative: 1.0 0.0; \ - image.normal: mid; \ - } \ - } \ - vector { "bg_effect_bottom_left"; \ - clip: clipper_bg_effect; \ - desc { "default"; \ - align: 0.0 1.0; \ - max: corner_size*ratio corner_size*ratio; \ - rel.to: sizer_bg_effect; \ - rel1.relative: 0.0 0.5; \ - rel2.relative: 0.5 1.0; \ - image.normal: bottom_left; \ - } \ - desc { "pressed"; \ - inherit: "default"; \ - max: corner_size corner_size; \ - } \ - } \ - vector { "bg_effect_bottom_right"; \ - clip: clipper_bg_effect; \ - desc { "default"; \ - align: 1.0 1.0; \ - max: corner_size*ratio corner_size*ratio; \ - rel.to: sizer_bg_effect; \ - rel1.relative: 0.5 0.5; \ - rel2.relative: 1.0 1.0; \ - image.normal: bottom_right; \ - } \ - desc { "pressed"; \ - inherit: "default"; \ - max: corner_size corner_size; \ - } \ - } \ - vector { "bg_effect_bottom_mid"; \ - clip: clipper_bg_effect; \ - desc { "default"; \ - rel1.to: "bg_effect_bottom_left"; \ - rel1.relative: 1.0 0.0; \ - rel2.to: "bg_effect_bottom_right"; \ - rel2.relative: 0.0 1.0; \ - image.normal: mid; \ - } \ - } - -group { name: "elm/button/base/spinner/increase/default"; - alias: "elm/button/base/spinner/increase/horizontal"; - inherit: "elm/button/base/spinner/increase/template"; - //data.item: "focus_highlight" "on"; // We need to set data item after applying focus_image properly. - target_group: "bg_effect_group" "bg_effect_top_left" "bg_effect_top_right" "bg_effect_bottom_left" "bg_effect_bottom_right"; - images { - vector: "core_press_top_left.svg"; - vector: "core_press_top_right.svg"; - vector: "core_press_bottom_left.svg"; - vector: "core_press_bottom_right.svg"; - vector: "core_press_center.svg"; - image: "core_icon_picker_arrow_right.png" COMP; - } - script { - public disabled = 0; - public animate = 0; - } - parts { - //Effect Shape Part - spacer { "sizer_bg_effect"; - scale; - desc { "default"; - rel.to: "base"; - rel1.relative: 0.5 0.5; - rel2.relative: 0.5 0.5; - min: SPINNER_LEFT_RIGHT_EFFECT_MIN_SIZE_INC; - fixed: 1 1; - } - desc { "pressed"; - inherit: "default"; - rel1.relative: 0.0 0.0; - rel2.relative: 1.0 1.0; - } - } - BUTTON_SPINNER_BG_EFFECT_PARTS(SPINNER_BUTTON_CORNER_RADIUS, - 0.7, - "sizer_bg_effect", - "clipper_bg_effect", - "core_press_top_left.svg", - "core_press_top_right.svg", - "core_press_center.svg", - "core_press_bottom_left.svg", - "core_press_bottom_right.svg") - - rect { "clipper_bg_effect"; - desc { "default"; - fixed: 1 1; - rel.to: "sizer_bg_effect"; - color: 255 255 255 0; - color_class: "spinner/default/effect_icon"; - } - desc { "pressed"; - inherit: "default"; - color: 255 255 255 255; - } - } - image { "icon"; - scale; - after: "clipper_bg_effect"; - desc { "default"; - image.normal: "core_icon_picker_arrow_right.png"; - rel.to: "base"; - min: SPINNER_LEFT_RIGHT_ARROW_IMAGE_SIZE_INC; - max: SPINNER_LEFT_RIGHT_ARROW_IMAGE_SIZE_INC; - fixed: 1 1; - color_class: "spinner/default/icon"; - } - desc { "pressed"; - inherit: "default"; - color_class: "spinner/default/icon_pressed"; - } - desc { "disabled"; - inherit: "default"; - color_class: "spinner/default/icon_disabled"; - } - } - spacer { "focus_image"; - after: "icon"; - scale: 1; - desc { "default"; - align: 0.5 0.0; - rel.to: "icon"; - } - desc { "focused"; - inherit: "default"; - } - } - rect { "event"; - after: "focus_image"; - mouse; - } - } - program_remove: "unpressed"; - program_remove: "clicked"; - programs { - program { "on_pressed"; - script { - if (get_int(disabled) == 0) { - stop_program(PROGRAM:"delay_effect_unpressed"); - set_int(animate, 1); - run_program(PROGRAM:"anim_effect_pressed"); - } - } - } - program { "anim_effect_pressed"; - action: STATE_SET "default"; - target: "sizer_bg_effect"; - target_groups: "bg_effect_group"; - - sequence { - action: STATE_SET "pressed"; - target: "sizer_bg_effect"; - target: "clipper_bg_effect"; - target: "icon"; - target_groups: "bg_effect_group"; - transition: GLIDE_EASE_OUT(0.15); - - script { - set_int(animate, 0); - } - } - } - program { "unpressed"; - signal: "mouse,up,1"; - source: "event"; - script { - if (get_int(disabled) == 0) { - if (get_int(animate) == 0) { - run_program(PROGRAM:"anim_effect_unpressed"); - } else { - run_program(PROGRAM:"set_effect_pressed"); - } - emit("elm,action,unpress", ""); - } - } - } - program { "set_effect_pressed"; - action: STATE_SET "pressed"; - target_groups: "bg_effect_group"; - target: "sizer_bg_effect"; - target: "clipper_bg_effect"; - target: "icon"; - after: "delay_effect_unpressed"; - } - program { "delay_effect_unpressed"; - in: 0.1 0.0; - after: "anim_effect_unpressed"; - } - program { "anim_effect_unpressed"; - script { - if (get_int(disabled) == 0) { - run_program(PROGRAM:"anim_effect_unpressed2"); - } else { - run_program(PROGRAM:"anim_effect_disabled"); - } - run_program(PROGRAM:"anim_effect_unpressed3"); - } - } - program { "anim_effect_unpressed2"; - action: STATE_SET "default"; - target: "icon"; - transition: GLIDE_EASE_OUT(0.45); - } - program { "anim_effect_disabled"; - action: STATE_SET "disabled"; - target: "icon"; - transition: GLIDE_EASE_OUT(0.45); - } - program { "anim_effect_unpressed3"; - action: STATE_SET "default"; - target: "clipper_bg_effect"; - transition: GLIDE_EASE_OUT(0.45); - - sequence { - action: STATE_SET "default"; - target: "sizer_bg_effect"; - } - } - program { "clicked"; - signal: "mouse,clicked,1"; - source: "event"; - script { - if (get_int(disabled) == 0) { - run_program(PROGRAM:"play_sound"); - run_program(PROGRAM:"clicked_signal"); - } - } - } - program { "play_sound"; - action: RUN_PLUGIN "touch_sound"; - } - program { "clicked_signal"; - in: 0.001 0.0; - action: SIGNAL_EMIT "elm,action,click" ""; - } - program { "action_focus"; - signal: "elm,action,focus_highlight,show"; - source: "elm"; - action: STATE_SET "focused"; - target: "focus_image"; - } - program { "action_unfocus"; - signal: "elm,action,focus_highlight,hide"; - source: "elm"; - action: STATE_SET "default"; - target: "focus_image"; - } - program { "access_pressed"; - signal: "elm,action,anim,activate"; - source: "elm"; - after: "set_effect_pressed"; - } - program { "on_disabled"; - script { - set_int(disabled, 1); - if (get_int(animate) == 1) return; - set_state(PART:"icon", "disabled", 0.0); - } - } - program { "on_enabled"; - script { - set_int(disabled, 0); - set_state(PART:"icon", "default", 0.0); - } - } - } -} - -group { name: "elm/button/base/spinner/decrease/horizontal"; - alias: "elm/button/base/spinner/decrease/default"; - inherit: "elm/button/base/spinner/increase/default"; - images { - vector: "core_press_top_left.svg"; - vector: "core_press_top_right.svg"; - vector: "core_press_bottom_left.svg"; - vector: "core_press_bottom_right.svg"; - vector: "core_press_center.svg"; - image: "core_icon_picker_arrow_left.png" COMP; - } - parts { - image { "icon"; - desc { "default"; - image.normal: "core_icon_picker_arrow_left.png"; - color_class: "spinner/default/icon"; - } - desc { "pressed"; - inherit: "default"; - color_class: "spinner/default/icon_pressed"; - } - desc { "disabled"; - inherit: "default"; - color_class: "spinner/default/icon_disabled"; - } - } - } -} - -group { name: "elm/button/base/spinner/default"; - alias: "elm/button/base/spinner/horizontal"; - inherit: "elm/button/base/spinner/template"; - //data.item: "focus_highlight" "on"; // We need to set data item after applying focus_image properly. - script { - public editabled = 0; - } - parts { - text { "elm.text"; - scale; - desc { "default"; - min: 0 SPINNER_TEXT_HEIGHT_INC; - max: -1 SPINNER_TEXT_HEIGHT_INC; - fixed: 0 1; - rel.to: "base"; - text { - font: "Tizen:weight=Light"; - size: 106; - text_class: "tizen"; - } - color_class:"spinner/default/text"; - } - desc { "pressed"; - inherit: "default"; - color_class:"spinner/default/text_pressed"; - } - desc { "disabled"; - inherit: "default"; - color_class:"spinner/default/text_disabled"; - } - } - spacer { "focus_image"; - scale; - desc { "default"; - rel.to: "base"; - } - desc { "focused"; - inherit: "default"; - } - } - } - programs { - program { "on_pressed"; - action: STATE_SET "pressed"; - target: "elm.text"; - } - program { "on_unpressed"; - action: STATE_SET "default"; - target: "elm.text"; - } - program { "on_clicked"; - script { - if (get_int(editabled) == 1) { - run_program(PROGRAM:"play_sound"); - } - } - } - program { "play_sound"; - action: RUN_PLUGIN "touch_sound"; - } - program { "on_disabled"; - action: STATE_SET "disabled"; - target: "elm.text"; - } - program { "on_enabled"; - action: STATE_SET "default"; - target: "elm.text"; - } - program { "action_focus"; - signal: "elm,action,focus_highlight,show"; - source: "elm"; - action: STATE_SET "focused"; - target: "focus_image"; - } - program { "action_unfocus"; - signal: "elm,action,focus_highlight,hide"; - source: "elm"; - action: STATE_SET "default"; - target: "focus_image"; - } - program { "on_editable_entry"; - script { - set_int(editabled, 1); - } - } - program { "on_uneditable_entry"; - script { - set_int(editabled, 0); - } - } - } -} - - diff --git a/ElmSharp/theme/tv/widgets/toolbar.edc b/ElmSharp/theme/tv/widgets/toolbar.edc deleted file mode 100644 index 09b1635..0000000 --- a/ElmSharp/theme/tv/widgets/toolbar.edc +++ /dev/null @@ -1,2987 +0,0 @@ -group { "elm/toolbar/item/event/default"; - inherit_only: 1; - parts { - rect { "event"; - mouse; - desc { "default"; - rel.to: "base"; - color: 0 0 0 0; - } - } - } - programs { - /* Program for selected event */ - program { "selected"; - signal: "elm,state,selected"; - source: "elm"; - after: "on_selected"; - } - /* Program for unselected event */ - program { "unselected"; - signal: "elm,state,unselected"; - source: "elm"; - after: "on_unselected"; - } - /* Program for pressed event */ - program { "pressed"; - signal: "mouse,down,1"; - source: "event"; - after: "on_pressed"; - } - program { "pressed_key"; - signal: "elm,action,pressed"; - source: "elm"; - after: "on_pressed_key"; - } - /* Program for unpressed event */ - program { "unpressed"; - signal: "mouse,up,1"; - source: "event"; - after: "on_unpressed"; - } - program { "unpressed_key"; - signal: "elm,action,unpressed"; - source: "elm"; - after: "on_unpressed_key"; - } - /* Program for clicked event */ - program { "clicked"; - signal: "mouse,clicked,1"; - source: "event"; - after: "on_clicked"; - } - /* Program for mouse_in event */ - program { "mouse_in"; - signal: "mouse,in"; - source: "event"; - after: "on_mouse_in"; - } - /* Program for mouse_out event */ - program { "mouse_out"; - signal: "mouse,out"; - source: "event"; - after: "on_mouse_out"; - } - /* Program for enabled event */ - program { "enabled"; - signal: "elm,state,enabled"; - source: "elm"; - after: "on_enabled"; - } - /* Program for disabled event */ - program { "diabled"; - signal: "elm,state,disabled"; - source: "elm"; - after: "on_disabled"; - } - /* Program for multi_down event */ - program { "multi_down"; - signal: "elm,action,multi,down"; - source: "elm"; - after: "on_multi_down"; - } - /* Program for multi_cancel event */ - program { "multi_cancel"; - signal: "elm,action,multi,cancel"; - source: "elm"; - after: "on_multi_cancel"; - } - /* Program for visible_text event */ - program { "visible_text"; - signal: "elm,state,text,visible"; - source: "elm"; - after: "on_visible_text"; - } - /* Program for hidden_text event */ - program { "hidden_text"; - signal: "elm,state,text,hidden"; - source: "elm"; - after: "on_hidden_text"; - } - /* Program for visible_icon event */ - program { "visible_icon"; - signal: "elm,state,icon,visible"; - source: "elm"; - after: "on_visible_icon"; - } - /* Program for hidden_icon event */ - program { "hidden_icon"; - signal: "elm,state,icon,hidden"; - source: "elm"; - after: "on_hidden_icon"; - } - /* Program for tab_number_item event */ - program { "tab_number_item"; - signal: "elm,number,item,*"; - source: "elm"; - after: "on_tab_number_item"; - } - /* Program for landscape_mode event */ - program { "orient_90"; - source: "elm"; - signal: "elm,state,orient,90"; - after: "on_orient_90"; - } - program { "orient_270"; - source: "elm"; - signal: "elm,state,orient,270"; - after: "on_orient_270"; - } - /* Program for portrait_mode event */ - program { "orient_0"; - source: "elm"; - signal: "elm,state,orient,0"; - after: "on_orient_0"; - } - program { "orient_180"; - source: "elm"; - signal: "elm,state,orient,180"; - after: "on_orient_180"; - } - /* Program for shrink_scroll event */ - program { "shrink_scroll"; - signal: "elm,state,shrink,scroll"; - source: "elm"; - after: "on_shrink_scroll"; - } - /* Program for disabled event */ - program { "shrink_expand"; - signal: "elm,state,shrink,expand"; - source: "elm"; - after: "on_shrink_expand"; - } - program { "shrink_menu"; - signal: "elm,state,shrink,menu"; - source: "elm"; - after: "on_shrink_menu"; - } - program { "shrink_hide"; - signal: "elm,state,shrink,hide"; - source: "elm"; - after: "on_shrink_hide"; - } - program { "shrink_default"; - signal: "elm,state,shrink,default"; - source: "elm"; - after: "on_shrink_default"; - } - /* Program for order_item_default event */ - program { name: "order_item_default"; - signal: "elm,order,default,item"; - source: "elm"; - after: "on_order_item_default"; - } - /* Program for order_item_first event */ - program { name: "order_item_first"; - signal: "elm,order,first,item"; - source: "elm"; - after: "on_order_item_first"; - } - /* Program for order_item_last event */ - program { name: "order_item_last"; - signal: "elm,order,last,item"; - source: "elm"; - after: "on_order_item_last"; - } - } -} - -group { "elm/toolbar/base/template"; - inherit_only: 1; - parts { - /* base part for toolbar */ - spacer { "base"; - desc { "default"; - } - } - rect { "bg_base"; - nomouse; - desc { "default"; - rel.to: "base"; -// color: 61 185 204 255; // background color for toolbar - } - } - /* default swallow icon part */ - swallow { "elm.swallow.content"; - desc { "default"; - rel.to: "base"; - } - } - } -} - -group { "elm/toolbar/item/template"; - inherit_only: 1; - parts { - /* base part for toolbar item */ - spacer { "base"; - desc { "default"; - } - } - rect { "bg_base"; - nomouse; - desc { "default"; - rel.to: "base"; -// color: 61 185 204 255; // background color for toolbar item - } - } - /* default icon part */ - swallow { "elm.swallow.icon"; - desc { "default"; - rel.to: "base"; - } - } - /* default text part */ - textblock { "elm.text"; - desc { "default"; - rel.to: "base"; - } - } - /* default badge part */ - swallow { "elm.swallow.badge"; - desc { "default"; - rel.to: "base"; - } - } - } - programs { - /* program for selected effect*/ - program { "on_selected"; - } - /* program for unselected effect*/ - program { "on_unselected"; - } - /* program for pressed_key effect*/ - program { "on_pressed_key"; - } - /* program for pressed effect*/ - program { "on_pressed"; - } - /* program for unpressed_key effect*/ - program { "on_unpressed_key"; - } - /* program for unpressed effect*/ - program { "on_unpressed"; - } - /* program for clicked effect*/ - program { "on_clicked"; - } - /* program for enabled effect*/ - program { "on_enabled"; - } - /* program for disabled effect*/ - program { "on_disabled"; - } - } -} - -#define ITEM_STATE_ENABLED 0 -#define ITEM_STATE_DISABLED 1 -#define TAG \ - tag: "br" "\n"; \ - tag: "ps" "ps"; \ - tag: "hilight" "+ font_weight=Bold"; \ - tag: "b" "+ font_weight=Bold"; \ - tag: "tab" "\t"; - -styles { - style { name: "tabbar_textblock_style"; - base: "color=#FFF color_class=toolbar_item/default/text font=Tizen:weight=Normal:width=Condensed font_size=38 align=center wrap=none ellipsis=1 text_class=tizen"; - TAG - } - style { name: "tabbar_textblock_pressed_style"; - base: "color=#FFF color_class=toolbar_item/default/text_pressed font=Tizen:weight=Normal:width=Condensed font_size=38 align=center wrap=none ellipsis=1 text_class=tizen"; - TAG - } - style { name: "tabbar_textblock_selected_style"; - base: "color=#FFF color_class=toolbar_item/default/text_selected font=Tizen:weight=Normal:width=Condensed font_size=38 align=center wrap=none ellipsis=1 text_class=tizen"; - TAG - } - style { name: "tabbar_textblock_selected_slide_style"; - base: "color=#FFF color_class=toolbar_item/default/text_selected font=Tizen:weight=Normal:width=Condensed font_size=38 align=left wrap=none text_class=tizen"; - TAG - } - style { name: "tabbar_textblock_disabled_style"; - base: "color=#FFF color_class=toolbar_item/default/text_disabled font=Tizen:weight=Normal:width=Condensed font_size=38 align=center wrap=none ellipsis=1 text_class=tizen"; - TAG - } - style { name: "tabbar_icon_textblock_style"; - base: "color=#FFF color_class=toolbar_item/default/text_under_icon font=Tizen:weight=Normal:width=Condensed font_size=30 align=center wrap=none ellipsis=1 text_class=tizen"; - TAG - } - style { name: "tabbar_icon_textblock_pressed_style"; - base: "color=#FFF color_class=toolbar_item/default/text_under_icon_pressed font=Tizen:weight=Normal:width=Condensed font_size=30 align=center wrap=none ellipsis=1 text_class=tizen"; - TAG - } - style { name: "tabbar_icon_textblock_selected_style"; - base: "color=#FFF color_class=toolbar_item/default/text_under_icon_selected font=Tizen:weight=Normal:width=Condensed font_size=30 align=center wrap=none ellipsis=1 text_class=tizen"; - TAG - } - style { name: "tabbar_icon_textblock_selected_slide_style"; - base: "color=#FFF color_class=toolbar_item/default/text_under_icon_selected font=Tizen:weight=Normal:width=Condensed font_size=30 align=left wrap=none text_class=tizen"; - TAG - } - style { name: "tabbar_icon_textblock_disabled_style"; - base: "color=#FFF color_class=toolbar_item/default/text_under_icon_disabled font=Tizen:weight=Normal:=Condensed font_size=30 align=center wrap=none ellipsis=1 text_class=tizen"; - TAG - } - style { name: "tabbar_with_title_textblock_style"; - base: "color=#FFF color_class=toolbar_item/tabbar_with_title/text font=Tizen:weight=Normal:width=Condensed font_size=38 align=center wrap=none ellipsis=1 text_class=tizen"; - TAG - } - style { name: "tabbar_with_title_textblock_pressed_style"; - base: "color=#FFF color_class=toolbar_item/tabbar_with_title/text_pressed font=Tizen:weight=Normal:width=Condensed font_size=38 align=center wrap=none ellipsis=1 text_class=tizen"; - TAG - } - style { name: "tabbar_with_title_textblock_selected_style"; - base: "color=#FFF color_class=toolbar_item/tabbar_with_title/text_selected font=Tizen:weight=Normal:width=Condensed font_size=38 align=center wrap=none ellipsis=1 text_class=tizen"; - TAG - } - style { name: "tabbar_with_title_textblock_selected_slide_style"; - base: "color=#FFF color_class=toolbar_item/tabbar_with_title/text_selected font=Tizen:weight=Normal:width=Condensed font_size=38 align=left wrap=none text_class=tizen"; - TAG - } - style { name: "tabbar_with_title_textblock_disabled_style"; - base: "color=#FFF color_class=toolbar_item/tabbar_with_title/text_disabled font=Tizen:weight=Normal:width=Condensed font_size=38 align=center wrap=none ellipsis=1 text_class=tizen"; - TAG - } - style { name: "tabbar_navigationbar_textblock_style"; - base: "color=#FFF color_class=toolbar_item/navigationbar/text font=Tizen:weight=Normal font_size=32 align=center wrap=none text_class=tizen"; - TAG - } - style { name: "tabbar_navigationbar_textblock_pressed_style"; - base: "color=#FFF color_class=toolbar_item/navigationbar/text_pressed font=Tizen:weight=Normal font_size=32 align=center wrap=none text_class=tizen"; - TAG - } - style { name: "tabbar_navigationbar_textblock_disabled_style"; - base: "color=#FFF color_class=toolbar_item/navigationbar/text_disabled font=Tizen:weight=Normal font_size=32 align=center wrap=none text_class=tizen"; - TAG - } - style { name: "tabbar_navigationbar_textblock_selected_style"; - base: "color=#FFF color_class=toolbar_item/navigationbar/text_selected font=Tizen:weight=Normal font_size=32 align=center wrap=none text_class=tizen"; - TAG - } - style { name: "tabbar_light_view_textblock_style"; - base: "color=#FFF color_class=toolbar_item/light_view/text font=Tizen:width=Condensed font_size=32 align=center wrap=none ellipsis=1 text_class=tizen"; - TAG - } - style { name: "tabbar_light_view_textblock_pressed_style"; - base: "color=#FFF color_class=toolbar_item/light_view/text_pressed font=Tizen:width=Condensed font_size=32 align=center wrap=none ellipsis=1 text_class=tizen"; - TAG - } - style { name: "tabbar_light_view_textblock_selected_style"; - base: "color=#FFF color_class=toolbar_item/light_view/text_selected font=Tizen:width=Condensed font_size=32 align=center wrap=none ellipsis=1 text_class=tizen"; - TAG - } - style { name: "tabbar_light_view_textblock_selected_slide_style"; - base: "color=#FFF color_class=toolbar_item/light_view/text_selected font=Tizen:width=Condensed font_size=32 align=center wrap=none text_class=tizen"; - TAG - } - style { name: "tabbar_light_view_textblock_disabled_style"; - base: "color=#FFF color_class=toolbar_item/light_view/text_disabled font=Tizen:width=Condensed font_size=32 align=center wrap=none ellipsis=1 text_class=tizen"; - TAG - } -} - -group { "elm/toolbar/base/default"; - alias: "elm/toolbar/base/tabbar"; - nomouse; - parts { - spacer { "base"; - scale; - desc { "default"; - } - } - rect { "bg_base"; - scale; - desc { "default"; - rel1.to: "base"; - rel2.to: "base"; - rel2.offset: -1 -1; - color_class: "toolbar/default/bg"; - } - } - rect { "clipper_elm.swallow.content"; - scale; - desc { "default"; - rel1.to: "base"; - rel2.to: "base"; - rel2.offset: -1 -1; - } - } - swallow { "elm.swallow.content"; - clip: "clipper_elm.swallow.content"; - scale; - mouse; - desc { "default"; - rel1.to: "base"; - rel2.to: "base"; - rel2.offset: -1 -1; - } - } - } -} - -group { "elm/toolbar/item/tabbar"; - alias: "elm/toolbar/item/default"; - images { - image: "core_tab_selectbar.#.png" COMP; - } - nomouse; - parts { - spacer { "base"; - scale; - desc { "default"; - } - } - rect { "bg_base"; - scale; - desc { "default"; - rel1.to: "base"; - rel2.to: "base"; - min: TABBAR_COMMON_DEFAULT_ITEM_SIZE_INC; - color_class: "toolbar_item/default/bg"; - } - desc { "land"; - inherit: "default"; - min: TABBAR_COMMON_LANDSCAPE_DEFAULT_ITEM_SIZE_INC; - } - desc { "scroll"; - inherit: "default"; - min: TABBAR_COMMON_SCROLL_ITEM_SIZE_INC; - } - desc { "land_scroll"; - inherit: "default"; - min: TABBAR_COMMON_LANDSCAPE_SCROLL_ITEM_SIZE_INC; - } - } - spacer { "padding_badge_top_right"; - scale; - desc { "default"; - min: TABBAR_COMMON_BADGE_TOP_RIGHT_PADDING_SIZE_INC; - align: 1.0 0.0; - fixed: 1 1; - rel1.to: "base"; - rel2.to: "base"; - rel1.relative: 1.0 0.0; - rel2.relative: 1.0 0.0; - } - } - swallow { "elm.swallow.badge"; - scale; - desc { "default"; - min: 50 50; - align: 1.0 0.0; - fixed: 1 1; - rel1.to: "padding_badge_top_right"; - rel2.to: "padding_badge_top_right"; - rel1.relative: 0.0 1.0; - rel2.relative: 0.0 1.0; - } - } - spacer { "padding_selected_line_top"; - scale; - desc { "default"; - rel1.to: "elm.text"; - rel2.to: "elm.text"; - rel1.relative: 0.0 1.0; - rel2.relative: 1.0 1.0; - fixed: 0 1; - min: TABBAR_COMMON_SELECTED_LINE_TOP_PADDING_SIZE_INC; - align: 0.5 0.0; - } - } - rect { "bg_cover"; - scale; - desc { "default"; - hid; - rel1.to: "base"; - rel2.to: "base"; - } - desc { "pressed"; - inherit: "default"; - vis; - color_class: "toolbar_item/default/effect"; - } - desc { "disabled"; - inherit: "default"; - hid; - } - } - image { "selected_line"; - scale; - desc { "default"; - rel1.to: "padding_selected_line_top"; - rel1.relative: 0.25 1.0; - rel2.to: "padding_selected_line_top"; - rel2.relative: 0.75 1.0; - image.normal: "core_tab_selectbar.#.png"; - fixed: 0 1; - align: 0.5 0.0; - min: 0 TABBAR_COMMON_SELECTED_LINE_HEIGHT_INC; - max: -1 TABBAR_COMMON_SELECTED_LINE_HEIGHT_INC; - color: 255 255 255 0; - color_class: "toolbar_item/default/underline"; - } - desc { "selected"; - inherit: "default"; - rel1.to: "padding_selected_line_top"; - rel1.relative: 0.0 1.0; - rel2.to: "padding_selected_line_top"; - rel2.relative: 1.0 1.0; - color: 255 255 255 255; - } - } - spacer { "padding_left_top"; - scale; - desc { "default"; - align: 0.0 0.0; - rel1.to: "base"; - rel2.to: "base"; - rel2.relative: 0.0 0.0; - min: 0 0; - fixed: 1 1; - } - desc { "padding_text"; - inherit: "default"; - min: TABBAR_DEFAULT_TEXT_LEFT_TOP_PADDING_SIZE_INC; - } - desc { "icon_text"; - inherit: "default"; - min: TABBAR_DEFAULT_ICON_TEXT_LEFT_TOP_PADDING_SIZE_INC; - } - desc { "icon_text_land"; - inherit: "default"; - min: TABBAR_DEFAULT_ICON_TEXT_LAND_LEFT_TOP_PADDING_SIZE_INC; - } - } - spacer { "padding_right_bottom"; - scale; - desc { "default"; - align: 1.0 1.0; - rel1.to: "base"; - rel2.to: "base"; - rel1.relative: 1.0 1.0; - min: 0 0; - fixed: 1 1; - } - desc { "padding_text"; - inherit: "default"; - min: TABBAR_DEFAULT_TEXT_RIGHT_BOTTOM_PADDING_SIZE_INC; - } - desc { "icon_text"; - inherit: "default"; - min: TABBAR_DEFAULT_ICON_TEXT_RIGHT_BOTTOM_PADDING_SIZE_INC; - } - desc { "icon_text_land"; - inherit: "default"; - min: TABBAR_DEFAULT_ICON_TEXT_LAND_RIGHT_BOTTOM_PADDING_SIZE_INC; - } - } - spacer { "padding_icon_bottom"; - scale; - desc { "default"; - min: TABBAR_DEFAULT_ICON_BOTTOM_PADDING_SIZE_INC; - fixed: 0 1; - align: 0.5 1.0; - rel1.to_y: "padding_right_bottom"; - rel1.relative: 0.0 0.0; - rel2.to_y: "padding_right_bottom"; - rel2.relative: 1.0 0.0; - } - } - swallow { "elm.swallow.icon"; - scale; - clip: "clipper_elm.swallow.icon"; - desc { "default"; - hid; - rel1.to: "base"; - rel2.to: "base"; - min: TABBAR_DEFAULT_ICON_SIZE_INC; - max: TABBAR_DEFAULT_ICON_SIZE_INC; - } - desc { "visible"; - inherit: "default"; - vis; - rel1.to: "padding_left_top"; - rel1.relative: 1.0 1.0; - rel2.to_x: "padding_right_bottom"; - rel2.to_y: "padding_icon_bottom"; - rel2.relative: 0.0 0.0; - } - desc { "visible_icon_only"; - inherit: "default"; - vis; - rel1.to: "padding_left_top"; - rel1.relative: 1.0 1.0; - rel2.to: "padding_right_bottom"; - rel2.relative: 0.0 0.0; - } - desc { "visible_land"; - inherit: "default"; - vis; - align: 1.0 0.5; - min: TABBAR_DEFAULT_ICON_LAND_SIZE_INC; - max: TABBAR_DEFAULT_ICON_LAND_SIZE_INC; - rel1 { - to_x: "padding_text_left"; - to_y: "elm.text"; - relative: 0.0 0.0; - } - rel2 { - to_x: "padding_text_left"; - to_y: "elm.text"; - relative: 0.0 1.0; - } - } - } - spacer { "padding_text_top"; - scale; - desc { "default"; - min: TABBAR_DEFAULT_TEXT_TOP_PADDING_SIZE_INC; - fixed: 0 1; - align: 0.5 0.0; - rel1.to_y: "padding_left_top"; - rel1.relative: 0.0 1.0; - rel2.to_y: "padding_left_top"; - rel2.relative: 1.0 1.0; - } - } - spacer { "padding_text_left"; - scale; - desc { "default"; - min: TABBAR_DEFAULT_TEXT_LEFT_PADDING_SIZE_INC; - fixed: 1 0; - align: 1.0 0.5; - rel1.to_x: "elm.text"; - rel1.relative: 0.0 0.0; - rel2.to_x: "elm.text"; - rel2.relative: 0.0 1.0; - } - } - textblock { "elm.text"; - scale; - clip: "clipper_elm.text"; - desc { "default"; - hid; - min: TABBAR_DEFAULT_TEXT_SIZE_INC; - max: TABBAR_DEFAULT_TEXT_SIZE_INC; - rel1.to: "padding_left_top"; - rel1.relative: 1.0 1.0; - rel2.to: "padding_right_bottom"; - rel2.relative: 0.0 0.0; - } - desc { "text_normal"; - inherit: "default"; - vis; - text { - style: "tabbar_textblock_style"; - min: 0 1; - max: 1 0; - } - } - desc { "text_pressed"; - inherit: "text_normal"; - text.style: "tabbar_textblock_pressed_style"; - } - desc { "text_selected"; - inherit: "text_normal"; - text.style: "tabbar_textblock_selected_style"; - } - desc { "text_disabled"; - inherit: "text_normal"; - text.style: "tabbar_textblock_disabled_style"; - } - desc { "icon_text"; - inherit: "default"; - min: TABBAR_DEFAULT_ICON_TEXT_SIZE_INC; - max: TABBAR_DEFAULT_ICON_TEXT_SIZE_INC; - vis; - rel1 { - to_x: "padding_left_top"; - to_y: "padding_text_top"; - relative: 1.0 1.0; - } - rel2 { - to: "padding_right_bottom"; - relative: 0.0 0.0; - } - text { - style: "tabbar_icon_textblock_style"; - min: 0 1; - max: 1 1; - } - } - desc { "icon_text_pressed"; - inherit: "icon_text"; - text.style: "tabbar_icon_textblock_pressed_style"; - } - desc { "icon_text_selected"; - inherit: "icon_text"; - text.style: "tabbar_icon_textblock_selected_style"; - } - desc { "icon_text_disabled"; - inherit: "icon_text"; - text.style: "tabbar_icon_textblock_disabled_style"; - } - desc { "icon_text_land"; - inherit: "default"; - vis; - min: TABBAR_DEFAULT_ICON_LAND_TEXT_SIZE_INC; - max: TABBAR_DEFAULT_ICON_LAND_TEXT_SIZE_INC; - text { - style: "tabbar_textblock_style"; - min: 0 1; - max: 1 1; - } - } - desc { "icon_text_land_pressed"; - inherit: "icon_text_land"; - text.style: "tabbar_textblock_pressed_style"; - } - desc { "icon_text_land_selected"; - inherit: "icon_text_land"; - text.style: "tabbar_textblock_selected_style"; - } - desc { "icon_text_land_disabled"; - inherit: "icon_text_land"; - text.style: "tabbar_textblock_disabled_style"; - } - } - spacer { "slide_text_gap"; - scale; - desc { "default"; - fixed: 1 1; - min: TABBAR_COMMON_SLIDE_TEXT_GAP 0; - max: TABBAR_COMMON_SLIDE_TEXT_GAP -1; - align: 1.0 0.5; - rel1.to: "padding_left_top"; - rel1.relative: 1.0 1.0; - rel2.to_x: "padding_left_top"; - rel2.to_y: "padding_right_bottom"; - rel2.relative: 1.0 0.0; - } - } - textblock { "elm.text.slide"; - scale; - clip: "clipper_elm.text.slide"; - desc { "default"; - fixed: 1 1; - align: 0.0 0.5; - min: TABBAR_DEFAULT_TEXT_SIZE_INC; - max: TABBAR_DEFAULT_TEXT_SIZE_INC; - rel1.to: "padding_left_top"; - rel1.relative: 1.0 1.0; - rel2.to: "padding_right_bottom"; - rel2.relative: 0.0 0.0; - text { - style: "tabbar_textblock_selected_slide_style"; - min: 1 1; - max: 1 0; - } - } - desc { "slide_begin"; - inherit: "default"; - } - desc { "slide_end"; - inherit: "default"; - align: 1.0 0.5; - rel1 { - to_x: "slide_text_gap"; - to_y: "padding_left_top"; - relative: 0.0 1.0; - } - rel2 { - to_x: "slide_text_gap"; - to_y: "padding_right_bottom"; - relative: 1.0 0.0; - } - } - desc { "icon_text"; - inherit: "default"; - min: TABBAR_DEFAULT_ICON_TEXT_SIZE_INC; - max: TABBAR_DEFAULT_ICON_TEXT_SIZE_INC; - vis; - rel1 { - to_x: "padding_left_top"; - to_y: "padding_text_top"; - relative: 1.0 1.0; - } - rel2 { - to: "padding_right_bottom"; - relative: 0.0 0.0; - } - text { - style: "tabbar_icon_textblock_selected_slide_style"; - min: 1 1; - max: 1 1; - } - } - desc { "icon_text_slide_begin"; - inherit: "icon_text"; - } - desc { "icon_text_slide_end"; - inherit: "icon_text"; - align: 1.0 0.5; - rel1 { - to_x: "slide_text_gap"; - to_y: "padding_text_top"; - relative: 0.0 1.0; - } - rel2 { - to_x: "slide_text_gap"; - to_y: "padding_right_bottom"; - relative: 1.0 0.0; - } - } - desc { "icon_text_land"; - inherit: "default"; - vis; - min: TABBAR_DEFAULT_ICON_LAND_TEXT_SIZE_INC; - max: TABBAR_DEFAULT_ICON_LAND_TEXT_SIZE_INC; - text { - style: "tabbar_textblock_selected_slide_style"; - min: 1 1; - max: 1 1; - } - } - desc { "icon_text_land_slide_begin"; - inherit: "icon_text_land"; - } - desc { "icon_text_land_slide_end"; - inherit: "icon_text_land"; - align: 1.0 0.5; - rel1 { - to_x: "slide_text_gap"; - to_y: "padding_left_top"; - relative: 0.0 1.0; - } - rel2 { - to_x: "slide_text_gap"; - to_y: "padding_right_bottom"; - relative: 1.0 0.0; - } - } - } - rect { "clipper_elm.swallow.icon"; - desc { "default"; - rel1.to: "base"; - rel2.to: "base"; - color_class: "toolbar_item/default/icon"; - } - desc { "selected"; - inherit: "default"; - color_class: "toolbar_item/default/icon_selected"; - } - desc { "pressed"; - inherit: "default"; - color_class: "toolbar_item/default/icon_pressed"; - } - desc { "disabled"; - inherit: "default"; - color_class: "toolbar_item/default/icon_disabled"; - } - } - rect { "clipper_elm.text"; - desc { "default"; - fixed: 1 1; - rel1.to: "padding_left_top"; - rel1.relative: 1.0 1.0; - rel2.to: "padding_right_bottom"; - rel2.relative: 0.0 0.0; - vis; - } - desc { "disabled"; - inherit: "default"; - } - desc { "hidden"; - inherit: "default"; - hid; - } - } - rect { "clipper_elm.text.slide"; - desc { "default"; - fixed: 1 1; - rel1.to: "padding_left_top"; - rel1.relative: 1.0 1.0; - rel2.to: "padding_right_bottom"; - rel2.relative: 0.0 0.0; - hid; - } - desc { "visible"; - inherit: "default"; - vis; - } - } - } - inherit: "elm/toolbar/item/event/default"; - script { - public selected = 0; - public pressed = 0; - public item_state = ITEM_STATE_ENABLED; - public icon_text = 0; - public mouse_down = 0; - public multi_down = 0; - public landscape = 0; - public item_text = 0; - public shrink_scroll_enabled = 0; - public g_duration = 0; - public g_stopslide = 0; - public g_timer_id = 0; - public g_anim_id = 0; - public g_tb_w = 0; - public g_tb_h = 24; - public org_text = 0; - - public get_tb_width() { - new x, y, w, h; - get_geometry(PART:"elm.text.slide", x, y, w, h); - set_int(g_tb_w, w); - set_int(g_tb_h, h); - get_geometry(PART:"clipper_elm.text.slide", x, y, w, h); - set_int(org_text, w); - } - public slide_to_end_anim(val, Float:pos) { - new slide_start_timer; - - if (get_int(g_stopslide)) return; - if (get_int(icon_text)) { - if (get_int(landscape)) - set_tween_state(PART:"elm.text.slide", pos*0.5, "icon_text_land_slide_begin", 0.0, "icon_text_land_slide_end", 0.0); - else - set_tween_state(PART:"elm.text.slide", pos*0.5, "icon_text_slide_begin", 0.0, "icon_text_slide_end", 0.0); - } else { - set_tween_state(PART:"elm.text.slide", pos*0.5, "slide_begin", 0.0, "slide_end", 0.0); - } - if (pos >= 1.0) { - slide_start_timer = get_int(g_timer_id); - if (slide_start_timer) { - cancel_timer(slide_start_timer); - set_int(g_timer_id, 0); - } - set_int(g_timer_id, timer(TABBAR_COMMON_SLIDE_INTER_DELAY_SEC, "start_slide", 0)); - set_int(g_anim_id, 0); - } - } - public slide_to_end() { - new slide_anim_id; - if (get_int(g_stopslide)) return; - slide_anim_id = get_int(g_anim_id); - if (slide_anim_id) { - cancel_anim(slide_anim_id); - set_int(g_anim_id, 0); - } - set_int(g_anim_id, anim(get_float(g_duration), "slide_to_end_anim", 0)); - } - public start_slide(val) { - new buf[256]; - new buffer[TABBAR_COMMON_SLIDE_TEXT_MAX_LENGTH]; - new Float:len; - set_int(g_stopslide, 0); - get_text(PART:"elm.text", buf, 256); - set_text(PART:"elm.text.slide", buf); - get_tb_width(); - if (!get_float(g_duration)) { - len = get_int(g_tb_w); - set_float(g_duration, len / get_int(g_tb_h) * TABBAR_COMMON_SLIDE_SPEED_WEIGHT); - } - if(get_int(g_tb_w) > get_int(org_text)) { - get_text(PART:"elm.text", buf, 256); - snprintf(buffer, TABBAR_COMMON_SLIDE_TEXT_MAX_LENGTH, "%s", buf); - strcat(buffer, TABBAR_COMMON_SLIDE_TEXT_CHAR_GAP); - strcat(buffer, buf); - strcat(buffer, TABBAR_COMMON_SLIDE_TEXT_CHAR_GAP); - set_text(PART:"elm.text.slide", buffer); - - if (get_int(icon_text)) { - if (get_int(landscape)) - set_state(PART:"elm.text.slide", "icon_text_land_slide_begin", 0.0); - else - set_state(PART:"elm.text.slide", "icon_text_slide_begin", 0.0); - } else { - set_state(PART:"elm.text.slide", "slide_begin", 0.0); - } - - set_state(PART:"clipper_elm.text", "hidden", 0.0); - set_state(PART:"clipper_elm.text.slide", "visible", 0.0); - slide_to_end(); - } - set_int(g_timer_id, 0); - } - public stop_slide() { - new slide_start_timer; - new slide_anim_id; - set_int(g_stopslide, 1); - set_float(g_duration, 0); - slide_start_timer = get_int(g_timer_id); - if (slide_start_timer) { - cancel_timer(slide_start_timer); - set_int(g_timer_id, 0); - } - slide_anim_id = get_int(g_anim_id); - if (slide_anim_id) { - cancel_anim(slide_anim_id); - set_int(g_anim_id, 0); - } - if (get_int(icon_text)) { - if (get_int(landscape)) - set_state(PART:"elm.text.slide", "icon_text_land", 0.0); - else - set_state(PART:"elm.text.slide", "icon_text", 0.0); - } else { - set_state(PART:"elm.text.slide", "default", 0.0); - } - set_state(PART:"clipper_elm.text", "default", 0.0); - set_state(PART:"clipper_elm.text.slide", "default", 0.0); - } - } - programs { - program { "on_selected"; - action: STATE_SET "selected"; - target: "clipper_elm.swallow.icon"; - after: "selected_text"; - } - program { "on_unselected"; - action: STATE_SET "default"; - target: "clipper_elm.swallow.icon"; - after: "unselected_text"; - } - program { "on_pressed_key"; - after: "on_pressed"; - } - program { "on_pressed"; - script { - if ((get_int(item_state) != ITEM_STATE_DISABLED) - && get_int(multi_down) == 0 - && get_int(mouse_down) == 0) - { - set_int(mouse_down, 1); - set_state(PART:"bg_cover", "pressed", 0.0); - if (!get_int(icon_text)) - set_state(PART:"elm.text", "text_pressed", 0.0); - else if (!get_int(landscape)) - set_state(PART:"elm.text", "icon_text_pressed", 0.0); - else - set_state(PART:"elm.text", "icon_text_land_pressed", 0.0); - set_state(PART:"clipper_elm.swallow.icon", "pressed", 0.0); - set_int(pressed, 1); - } - } - } - program { "on_unpressed_key"; - after: "on_unpressed"; - } - program { "on_unpressed"; - script { - if ((get_int(item_state) != ITEM_STATE_DISABLED) - && get_int(mouse_down) == 1) - { - set_int(mouse_down, 0); - set_int(pressed, 0); - set_state(PART:"bg_cover", "default", 0.0); - if (get_int(selected)) - { - if (!get_int(icon_text)) - set_state(PART:"elm.text", "text_selected", 0.0); - else if (!get_int(landscape)) - set_state(PART:"elm.text", "icon_text_selected", 0.0); - else - set_state(PART:"elm.text", "icon_text_land_selected", 0.0); - set_state(PART:"clipper_elm.swallow.icon", "selected", 0.0); - } - else - { - if (!get_int(icon_text)) - set_state(PART:"elm.text", "text_normal", 0.0); - else if (!get_int(landscape)) - set_state(PART:"elm.text", "icon_text", 0.0); - else - set_state(PART:"elm.text", "icon_text_land", 0.0); - set_state(PART:"clipper_elm.swallow.icon", "default", 0.0); - } - } - } - } - program { "on_clicked"; - script { - if (get_int(multi_down) == 0) { - emit("elm,action,click", "elm"); - if (get_int(item_state) != ITEM_STATE_DISABLED) - run_program(PROGRAM:"touch_sound"); - } - } - } - program { "on_mouse_in"; - script { - if (get_int(multi_down) == 0) - emit("elm,mouse,in", "elm"); - } - } - program { "on_mouse_out"; - script { - if ((get_int(multi_down) == 0) && (get_int(mouse_down) == 0)) - emit("elm,mouse,out", "elm"); - } - } - program { "on_enabled"; - script { - set_int(item_state, ITEM_STATE_ENABLED); - stop_slide(); - set_state(PART:"bg_cover", "default", 0.0); - if (!get_int(icon_text)) { - if (!get_int(selected)) - set_state(PART:"elm.text", "text_normal", 0.0); - else - set_state(PART:"elm.text", "text_selected", 0.0); - } else if (!get_int(landscape)) { - if (!get_int(selected)) - set_state(PART:"elm.text", "icon_text", 0.0); - else - set_state(PART:"elm.text", "icon_text_selected", 0.0); - } else { - if (!get_int(selected)) - set_state(PART:"elm.text", "icon_text_land", 0.0); - else - set_state(PART:"elm.text", "icon_text_land_selected", 0.0); - } - set_state(PART:"clipper_elm.text", "default", 0.0); - set_state(PART:"clipper_elm.swallow.icon", "default", 0.0); - if (get_int(selected)) - set_int(g_timer_id, timer(TABBAR_COMMON_SLIDE_START_DELAY_SEC, "start_slide", 0)); - } - } - program { "on_disabled"; - script { - set_int(item_state, ITEM_STATE_DISABLED); - stop_slide(); - set_state(PART:"bg_cover", "disabled", 0.0); - if (!get_int(icon_text)) - set_state(PART:"elm.text", "text_disabled", 0.0); - else if (!get_int(landscape)) - set_state(PART:"elm.text", "icon_text_disabled", 0.0); - else - set_state(PART:"elm.text", "icon_text_land_disabled", 0.0); - set_state(PART:"clipper_elm.text", "disabled", 0.0); - set_state(PART:"clipper_elm.swallow.icon", "disabled", 0.0); - } - } - program { "on_multi_down"; - script { - set_int(multi_down, 1); - } - } - program { "on_multi_cancel"; - script { - set_int(multi_down, 0); - } - } - program { "on_visible_text"; - script { - set_int(item_text, 1); - stop_slide(); - if (!get_int(icon_text)) - { - if (get_int(selected)) - set_state(PART:"elm.text", "text_selected", 0.0); - else - set_state(PART:"elm.text", "text_normal", 0.0); - set_state(PART:"padding_left_top", "padding_text", 0.0); - set_state(PART:"padding_right_bottom", "padding_text", 0.0); - } - else - { - if (!get_int(landscape)) - { - if (get_int(selected)) - set_state(PART:"elm.text", "icon_text_selected", 0.0); - else - set_state(PART:"elm.text", "icon_text", 0.0); - set_state(PART:"padding_left_top", "icon_text", 0.0); - set_state(PART:"padding_right_bottom", "icon_text", 0.0); - set_state(PART:"elm.swallow.icon", "visible", 0.0); - } - else - { - if (get_int(selected)) - set_state(PART:"elm.text", "icon_text_land_selected", 0.0); - else - set_state(PART:"elm.text", "icon_text_land", 0.0); - set_state(PART:"padding_left_top", "icon_text_land", 0.0); - set_state(PART:"padding_right_bottom", "icon_text_land", 0.0); - set_state(PART:"elm.swallow.icon", "visible_land", 0.0); - } - } - if (get_int(selected)) - set_int(g_timer_id, timer(TABBAR_COMMON_SLIDE_START_DELAY_SEC, "start_slide", 0)); - } - } - program { "on_hidden_text"; - script { - set_int(item_text, 0); - stop_slide(); - set_state(PART:"elm.text", "default", 0.0); - } - } - program { "on_visible_icon"; - script { - set_int(icon_text, 1); - stop_slide(); - if (!get_int(landscape)) - { - if (get_int(item_text)) - { - set_state(PART:"elm.swallow.icon", "visible", 0.0); - set_state(PART:"elm.text", "icon_text", 0.0); - } - else - { - set_state(PART:"elm.swallow.icon", "visible_icon_only", 0.0); - } - set_state(PART:"padding_left_top", "icon_text", 0.0); - set_state(PART:"padding_right_bottom", "icon_text", 0.0); - } - else - { - if (get_int(item_text)) - { - set_state(PART:"elm.swallow.icon", "visible_land", 0.0); - set_state(PART:"elm.text", "icon_text_land", 0.0); - } - else - { - set_state(PART:"elm.swallow.icon", "visible_icon_only", 0.0); - } - set_state(PART:"padding_left_top", "icon_text_land", 0.0); - set_state(PART:"padding_right_bottom", "icon_text_land", 0.0); - } - if (get_int(selected)) - set_int(g_timer_id, timer(TABBAR_COMMON_SLIDE_START_DELAY_SEC, "start_slide", 0)); - } - } - program { "on_hidden_icon"; - script { - set_int(icon_text, 0); - stop_slide(); - set_state(PART:"elm.swallow.icon", "default", 0.0); - set_state(PART:"elm.text", "text_normal", 0.0); - set_state(PART:"padding_left_top", "padding_text", 0.0); - set_state(PART:"padding_right_bottom", "padding_text", 0.0); - if (get_int(selected)) - set_int(g_timer_id, timer(TABBAR_COMMON_SLIDE_START_DELAY_SEC, "start_slide", 0)); - } - } - program { "on_tab_number_item"; - script { - if (get_int(landscape)) { - if (get_int(shrink_scroll_enabled)) - set_state(PART:"bg_base", "land_scroll", 0.0); - else - set_state(PART:"bg_base", "land", 0.0); - } else { - if (get_int(shrink_scroll_enabled)) - set_state(PART:"bg_base", "scroll", 0.0); - else - set_state(PART:"bg_base", "default", 0.0); - } - } - } - program { "selected_text"; - script{ - set_int(selected, 1); - stop_slide(); - if (!get_int(icon_text)) - set_state(PART:"elm.text", "text_selected", 0.0); - else if (!get_int(landscape)) - set_state(PART:"elm.text", "icon_text_selected", 0.0); - else - set_state(PART:"elm.text", "icon_text_land_selected", 0.0); - set_int(g_timer_id, timer(TABBAR_COMMON_SLIDE_START_DELAY_SEC, "start_slide", 0)); - } - after: "selected_line_anim"; - } - program { "unselected_text"; - script{ - set_int(selected, 0); - if (!get_int(icon_text)) - set_state(PART:"elm.text", "text_normal", 0.0); - else if (!get_int(landscape)) - set_state(PART:"elm.text", "icon_text", 0.0); - else - set_state(PART:"elm.text", "icon_text_land", 0.0); - stop_slide(); - } - after: "unselected_line_anim"; - } - program { "selected_line_anim"; - action: STATE_SET "selected"; - transition: GLIDE_EASE_OUT(TABBAR_COMMON_SELECTED_LINE_SELECT_ANIM_TIME_INC); - target: "selected_line"; - } - program { "unselected_line_anim"; - action: STATE_SET "default"; - transition: GLIDE_EASE_OUT(TABBAR_COMMON_SELECTED_LINE_UNSELECT_ANIM_TIME_INC); - target: "selected_line"; - } - program { "touch_sound"; - action: RUN_PLUGIN "touch_sound"; - } - program { "on_orient_90"; - after: "landscape_mode"; - } - program { "on_orient_270"; - after: "landscape_mode"; - } - program { "landscape_mode"; - script { - if (!get_int(landscape)) { - set_int(landscape, 1); - stop_slide(); - if (get_int(shrink_scroll_enabled)) - set_state(PART:"bg_base", "land_scroll", 0.0); - else - set_state(PART:"bg_base", "land", 0.0); - - if (get_int(icon_text)) { - set_state(PART:"padding_left_top", "icon_text_land", 0.0); - set_state(PART:"padding_right_bottom", "icon_text_land", 0.0); - set_state(PART:"elm.swallow.icon", "visible_land", 0.0); - if (get_int(selected)) - { - set_state(PART:"elm.text", "icon_text_land_selected", 0.0); - set_state(PART:"clipper_elm.swallow.icon", "selected", 0.0); - } - else if (get_int(pressed)) - { - set_state(PART:"elm.text", "icon_text_land_pressed", 0.0); - set_state(PART:"clipper_elm.swallow.icon", "pressed", 0.0); - } - else if (get_int(item_state)) - { - set_state(PART:"elm.text", "icon_text_land", 0.0); - set_state(PART:"clipper_elm.swallow.icon", "disabled", 0.0); - } - else - { - set_state(PART:"elm.text", "icon_text_land", 0.0); - set_state(PART:"clipper_elm.swallow.icon", "default", 0.0); - } - } - if (get_int(selected)) - set_int(g_timer_id, timer(TABBAR_COMMON_SLIDE_START_DELAY_SEC, "start_slide", 0)); - } - } - } - program { "on_orient_0"; - after: "portrait_mode"; - } - program { "on_orient_180"; - after: "portrait_mode"; - } - program { "portrait_mode"; - script { - if (get_int(landscape)) { - set_int(landscape, 0); - stop_slide(); - if (get_int(shrink_scroll_enabled)) - set_state(PART:"bg_base", "scroll", 0.0); - else - set_state(PART:"bg_base", "default", 0.0); - - if (get_int(icon_text)) { - set_state(PART:"padding_left_top", "icon_text", 0.0); - set_state(PART:"padding_right_bottom", "icon_text", 0.0); - set_state(PART:"elm.swallow.icon", "visible", 0.0); - if (get_int(selected)) - { - set_state(PART:"elm.text", "icon_text_selected", 0.0); - set_state(PART:"clipper_elm.swallow.icon", "selected", 0.0); - } - else if (get_int(pressed)) - { - set_state(PART:"elm.text", "icon_text_pressed", 0.0); - set_state(PART:"clipper_elm.swallow.icon", "pressed", 0.0); - } - else if (get_int(item_state)) - { - set_state(PART:"elm.text", "icon_text", 0.0); - set_state(PART:"clipper_elm.swallow.icon", "disabled", 0.0); - } - else - { - set_state(PART:"elm.text", "icon_text", 0.0); - set_state(PART:"clipper_elm.swallow.icon", "default", 0.0); - } - } - if (get_int(selected)) - set_int(g_timer_id, timer(TABBAR_COMMON_SLIDE_START_DELAY_SEC, "start_slide", 0)); - } - } - } - program { "on_shrink_scroll"; - script { - set_int(shrink_scroll_enabled, 1); - if (get_int(landscape)) - set_state(PART:"bg_base", "land_scroll", 0.0); - else - set_state(PART:"bg_base", "scroll", 0.0); - } - } - program { "on_shrink_expand"; - after: "shrink_scroll_disabled"; - } - program { "on_shrink_menu"; - after: "shrink_scroll_disabled"; - } - program { "on_shrink_hide"; - after: "shrink_scroll_disabled"; - } - program { "on_shrink_default"; - after: "shrink_scroll_disabled"; - } - program { "shrink_scroll_disabled"; - script { - set_int(shrink_scroll_enabled, 0); - if (get_int(landscape)) - set_state(PART:"bg_base", "land", 0.0); - else - set_state(PART:"bg_base", "default", 0.0); - } - } - program { "resize"; - signal: "resize"; - source: "*"; - script { - stop_slide(); - if (get_int(selected)) - set_int(g_timer_id, timer(TABBAR_COMMON_SLIDE_START_DELAY_SEC, "start_slide", 0)); - } - } - program { "on_order_item_default"; - } - program { "on_order_item_first"; - } - program { "on_order_item_last"; - } - } -} - -group { "elm/toolbar/object/default"; - parts { - swallow { "elm.swallow.object"; // object group - desc { "default"; - } - } - } -} - -group { "elm/toolbar/base/tabbar_with_title"; - parts { - spacer { "base"; - scale; - desc { "default"; - } - } - rect { "base_bg"; - scale; - desc { "default"; - rel1.to: "base"; - rel2.to: "base"; - rel2.offset: -1 -1; - color_class: "toolbar/tabbar_with_title/bg"; - } - } - rect { "clipper_content"; - nomouse; - scale; - desc { "default"; - rel1.to: "base"; - rel2.to: "base"; - rel2.offset: -1 -1; - } - } - swallow { "elm.swallow.content"; - clip: "clipper_content"; - scale; - desc { "default"; - rel1.to: "base"; - rel2.to: "base"; - rel2.offset: -1 -1; - } - } - } -} - -group { "elm/toolbar/base/light_view"; - inherit: "elm/toolbar/base/tabbar_with_title"; - parts { - rect { "base_bg"; - scale; - desc { "default"; - rel1.to: "base"; - rel2.to: "base"; - rel2.offset: -1 -1; - color_class: "toolbar/light_view/bg"; - } - } - } -} - -group { "elm/toolbar/item/tabbar_with_title"; - images { - image: "core_tab_selectbar.#.png" COMP; - } - nomouse; - parts { - spacer { "base"; - scale; - desc { "default"; - } - } - rect { "bg_base"; - scale; - desc { "default"; - rel1.to: "base"; - rel2.to: "base"; - min: TABBAR_COMMON_DEFAULT_ITEM_SIZE_INC; - color_class: "toolbar_item/tabbar_with_title/bg"; - } - desc { "land"; - inherit: "default"; - min: TABBAR_COMMON_LANDSCAPE_DEFAULT_ITEM_SIZE_INC; - } - desc { "scroll"; - inherit: "default"; - min: TABBAR_COMMON_SCROLL_ITEM_SIZE_INC; - } - desc { "land_scroll"; - inherit: "default"; - min: TABBAR_COMMON_LANDSCAPE_SCROLL_ITEM_SIZE_INC; - } - } - rect { "bg_cover"; - scale; - desc { "default"; - rel1.to: "base"; - rel2.to: "base"; - hid; - } - desc { "pressed"; - inherit: "default"; - vis; - color_class: "toolbar_item/tabbar_with_title/effect"; - } - desc { "disabled"; - inherit: "default"; - hid; - } - desc { "selected"; - inherit: "default"; - hid; - } - } - spacer { "padding_selected_line_top"; - scale; - desc { "default"; - rel1 { - to: "elm.text"; - relative: 0.0 1.0; - } - rel2 { - to: "elm.text"; - relative: 1.0 1.0; - } - fixed: 0 1; - min: TABBAR_COMMON_SELECTED_LINE_TOP_PADDING_SIZE_INC; - align: 0.5 0.0; - } - } - image { "selected_line"; - scale; - desc { "default"; - min: 0 TABBAR_COMMON_SELECTED_LINE_HEIGHT_INC; - max: 0 TABBAR_COMMON_SELECTED_LINE_HEIGHT_INC; - rel1 { - to: "padding_selected_line_top"; - relative: 0.0 1.0; - } - rel2 { - to: "padding_selected_line_top"; - relative: 1.0 1.0; - } - image.normal: "core_tab_selectbar.#.png"; - fixed: 0 1; - color: 255 255 255 0; - color_class: "toolbar_item/tabbar_with_title/underline"; - align: 0.5 0.0; - } - desc { "selected"; - inherit: "default"; - max: -1 TABBAR_COMMON_SELECTED_LINE_HEIGHT_INC; - color: 255 255 255 255; - } - } - spacer { "padding_left_top"; - scale; - desc { "default"; - align: 0.0 0.0; - rel2.relative: 0.0 0.0; - min: 0 0; - fixed: 1 1; - } - desc { "padding_text"; - inherit: "default"; - min: TABBAR_TITLE_TEXT_LEFT_TOP_PADDING_SIZE_INC; - } - desc { "icon_text"; - inherit: "default"; - min: TABBAR_TITLE_ICON_TEXT_LAND_LEFT_TOP_PADDING_SIZE_INC; - } - } - spacer { "padding_right_bottom"; - scale; - desc { "default"; - align: 1.0 1.0; - rel1.relative: 1.0 1.0; - fixed: 1 1; - } - desc { "padding_text"; - inherit: "default"; - min: TABBAR_TITLE_TEXT_RIGHT_BOTTOM_PADDING_SIZE_INC; - } - desc { "icon_text"; - inherit: "default"; - min: TABBAR_TITLE_ICON_TEXT_LAND_RIGHT_BOTTOM_PADDING_SIZE_INC; - } - } - spacer { "padding_icon_text"; - scale; - desc { "default"; - min: 0 0; - fixed: 1 0; - align: 1.0 0.5; - rel1 { - to_x: "selected_line"; - relative: 0.0 0.0; - } - rel2 { - to_x: "selected_line"; - relative: 0.0 1.0; - } - } - desc { "visible"; - inherit: "default"; - } - } - spacer { "padding_text_left"; - scale; - desc { "default"; - min: TABBAR_TITLE_TEXT_LEFT_PADDING_SIZE_INC; - fixed: 1 0; - align: 1.0 0.5; - rel1 { - to_x: "elm.text"; - relative: 0.0 0.0; - } - rel2 { - to_x: "elm.text"; - relative: 0.0 1.0; - } - } - } - swallow { "elm.swallow.icon"; - scale; - clip: "clipper_elm.swallow.icon"; - desc { "default"; - hid; - min: TABBAR_TITLE_ICON_SIZE_INC; - max: TABBAR_TITLE_ICON_SIZE_INC; - fixed: 1 1; - } - desc { "visible"; - inherit: "default"; - vis; - align: 1.0 1.0; - rel1 { - to_x: "padding_text_left"; - to_y: "elm.text"; - relative: 0.0 1.0; - } - rel2 { - to_x: "padding_text_left"; - to_y: "elm.text"; - relative: 0.0 1.0; - } - } - desc { "visible_icon_only"; - inherit: "default"; - vis; - rel1 { - to: "padding_left_top"; - relative: 1.0 1.0; - } - rel2 { - to: "padding_right_bottom"; - relative: 0.0 0.0; - } - } - } - textblock { "elm.text"; - scale; - clip: "clipper_elm.text"; - desc { "default"; - hid; - min: TABBAR_TITLE_TEXT_SIZE_INC; - max: TABBAR_TITLE_TEXT_SIZE_INC; - rel1 { - to: "padding_left_top"; - relative: 1.0 1.0; - } - rel2 { - to: "padding_right_bottom"; - relative: 0.0 0.0; - } - fixed: 1 1; - } - desc { "text_normal"; - inherit: "default"; - vis; - text { - style: "tabbar_with_title_textblock_style"; - min: 0 1; - max: 1 0; - } - } - desc { "text_pressed"; - inherit: "text_normal"; - text.style: "tabbar_with_title_textblock_pressed_style"; - } - desc { "text_selected"; - inherit: "text_normal"; - text.style: "tabbar_with_title_textblock_selected_style"; - } - desc { "text_disabled"; - inherit: "text_normal"; - text.style: "tabbar_with_title_textblock_disabled_style"; - } - } - spacer { "slide_text_gap"; - scale; - desc { "default"; - fixed: 1 1; - min: TABBAR_COMMON_SLIDE_TEXT_GAP 0; - max: TABBAR_COMMON_SLIDE_TEXT_GAP -1; - align: 1.0 0.5; - rel1.relative: 0.0 0.0; - rel2.relative: 0.0 1.0; - rel1 { - to: "padding_left_top"; - relative: 1.0 1.0; - } - rel2 { - to_x: "padding_left_top"; - to_y: "padding_right_bottom"; - relative: 1.0 0.0; - } - } - } - textblock { "elm.text.slide"; - scale; - clip: "clipper_elm.text.slide"; - desc { "default"; - fixed: 1 1; - align: 0.0 0.5; - min: TABBAR_TITLE_TEXT_SIZE_INC; - max: TABBAR_TITLE_TEXT_SIZE_INC; - rel1 { - to: "padding_left_top"; - relative: 1.0 1.0; - } - rel2 { - to: "padding_right_bottom"; - relative: 0.0 0.0; - } - text { - style: "tabbar_with_title_textblock_selected_slide_style"; - min: 1 1; - max: 1 0; - } - } - desc { "slide_begin"; - inherit: "default"; - } - desc { "slide_end"; - inherit: "default"; - align: 1.0 0.5; - rel1 { - to_x: "slide_text_gap"; - to_y: "padding_left_top"; - relative: 0.0 1.0; - } - rel2 { - to_x: "slide_text_gap"; - to_y: "padding_right_bottom"; - relative: 1.0 0.0; - } - } - } - rect { "clipper_elm.swallow.icon"; - desc { "default"; - color_class: "toolbar_item/tabbar_with_title/icon"; - } - desc { "selected"; - inherit: "default"; - color_class: "toolbar_item/tabbar_with_title/icon_selected"; - } - desc { "pressed"; - inherit: "default"; - color_class: "toolbar_item/tabbar_with_title/icon_pressed"; - } - desc { "disabled"; - inherit: "default"; - color_class: "toolbar_item/tabbar_with_title/icon_disabled"; - } - } - rect { "clipper_elm.text"; - desc { "default"; - fixed: 1 1; - rel1 { - to: "padding_left_top"; - relative: 1.0 1.0; - } - rel2 { - to: "padding_right_bottom"; - relative: 0.0 0.0; - } - vis; - } - desc { "disabled"; - inherit: "default"; - } - desc { "hidden"; - inherit: "default"; - hid; - } - } - rect { "clipper_elm.text.slide"; - desc { "default"; - fixed: 1 1; - rel1 { - to: "padding_left_top"; - relative: 1.0 1.0; - } - rel2 { - to: "padding_right_bottom"; - relative: 0.0 0.0; - } - hid; - } - desc { "visible"; - inherit: "default"; - vis; - } - } - } - inherit: "elm/toolbar/item/event/default"; - script { - public selected = 0; - public pressed = 0; - public item_state = ITEM_STATE_ENABLED; - public icon_text = 0; - public mouse_down = 0; - public multi_down = 0; - public landscape = 0; - public item_text = 0; - public shrink_scroll_enabled = 0; - public g_duration = 0; - public g_stopslide = 0; - public g_timer_id = 0; - public g_anim_id = 0; - public g_tb_w = 0; - public g_tb_h = 24; - public org_text = 0; - - public get_tb_width() { - new x, y, w, h; - get_geometry(PART:"elm.text.slide", x, y, w, h); - set_int(g_tb_w, w); - set_int(g_tb_h, h); - get_geometry(PART:"clipper_elm.text.slide", x, y, w, h); - set_int(org_text, w); - } - public slide_to_end_anim(val, Float:pos) { - new slide_start_timer; - - if (get_int(g_stopslide)) return; - set_tween_state(PART:"elm.text.slide", pos*0.5, "slide_begin", 0.0, "slide_end", 0.0); - - if (pos >= 1.0) { - slide_start_timer = get_int(g_timer_id); - if (slide_start_timer) { - cancel_timer(slide_start_timer); - set_int(g_timer_id, 0); - } - set_int(g_timer_id, timer(TABBAR_COMMON_SLIDE_INTER_DELAY_SEC, "start_slide", 0)); - set_int(g_anim_id, 0); - } - } - public slide_to_end() { - new slide_anim_id; - if (get_int(g_stopslide)) return; - slide_anim_id = get_int(g_anim_id); - if (slide_anim_id) { - cancel_anim(slide_anim_id); - set_int(g_anim_id, 0); - } - set_int(g_anim_id, anim(get_float(g_duration), "slide_to_end_anim", 0)); - } - public start_slide(val) { - new buf[256]; - new buffer[TABBAR_COMMON_SLIDE_TEXT_MAX_LENGTH]; - new Float:len; - set_int(g_stopslide, 0); - get_text(PART:"elm.text", buf, 256); - set_text(PART:"elm.text.slide", buf); - get_tb_width(); - if (!get_float(g_duration)) { - len = get_int(g_tb_w); - set_float(g_duration, len / get_int(g_tb_h) * TABBAR_COMMON_SLIDE_SPEED_WEIGHT); - } - if(get_int(g_tb_w) > get_int(org_text)) { - get_text(PART:"elm.text", buf, 256); - snprintf(buffer, TABBAR_COMMON_SLIDE_TEXT_MAX_LENGTH, "%s", buf); - strcat(buffer, TABBAR_COMMON_SLIDE_TEXT_CHAR_GAP); - strcat(buffer, buf); - strcat(buffer, TABBAR_COMMON_SLIDE_TEXT_CHAR_GAP); - set_text(PART:"elm.text.slide", buffer); - - set_state(PART:"elm.text.slide", "slide_begin", 0.0); - - set_state(PART:"clipper_elm.text", "hidden", 0.0); - set_state(PART:"clipper_elm.text.slide", "visible", 0.0); - slide_to_end(); - } - set_int(g_timer_id, 0); - } - public stop_slide() { - new slide_start_timer; - new slide_anim_id; - set_int(g_stopslide, 1); - set_float(g_duration, 0); - slide_start_timer = get_int(g_timer_id); - if (slide_start_timer) { - cancel_timer(slide_start_timer); - set_int(g_timer_id, 0); - } - slide_anim_id = get_int(g_anim_id); - if (slide_anim_id) { - cancel_anim(slide_anim_id); - set_int(g_anim_id, 0); - } - set_state(PART:"elm.text.slide", "default", 0.0); - set_state(PART:"clipper_elm.text", "default", 0.0); - set_state(PART:"clipper_elm.text.slide", "default", 0.0); - } - } - programs { - program { "on_selected"; - action: STATE_SET "selected"; - target: "clipper_elm.swallow.icon"; - after: "selected_text"; - } - program { "on_unselected"; - action: STATE_SET "default"; - target: "clipper_elm.swallow.icon"; - after: "unselected_text"; - } - program { "on_pressed_key"; - after: "on_pressed"; - } - program { "on_pressed"; - script { - if ((get_int(item_state) != ITEM_STATE_DISABLED) - && get_int(multi_down) == 0 - && get_int(mouse_down) == 0) - { - set_int(mouse_down, 1); - set_state(PART:"bg_cover", "pressed", 0.0); - set_state(PART:"elm.text", "text_pressed", 0.0); - set_state(PART:"clipper_elm.swallow.icon", "pressed", 0.0); - set_int(pressed, 1); - } - } - } - program { "on_unpressed_key"; - after: "on_unpressed"; - } - program { "on_unpressed"; - script { - if ((get_int(item_state) != ITEM_STATE_DISABLED) - && get_int(mouse_down) == 1) - { - set_int(mouse_down, 0); - set_int(pressed, 0); - set_state(PART:"bg_cover", "default", 0.0); - if (get_int(selected)) - { - set_state(PART:"elm.text", "text_selected", 0.0); - set_state(PART:"clipper_elm.swallow.icon", "selected", 0.0); - } - else - { - set_state(PART:"elm.text", "text_normal", 0.0); - set_state(PART:"clipper_elm.swallow.icon", "default", 0.0); - } - } - } - } - program { "on_clicked"; - script { - if (get_int(multi_down) == 0) { - emit("elm,action,click", "elm"); - if (get_int(item_state) != ITEM_STATE_DISABLED) - run_program(PROGRAM:"touch_sound"); - } - } - } - program { "on_mouse_in"; - script { - if (get_int(multi_down) == 0) - emit("elm,mouse,in", "elm"); - } - } - program { "on_mouse_out"; - script { - if ((get_int(multi_down) == 0) && (get_int(mouse_down) == 0)) - emit("elm,mouse,out", "elm"); - } - } - program { "selected_text"; - script{ - set_int(selected, 1); - stop_slide(); - set_state(PART:"elm.text", "text_selected", 0.0); - if (get_int(selected)) - set_int(g_timer_id, timer(TABBAR_COMMON_SLIDE_START_DELAY_SEC, "start_slide", 0)); - } - after: "selected_line_anim"; - } - program { "selected_line_anim"; - action: STATE_SET "selected"; - transition: GLIDE_EASE_OUT(TABBAR_COMMON_SELECTED_LINE_SELECT_ANIM_TIME_INC); - target: "selected_line"; - } - program { "unselected_text"; - script{ - set_int(selected, 0); - set_state(PART:"elm.text", "text_normal", 0.0); - stop_slide(); - } - after: "unselected_line_anim"; - } - program { "unselected_line_anim"; - action: STATE_SET "default"; - transition: GLIDE_EASE_OUT(TABBAR_COMMON_SELECTED_LINE_UNSELECT_ANIM_TIME_INC); - target: "selected_line"; - } - program { "touch_sound"; - action: RUN_PLUGIN "touch_sound"; - } - program { "on_enabled"; - script { - set_int(item_state, ITEM_STATE_ENABLED); - stop_slide(); - set_state(PART:"bg_cover", "default", 0.0); - if (!get_int(selected)) - set_state(PART:"elm.text", "text_normal", 0.0); - else - set_state(PART:"elm.text", "text_selected", 0.0); - set_state(PART:"clipper_elm.text", "default", 0.0); - set_state(PART:"clipper_elm.swallow.icon", "default", 0.0); - if (get_int(selected)) - set_int(g_timer_id, timer(TABBAR_COMMON_SLIDE_START_DELAY_SEC, "start_slide", 0)); - } - } - program { "on_disabled"; - script { - set_int(item_state, ITEM_STATE_DISABLED); - stop_slide(); - set_state(PART:"bg_cover", "disabled", 0.0); - set_state(PART:"elm.text", "text_disabled", 0.0); - set_state(PART:"clipper_elm.text", "disabled", 0.0); - set_state(PART:"clipper_elm.swallow.icon", "disabled", 0.0); - } - } - program { "on_multi_down"; - script { - set_int(multi_down, 1); - } - } - program { "on_multi_cancel"; - script { - set_int(multi_down, 0); - } - } - program { "on_visible_text"; - script { - set_int(item_text, 1); - stop_slide(); - if (!get_int(selected)) - set_state(PART:"elm.text", "text_normal", 0.0); - else - set_state(PART:"elm.text", "text_selected", 0.0); - if (!get_int(icon_text)) - { - set_state(PART:"padding_left_top", "padding_text", 0.0); - set_state(PART:"padding_right_bottom", "padding_text", 0.0); - } - else - { - set_state(PART:"elm.swallow.icon", "visible", 0.0); - set_state(PART:"padding_left_top", "icon_text", 0.0); - set_state(PART:"padding_right_bottom", "icon_text", 0.0); - } - if (get_int(selected)) - set_int(g_timer_id, timer(TABBAR_COMMON_SLIDE_START_DELAY_SEC, "start_slide", 0)); - } - } - program { "on_hidden_text"; - script { - set_int(item_text, 0); - stop_slide(); - set_state(PART:"elm.text", "default", 0.0); - } - } - program { "on_visible_icon"; - script { - set_int(icon_text, 1); - stop_slide(); - if (get_int(item_text)) - set_state(PART:"elm.swallow.icon", "visible", 0.0); - else - set_state(PART:"elm.swallow.icon", "visible_icon_only", 0.0); - set_state(PART:"padding_left_top", "icon_text", 0.0); - set_state(PART:"padding_right_bottom", "icon_text", 0.0); - if (get_int(selected)) - set_int(g_timer_id, timer(TABBAR_COMMON_SLIDE_START_DELAY_SEC, "start_slide", 0)); - } - } - program { "on_hidden_icon"; - signal: "elm,state,icon,hidden"; - source: "elm"; - script { - set_int(icon_text, 0); - stop_slide(); - if (!get_int(selected)) - set_state(PART:"elm.text", "text_normal", 0.0); - else - set_state(PART:"elm.text", "text_selected", 0.0); - set_state(PART:"elm.swallow.icon", "default", 0.0); - set_state(PART:"padding_left_top", "padding_text", 0.0); - set_state(PART:"padding_right_bottom", "padding_text", 0.0); - if (get_int(selected)) - set_int(g_timer_id, timer(TABBAR_COMMON_SLIDE_START_DELAY_SEC, "start_slide", 0)); - } - } - program { "on_tab_number_item"; - script { - if (get_int(landscape)) { - if (get_int(shrink_scroll_enabled)) - set_state(PART:"bg_base", "land_scroll", 0.0); - else - set_state(PART:"bg_base", "land", 0.0); - } else { - if (get_int(shrink_scroll_enabled)) - set_state(PART:"bg_base", "scroll", 0.0); - else - set_state(PART:"bg_base", "default", 0.0); - } - } - } - program { "on_orient_90"; - after: "landscape_mode"; - } - program { "on_orient_270"; - after: "landscape_mode"; - } - program { "landscape_mode"; - script { - if (!get_int(landscape)) { - set_int(landscape, 1); - stop_slide(); - if (get_int(shrink_scroll_enabled)) - set_state(PART:"bg_base", "land_scroll", 0.0); - else - set_state(PART:"bg_base", "land", 0.0); - if (get_int(selected)) - set_int(g_timer_id, timer(TABBAR_COMMON_SLIDE_START_DELAY_SEC, "start_slide", 0)); - } - } - } - program { "on_orient_0"; - after: "portrait_mode"; - } - program { "on_orient_180"; - after: "portrait_mode"; - } - program { "portrait_mode"; - script { - if (get_int(landscape)) { - set_int(landscape, 0); - stop_slide(); - if (get_int(shrink_scroll_enabled)) - set_state(PART:"bg_base", "scroll", 0.0); - else - set_state(PART:"bg_base", "default", 0.0); - if (get_int(selected)) - set_int(g_timer_id, timer(TABBAR_COMMON_SLIDE_START_DELAY_SEC, "start_slide", 0)); - } - } - } - program { "on_shrink_scroll"; - script { - set_int(shrink_scroll_enabled, 1); - if (get_int(landscape)) - set_state(PART:"bg_base", "land_scroll", 0.0); - else - set_state(PART:"bg_base", "scroll", 0.0); - } - } - program { "on_shrink_expand"; - after: "shrink_scroll_disabled"; - } - program { "on_shrink_menu"; - after: "shrink_scroll_disabled"; - } - program { "on_shrink_hide"; - after: "shrink_scroll_disabled"; - } - program { "on_shrink_default"; - after: "shrink_scroll_disabled"; - } - program { "shrink_scroll_disabled"; - script { - set_int(shrink_scroll_enabled, 0); - if (get_int(landscape)) - set_state(PART:"bg_base", "land", 0.0); - else - set_state(PART:"bg_base", "default", 0.0); - } - } - program { "resize"; - signal: "resize"; - source: "*"; - script { - stop_slide(); - if (get_int(selected)) - set_int(g_timer_id, timer(TABBAR_COMMON_SLIDE_START_DELAY_SEC, "start_slide", 0)); - } - } - program { "on_order_item_default"; - } - program { "on_order_item_first"; - } - program { "on_order_item_last"; - } - } -} - -group { "elm/toolbar/base/navigationbar"; - parts { - rect { "base"; - scale; - desc { "default"; - min: 0 TOOLBAR_NAVI_HEIGHT_INC; - color_class: "toolbar/navigationbar/bg"; - } - } - spacer { "padding_left"; - type: SPACER; - nomouse; - scale; - desc { "default"; - min: TOOLBAR_NAVI_PADDING_INC 0; - fixed: 1 0; - rel1.to: "base"; - rel2.relative: 0.0 1.0; - rel2.to: "base"; - align: 0.0 0.0; - } - desc { "hidden"; - inherit: "default"; - min: 0 0; - } - } - rect { "divider"; - nomouse; - desc { "default"; - min: 0 TOOLBAR_NAVI_DIVIDER_HEIGHT_INC; - fixed: 0 1; - align: 0.0 0.0; - rel1.to: "base"; - rel2.relative: 1.0 0.0; - rel2.to: "base"; - color_class: "toolbar/navigationbar/divider"; - } - } - rect { "clipper_elm.swallow.content"; - nomouse; - scale; - desc { "default"; - rel1.to: "base"; - rel2.to: "base"; - rel2.offset: -1 -1; - } - } - swallow { "elm.swallow.content"; - clip: "clipper_elm.swallow.content"; - desc { "default"; - rel1 { - relative: 1.0 1.0; - to_x: "padding_left"; - to_y: "divider"; - } - rel2.to: "base"; - } - } - } -} - -group { "elm/toolbar/item/navigationbar"; - images { - set { - name: "core_navigation_bar_bg"; - image { - image: "core_navigation_bar_bg.png" COMP; - } - } - set { - name: "core_navigation_bar_icon_arrow"; - image { - image: "core_navigation_bar_icon_arrow.png" COMP; - } - } - image: "core_navi_press.#.png" COMP; - } - data.item: "transition_animation_on" "0"; - nomouse; - parts { - rect { "bg_base"; - scale; - desc { "default"; - color_class: "toolbar_item/navigationbar/bg"; - } - } - spacer { "padding_icon_arrow"; - scale; - desc { "default"; - min: TOOLBAR_NAVI_ICON_ARROW_WIDTH_INC 0; - fixed: 1 0; - rel1.relative: 1.0 0.0; - rel1.to: "bg_base"; - rel2.relative: 1.0 1.0; - rel2.to: "bg_base"; - align: 1.0 0.5; - } - } - image { "icon_arrow"; - type: IMAGE; - scale; - desc { "default"; - min: TOOLBAR_NAVI_ICON_ARROW_WIDTH_INC TOOLBAR_NAVI_ICON_ARROW_HEIGHT_INC; - fixed: 1 1; - color_class: "toolbar_item/navigationbar/icon"; - rel1.to: "padding_icon_arrow"; - rel2.to: "padding_icon_arrow"; - vis; - image.normal: "core_navigation_bar_icon_arrow"; - } - desc { "hidden"; - inherit: "default"; - hid; - } - desc { "rtl"; - inherit: "default"; - map.on: 1; - map.rotation.y: 180.0; - } - } - spacer { "base"; - scale; - desc { "default"; - rel2.to: "padding_icon_arrow"; - rel2.relative: 0.0 1.0; - } - } - image { "press_effect"; - scale; - desc { "default"; - rel1.to: "elm.text"; - rel1.offset: -14 -6; - rel2.to: "elm.text"; - rel2.offset: 14 9; - image.normal: "core_navi_press.#.png"; - color: 0 0 0 0; - color_class: "toolbar_item/navigationbar/effect"; - hid; - } - desc { "ready"; - inherit: "default"; - vis; - } - desc { "pressed"; - inherit: "ready"; - color: 255 255 255 255; - } - } - textblock { "elm.text"; - scale; - clip: "clipper_elm.text"; - desc { "default"; - align: 0.0 0.5; - rel2 { - relative: 0.0 1.0; - to: "padding_icon_arrow"; - } - text { - style: "tabbar_navigationbar_textblock_style"; - min: 1 1; - max: 1 1; - align: 0.0 0.5; - } - } - desc { "pressed"; - inherit: "default"; - text.style: "tabbar_navigationbar_textblock_pressed_style"; - } - desc { "disabled"; - inherit: "default"; - text.style: "tabbar_navigationbar_textblock_disabled_style"; - } - desc { "selected"; - inherit: "default"; - text.style: "tabbar_navigationbar_textblock_selected_style"; - } - } - rect { "clipper_elm.text"; - desc { "default"; - color: 255 255 255 255; - } - desc { "animation"; - color: 255 255 255 0; - } - desc { "disabled"; - color: 255 255 255 255; - } - } - image { "padding_right"; - scale; - desc { "default"; - min: TOOLBAR_NAVI_ICON_ARROW_WIDTH_INC 0; - fixed: 1 0; - hid; - rel1.relative: 1.0 0.0; - rel1.to: "bg_base"; - rel2.relative: 1.0 1.0; - rel2.to: "bg_base"; - align: 1.0 1.0; - color: 61 185 204 255; - image.normal: "core_navigation_bar_bg"; - } - desc { "hidden"; - inherit: "default"; - hid; - } - } - } - inherit: "elm/toolbar/item/event/default"; - script { - public item_state = ITEM_STATE_ENABLED; - public mouse_down = 0; - public multi_down = 0; - public selected = 0; - public animate = 0; - public mirrored_state = 0; - } - programs { - program { "pressed_effect"; - script { - run_program(PROGRAM:"pressed_effect3"); - run_program(PROGRAM:"pressed_effect4"); - } - } - program { "pressed_effect3"; - action: STATE_SET "pressed"; - target: "press_effect"; - transition: GLIDE_EASE_OUT(0.3); - after: "pressed_effect5"; - } - program { "pressed_effect4"; - action: STATE_SET "pressed"; - target: "elm.text"; - transition: GLIDE_EASE_OUT(0.3); - } - program { "pressed_effect5"; - script { - set_int(animate, 0); - if (get_int(mouse_down) == 0) { - run_program(PROGRAM:"unpressed_effect"); - } - } - } - program { "unpressed_effect"; - script { - run_program(PROGRAM:"unpressed_effect2"); - run_program(PROGRAM:"unpressed_effect3"); - } - } - program { "unpressed_effect2"; - action: STATE_SET "ready"; - target: "press_effect"; - transition: GLIDE_EASE_OUT(0.45); - after: "unpressed_effect3"; - } - program { "unpressed_effect3"; - script { - if (get_int(item_state) == ITEM_STATE_DISABLED) - set_state(PART:"elm.text", "disabled",0.0); - else { - if (get_int(selected)) - set_state(PART:"elm.text", "selected", 0.0); - else - set_state(PART:"elm.text", "default", 0.0); - } - } - } - - program { "on_pressed_key"; - after: "on_pressed"; - } - program { "on_pressed"; - script { - if ((get_int(item_state) != ITEM_STATE_DISABLED) - && get_int(multi_down) == 0 - && get_int(mouse_down) == 0) - { - set_int(mouse_down, 1); - set_int(animate, 1); - run_program(PROGRAM:"pressed_effect"); - } - } - } - program { "on_unpressed_key"; - after: "on_unpressed"; - } - program { "on_unpressed"; - script { - if ((get_int(item_state) != ITEM_STATE_DISABLED) - && get_int(mouse_down) == 1) - { - set_int(mouse_down, 0); - if (get_int(animate) == 0) { - run_program(PROGRAM:"unpressed_effect"); - } - } - } - } - program { "on_clicked"; - script { - if (get_int(multi_down) == 0) { - emit("elm,action,click", "elm"); - - if (get_int(item_state) != ITEM_STATE_DISABLED) { - run_program(PROGRAM:"touch_sound"); - } - } - } - } - program { "touch_sound"; - action: RUN_PLUGIN "touch_sound"; - } - program { "on_mouse_in"; - script { - if (get_int(multi_down) == 0) - emit("elm,mouse,in", "elm"); - } - } - program { "on_mouse_out"; - script { - if ((get_int(multi_down) == 0) && (get_int(mouse_down) == 0)) - emit("elm,mouse,out", "elm"); - } - } - program { "on_disabled"; - script { - set_int(item_state, ITEM_STATE_DISABLED); - set_state(PART:"bg_base", "disabled", 0.0); - set_state(PART:"elm.text", "disabled", 0.0); - set_state(PART:"clipper_elm.text", "disabled", 0.0); - set_int(selected, 0); - } - } - program { "on_multi_down"; - script{ - set_int(multi_down, 1); - } - } - program { "on_multi_cancel"; - script { - set_int(multi_down, 0); - } - } - program { "on_enabled"; - script { - set_int(item_state, ITEM_STATE_ENABLED); - set_state(PART:"bg_base", "default", 0.0); - set_state(PART:"elm.text", "default", 0.0); - set_state(PART:"clipper_elm.text", "default", 0.0); - set_int(selected, 0); - } - } - program { "on_order_item_default"; - after: "visible_icon_arrow"; - } - program { "on_order_item_first"; - after: "visible_icon_arrow"; - } - program { "on_order_item_last"; - after: "hidden_icon_arrow"; - } - program { "visible_icon_arrow"; - script { - if (get_int(mirrored_state)) - set_state(PART:"icon_arrow", "rtl", 0.0); - else - set_state(PART:"icon_arrow", "default", 0.0); - set_state(PART:"padding_right", "default", 0.0); - if (get_int(item_state) != ITEM_STATE_DISABLED) { - set_state(PART:"elm.text", "default", 0.0); - set_int(selected, 0); - } - } - } - program { "hidden_icon_arrow"; - script { - set_state(PART:"icon_arrow", "hidden", 0.0); - set_state(PART:"padding_right", "hidden", 0.0); - if (get_int(item_state) != ITEM_STATE_DISABLED) { - set_state(PART:"elm.text", "selected", 0.0); - set_int(selected, 1); - } - } - } - program { "on_selected"; - script { - if (get_int(item_state) != ITEM_STATE_DISABLED) { - set_state(PART:"elm.text", "selected", 0.0); - set_int(selected, 1); - } - } - } - program { "on_unselected"; - script { - if (get_int(item_state) != ITEM_STATE_DISABLED) { - set_state(PART:"elm.text", "default", 0.0); - set_int(selected, 0); - } - } - } - program { "rtl_mirrored"; - signal: "edje,state,rtl"; - source: "edje"; - script { - set_int(mirrored_state, 1); - } - } - program { "ltr_mirrored"; - signal: "edje,state,ltr"; - source: "edje"; - script { - set_int(mirrored_state, 0); - } - } - program { "on_tab_number_item"; - } - program { "on_visible_text"; - } - program { "on_hidden_text"; - } - program { "on_visible_icon"; - } - program { "on_hidden_icon"; - } - program { "on_orient_0"; - } - program { "on_orient_90"; - } - program { "on_orient_180"; - } - program { "on_orient_270"; - } - program { "on_shrink_scroll"; - } - program { "on_shrink_expand"; - } - program { "on_shrink_menu"; - } - program { "on_shrink_hide"; - } - program { "on_shrink_default"; - } - } -} - -group { "elm/toolbar/more/default"; - alias:"elm/toolbar/more/tabbar"; - alias:"elm/toolbar/more/tabbar/item_with_title"; - alias:"elm/toolbar/more/tabbar_with_title"; - alias:"elm/toolbar/more/navigationbar"; - parts { - swallow { "elm.swallow.content"; - desc { "default"; - hid; - } - } - swallow { "elm.swallow.content2"; - desc { "default"; - hid; - } - } - } -} - -group { "elm/toolbar/item/light_view"; - inherit: "elm/toolbar/item/tabbar_with_title"; - parts { - rect { "bg_base"; - scale; - desc { "default"; - rel1.to: "base"; - rel2.to: "base"; - min: TABBAR_COMMON_DEFAULT_ITEM_SIZE_INC; - color_class: "toolbar_item/light_view/bg"; - } - desc { "land"; - inherit: "default"; - min: TABBAR_COMMON_LANDSCAPE_DEFAULT_ITEM_SIZE_INC; - } - desc { "scroll"; - inherit: "default"; - min: TABBAR_COMMON_SCROLL_ITEM_SIZE_INC; - } - desc { "land_scroll"; - inherit: "default"; - min: TABBAR_COMMON_LANDSCAPE_SCROLL_ITEM_SIZE_INC; - } - } - rect { "bg_cover"; - scale; - desc { "default"; - rel1.to: "base"; - rel2.to: "base"; - hid; - } - desc { "pressed"; - inherit: "default"; - vis; - color_class: "toolbar_item/light_view/effect"; - } - desc { "disabled"; - inherit: "default"; - hid; - } - desc { "selected"; - inherit: "default"; - hid; - } - } - part { "padding_left_top"; - type: SPACER; - scale; - nomouse; - desc { state: "default"; - align: 0.0 0.0; - rel2.relative: 0.0 0.0; - min: 0 0; - fixed: 1 1; - } - desc { state: "text"; - inherit: "default"; - min: TABBAR_LIGHT_VIEW_TEXT_LEFT_TOP_PADDING_SIZE_INC; - } - } - part { "padding_right_bottom"; - type: SPACER; - scale; - nomouse; - desc { state: "default"; - align: 1.0 1.0; - rel1.relative: 1.0 1.0; - fixed: 1 1; - } - desc { state: "text"; - inherit: "default"; - min: TABBAR_LIGHT_VIEW_TEXT_RIGHT_BOTTOM_PADDING_SIZE_INC; - } - } - part { "padding_selected_line_top"; - type: SPACER; - scale; - nomouse; - desc { state: "default"; - rel1 { - to: "elm.text"; - relative: 0.0 1.0; - } - rel2 { - to: "elm.text"; - relative: 1.0 1.0; - } - fixed: 0 1; - min: TABBAR_LIGHT_VIEW_SELECTED_LINE_TOP_PADDING_SIZE_INC; - align: 0.5 0.0; - } - } - image { "selected_line"; - scale; - desc { "default"; - min: 0 TABBAR_COMMON_SELECTED_LINE_HEIGHT_INC; - max: 0 TABBAR_COMMON_SELECTED_LINE_HEIGHT_INC; - rel1 { - to: "padding_selected_line_top"; - relative: 0.0 1.0; - } - rel2 { - to: "padding_selected_line_top"; - relative: 1.0 1.0; - } - image.normal: "core_tab_selectbar.#.png"; - fixed: 0 1; - color: 255 255 255 0; - color_class: "toolbar_item/light_view/underline"; - align: 0.5 0.0; - } - desc { "selected"; - inherit: "default"; - max: -1 TABBAR_COMMON_SELECTED_LINE_HEIGHT_INC; - color: 255 255 255 255; - } - } - part { "elm.text"; - type: TEXTBLOCK; - nomouse; - scale; - clip: "clipper_elm.text"; - desc { state: "default"; - hid; - min: TABBAR_LIGHT_VIEW_TEXT_SIZE_INC; - max: TABBAR_LIGHT_VIEW_TEXT_SIZE_INC; - rel1 { - to: "padding_left_top"; - relative: 1.0 1.0; - } - rel2 { - to: "padding_right_bottom"; - relative: 0.0 0.0; - } - fixed: 1 1; - } - desc { state: "text_normal"; - inherit: "default"; - vis; - text { - style: "tabbar_light_view_textblock_style"; - min: 0 1; - max: 1 0; - } - } - desc { state:"text_pressed"; - inherit: "text_normal"; - text.style: "tabbar_light_view_textblock_pressed_style"; - } - desc { state:"text_selected"; - inherit: "text_normal"; - text.style: "tabbar_light_view_textblock_selected_style"; - } - desc { state:"text_disabled"; - inherit: "text_normal"; - text.style: "tabbar_light_view_textblock_disabled_style"; - } - desc { state: "icon_text"; - inherit: "default"; - vis; - text { - style: "tabbar_light_view_textblock_style"; - min: 0 1; - max: 1 0; - } - } - desc { state:"icon_text_pressed"; - inherit: "icon_text"; - text.style: "tabbar_light_view_textblock_pressed_style"; - } - desc { state:"icon_text_selected"; - inherit: "icon_text"; - text.style: "tabbar_light_view_textblock_selected_style"; - } - desc { state:"icon_text_disabled"; - inherit: "icon_text"; - text.style: "tabbar_light_view_textblock_disabled_style"; - } - } - part { "elm.text.slide"; - type: TEXTBLOCK; - scale; - clip: "clipper_elm.text.slide"; - desc { state: "default"; - fixed: 1 1; - align: 0.0 0.5; - min: TABBAR_LIGHT_VIEW_TEXT_SIZE_INC; - max: TABBAR_LIGHT_VIEW_TEXT_SIZE_INC; - rel1 { - to: "padding_left_top"; - relative: 1.0 1.0; - } - rel2 { - to: "padding_right_bottom"; - relative: 0.0 0.0; - } - text { - style: "tabbar_light_view_textblock_selected_slide_style"; - min: 1 1; - max: 1 0; - } - } - desc { state: "slide_begin"; - inherit: "default"; - } - desc { state: "slide_end"; - inherit: "default"; - align: 1.0 0.5; - rel1 { - to_x: "slide_text_gap"; - to_y: "padding_left_top"; - relative: 0.0 1.0; - } - rel2 { - to_x: "slide_text_gap"; - to_y: "padding_right_bottom"; - relative: 1.0 0.0; - } - } - desc { state: "icon_text"; - inherit: "default"; - text { - style: "tabbar_light_view_textblock_selected_slide_style"; - min: 1 1; - max: 1 0; - } - } - desc { state: "icon_text_slide_begin"; - inherit: "icon_text"; - } - desc { state: "icon_text_slide_end"; - inherit: "slide_end"; - } - } - } -} diff --git a/ElmSharp/theme/tv/widgets/tooltip.edc b/ElmSharp/theme/tv/widgets/tooltip.edc deleted file mode 100644 index 3a30e64..0000000 --- a/ElmSharp/theme/tv/widgets/tooltip.edc +++ /dev/null @@ -1,292 +0,0 @@ -/* - * Copyright (c) 2010 Samsung Electronics Co., Ltd All Rights Reserved - * - * BSD 2-Clause License (http://www.opensource.org/licenses/bsd-license.php) - * - * Redistribution and use in source and binary forms, with or without - * modification, are permitted provided that the following conditions are met: - * - * 1. Redistributions of source code must retain the above copyright notice, this - * list of conditions and the following disclaimer. - * 2. Redistributions in binary form must reproduce the above copyright notice, - * this list of conditions and the following disclaimer in the documentation - * and/or other materials provided with the distribution. - * - * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND - * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED - * WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE - * DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR - * ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES - * (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; - * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND - * ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT - * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS - * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. - */ - -group { name: "elm/label/base/tooltip"; - styles { - style { name: "tooltip_style"; - base: "font=Sans font_size=22 align=left color=#1d1d1d left_margin=21 right_margin=21 wrap=word"; - tag: "br" "\n"; - tag: "hilight" "+ font_weight=Bold"; - tag: "b" "+ font_weight=Bold"; - tag: "tab" "\t"; - } - } - parts { - part { name: "elm.text"; - type: TEXTBLOCK; - mouse_events: 0; - scale: 1; - description { state: "default" 0.0; - text { - style: "tooltip_style"; - min: 1 1; - ellipsis: -1; - } - } - } - } -} - -group { name: "elm/tooltip/base/default"; - min: 40 40; - data { - item: "pad_x" "20"; - item: "pad_y" "20"; - item: "pad_border_x" "10"; - item: "pad_border_y" "10"; - item: "hide_timeout" "0.35"; /**< tooltip is hidden after this amount, keep in sync with hide animations */ - } - images { - image: "tooltip_bg.png" COMP; - image: "tooltip-edge-bottom-tip.png" COMP; - image: "tooltip-edge-top-tip.png" COMP; - } - script { - show_edge_top(Float:val) { - set_state(PART:"clipper-edge-top", "visible", 0.0); - set_drag(PART:"edge-drag-top", val, 0.0); - } - show_edge_bottom(Float:val) { - set_state(PART:"clipper-edge-bottom", "visible", 0.0); - set_drag(PART:"edge-drag-bottom", val, 0.0); - } - - public message(Msg_Type:type, id, ...) { - if ((type == MSG_FLOAT_SET) && (id == 1)) { - new Float:x, Float:y; - - x = getfarg(2); - y = getfarg(3); - - if (y < 0.0) show_edge_top(x); - else if (y > 1.0) show_edge_bottom(x); - } - } - } - parts { - part { name: "clipper"; type: RECT; - description { state: "default" 0.0; - color: 255 255 255 0; - rel1 { to: "pop"; offset: -15 -15; } - rel2 { to: "pop"; offset: 15 15; } - } - description { state: "visible" 0.0; - inherit: "default" 0.0; - color: 255 255 255 255; - } - } - part { name: "pop"; mouse_events: 0; - clip_to: "clipper"; - scale: 1; - description { state: "default" 0.0; - min: 60 60; - rel1 { - to: "elm.swallow.content"; - offset: -5 -4; - } - rel2 { - to: "elm.swallow.content"; - offset: 4 5; - } - color: 255 255 255 230; - image { - normal: "tooltip_bg.png"; - border: 5 6 6 7; - } - } - } - - #define TT_EDGE_HORIZ(name_, ry, ay, oy) \ - part { name: "clipper-edge-"name_; \ - type: RECT; \ - clip_to: "clipper"; \ - description { state: "default" 0.0; \ - color: 255 255 255 0; \ - visible: 0; \ - min: 14 14; \ - align: 0.5 ay; \ - fixed: 1 1; \ - rel1 { \ - relative: 0.0 ry; \ - offset: 0 oy; \ - to: "elm.swallow.content"; \ - } \ - rel2 { \ - relative: 1.0 ry; \ - offset: 0 oy; \ - to: "elm.swallow.content"; \ - } \ - } \ - description { state: "visible" 0.0; \ - inherit: "default" 0.0; \ - color: 255 255 255 255; \ - visible: 1; \ - } \ - } \ - part { name: "edge-area-"name_; \ - type: RECT; \ - mouse_events: 0; \ - clip_to: "clipper-edge-"name_; \ - description { state: "default" 0.0; \ - color: 0 0 0 0; \ - min: 14 14; \ - align: 0.5 ay; \ - fixed: 1 1; \ - rel1 { \ - relative: 0.0 ry; \ - offset: 0 oy; \ - to: "elm.swallow.content"; \ - } \ - rel2 { \ - relative: 1.0 ry; \ - offset: 0 oy; \ - to: "elm.swallow.content"; \ - } \ - } \ - } \ - part { name: "edge-drag-"name_; \ - type: RECT; \ - mouse_events: 0; \ - clip_to: "clipper-edge-"name_; \ - dragable { \ - x: 1 1 0; \ - y: 0 0 0; \ - confine: "edge-area-"name_; \ - } \ - description { state: "default" 0.0; \ - color: 0 0 0 0; \ - min: 14 14; \ - rel1.to: "edge-area-"name_; \ - rel2.to: "edge-area-"name_; \ - } \ - } \ - part { name: "edge-img-"name_; \ - type: IMAGE; \ - mouse_events: 0; \ - clip_to: "clipper-edge-"name_; \ - description { state: "default" 0.0; \ - min: 14 14; \ - max: 14 14; \ - align: 0.5 ay; \ - fixed: 1 1; \ - rel1.to: "edge-drag-"name_; \ - rel2.to: "edge-drag-"name_; \ - image.normal: "tooltip-edge-"name_"-tip.png"; \ - } \ - } - TT_EDGE_HORIZ("top", 0, 1, -5); - TT_EDGE_HORIZ("bottom", 1, 0, 2); - #undef TT_EDGE_HORIZ - - part { name: "clipper_content"; - type: RECT; - description { state: "default" 0.0; - color: 255 255 255 0; - rel1.to: "elm.swallow.content"; - rel1.offset: -64 -64; - rel2.to: "elm.swallow.content"; - rel2.offset: 63 63; - } - description { state: "visible" 0.0; - inherit: "default" 0.0; - color: 255 255 255 255; - } - } - part { name: "elm.swallow.content"; type: SWALLOW;//this bring the tooltip up and down. - clip_to: "clipper_content"; - description { state: "default" 0.0; - rel1.offset: 10 20; - rel2.offset: -10 -20; - } - } - programs { - program { - name: "show0"; - signal: "elm,action,show"; - source: "elm"; - action: ACTION_STOP; - target: "hide0"; - target: "hide2"; - target: "hide3"; - after: "show1"; - after: "show2"; - } - program { - name: "show1"; - action: STATE_SET "visible" 0.0; - transition: LINEAR 0.15; - target: "clipper"; - } - program { - name: "show2"; - in: 0.1 0.0; - action: STATE_SET "visible" 0.0; - transition: LINEAR 0.15; - target: "clipper_content"; - } - - program { - name: "hide0"; - signal: "elm,action,hide"; - source: "elm"; - action: ACTION_STOP; - target: "show0"; - target: "show1"; - target: "show2"; - after: "hide2"; - after: "hide3"; - } - program { - name: "hide2"; - action: STATE_SET "default" 0.0; - transition: LINEAR 0.1; - target: "clipper_content"; - } - program { - name: "hide3"; - in: 0.1 0.0; - action: STATE_SET "default" 0.0; - transition: LINEAR 0.1; - target: "clipper"; - } - } - } -} -group { name: "elm/tooltip/base/transparent"; - data { - item: "pad_x" "10"; - item: "pad_y" "10"; - item: "transparent" "enabled"; - } - parts { - part { name: "elm.swallow.content"; - type: SWALLOW; - mouse_events: 0; - scale: 1; - description { state: "default" 0.0; } - } - } -} diff --git a/packaging/elm-sharp.spec b/packaging/elm-sharp.spec index 0ce69aa..fd90ac4 100644 --- a/packaging/elm-sharp.spec +++ b/packaging/elm-sharp.spec @@ -1,4 +1,4 @@ -%define DEV_VERSION beta-006 +%define DEV_VERSION beta-007 Name: elm-sharp Summary: C# Binding for Elementary @@ -14,7 +14,6 @@ AutoReqProv: no ExcludeArch: aarch64 BuildRequires: dotnet-build-tools -BuildRequires: edje-tools %define Assemblies ElmSharp @@ -33,22 +32,12 @@ for ASM in %{Assemblies}; do %dotnet_pack $ASM/$ASM.nuspec %{version}%{?DEV_VERSION:-%{DEV_VERSION}} done -edje_cc -id ElmSharp/theme/%{profile}/HD/images/ \ - -id ElmSharp/theme/%{profile}/HD/images/Assist_Views \ - -id ElmSharp/theme/%{profile}/HD/images/User_Input_Elements \ - -id ElmSharp/theme/%{profile}/HD/images/Navigation_elements \ - ElmSharp/theme/%{profile}/elm-sharp-theme-%{profile}.edc ElmSharp/theme/elm-sharp-theme.edj - %install for ASM in %{Assemblies}; do %dotnet_install $ASM done -mkdir %{buildroot}%{_datadir}/edje/elm-sharp -p -install -m 644 ElmSharp/theme/elm-sharp-theme.edj %{buildroot}%{_datadir}/edje/elm-sharp/ - %files %manifest %{name}.manifest %license LICENSE %attr(644,root,root) %{dotnet_assembly_files} -%attr(644,root,root) %{_datadir}/edje/elm-sharp/*.edj -- 2.7.4 From d83c2f5c3037a5cf1319b81e96e53fe3822634fb Mon Sep 17 00:00:00 2001 From: Kangho Hur Date: Wed, 18 Jan 2017 13:57:40 +0900 Subject: [PATCH 16/16] Add Entry.SelectAll() and Entry.SelectNone() Change-Id: I3cc2ec2e7ee3c5b19d0c4fa0ee3e058c82d4a9e5 --- ElmSharp.Test/ElmSharp.Test.csproj | 3 +- ElmSharp.Test/TC/EntryTest2.cs | 80 ++++++++++++++++++++++++++++ ElmSharp/ElmSharp/Entry.cs | 10 ++++ ElmSharp/Interop/Interop.Elementary.Entry.cs | 5 ++ packaging/elm-sharp.spec | 2 +- 5 files changed, 98 insertions(+), 2 deletions(-) create mode 100644 ElmSharp.Test/TC/EntryTest2.cs diff --git a/ElmSharp.Test/ElmSharp.Test.csproj b/ElmSharp.Test/ElmSharp.Test.csproj index 4eeca22..69a6c69 100644 --- a/ElmSharp.Test/ElmSharp.Test.csproj +++ b/ElmSharp.Test/ElmSharp.Test.csproj @@ -43,6 +43,7 @@ + @@ -189,4 +190,4 @@ - + \ No newline at end of file diff --git a/ElmSharp.Test/TC/EntryTest2.cs b/ElmSharp.Test/TC/EntryTest2.cs new file mode 100644 index 0000000..06c9f7c --- /dev/null +++ b/ElmSharp.Test/TC/EntryTest2.cs @@ -0,0 +1,80 @@ +/* + * Copyright (c) 2016 Samsung Electronics Co., Ltd All Rights Reserved + * + * Licensed under the Apache License, Version 2.0 (the License); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an AS IS BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +using System; +using ElmSharp; + +namespace ElmSharp.Test +{ + class EntryTest2 : TestCaseBase + { + public override string TestName => "EntryTest2"; + public override string TestDescription => "To test basic operation of Entry"; + + public override void Run(Window window) + { + Background bg = new Background(window) { + AlignmentX = -1, + AlignmentY = -1, + WeightX = 1, + WeightY = 1, + Color = Color.Yellow + }; + bg.Show(); + window.AddResizeObject(bg); + + Conformant conformant = new Conformant(window); + conformant.Show(); + Box box = new Box(window); + conformant.SetContent(box); + box.Show(); + + Check check = new Check(window) { + AlignmentX = -1, + AlignmentY = 0.9, + WeightX = 1, + WeightY = 0.1, + Text = "Select All", + }; + check.Show(); + + Entry entry = new Entry(window) { + AlignmentX = -1, + AlignmentY = 0.1, + WeightX = 1, + WeightY = 1, + IsSingleLine = true, + Text = "Hello, Tizen !!!" + }; + entry.Show(); + + check.StateChanged += (object sender, CheckStateChangedEventArgs e) => + { + if (e.NewState == true) + { + entry.SelectAll(); + } + else + { + entry.SelectNone(); + } + }; + + box.PackEnd(check); + box.PackEnd(entry); + } + } +} diff --git a/ElmSharp/ElmSharp/Entry.cs b/ElmSharp/ElmSharp/Entry.cs index a5ef7ca..1c59e0e 100644 --- a/ElmSharp/ElmSharp/Entry.cs +++ b/ElmSharp/ElmSharp/Entry.cs @@ -293,6 +293,16 @@ namespace ElmSharp Interop.Elementary.elm_entry_input_panel_return_key_type_set(Handle, (Interop.Elementary.ReturnKeyType)keyType); } + public void SelectAll() + { + Interop.Elementary.elm_entry_select_all(Handle); + } + + public void SelectNone() + { + Interop.Elementary.elm_entry_select_none(Handle); + } + protected override IntPtr CreateHandle(EvasObject parent) { return Interop.Elementary.elm_entry_add(parent.Handle); diff --git a/ElmSharp/Interop/Interop.Elementary.Entry.cs b/ElmSharp/Interop/Interop.Elementary.Entry.cs index 7040df7..22108af 100644 --- a/ElmSharp/Interop/Interop.Elementary.Entry.cs +++ b/ElmSharp/Interop/Interop.Elementary.Entry.cs @@ -142,6 +142,11 @@ internal static partial class Interop [DllImport(Libraries.Elementary)] internal static extern InputPanelLayout elm_entry_input_panel_layout_get(IntPtr obj); + [DllImport(Libraries.Elementary)] + internal static extern void elm_entry_select_all(IntPtr obj); + + [DllImport(Libraries.Elementary)] + internal static extern void elm_entry_select_none(IntPtr obj); [DllImport(Libraries.Elementary)] internal static extern void elm_entry_text_style_user_pop(IntPtr obj); diff --git a/packaging/elm-sharp.spec b/packaging/elm-sharp.spec index fd90ac4..8e0f8ae 100644 --- a/packaging/elm-sharp.spec +++ b/packaging/elm-sharp.spec @@ -1,4 +1,4 @@ -%define DEV_VERSION beta-007 +%define DEV_VERSION beta-008 Name: elm-sharp Summary: C# Binding for Elementary -- 2.7.4