|
|
Home » Developing U++ » UppHub » Themes
|
|
|
|
Re: Themes [message #28252 is a reply to message #28251] |
Wed, 25 August 2010 10:24 |
|
kohait00 wrote on Wed, 25 August 2010 04:06 | the advantage of U++ is not the fancy look but the ability to keep overview...fancy look is not always the best option. --> simplicity is a virtue of it's own..
|
I pretty sure it's possible to combine fancy look, simplicity and usability I agree that theide (especially icons) look could be better (system themes don't look too good for me). What we need it's a good custom theme which is platform independent. In one of my app I use sculpture theme. It looks really good (the only thing I don't like too much are scrollbars). I think we could make things easier for graphic designers if we provided some kind of theme creator application.
[Updated on: Wed, 25 August 2010 10:25] Report message to a moderator
|
|
|
|
|
Re: Themes [message #28257 is a reply to message #28254] |
Wed, 25 August 2010 11:17 |
|
Quote: | You still using it? Good . Are you using the new Zip based one or the old Chameleon code based one? I did not get any feedback on the new one except for Mirek saying that he doesn't like external files. I have been using it for months now as my default theme in TheIDE and in some apps. I like it but the gray can become depressing after a while. Been thinking of another color scheme for it, something more lively yet easy on the eyes.
|
I'm using the old one. I like internal image editor and similar to Mirek I prefer no external files. As for depresing. Recently I modified your theme. I added orange border for default buttons. But even without that my application (http://digitalsoftware.pl/pic.php?img=img/traveller1.png) doesn't seem to be depressing. The old version of your theme doesn't support button theming inside drop list control (in my case dropgrid) and on attached screenshot vista style is used there (and this is what I prefer, simple images on white background). Those white colors here and there brighten up the dark theme. And there are many colors on the main grid. Generally I like this mix
Quote: |
And yes, there where some problems with scrollbars, because of the way hotspots work and the way they filter the content in between. If you play a little with the scrollbar width, I think you can reduce the blurriness. I don't think I have the perfect scrollbar width out of the box.
|
Yes, I tried that. Reducing width of scrollbar helped (IMO they're too big by default)
Anyway, I tried to create my own theme many times, but I always failed That's why I thought about theme creator app where the output would be an upp package. In this app one could observe in realtime any change made to images or theme settings on any upp control.
|
|
|
|
|
Re: Themes [message #28269 is a reply to message #28267] |
Wed, 25 August 2010 13:59 |
cbpporter
Messages: 1401 Registered: September 2007
|
Ultimate Contributor |
|
|
Well no, since I thought that it is fairly self explanatory and I didn't get to the part where I would write official documentation for it. But there is info in the original thread.
So here it goes.
You need to add the bazaar/Theme package. From here you will need the Theme class. Your instance should survive the run-time of your application (but I think it will work even if you discard it after use, never tried it before), so a good place would be in your main method before you setup you main windows.
You need to call:
Theme& theme::Load(const String& fileName);
with the path to your theme.
All themes come in the bazaar/Themes folder. This is not a package, it is just a folder. No need to add it to your project. In the Themes folder you will find the themes in as a Zip archive or as separate unpacked folders. You pass the Load method a path. If that path is a folder and it finds a theme.ini file inside, it will try to loadd it. If it is a file, a Zip file, it will unpack it in you temp folder and load the theme.
Then you need to call:
And that's about it. You can disable the themeing of widgets with the UseXXX methods, and you can check if a widget is available with HasXXX methods.
Also, you can use the same Theme instance to load multiple themes in a row. This works best if the themes don't override the same elements.
If I wanted to apply Skulpture theme to UWord, and then replace the toolbars and menubars with the BlueBar theme, I would modify UWord.cpp like this:
GUI_APP_MAIN
{
Theme m;
m.Load("c:\\upp\\bazaar\\Themes\\Skulpture.zip").Apply();
m.Load("c:\\upp\\bazaar\\Themes\\BlueBar").Apply();
SetLanguage(LNG_ENGLISH);
SetDefaultCharset(CHARSET_UTF8);
................
|
|
|
|
|
|
|
|
|
|
|
|
Goto Forum:
Current Time: Sat May 04 11:13:35 CEST 2024
Total time taken to generate the page: 0.02903 seconds
|
|
|