Hi Joachim,
Maybe looking into qxet souces can help you. I extended Classic theme
(not really extended, I created complete new theme, but it uses some
Classic theme artwork from qooxdoo distribution).
Maybe the key to make is working is following (from qxet):
qx.Theme.define("qxet.light.Decoration",
{
aliases:
{
decoration: "qx/decoration/Classic",
qxetd: "qxet/decoration/Light"
},
But I don't know if it's simple to replace the only image, you
probably need to write your own decorators that replace existing ones.
I hope that qooxdoo experts give you better info:)
--
Best regards
- Petr Kobalicek <http://kobalicek.com>
On Sat, Feb 27, 2010 at 1:50 PM, Joachim Baran <[email protected]> wrote:
> Hi!
>
> I tried to customise the Modern theme a bit, but I got stuck pretty
> quickly. I googled for possible solutions, but the only posts I could
> find regarding the topic were not very helpful. Basically, I do not
> want to write my own theme, but only change the window caption-bar
> decorations of the Modern theme.
>
> The problem I am experiencing is very straighforward:
> 'captionbar-active.png' cannot be found. I tried to insert 'aliases'
> and I played around with '#asset', but whatever values I choose, I
> only succeed in breaking the Modern theme completely, or the Modern
> theme stays intact and my PNG is still not displayed.
>
> It seems to me that the path to my picture cannot be resolved
> correctly. If I put the path to any picture of the modern theme in my
> code, then it works. If I try to use my path, it does not work.
>
> I use the code snippet below:
>
> qx.Theme.define("gazebo.theme.Decoration",
> {
> extend : qx.theme.modern.Decoration,
> decorations :
> {
> "window-captionbar-active" :
> {
> decorator : qx.ui.decoration.Grid,
> style : {
> baseImage : "gazebo/decoration/captionbar-active.png"
> }
> }
> });
>
> It would be great if someone could point out the surely trivial
> mistake that I am making.
>
> Thanks,
> Joachim
>
> ------------------------------------------------------------------------------
> Download Intel® Parallel Studio Eval
> Try the new software tools for yourself. Speed compiling, find bugs
> proactively, and fine-tune applications for parallel performance.
> See why Intel Parallel Studio got high marks during beta.
> http://p.sf.net/sfu/intel-sw-dev
> _______________________________________________
> qooxdoo-devel mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/qooxdoo-devel
>
------------------------------------------------------------------------------
Download Intel® Parallel Studio Eval
Try the new software tools for yourself. Speed compiling, find bugs
proactively, and fine-tune applications for parallel performance.
See why Intel Parallel Studio got high marks during beta.
http://p.sf.net/sfu/intel-sw-dev
_______________________________________________
qooxdoo-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/qooxdoo-devel