Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Chat frame edit box border #832

Open
Fot3k opened this issue Aug 11, 2022 · 1 comment
Open

Chat frame edit box border #832

Fot3k opened this issue Aug 11, 2022 · 1 comment
Labels

Comments

@Fot3k
Copy link

Fot3k commented Aug 11, 2022

Description
The chat box edit box where you type your messages shows a bordered colour depending on which channel you last used.

Version Number
v6.08

Steps to Reproduce

  1. Press Enter
  2. Type a message in Guild
  3. Switch chat tabs

Expected Behaviour
Border should stay the same colour as the theme, like a dark grey or black.

Actual Behaviour
Border leaves a coloured border like green from the guild chat.

Only ElvUI Enabled
Happens regardless of other addons, ElvUI issue.

Blizzard Issue?
No

Additional Information
Same issue when you switch the edit box top or bottom.

SS

@Fot3k Fot3k added the bug label Aug 11, 2022
@Fot3k
Copy link
Author

Fot3k commented Aug 12, 2022

Realised this may not be a bug but a feature? Doesn't quite look right to me but I was able to fix this by commenting out a few lines.

ElvUI\Modules\Chat\Chat.lua

--[[ Editbox Backdrop Color
	hooksecurefunc("ChatEdit_UpdateHeader", function(editbox)
		local chatType = editbox:GetAttribute("chatType")
		if not chatType then return end

		local chanTarget = editbox:GetAttribute("channelTarget")
		local chanName = chanTarget and GetChannelName(chanTarget)

		--Increase inset on right side to make room for character count text
		local insetLeft, insetRight, insetTop, insetBottom = editbox:GetTextInsets()
		editbox:SetTextInsets(insetLeft, insetRight + 30, insetTop, insetBottom)

		if chanName and (chatType == "CHANNEL") then
			if chanName == 0 then
				editbox:SetBackdropBorderColor(unpack(E.media.bordercolor))
			else
				local info = ChatTypeInfo[chatType..chanName]
				editbox:SetBackdropBorderColor(info.r, info.g, info.b)
			end
		else
			local info = ChatTypeInfo[chatType]
			editbox:SetBackdropBorderColor(info.r, info.g, info.b)
		end
	end) Editbox Backdrop Color --]]

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Development

No branches or pull requests

1 participant