Hi,

When you define your own style you need to add the file with the
style as a theme overlay. 
(https://docs.enlightenment.org/elementary/current/group__Elm__Theme.html#ga6c9e97741f3893e14508ec5e4410b4f0)

The default style for elm/list/base/default is not in list.edc it is in
scroller.edc.

After you added your own overlay with the groups you need, you can
change the line 'string: "style" "default";' to 'string: "style"
"<style>"';

Greetings bu5hm4n

On Sun, Mar 20, 2016 at 01:22:00PM +0100, Andreas Volz wrote:
> Am Sun, 20 Mar 2016 11:13:59 +0100 schrieb
> [email protected]:
> 
> Hi,
> 
> hm, it seems I've not yet understood. For example for
> elm/list/base/<style> I can't find any style in the edc file:
> https://git.enlightenment.org/core/elementary.git/tree/data/themes/edc/elm/list.edc
> 
> I'm not sure what I should write in my application edc. This is it:
> 
>        part { name: "List01";
>           type: EXTERNAL;
>           source: "elm/list";
>           description { state: "default" 0;
>              rel1 {
>                 offset: 234 71;
>              }
>              rel2 {
>                 relative: 0 0;
>                 offset: 742 406;
>              }
>              params {
>                 string: "style" "default";
>                 choice: "list mode" "scroll";
>                 choice: "horizontal scroll" "auto";
>                 choice: "vertical scroll" "auto";
>                 bool: "horizontal mode" "0";
>                 bool: "multi-select mode" "0";
>                 bool: "always-select mode" "0";
>              }
>           }
>        }
> 
> So could you give me an example to change the style?
> 
> And I tried to call elm_object_style_set with some string and I get no
> result. Also no error on the console and return statement was 1.
> 
> > Hi,
> > 
> > you can do this with elm_object_style_set.
> > 
> > You can find the group which results with this api 
> > call with the name elm/list/base/<style>.
> > 
> > The style is also set to each item, so the item groups are named
> > elm/list/<item_type>/<style>.
> > 
> > Each group has to exist, if not you will see a error.
> > 
> > Greetings bu5hm4n
> > 
> > On Sun, Mar 20, 2016 at 09:47:14AM +0100, Andreas Volz wrote:
> > > Hello,
> > > 
> > > I like to change the style of a Elm List and Genlist (e.g. font
> > > size/style and maybe colors). But I don't like to change it as
> > > complete Elementary theme as my application has several lists which
> > > should have different style.
> > > 
> > > Is this possible in EDC or with the API?
> > > 
> > > regards
> > >   Andreas
> > > 
> > > -- 
> > > Technical Blog <http://andreasvolz.wordpress.com/>
> > > 
> > > ------------------------------------------------------------------------------
> > > Transform Data into Opportunity.
> > > Accelerate data analysis in your applications with
> > > Intel Data Analytics Acceleration Library.
> > > Click to learn more.
> > > http://pubads.g.doubleclick.net/gampad/clk?id=278785231&iu=/4140
> > > _______________________________________________
> > > enlightenment-devel mailing list
> > > [email protected]
> > > https://lists.sourceforge.net/lists/listinfo/enlightenment-devel
> > 
> > ------------------------------------------------------------------------------
> > Transform Data into Opportunity.
> > Accelerate data analysis in your applications with
> > Intel Data Analytics Acceleration Library.
> > Click to learn more.
> > http://pubads.g.doubleclick.net/gampad/clk?id=278785231&iu=/4140
> > _______________________________________________
> > enlightenment-devel mailing list
> > [email protected]
> > https://lists.sourceforge.net/lists/listinfo/enlightenment-devel
> > 
> 
> 
> -- 
> Technical Blog <http://andreasvolz.wordpress.com/>
> 
> ------------------------------------------------------------------------------
> Transform Data into Opportunity.
> Accelerate data analysis in your applications with
> Intel Data Analytics Acceleration Library.
> Click to learn more.
> http://pubads.g.doubleclick.net/gampad/clk?id=278785231&iu=/4140
> _______________________________________________
> enlightenment-devel mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/enlightenment-devel

------------------------------------------------------------------------------
Transform Data into Opportunity.
Accelerate data analysis in your applications with
Intel Data Analytics Acceleration Library.
Click to learn more.
http://pubads.g.doubleclick.net/gampad/clk?id=278785231&iu=/4140
_______________________________________________
enlightenment-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/enlightenment-devel

Reply via email to