diff options
author | Jipok <braaga@inbox.ru> | 2021-12-18 20:59:46 +0500 |
---|---|---|
committer | Jipok <braaga@inbox.ru> | 2021-12-18 20:59:46 +0500 |
commit | 93a9a8f01b745108b87aa16a9656345a25a5e58d (patch) | |
tree | fa55c78150579d9886a65d6a392d42323e458d69 | |
parent | 4afd5af8ede6eed0206af9a1dfd6337ed7ae3b54 (diff) | |
download | lite-xl-plugins-93a9a8f01b745108b87aa16a9656345a25a5e58d.tar.gz lite-xl-plugins-93a9a8f01b745108b87aa16a9656345a25a5e58d.zip |
nonicons.lua: support 2.0.0
-rw-r--r-- | plugins/nonicons.lua | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/plugins/nonicons.lua b/plugins/nonicons.lua index d8b8387..b207d58 100644 --- a/plugins/nonicons.lua +++ b/plugins/nonicons.lua @@ -90,9 +90,6 @@ function TreeView:draw() color = style.accent end - -- allow for color overrides - local icon_color = self:color_for_item(item.abs_filename) or color - -- icons x = x + item.depth * style.padding.x + style.padding.x if item.type == "dir" then @@ -107,6 +104,7 @@ function TreeView:draw() x = x + style.padding.x -- default icon local icon = "" -- unicode 61766 + local icon_color = color -- icon depending on the file extension or full name local custom_icon = known_names_icons[item.name:lower()] if custom_icon == nil then |