Nothing indicates that it's secure code. You should be able to just replace if you want to.
Perhaps just set the text color the way you want it and recode the function so it doesn't bother with it, something like this
lua Code:
-- Set once and forget it
QuestInfoDescriptionText:SetTextColor(1, 1, 1)
QuestInfoObjectivesText:SetTextColor(1, 1, 1)
QuestInfoGroupSize:SetTextColor(1, 1, 1)
QuestInfoRewardText:SetTextColor(1, 1, 1)
QuestInfoTitleHeader:SetTextColor(0.95, 0.95, 0)
QuestInfoDescriptionHeader:SetTextColor(0.95, 0.95, 0)
QuestInfoObjectivesHeader:SetTextColor(0.95, 0.95, 0)
QuestInfoRewardsHeader:SetTextColor(0.95, 0.95, 0)
QuestInfoItemChooseText:SetTextColor(1, 1, 1)
QuestInfoItemReceiveText:SetTextColor(1, 1, 1)
QuestInfoSpellLearnText:SetTextColor(1, 1, 1)
QuestInfoXPFrameReceiveText:SetTextColor(1, 1, 1)
-- Replace existing UI function
function QuestInfo_Display(template, parentFrame, acceptButton, material)
local lastFrame, shownFrame, bottomShownFrame;
local elementsTable = template.elements;
local bottomShownFrame;
QuestInfoFrame.questLog = template.questLog;
QuestInfoFrame.chooseItems = template.chooseItems;
QuestInfoFrame.tooltip = template.tooltip;
QuestInfoFrame.acceptButton = acceptButton;
for i = 1, #elementsTable, 3 do
shownFrame, bottomShownFrame = elementsTable[i]();
if ( shownFrame ) then
shownFrame:SetParent(parentFrame);
if ( lastFrame ) then
shownFrame:SetPoint("TOPLEFT", lastFrame, "BOTTOMLEFT", elementsTable[i+1], elementsTable[i+2]);
else
shownFrame:SetPoint("TOPLEFT", parentFrame, "TOPLEFT", elementsTable[i+1], elementsTable[i+2]);
end
lastFrame = bottomShownFrame or shownFrame;
end
end
end