jadrake75
6 Jul 2009, 9:18 AM
Hi GXT team,
I am just wondering why you set the styles for ToolItems and Fields in the onRender? the problem with this of course, is it means we are stuck with "xtb-text" and "x-field-text" for example for Label and ToolItems. In my case, I have a quick search bar in my menu bar header (and there is a textfield and a LabelToolItem), and in certain themes (like Slate) the text is black, when I'd like it to be "white" matching the theme. (yes I know I could set the color, but I'd like to do it with styles...)
If I add/remove the style (such as "x-btn-text") this is added, but since the onRender is adding the "xtb-text" first this is getting picked up. Instead of setting this hard-coded, shouldn't it use the setStylePrimaryName( ) in the constructor instead?
-Jason
I am just wondering why you set the styles for ToolItems and Fields in the onRender? the problem with this of course, is it means we are stuck with "xtb-text" and "x-field-text" for example for Label and ToolItems. In my case, I have a quick search bar in my menu bar header (and there is a textfield and a LabelToolItem), and in certain themes (like Slate) the text is black, when I'd like it to be "white" matching the theme. (yes I know I could set the color, but I'd like to do it with styles...)
If I add/remove the style (such as "x-btn-text") this is added, but since the onRender is adding the "xtb-text" first this is getting picked up. Instead of setting this hard-coded, shouldn't it use the setStylePrimaryName( ) in the constructor instead?
-Jason