Skip navigation
Currently Being Moderated

Function to check if the UI theme is dark

May 23, 2012 10:05 AM

Tags: #actionscript #hybrid_extension #creative_suite_extension

The Illustrator plugin SDK has a function (AIUITheme->IsUIThemeDark()) to check if the theme is dark or not.  I perused the Creative Suite Extension Builder API and didn't find any obvious equivalent functions for extensions.

 

My best bet at this point is to just guess if a theme is dark based on the AppSkinInfo that I get from a postThemeColorChange callback.

 

Is there an easier way to do this, something I missed maybe?

 
Replies
  • Currently Being Moderated
    May 23, 2012 10:42 AM   in reply to T.Nelson

    Version 2 has some nice functionality in this area. What version are you using?

     

    Harbs

     
    |
    Mark as:
  • Currently Being Moderated
    May 23, 2012 10:51 AM   in reply to T.Nelson

    Read the section in the Programming Guide: "Customizing the Extension User Interface"

     
    |
    Mark as:
  • Currently Being Moderated
    May 23, 2012 12:50 PM   in reply to T.Nelson

    Yes. You need to infer it from the AppSkinInfo, but if you are using CS6, you can have the skinning change automatically.

     

    There's more than just "dark" and "light" themes. There's a whole range. So I'm not sure that just geting "dark" or "light" will be very useful...

     
    |
    Mark as:

More Like This

  • Retrieving data ...

Bookmarked By (0)

Answers + Points = Status

  • 10 points awarded for Correct Answers
  • 5 points awarded for Helpful Answers
  • 10,000+ points
  • 1,001-10,000 points
  • 501-1,000 points
  • 5-500 points