Skip to content

Commit

Permalink
fix style docs
Browse files Browse the repository at this point in the history
  • Loading branch information
boruok committed Jul 16, 2024
1 parent 300fbf1 commit 93cbb99
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions docs_md/03-styles.md
Original file line number Diff line number Diff line change
Expand Up @@ -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:

Expand Down

0 comments on commit 93cbb99

Please sign in to comment.