Skip to content

Commit

Permalink
v0.3.29
Browse files Browse the repository at this point in the history
  • Loading branch information
D4KiR committed Oct 11, 2023
1 parent bc2ca75 commit 2fc0383
Show file tree
Hide file tree
Showing 7 changed files with 31 additions and 23 deletions.
2 changes: 1 addition & 1 deletion DarkMode.toc
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
## Interface-Wrath: 30403
## Interface: 100107

## Version: 0.3.28
## Version: 0.3.29
## Title: DarkMode by |cff3FC7EBD4KiR |T132115:16:16:0:0|t
## Notes: Improve Any Ui or Frame
## Author: D4KiR
Expand Down
2 changes: 1 addition & 1 deletion DarkMode_TBC.toc
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
## Interface: 20504
## Version: 0.3.28
## Version: 0.3.29
## Title: DarkMode |T136122:16:16:0:0|t by |cff3FC7EBD4KiR |T132115:16:16:0:0|t
## Notes: Improve Any Ui or Frame
## Author: D4KiR
Expand Down
2 changes: 1 addition & 1 deletion DarkMode_Vanilla.toc
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
## Interface: 11404
## Version: 0.3.28
## Version: 0.3.29
## Title: DarkMode |T136122:16:16:0:0|t by |cff3FC7EBD4KiR |T132115:16:16:0:0|t
## Notes: Improve Any Ui or Frame
## Author: D4KiR
Expand Down
2 changes: 1 addition & 1 deletion DarkMode_Wrath.toc
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
## Interface: 30403
## Version: 0.3.28
## Version: 0.3.29
## Title: DarkMode |T136122:16:16:0:0|t by |cff3FC7EBD4KiR |T132115:16:16:0:0|t
## Notes: Improve Any Ui or Frame
## Author: D4KiR
Expand Down
41 changes: 23 additions & 18 deletions core.lua
Original file line number Diff line number Diff line change
Expand Up @@ -532,24 +532,27 @@ function DarkMode:InitQuestLogFrame()
end

if frame2 then
hooksecurefunc(
QuestMapFrame.DetailsFrame.SealMaterialBG,
"SetVertexColor",
function(sel, olr, olg, olb, ola)
if sel.dm_setvertexcolor then return end
sel.dm_setvertexcolor = true
local r, g, b, a = DarkMode:GetFrameColor()
if r ~= nil and g ~= nil and b ~= nil then
sel:SetVertexColor(r, g, b, a)
if QuestMapFrame and QuestMapFrame.DetailsFrame and QuestMapFrame.DetailsFrame.SealMaterialBG and QuestMapFrame.DetailsFrame.SealMaterialBG.SetVertexColor then
print(QuestMapFrame.DetailsFrame.SealMaterialBG)
hooksecurefunc(
QuestMapFrame.DetailsFrame.SealMaterialBG,
"SetVertexColor",
function(sel, olr, olg, olb, ola)
if sel.dm_setvertexcolor then return end
sel.dm_setvertexcolor = true
local r, g, b, a = DarkMode:GetFrameColor()
if r ~= nil and g ~= nil and b ~= nil then
sel:SetVertexColor(r, g, b, a)
end

sel.dm_setvertexcolor = false
end
)

sel.dm_setvertexcolor = false
local r, g, b, a = DarkMode:GetFrameColor()
if r ~= nil and g ~= nil and b ~= nil then
QuestMapFrame.DetailsFrame.SealMaterialBG:SetVertexColor(r, g, b, a)
end
)

local r, g, b, a = DarkMode:GetFrameColor()
if r ~= nil and g ~= nil and b ~= nil then
QuestMapFrame.DetailsFrame.SealMaterialBG:SetVertexColor(r, g, b, a)
end

function DarkMode:UpdateTextInQuestMapFrame()
Expand Down Expand Up @@ -641,9 +644,11 @@ function DarkMode:SearchUi()
for ind, name in pairs(tab) do
if index == "Artworks" and name == "BT4BarBlizzardArt.nineSliceParent" then
local frame = DarkMode:GetFrame(name)
for i, v in pairs({frame:GetChildren()}) do
if i == 1 then
DarkMode:FindTextures(v, "ui") -- Bartender Border in BlizzardArt
if frame then
for i, v in pairs({frame:GetChildren()}) do
if i == 1 then
DarkMode:FindTextures(v, "ui") -- Bartender Border in BlizzardArt
end
end
end
end
Expand Down
3 changes: 3 additions & 0 deletions data.lua
Original file line number Diff line number Diff line change
Expand Up @@ -171,6 +171,7 @@ DMTextureBlock[374178] = true
DMTextureBlock[374168] = true
DMTextureBlock[374170] = true
DMTextureBlock[374172] = true
DMTextureBlock["Portrait2"] = true -- CollectionsJournal
-- CHAT Tabs
-- ids: https://www.townlong-yak.com/framexml/live/Helix/ArtTextureID.lua
function DarkMode:GetTextureBlockTable()
Expand All @@ -184,6 +185,8 @@ if DarkMode:GetWoWBuild() ~= "RETAIL" then
DMIgnoreFrames["FriendsFramePortraitFrame"] = true
DMIgnoreFrames["FriendsTabHeader"] = true
DMIgnoreFrames["FriendsListFrame"] = true
DMIgnoreFrames["CollectionsJournalPortrait"] = true
DMIgnoreFrames["CollectionsJournalPortraitFrame"] = true
end

function DarkMode:GetIgnoreFrames(name)
Expand Down
2 changes: 1 addition & 1 deletion settings.lua
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
local _, DarkMode = ...
local config = {
["title"] = format("DarkMode |T136122:16:16:0:0|t v|cff3FC7EB%s", "0.3.28")
["title"] = format("DarkMode |T136122:16:16:0:0|t v|cff3FC7EB%s", "0.3.29")
}

local searchStr = ""
Expand Down

0 comments on commit 2fc0383

Please sign in to comment.