Separate style progrese

This commit is contained in:
Insality
2020-01-10 16:01:32 +05:00
parent efef4d194d
commit 125506a4f1
9 changed files with 81 additions and 80 deletions

View File

@@ -1,10 +1,12 @@
--- Druid helper module
-- @module helper
local const = require("druid.const")
local M = {}
--- Text node or icon node can be nil
local function get_text_width(text_node)
if text_node then
@@ -154,4 +156,13 @@ function M.get_druid(self)
end
function M.get_style(self, section)
if not self.druid_style then
return {}
end
return self.druid_style[section] or {}
end
return M