Update Slider.lua

Small fix for sliders
This commit is contained in:
Robert Jelic
2023-06-03 14:14:25 +02:00
committed by GitHub
parent 716debd419
commit c945931c3c

View File

@@ -131,6 +131,7 @@ return function(name, basalt)
self:addDraw("slider", function()
local w,h = self:getSize()
local bgCol,fgCol = self:getBackground(), self:getForeground()
local obx, oby = self:getPosition()
if (barType == "horizontal") then
self:addText(index, oby, symbol:rep(symbolSize))
if(symbolBG~=false)then self:addBG(index, 1, tHex[symbolBG]:rep(#symbol*symbolSize)) end
@@ -156,4 +157,4 @@ return function(name, basalt)
object.__index = object
return setmetatable(object, base)
end
end