Winforms Theming
"Simon Guindon" <[email protected]>
| Newsgroups | gmane.comp.gnu.dotgnu.developer |
|---|---|
| Message-ID | <000a01c453fd$33aec6e0$6400000a@amdxp> |
Hello all, its been awhile since I contacted the list with the progress from myself and David Sansome. I've been working on getting the code more proper and CVS friendly. After talking with Gopal and a few others we decided the best route is to get pnetlib in the manner that its theming-ready and I release a seperate package with an example them so people can try and we can get some feedback about our work. I think this is a good start and much better than the previous attempt I released to the mailing list. Basically the package I have includes 3 things: DIR: libwinformsqt the small c++ Qt painting library we pinvoke, build it and install. PATCH: winforms-theme.patch contains small changes to pnetlib to make DefaultThemePainter public so we can override it and inherit its already working painting methods. Also modifies ThemeManager to dynamically load a themer assembly the same way ToolKit allows, via env variables or command line parameters. If any error occurs during loading the overriden it uses DefaultThemePainter instead. No autodetecting environment occurs yet. Patch this into pnetlib and build/install pnetlib. DIR: System.Windows.Forms.Themes.Qt This contains the themer itself that calls the libwinformsqt library. Build and install this. To run enable the themer when running a winforms application simply execute: ilrun FormsTest.exe --theme=Qt OR ilrun FormsTest.exe --theme=System.Windows.Forms.Themes.Qt Any comments or suggestions would be greatly appreciated. It is still very much a work in progress but I hope this is a big step in getting people to try it and getting it into a more proper form. Also if anyone could commit the changes in winforms-theme.patch into CVS that would be great. http://216.58.40.193/qt-theme.zip Thanks and take care, Simon