Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
Home
DiscussionsAccessExcelInfoPathOutlookPowerPointPublisherWord
DirectoryUser Groups
Related Topics
Outlook ExpressInternet ExplorerWindowsMS Server ProductsMore Topics ...

MS Office Forum / General MS InfoPath Questions / January 2006

Tip: Looking for answers? Try searching our database.

My own template and color schemes

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Bato - 24 Jan 2006 15:40 GMT
I hope someone can help me!

Can I design my own template, no matter how complex it is, and be able to
change its colors by selecting different color scheme? I tried everything. I
just could not persuade my template to think of colors as they are from color
schemes. Just do not tell me I have to start all over again!
Greg Collins [InfoPath MVP] - 24 Jan 2006 17:23 GMT
Yes, you can do this, but you will need to do some manual editing within the view .xsl files.

When you insert something like a layout table, it automatically uses the themed classes, but when you select a theme color from the color pallett, for some reason, InfoPath inserts a hard-coded physical color (i.e. "BACKGROUND-COLOR: #517dbf") instead of using the theme class (i.e. class="primaryDark")

In order to make your view fully theme changable, you will need to manually edit your view .xsl files to find all occurances of a hard-coded theme color, and replace it with the corresponding theme class. If you are familiar with HTML, then this should make sense.

Once you've made this conversion, then when you switch themes, in InfoPath, all of the colors will be updated as you expect them to be.

Signature

Greg Collins [InfoPath MVP]
Visit http://www.InfoPathDev.com

I hope someone can help me!

Can I design my own template, no matter how complex it is, and be able to
change its colors by selecting different color scheme? I tried everything. I
just could not persuade my template to think of colors as they are from color
schemes. Just do not tell me I have to start all over again!
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.