What does the "Theme" option do?


Автор: Ian Schraeder Спросили: 5 месяцев 3 дней 5 часов 28 минут тому назад Просмотрен: 140 раз Активность: 5 месяцев 1 день 9 часов 21 минут тому назад

0

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

добавить коментарий


1

Ответ Support в 3 февр. 2022 г., 9:05:43

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. — Ian Schraeder в 3 февр. 2022 г., 23:46:38

добавить коментарий