Theme based background color like scriptlab

94 views Asked by At

enter image description hereThe background color of scriptlab sidebar changes depending on whether it's opened in Excel/Powerpoint/Word. As seen in the screenshot, it's green and orange.

I want to create a similar sidebar which will have an header with some buttons. The background color of this header should be flavour/theme based. i.e Excel/Powerpoint/Word.

Any inputs on how this can be done?

2

There are 2 answers

0
SureshGowtham S On

You can choose any of the below ways,

0
Rick Kirkham On

Script Lab is open source, so you can see how it codes the host-relative colors. See the repo at https://github.com/OfficeDev/script-lab.