Hi,

you can use a delegate function to apply a custom appearance to the list 
items:

var selectBox = new qx.ui.form.VirtualSelectBox(model);
var list = selectBox.getChildControl("dropdown").getChildControl("list");
list.setDelegate({
   configureItem : function(item) {
     item.setAppearance("custom-listitem");
   }
});

The appearance is defined in the "appearances" map in 
source/class/<appname>/theme/Appearance.js:

     "custom-listitem" :
     {
       alias : "atom",

       style : function(states)
       {
         return {
           padding   : states.dragover ? [4, 4, 2, 4] : 4,
           textColor : states.selected ? "text-selected" : undefined,
           decorator : states.selected ? "listitem-selected" : undefined
         };
       }
     }

and it assigns a decorator defined in 
source/class/<appname>/theme/Decoration.js:

     "listitem-selected" :
     {
       style :
       {
         startColorPosition : 0,
         endColorPosition : 100,
         startColor : "red",
         endColor : "green"
       }
     }

Here, red and green are the customized color values for the item's 
background gradient.


Regards,
Daniel

On 22.10.2013 16:40, Yordan Estrada wrote:
> Hello everybody, i am trying to change the blue color, used by default
> in the virtualSelectBox Component, when the mouse roll over the items,
> do someone know how to do that??
>
>
>
>
> ------------------------------------------------------------------------------
> October Webinars: Code for Performance
> Free Intel webinars can help you accelerate application performance.
> Explore tips for MPI, OpenMP, advanced profiling, and more. Get the most from
> the latest Intel processors and coprocessors. See abstracts and register >
> http://pubads.g.doubleclick.net/gampad/clk?id=60135991&iu=/4140/ostg.clktrk
>
>
>
> _______________________________________________
> qooxdoo-devel mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/qooxdoo-devel
>

------------------------------------------------------------------------------
October Webinars: Code for Performance
Free Intel webinars can help you accelerate application performance.
Explore tips for MPI, OpenMP, advanced profiling, and more. Get the most from 
the latest Intel processors and coprocessors. See abstracts and register >
http://pubads.g.doubleclick.net/gampad/clk?id=60135991&iu=/4140/ostg.clktrk
_______________________________________________
qooxdoo-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/qooxdoo-devel

Reply via email to