Jump to content


Photo

Color


  • Please log in to reply
2 replies to this topic

#1 Bruce Kieffer

Bruce Kieffer

    Member

  • Members
  • PipPipPip
  • 70 posts

Posted 15 November 2008 - 04:38 PM

Evan,
Is there a way to change the colors used by DirectCorrect?

#2 Evan Gross

Evan Gross

    Administrator

  • Admin
  • PipPipPip
  • 2,991 posts
  • Gender:Male
  • Location:Toronto, Canada
  • Interests:This Place!

Posted 15 November 2008 - 10:22 PM

Evan,
Is there a way to change the colors used by DirectCorrect?


Yep, there are two standard .clr (colorlist) files that define the colors used:

SCErrorKindColors.clr
SCErrorKindHighlightColors.clr

Both are found in the Spell Catcher.component package, inside the Spell Catcher UI Server.app package:

Spell Catcher.component/Contents/SharedSupport/Spell Catcher UI Server.app/Contents/Resources

The first contains the colors used for word and underline highlighting, the second for "background" highlighting. They are similar, but not exactly the same. Note that Spell Catcher will add an alpha component of 0.9 (hard-coded at this point, sorry) to the "background" color when drawing.

You can use an editor such as ColorListEditor from Modesitt Software, or the Mac OS X color panel to change them. To use the latter, you have to copy the 2 .clr files to your home ~/Library/Colors folder, then open an application (like TextEdit) that can show the color panel. Once modified via the color panel, you have to copy the modified .clr files back into the UI Server's package. Just make sure you don't change the actual names of the individual colors (they represent the internal error kind numbers).

It should be obvious which color is for what error kind, but just to be sure:

spelling_SpellingError = 1,
spelling_CapitalizationError = 2,
spelling_MissingCapitalError = 3,
spelling_RepeatedWordError = 4,
spelling_PunctuationError = 5,
spelling_Expansion = 6,

If you find a combo you like, by all means post the files as attachments!

Note that you'll probably have to log out and in again to see the results, or you can try Quitting the Spell Catcher UI Server app using Activity Monitor (no need to Force Quit) then toggling Spell Catcher's input method to a keyboard and back to force the UI Server to get re-launched.

#3 Bruce Kieffer

Bruce Kieffer

    Member

  • Members
  • PipPipPip
  • 70 posts

Posted 16 November 2008 - 08:20 AM

Thanks. Maybe I should have asked if there was an easy way! I'm fine with your color choices. I just wanted them to be a bit subtler.