Skip to content

Commit

Permalink
Change coloring
Browse files Browse the repository at this point in the history
The color for good fps/latency is now green again, instead of grey.

Per default colors are now off.
  • Loading branch information
Jessica Sommer committed Aug 16, 2018
1 parent ddb99a8 commit d115c93
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 8 deletions.
4 changes: 2 additions & 2 deletions Broker_MicroMenu.lua
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
10 changes: 5 additions & 5 deletions Options.lua
Original file line number Diff line number Diff line change
Expand Up @@ -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,
},
Expand Down
2 changes: 1 addition & 1 deletion localization.lua
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit d115c93

Please sign in to comment.