1553757 - Refactor updateIndicators
[wowui.git] / IndicatorsConfig.lua
index 958fa59..5cbd343 100644 (file)
@@ -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