tag:infinitekind.tenderapp.com,2009-01-14:/discussions/moneydance-development/1931-how-does-an-extension-hook-into-the-user-selected-themeInfinite Kind: Discussion 2018-05-31T11:40:22Ztag:infinitekind.tenderapp.com,2009-01-14:Comment/438855122018-01-08T21:21:13Z2018-01-08T21:21:13ZHow does an extension hook into the user-selected theme?<div><p>Hi Sean,</p>
<p>Any thoughts on this one?</p>
<p>Cheers,<br>
Kevin</p></div>Kevin Stembridgetag:infinitekind.tenderapp.com,2009-01-14:Comment/438855122018-03-01T01:08:46Z2018-03-01T01:08:46ZHow does an extension hook into the user-selected theme?<div><p>Still wanting to be able to do this.</p></div>Kevin Stembridgetag:infinitekind.tenderapp.com,2009-01-14:Comment/438855122018-03-01T11:06:41Z2018-03-01T11:06:41ZHow does an extension hook into the user-selected theme?<div><p>Hi Kevin,<br>
Sorry I let this drop. It's not technically an exposed API, but I think it is worth using it to improve the experience for the customer. Most of the colour changes are set as properties in the UIManager and so should be applied automatically to most UI elements. However, to get at the colours directly you can use <code>com.moneydance.apps.md.view.gui.MDColors.getSingleton()</code> which will return the MDColors instance used by the rest of the app. The colors are simple public member variables with the same text string shown in the theme customisation window, but you can also get them from your IDE with the MD2017 jar file loaded and auto-completion or decompilation.</p>
<p>I would recommend putting some sort of reflection check for a member variable with the name of the colour you'd like to use, just in case we change or remove any of the colour names. We don't have plans to change or remove any, but it is possible.</p>
<p>Thanks!</p>
<p>Sean Reilly<br>
Developer, The Infinite Kind<br>
<a href="http://infinitekind.com">http://infinitekind.com</a></p></div>Sean Reillytag:infinitekind.tenderapp.com,2009-01-14:Comment/438855122018-03-01T11:36:00Z2018-03-01T11:36:00ZHow does an extension hook into the user-selected theme?<div><p>Great stuff, Sean.</p>
<p>Thanks for the info.</p></div>Kevin Stembridge