Author Topic: Detecting theme colors programmatically?  (Read 2631 times)

Mike Hatch

  • EA Novice
  • *
  • Posts: 4
  • Karma: +1/-0
    • View Profile
Detecting theme colors programmatically?
« on: May 06, 2015, 05:53:48 am »
Is there a source for the theme colors that is accessible from the scripting object model?  DiagramObject.Style and DiagramLink.Style include color values if set by the user, but contain "-1" if set to the default, which is dependent on the color theme selected under View -> Visual Styles, Visual Appearance, Diagram.  

Components, for example, have a pink default color in v11 and 12.  Where could I figure out what this color is set to from a script?
« Last Edit: May 06, 2015, 05:54:03 am by mihatch »

qwerty

  • EA Guru
  • *****
  • Posts: 13584
  • Karma: +396/-301
  • I'm no guru at all
    • View Profile
Re: Detecting theme colors programmatically?
« Reply #1 on: May 06, 2015, 06:50:51 am »
I guess they are stored somewhere in the registry. You can find that by exporting the EA registry key, modifying the color and compare to the changed export.

q.