Hello!

Where is mycharts.css located in the file-system?
Are you sure it is under documents directory (passed as --docroot)?

Check the contents of /mycharts.css downloaded, using Firebug's Net
tab (for Firefox) or Network tab of Developers Tools (for Chrome and
Opera). It is unlikely to be your CSS file.

On Thu, Mar 29, 2012 at 17:35, Dirk Eddelbuettel <[email protected]> wrote:
> I cannot get any CSS effects to work.
>
> Starting from hello.C, I added right after setTitle() the following
>
>  setCssTheme("polished");
>  messageResourceBundle().use(appRoot());
>  useStyleSheet("mycharts.css");  // also at end
>
> and following custom also added
>
>  // Set our style sheet last, so that it loaded after the ext stylesheets.
>  useStyleSheet("mycharts.css");
>
> right at the end of the constructor.
>
> When running 'hello', I see that mycharts.css is being read (sorry about any
> linebreaks)
>
>
> 192.168.1.10 - - [2012-Mar-29 08:32:52.632619] "GET
> /resources//themes/polished/wt.css HTTP/1.1" 200 1718
> 192.168.1.10 - - [2012-Mar-29 08:32:52.632779] "GET /resources/webkit-
> transitions.css HTTP/1.1" 200 1706
> 192.168.1.10 - - [2012-Mar-29 08:32:52.632911] "GET /mycharts.css HTTP/1.1" 
> 200
> 1697
> 192.168.1.10 - - [2012-Mar-29 08:32:52.637734] "GET /?
> wtd=iejwgL4fYPHB2C31&htmlHistory=true&request=script&rand=1880351388 HTTP/1.1"
> 200 46921
>
> but I cannot get any effects.  I mod'ed mycharts.css for simple things like
> fonts or background; I also tried adding a new section
>
> foo {
>  margin: 16px 0px;
>  font-size: 40pt;
>  background: #121212;
> }
>
> which I tried to set the widgets to:
>
>  root()->addWidget(new WText("Your name, please ? "));  // show some text
>  nameEdit_ = new WLineEdit(root());                     // allow text input
>  nameEdit_->setFocus();                                 // give focus
>  nameEdit_->setStyleClass("foo");
>
>  WPushButton *b = new WPushButton("Greet me.", root()); // create a button
>  b->setMargin(5, Left);                                 // add 5 pixels margin
>  b->setStyleClass("foo");
>
> but no mas.  What am I missing?
>
>
>
> ------------------------------------------------------------------------------
> This SF email is sponsosred by:
> Try Windows Azure free for 90 days Click Here
> http://p.sf.net/sfu/sfd2d-msazure
> _______________________________________________
> witty-interest mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/witty-interest

------------------------------------------------------------------------------
This SF email is sponsosred by:
Try Windows Azure free for 90 days Click Here 
http://p.sf.net/sfu/sfd2d-msazure
_______________________________________________
witty-interest mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/witty-interest

Reply via email to