mirror of
https://github.com/brues-code/pfUI.git
synced 2026-09-21 23:26:56 +00:00
5815b9e81e
Two problems with routing the native transparency slider into the pfUI panel. RefreshBackgroundAlpha overwrote the alpha of C.chat.global.background on every refresh, so anyone with custom colors enabled saw their configured opacity revert on reload, tab switch and dock change. That value carries its own alpha, is set by the shipped profiles and is shared with the meter skins, so the slider must not own it. Skip the alpha mirror entirely when custom colors are on; the slider still drives the panel on the default theme, which is what issue #48 was actually about. The colors were also only applied at module load, so the pickers needed a /reload to show anything. Extract that into ApplyPanelColors and expose it as pfUI.chat:UpdateConfig, which the gui resolves as U["chat"], so the three chat color settings take effect on the spot. CreateBackdrop is re-run first to restore the appearance theme, which is what lets toggling custom colors back off return the panel to the global theme without a reload.