From d115c9320e677cac27842ffd6d894b595120a6a6 Mon Sep 17 00:00:00 2001 From: Jessica Sommer Date: Thu, 16 Aug 2018 15:58:28 +0200 Subject: [PATCH] Change coloring The color for good fps/latency is now green again, instead of grey. Per default colors are now off. --- Broker_MicroMenu.lua | 4 ++-- Options.lua | 10 +++++----- localization.lua | 2 +- 3 files changed, 8 insertions(+), 8 deletions(-) diff --git a/Broker_MicroMenu.lua b/Broker_MicroMenu.lua index 6fb1444..2b40dba 100644 --- a/Broker_MicroMenu.lua +++ b/Broker_MicroMenu.lua @@ -86,9 +86,9 @@ function dataobj:UpdateText() local fps = floor(GetFramerate()) local _, _, latencyHome, latencyWorld = GetNetStats() - local colorGood = "|cff808080" + local colorGood = "|cff00ff00" local fpsColor, colorHome, colorWorld = "", "", "" - if not db.disableColoring then + if db.enableColoring then if fps > 30 then fpsColor = colorGood elseif fps > 20 then diff --git a/Options.lua b/Options.lua index 8087f85..18318a0 100644 --- a/Options.lua +++ b/Options.lua @@ -17,16 +17,16 @@ local aceoptions = { type="group", order = 1, args={ - disableColoring = { + enableColoring = { type = 'toggle', order = 1, - name = L["Disable Coloring"], - desc = L["Disable Coloring"], + name = L["Enable Coloring"], + desc = L["Enable Coloring"], get = function(info, value) - return db.disableColoring + return db.enableColoring end, set = function(info, value) - db.disableColoring = value + db.enableColoring = value Broker_MicroMenu:UpdateText() end, }, diff --git a/localization.lua b/localization.lua index 767d828..8a34a37 100644 --- a/localization.lua +++ b/localization.lua @@ -16,7 +16,7 @@ if L then L["Show latency for combat data, data from the people around you (specs, gear, enchants, etc.)."] = true L["Show Home Latency"] = true L["Show latency for chat data, auction house stuff some addon data, and various other data."] = true - L["Disable Coloring"] = true + L["Enable Coloring"] = true L["General"] = true L["ms"] = true L["fps"] = true