|
|
Home » U++ Library support » Look and Chameleon Technology » A little theming
|
|
|
|
|
|
|
|
Re: A little theming [message #18515 is a reply to message #18493] |
Mon, 06 October 2008 08:44 |
cbpporter
Messages: 1426 Registered: September 2007
|
Ultimate Contributor |
|
|
I did a little color theme change because the previous one was a little too dark and too gray. This one is more lively I think. I attached a small sample, only with two widgets (the rest are yet to be ported to the new color scheme).
I have a small question: when I use tab to cycle through the widgets in the window, the style for buttons gets overridden with the default Windows style for focused buttons, with a little dotted frame and Windows skin. How can I change that?
edit: deleted old exe
[Updated on: Sat, 11 October 2008 19:24] Report message to a moderator
|
|
|
|
|
|
Re: A little theming [message #18521 is a reply to message #18520] |
Mon, 06 October 2008 18:31 |
cbpporter
Messages: 1426 Registered: September 2007
|
Ultimate Contributor |
|
|
So here is the next preview. It is starting to really shape up.
Disabled scrollbars are a little bit ugly because I can't get the desired effect with hotspots yet. Also, it would be nice if the Style could specify if a disabled scrollbar shows it's thumb or not.
DropList skin is not complete.
EditFields have some problem with their border, because I can't figure out yet how to resize it. I need to define border sizes through chameleon.
And DocEdit uses yet another style of code to draw it's border, so I'm no where near as to touching it's style. But the scrollbar inside works with new skin.
Also, modifying Button::StyleScroll does not affect any scrollbars. Am I correct in assuming that I need to initialize it with the ScrollBar style?
Another question: what are ScrollBar::Style.left2, up2, etc. used for? I only modified the fields that don't end in 2.
Edit: removed old exe.
[Updated on: Thu, 16 October 2008 22:46] Report message to a moderator
|
|
|
|
|
Re: A little theming [message #18602 is a reply to message #18521] |
Sat, 11 October 2008 08:29 |
|
mirek
Messages: 14193 Registered: November 2005
|
Ultimate Member |
|
|
cbpporter wrote on Mon, 06 October 2008 12:31 | So here is the next preview. It is starting to really shape up.
Disabled scrollbars are a little bit ugly because I can't get the desired effect with hotspots yet. Also, it would be nice if the Style could specify if a disabled scrollbar shows it's thumb or not.
DropList skin is not complete.
EditFields have some problem with their border, because I can't figure out yet how to resize it. I need to define border sizes through chameleon.
|
I cannot help without seeing the code
Quote: |
Also, modifying Button::StyleScroll does not affect any scrollbars. Am I correct in assuming that I need to initialize it with the ScrollBar style?
|
StyleScroll is now deprecated. It was used to paint scrollbar buttons, which was enough for XP, but not for Linux themes.
Quote: |
Another question: what are ScrollBar::Style.left2, up2, etc. used for? I only modified the fields that don't end in 2.
|
Some GTK themes have secondary buttons (usually two up buttons, second one close to down button).
You can activate them using 'isup2' etc...
Mirek
P.S.: I hope you could write some T++ about theming when you are finished
|
|
|
Re: A little theming [message #18607 is a reply to message #18602] |
Sat, 11 October 2008 19:46 |
cbpporter
Messages: 1426 Registered: September 2007
|
Ultimate Contributor |
|
|
luzr wrote on Sat, 11 October 2008 09:29 |
cbpporter wrote on Mon, 06 October 2008 12:31 | So here is the next preview. It is starting to really shape up.
Disabled scrollbars are a little bit ugly because I can't get the desired effect with hotspots yet. Also, it would be nice if the Style could specify if a disabled scrollbar shows it's thumb or not.
DropList skin is not complete.
EditFields have some problem with their border, because I can't figure out yet how to resize it. I need to define border sizes through chameleon.
|
I cannot help without seeing the code
|
Hmmm, I thought that I posted a test case with source. Guess I forgot. Sorry. Anyway, wait a little (I still need some days) and I'll post something working so that everybody can start using it. Just need to iron out some details first. My approach is to have a ChameleonTheme class which can load the theming info from disk. It does the streaming itself for each Style class for now, but in the future I hope we can move streaming to each style. Also, the theme can be embedded in the exe with binary inclusion mechanism if external file is not desired. Another advantage is that we can keep multiple themes in memory, and mix and match.
Those comments about what is wrong with the theme right now where more given as information for people downloading the exe and see something wrong or ugly, not to ask help.
Except for the EditField question. I think that can be answered without seeing any of my code, because I haven’t done anything to it: how can I change the border size of EditFields through Chameleon (not sure if possible right now). And except setting thumb visibility for disabled ScrollBars.
Quote: |
StyleScroll is now deprecated. It was used to paint scrollbar buttons, which was enough for XP, but not for Linux themes.
|
OK, I'll initialize it with ScrollBar style to keep some compatibility.
Quote: |
You can activate them using 'isup2' etc...
|
Great, I always wanted that second down button under Windows!
Quote: |
P.S.: I hope you could write some T++ about theming when you are finished
|
Sure, that shouldn’t be a problem. By the time I finish this theme, I'm sure to have the knowledge for that . But there are some areas which should be improved before documenting, but we'll get to that later.
|
|
|
|
|
|
Goto Forum:
Current Time: Mon Jan 13 20:43:03 CET 2025
Total time taken to generate the page: 0.03138 seconds
|
|
|