Hey I copied everything which had DialogBox and changed all of them to a custom name but the dialogbox didn't look like it should by default, not sure what I did wrong , what do you mean by primary and dependent style names
On Aug 1, 8:13 pm, Chad <[email protected]> wrote: > Charlie, > > Look in the GWT SDK in your project. Look into > com.google.gwt.user.theme.standard (or dark or chrome if you are using > those instead). Drill down into the public/gwt/standard folders and > you will find the standard.css. You can open it and find the gwt- > DialogBox css classes that are used for the dialog box. Copy all of > those classes into your project's css file and replace all of the gwt- > DialogBox with whatever you want to call them (gwt-DialogBoxCustom or > charlie-DialogBox or whatever). Make sure you only replace the primary > style name, not the dependent style names. Then, make the few little > changes you need. In your code, call setStylePrimaryName("charlie- > DialogBox") on your custom dialog box. That should get you what you > want. > > HTH, > Chad > > On Aug 1, 9:26 am, Charlie <[email protected]> wrote: > > > > > Hey > > > I want to create a new CSS property style for dialog box but I want to > > change only certain things and when I try to do it I lose all the > > properties I'm not defining which were defined in the dialog box > > defaults. > > The only two things I want to change is the caption width (gwt- > > DialogBoxCustom .Caption) and the width of the dialog box itself (gwt- > > DialogBoxCustom) and like I said when I try to set those I lose all > > the other defaults which I want to keep. > > BTW just changing the default (gwt-DialogBox) isn't an option because > > I'm already using it for something else. > > > Any help will be appreciated , > > thanks- Hide quoted text - > > - Show quoted text - --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Google Web Toolkit" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/Google-Web-Toolkit?hl=en -~----------~----~----~----~------~----~------~--~---
