Skip to content

Commit

Permalink
Merge pull request #260 from Fossean1/patch-2
Browse files Browse the repository at this point in the history
  • Loading branch information
Insality authored Mar 25, 2024
2 parents 0710135 + 9c37582 commit 0e9445b
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions docs_md/03-styles.md
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ You can pass _nil_ or _empty_table_ to use default values for all components (no
local druid = require("druid.druid")
local my_style = require("my.amazing.style")

local function init(self)
function init(self)
druid.set_default_style(my_style)
end
```
Expand All @@ -24,7 +24,7 @@ Setup custom style to specific druid instance:
local druid = require("druid.druid")
local my_style = require("my.amazing.style")

local function init(self)
function init(self)
-- This druid instance will be use my_style as default
self.druid = druid.new(self, my_style)
end
Expand All @@ -35,7 +35,7 @@ Change component style with _set_style_ function
local druid = require("druid.druid")
local my_style = require("my.amazing.style")

local function init(self)
function init(self)
self.druid = druid.new(self)
self.button = self.druid:new_button("node", function() end)
-- Setup custom style for specific component
Expand Down

0 comments on commit 0e9445b

Please sign in to comment.