Overview
Examples
Screenshots
Comparisons
Applications
Download
Documentation
Tutorials
Bazaar
Status & Roadmap
FAQ
Authors & License
Forums
Funding Ultimate++
Search on this site
Search in forums












SourceForge.net Logo
Home » U++ Library support » Look and Chameleon Technology » A little theming
Re: A little theming [message #21521 is a reply to message #21520] Sun, 24 May 2009 11:57 Go to previous messageGo to previous message
cbpporter is currently offline  cbpporter
Messages: 1401
Registered: September 2007
Ultimate Contributor
Hi Didier!

Thanks for point number one! Maybe sometimes using too much features like templates is not that good. I wonder if GCC is not being 100% compliant here, or is there an issue with the code I've written (except the obvious us of V instead of const V& in the parameter list Smile ).

Sorry about points 2 and 3. I've corrected them after first noticing MINGW problems, but missed on my commit because I was accidentally using and editing Theme from MyApps instead from bazaar nest. I've corrected this and there shouldn't be any more source synchronization issues. But not being able to repeat the class name in a definition is really silly. I wish GCC would allow this.

Quote:

1 - Is there some documentation for the 'theme.ini' file syntax ?
2 - Can I use several themes in one application (like have two tabs not using same theme) or add in 'theme.ini' several different versions of skin for a ctrl ?


1. No, there is not documentation yet. Maybe after it gets more stable. But it is pretty straightforward. Every section name corresponds more or less to a widget. Values from the sections correspond to the same named field in the appropriate style structure. Values can be simple values or commands:
color r g b             // simple rgb value
null                    // null look
png                     // loads a png from correct folder and name determined by what the image is going to be used for
png hot i1 i2 i3 i4     // loads a png and sets hot spots

I'll add a name parameter to png in the future for custom file names and maybe other formats, but png is IMO best for this purpose: small, loose less and portable.

2. This was a feature in previous version of Theme and I'll bring it back. It got lost since I've rewritten the them class from scratch and it is a little poor on features right now because I'm focusing on the look. Themes are applied now once loaded, but you will be able to keep several loaded in memory and apply only a widget at a time to mix and match.
 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: The problem with the operation of the buffer.
Next Topic: Set fields side to other fields and fields width to text width
Goto Forum:
  


Current Time: Fri Apr 26 02:26:45 CEST 2024

Total time taken to generate the page: 0.08546 seconds