Styling Widgets Help
Added by Sergey Perunov almost 12 years ago
Hi,
I am having a hard time finding guides/tutorials on how to style built-in widgets.
For example, I am looking at the Wt::Auth in the examples directory that was installed via the package manager in my Ubuntu, and it looks very nice. However, when I build my own version of that same code I just get the controls laid out horizontally. I'm guessing there is CSS at work that is not in the /css directory of that project, but I can't find where it is in my /usr/lib/Wt/examples/feature/auth1/.
At the same time I can't find a definitive place in the docs that would help my style the AuthWidgetg. Perhaps I am not looking for the right thing?
Could you please point me in the right direction?
Replies (2)
RE: Styling Widgets Help - Added by Plug Gulp almost 12 years ago
@Sergey Perunov
"...However, when I build my own version of that same code I just get the controls laid out horizontally..."
Did you create a symlink to the "resources" directory in the directory of your version of the example code? The "resources" directory is usually in /usr/local/share/Wt. So, change into the directory where your docroot is (i.e. what ever directory path you pass as the ---docroot parameter) and create a symlink as follows:
ln -s /usr/local/share/Wt/resources
And then run the Wt application.
HTH,
~Plug
RE: Styling Widgets Help - Added by Sergey Perunov almost 12 years ago
Oh man, now everything makes sense.
Thanks!