What does the "Theme" option do?


Author: Ian Schraeder Asked: 2 years 9 months 4 days 2 hours 39 minutes ago Viewed: 589 times Activity: 2 years 9 months 2 days 6 hours 33 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