Как сделать чтоб иконки меняли цвет под стиль меню?
код:
function render.gradient_text(fI, fJ, bf, a1, fK, fL, bg, a2, fM)
local fN = ""
local fO = #fM - 1
local fP = (fK - fI) / fO
local fQ = (fL - fJ) / fO
local fR = (bg - bf) / fO
local fS = (a2 - a1) / fO
for i = 1, fO + 1 do
fN = fN .. ("\a%02x%02x%02x%02x%s"):format(fI, fJ, bf, a1, fM:sub(i, i))
fI = fI + fP
fJ = fJ + fQ
bf = bf + fR
a1 = a1 + fS
end
return fN
end
sidebar = ui.sidebar(
render.gradient_text(249, 80, 200, 255, 22, 88, 200, 255, " gang [live]"),
"folder-open")
local welcoming = ui.create(ui.get_icon("house").. " Home", ui.get_icon("circle-info").." Inforamations")
welcoming:label(ui.get_icon("tag").." Branch:".." [live]")