dan wrote
> I am using the default theme defined for a new application
>
> I have a container defined as
>
> composite.setLayout(new qx.ui.layout.HBox(5));
>
> Then I set the decorator to
> composite.setDecorator("main")
>
> Now I want to just change to border radius just for this widget. How do I
> do this?
>
> I have looked at the docs for decorators and themes, but I am not sure how
> I specify just this widget without changing all widgets. Is there just a
> property of the widget that I can set, like composite.setRadius(10)? In
> the decorator class I see all the props that I would want to set for a
> widget but I don't know how to access them in code.
>
> Thanks,
> Dan
I think I figure it out
Just added to the default Decorations.js generated stub
"rounded" : {
include : "main",
style : {
radius : 10
}
}
By using include then it inherits all properties of main and now just add
the radius for rounded corners. Now I change decorator of my container to
composite.setDecorator("rounded")
--
View this message in context:
http://qooxdoo.678.n2.nabble.com/Set-border-radius-of-a-container-tp7584450p7584457.html
Sent from the qooxdoo mailing list archive at Nabble.com.
------------------------------------------------------------------------------
Introducing Performance Central, a new site from SourceForge and
AppDynamics. Performance Central is your source for news, insights,
analysis and resources for efficient Application Performance Management.
Visit us today!
http://pubads.g.doubleclick.net/gampad/clk?id=48897511&iu=/4140/ostg.clktrk
_______________________________________________
qooxdoo-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/qooxdoo-devel