Merge pull request #272 from boruok/fix-style-links

fix style docs
This commit is contained in:
Maksim Tuprikov 2024-07-16 10:28:46 +03:00 committed by GitHub
commit d7e1174162
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -46,11 +46,11 @@ end
## Create your own styles
The most components have their styles. You can explore it on [Druid API](https://insality.github.io/druid/) in table style section ([button example](https://insality.github.io/druid/modules/druid.button.html#Style)). Or you can see, what fields component uses in code in function `on_style_change`
The most components have their styles. You can explore it on [Druid API](https://insality.github.io/druid/) in table style section ([button example](https://insality.github.io/druid/modules/Button.html#style)). Or you can see, what fields component uses in code in function `on_style_change`
To create you style, create lua module, what return <_component_name_, _component_style_> table
Example: [default druid style](styles/default/style.lua)
Example: [default druid style](https://github.com/Insality/druid/blob/master/druid/styles/default/style.lua)
Override all fields you want and set your style with one of next ways: