css - Firemonkey how to change a style property in a Stylebook -


i have created stylebook component has toolbarstyle. toolbars in app have stylelookup. style consists of tlayout filled trectangle has stylename "background" has color red default.

i want let user set color of toolbar tcombocolorbox. when choose color want toolbars change color have picked.

now know how change style single toolbar, don't want set property each individual toolbar. code below can change style color single toolbar.

toolbar1.stylesdata['background.fill.color'] := combocolorbox1.color; 

how can same toolbars @ once? gues change stylebook how. stylebook mainform get's loaded in other forms too, don't need change on every form.


Comments