What part of the Appearance controls the borders of Window

I have been experimenting with changing the look of a Window object.

I have created a MyWindowAppearance class, which extends BlueWindowAppearance

I've overridden some of the Resources objects, including the one I believe to indicate the color of the window borders, but while all the other overrides work, that one seems to be ignored. No errors or exceptions occur, though.

MyWindowResources and MyHeaderResources correctly do what I expect (I changed some colors in MyWindow.css and MyWindowHeader.css), but MyWindowDivFrameResources appears to be ignored in terms of what file is looked at.

The colors for the borders match what's in BlueWindowDivFrame.css rather than what's in MyWindowDivFrame.css (the latter is a copy of the former with the background color values changed).

Those appear to be the important steps. You can verify if a Window instance has your appearance or not by creating an instance, and using the debugger to check the type of its appearance field, to make sure it matches your new type.

If it does, then I'd suspect a problem with your appearance, perhaps you are not overriding something, or the order of css files in your @Source annotation is wrong. If it doesn't, then somehow you haven't replaced the appearance correctly. This latter piece can be tested by using the Window constructor that takes an appearance instance directly

Code:

Window w = new Window(new MyWindowAppearance());

If that works, then it confirms that your rebind rule is having no effect. One reason that could be is that it comes before either the GXT or Blue inherits statements in your module file - the last rebind rule to match a class is the one that takes effect.

It was at this point, VERY belatedly, that I realized that the colors weren't set up as colors for the window frame, but as sprites, with png files! But in any case, at least I know that I wasn't losing my mind!