mirror of
https://github.com/brues-code/pfUI.git
synced 2026-10-05 13:10:00 +00:00
thirdparty: add option to use chat colors
This commit is contained in:
@@ -150,8 +150,17 @@ pfUI:RegisterModule("thirdparty", function ()
|
||||
-- remove titlebar
|
||||
KLHTM_Gui.title.back:Hide()
|
||||
KLHTM_SetGuiScale(.9)
|
||||
|
||||
CreateBackdrop(KLHTM_Frame)
|
||||
|
||||
if C.thirdparty.chatbg == "1" then
|
||||
local r, g, b, a = strsplit(",", C.chat.global.background)
|
||||
KLHTM_Frame.backdrop:SetBackdropColor(tonumber(r), tonumber(g), tonumber(b), tonumber(a))
|
||||
|
||||
local r, g, b, a = strsplit(",", C.chat.global.border)
|
||||
KLHTM_Frame.backdrop:SetBackdropBorderColor(tonumber(r), tonumber(g), tonumber(b), tonumber(a))
|
||||
end
|
||||
|
||||
-- theme buttons
|
||||
local buttons = { "KLHTM_TitleFrameClose", "KLHTM_TitleFrameMinimise",
|
||||
"KLHTM_TitleFrameMaximise", "KLHTM_TitleFrameOptions", "KLHTM_TitleFramePin",
|
||||
@@ -265,6 +274,14 @@ pfUI:RegisterModule("thirdparty", function ()
|
||||
for k, val in pairs(DPSMateSettings["windows"]) do
|
||||
local frame = _G["DPSMate_"..val["name"]]
|
||||
CreateBackdrop(frame)
|
||||
|
||||
if C.thirdparty.chatbg == "1" then
|
||||
local r, g, b, a = strsplit(",", C.chat.global.background)
|
||||
frame.backdrop:SetBackdropColor(tonumber(r), tonumber(g), tonumber(b), tonumber(a))
|
||||
|
||||
local r, g, b, a = strsplit(",", C.chat.global.border)
|
||||
frame.backdrop:SetBackdropBorderColor(tonumber(r), tonumber(g), tonumber(b), tonumber(a))
|
||||
end
|
||||
end
|
||||
end
|
||||
end
|
||||
@@ -322,6 +339,14 @@ pfUI:RegisterModule("thirdparty", function ()
|
||||
|
||||
CreateBackdrop(SW_BarFrame1)
|
||||
|
||||
if C.thirdparty.chatbg == "1" then
|
||||
local r, g, b, a = strsplit(",", C.chat.global.background)
|
||||
SW_BarFrame1.backdrop:SetBackdropColor(tonumber(r), tonumber(g), tonumber(b), tonumber(a))
|
||||
|
||||
local r, g, b, a = strsplit(",", C.chat.global.border)
|
||||
SW_BarFrame1.backdrop:SetBackdropBorderColor(tonumber(r), tonumber(g), tonumber(b), tonumber(a))
|
||||
end
|
||||
|
||||
CreateBackdrop(SW_BarSettingsFrameV2)
|
||||
CreateBackdrop(SW_BarSettingsFrameV2_Title, 0)
|
||||
CreateBackdrop(SW_BarSettingsFrameV2_Tab1, 0)
|
||||
|
||||
Reference in New Issue
Block a user