Skip to content

Fix: Chat Tabs have setting that does nothing/gets overridden - #2048

Open
svart2521 wants to merge 2 commits into
EllesmereGaming:mainfrom
svart2521:chat-tabs-background-color-setting-does-nothing
Open

Fix: Chat Tabs have setting that does nothing/gets overridden#2048
svart2521 wants to merge 2 commits into
EllesmereGaming:mainfrom
svart2521:chat-tabs-background-color-setting-does-nothing

Conversation

@svart2521

Copy link
Copy Markdown
Contributor

Bug: https://discord.com/channels/585577383847788554/1546266301826338966

Issue: right-clicking a chat tab and setting Background Color does nothing visually. EUI's chat skin hides Blizzard's entire native chat background (cf.Background:SetAlpha(0), every native region zeroed) and draws its own separate panel instead, so the native color picker has nothing left to render onto.
Fix: added an opt-in toggle under the Tabs section ("Use Tab's Background Color", off by default): when on, each tab's own background (EUI's existing tabBackgroundColor/tabBackgroundColorActive) reads that window's native color (GetChatWindowInfo, normalizing its legacy 0-255 range) instead of the shared swatches, keeping each state's own opacity. A hooksecurefunc on SetChatWindowColor re-applies it live via ApplyTabAppearance the moment the native picker is used. Temporary/whisper tabs (no real window id) always keep EUI's own color. Existing behavior unchanged when the toggle stays off.

image image

Bug:

Issue: right-clicking a chat tab and setting Background Color does nothing visually. EUI's chat skin hides Blizzard's entire native chat background (cf.Background:SetAlpha(0), every native region zeroed) and draws its own separate panel instead, so the native color picker has nothing left to render onto.
Fix: added an opt-in toggle under the Tabs section ("Use Tab's Background Color", off by default): when on, each tab's own background (EUI's existing tabBackgroundColor/tabBackgroundColorActive) reads that window's native color (GetChatWindowInfo, normalizing its legacy 0-255 range) instead of the shared swatches, keeping each state's own opacity. A hooksecurefunc on SetChatWindowColor re-applies it live via ApplyTabAppearance the moment the native picker is used. Temporary/whisper tabs (no real window id) always keep EUI's own color. Existing behavior unchanged when the toggle stays off.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant