X-Git-Url: https://www.aleksib.fi/git/wowui.git/blobdiff_plain/bfc00e5a5dbe35130486f25d90ca65ec8f8f1924..956383a3e90c8f7c79c009e96117e41f2ed9425b:/IndicatorsConfig.lua diff --git a/IndicatorsConfig.lua b/IndicatorsConfig.lua index 958fa59..5cbd343 100644 --- a/IndicatorsConfig.lua +++ b/IndicatorsConfig.lua @@ -66,14 +66,14 @@ local function createOptionsTable(self) step = 1, width = "full", }, - color = { + textColor = { type = "color", name = "Text color", get = function(item) - return unpack(self.db.profile[pos]["color"]); + return unpack(self.db.profile[pos]["textColor"]); end, set = function(item, r, g, b, a) - self.db.profile[pos]["color"] = {r, g, b, a}; + self.db.profile[pos]["textColor"] = {r, g, b, a}; self:RefreshConfig(); end, }, @@ -98,6 +98,17 @@ local function createOptionsTable(self) step = 1, width = "full", }, + iconColor = { + type = "color", + name = "Icon tint", + get = function(item) + return unpack(self.db.profile[pos]["iconColor"]); + end, + set = function(item, r, g, b, a) + self.db.profile[pos]["iconColor"] = {r, g, b, a}; + self:RefreshConfig(); + end, + }, } }; end