mirror of
https://github.com/Insality/druid
synced 2025-09-28 02:22:19 +02:00
Separate style progrese
This commit is contained in:
@@ -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
|
||||
|
Reference in New Issue
Block a user