Changing Book Icon in TOC (selected only)

This forum is for all Flare issues not related to any of the other categories.
Post Reply
LissaEntero
Propeller Head
Posts: 16
Joined: Thu Nov 23, 2006 11:02 am
Location: Calgary, Alberta, Canada
Contact:

Changing Book Icon in TOC (selected only)

Post by LissaEntero »

Is it possible to change the Book Icon (or colour) for only SELECTED topics in a TOC?
I have reviewed http://forums.madcapsoftware.com/viewto ... f=9&t=7220 but I'm not smart enuf (yet) to know if there's also a way to conditionalize the colour. I would like to have one icon/colour for Concept topics and one icon/colour for Procedures topics.
TIA,
Mellissa
Flare 4.2.0 on Win XP

Never let a problem to be solved become more important than a person to be loved.
LTinker68
Master Propellus Maximus
Posts: 7247
Joined: Thu Feb 16, 2006 9:38 pm

Re: Changing Book Icon in TOC (selected only)

Post by LTinker68 »

I've never tried it myself, but ... First, go to the Skin Editor then go to the Styles tab, left-click TocEntry, then click "Add Class". Give the new class a name, then specify new images for the topic and book icons. Second, for each topic (or book) you want to be different than the default, right-click on the topic in the TOC Editor, click Properties, go to the Basic tab, then under "Style Class" select the TocEntry class you just created.

Since you're making a change to the skin, delete the Output folder before you rebuild the project so that the browser grabs the latest version of the skin files instead of loading cached icons.

BTW, that's in Flare v4. I'm pretty sure those features were available in earlier versions, though.
Image

Lisa
Eagles may soar, but weasels aren't sucked into jet engines.
Warning! Loose nut behind the keyboard.
LissaEntero
Propeller Head
Posts: 16
Joined: Thu Nov 23, 2006 11:02 am
Location: Calgary, Alberta, Canada
Contact:

Re: Changing Book Icon in TOC (selected only)

Post by LissaEntero »

I'll try that this weekend and get back to you. Thanks a bunch :wink:
Flare 4.2.0 on Win XP

Never let a problem to be solved become more important than a person to be loved.
LissaEntero
Propeller Head
Posts: 16
Joined: Thu Nov 23, 2006 11:02 am
Location: Calgary, Alberta, Canada
Contact:

Re: Changing Book Icon in TOC (selected only)

Post by LissaEntero »

Absolutely SUPER! I used my graphics program to locate and alter the topic.gif, book.gif and bookopen.gif, recolouring them to match our corporate colours. Then I did the edits you suggested, blew away the output file and recompiled. Now I have a different colour for Concept and Reference topics, and left the Task topics alone.

Nice work, Madcap! (ok, nice work, guys who invented CSS.... but Madcap people are pretty brilliant too...)
Flare 4.2.0 on Win XP

Never let a problem to be solved become more important than a person to be loved.
todd.richardson
Sr. Propeller Head
Posts: 187
Joined: Thu Aug 07, 2008 6:43 am
Location: Massachusetts

Re: Changing Book Icon in TOC (selected only)

Post by todd.richardson »

LissaEntero wrote:I used my graphics program to locate and alter the topic.gif, book.gif and bookopen.gif, recolouring them to match our corporate colours.
Can you explain how exactly this was done? I'm in the same predicament, but I'm at a loss for how to change the icon colors.

Thanks.
Todd Richardson
Engineering Team Lead – Customer Experience | IntervalZero

Windows 10, Flare 2020
beagley
Sr. Propeller Head
Posts: 182
Joined: Tue May 06, 2008 1:33 pm
Location: Vermont

Re: Changing Book Icon in TOC (selected only)

Post by beagley »

LTinker68 wrote:I've never tried it myself, but ... First, go to the Skin Editor then go to the Styles tab, left-click TocEntry, then click "Add Class". Give the new class a name, then specify new images for the topic and book icons. Second, for each topic (or book) you want to be different than the default, right-click on the topic in the TOC Editor, click Properties, go to the Basic tab, then under "Style Class" select the TocEntry class you just created.

Since you're making a change to the skin, delete the Output folder before you rebuild the project so that the browser grabs the latest version of the skin files instead of loading cached icons.

BTW, that's in Flare v4. I'm pretty sure those features were available in earlier versions, though.
Lisa, this was great!

I used the steps you describe to create a "Major" subclass style so that some of the items in my TOC can be bold. Worked like a charm!

Thank you so much for writing this up... I figured it was SOMEWHERE, but had only pawed through the Stylesheet editor and hadn't found it.
Post Reply