What does the "Theme" option do?


Author: Ian Schraeder Asked: 7 months 27 days 13 hours 28 minutes ago Viewed: 188 times Activity: 7 months 25 days 17 hours 21 minutes ago

0

Are there any instructions on creating a new theme, or as to the use of this option?

add comment


1

Answered by Support at Feb 3, 2022, 9:05:43 AM

Unfortunately there is no comprehensive guide or tutorial on this subject yet. Shortly, styles (themes) are described by https://nitisa.com/reference/core/interfaces/IStyle interface. It stores all the style settings which should be used to replace standard layout properties of widgets you want to change. Instance of the style can be assigned to entire form by its setStyle() method or to any control (widget with visual representation) using the same method. You can see how style is created in Nitisa/Core/DefaultStyle.h and corresponding Nitisa/Core/DefaultStyle.cpp files. Most widgets have private method called UpdateFromStyle(). You can check these methods to see what properties may be changes via style. For example, check file Packages/Standard/Controls/Button/Button.cpp, line ~1187. We will add a guide about this subject as soon as we get a chance.


Awesome! I didn't realize that was all it took. Thank you guys for making it so easy to access everything in the framework and being so inviting to new users trying to figure it all out. — by Ian Schraeder at Feb 3, 2022, 11:46:38 PM

add comment