determine appearance and highlight color

Discussion in 'Mac Programming' started by printf, Oct 16, 2008.

  1. macrumors regular

    Joined:
    Aug 27, 2008
    #1
    i need a way to determine two things.

    first, the choice of color for the appearance, which on tiger (not sure about more recent os versions) seems to be one of two choices, blue or graphite. i'm not necessarily looking for the rgb value itself (although, in addition that would be nice), but rather the users choice.

    the second, however, i would like to determine the rgb value of the highlight color.

    how can these be accomplished? i poked around the appearance manager documentation, but didn't see these things specifically..
     
  2. Moderator emeritus

    kainjow

    Joined:
    Jun 15, 2000
    #2
    Try GetThemeBrushAsColor() with kThemeBrushPrimaryHighlightColor
     
  3. thread starter macrumors regular

    Joined:
    Aug 27, 2008
    #3
    sweet, it worked! any idea about the general appearance? again, just need to know whether it's graphite or blue? and i'm just assuming there's no way for users to change it to any other colors besides those two... right?
     
  4. Moderator emeritus

    kainjow

    Joined:
    Jun 15, 2000
    #4
    Looks like you can use CopyThemeIdentifier() which returns kThemeAppearanceAquaBlue or kThemeAppearanceAquaGraphite.
     

Share This Page