Skip to content

Commit

Permalink
Colorize "Class and Specialization" options fixes WeakAuras#4657
Browse files Browse the repository at this point in the history
  • Loading branch information
mrbuds committed Oct 28, 2023
1 parent b297a0a commit 5f530f7
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion WeakAuras/Types.lua
Original file line number Diff line number Diff line change
Expand Up @@ -1398,8 +1398,9 @@ local function update_specs()
if tabName then
tinsert(WeakAuras.spec_types_specific[classFileName], "|T"..(icon or "error")..":0|t "..(tabName or "error"));
if WeakAuras.IsRetail() then
local classColor = WA_GetClassColor(classFileName)
Private.spec_types_all[specId] = CreateAtlasMarkup(GetClassAtlas(classFileName:lower()))
.. "|T"..(icon or "error")..":0|t "..(tabName or "error");
.. "|T"..(icon or "error")..":0|t "..(WrapTextInColorCode(tabName, classColor) or "error");
end
end
end
Expand Down

0 comments on commit 5f530f7

Please sign in to comment.