Skip to content

Commit

Permalink
v0.3.18
Browse files Browse the repository at this point in the history
• More Elements are colored
  • Loading branch information
D4KiR committed Aug 31, 2023
1 parent 30f2b36 commit 38594e6
Show file tree
Hide file tree
Showing 17 changed files with 101 additions and 12 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
/.vs
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: 30402
## Interface: 100105

## Version: 0.3.17
## Version: 0.3.18
## 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.17
## Version: 0.3.18
## 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.17
## Version: 0.3.18
## 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: 30402
## Version: 0.3.17
## Version: 0.3.18
## 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
102 changes: 95 additions & 7 deletions core.lua
Original file line number Diff line number Diff line change
Expand Up @@ -665,15 +665,104 @@ function DarkMode:SearchUi()
end
end

local CMB = _G["CharacterMicroButton"]

if CMB then
for i, v in pairs({CMB:GetRegions()}) do
if i == 3 then
DarkMode:UpdateColor(v, "ui")
if MICRO_BUTTONS and DarkMode:GetWoWBuild() ~= "RETAIL" then
for i, name in pairs(MICRO_BUTTONS) do
if name then
local mbtn = _G[name]

if mbtn then
local border = mbtn:CreateTexture(name .. "DMBorder", "OVERLAY")
border:SetTexture("Interface\\AddOns\\DarkMode\\media\\mbtn_border")
border:SetAllPoints(mbtn)
DarkMode:UpdateColor(border, "ui")
end
end
end
end

if KeyRingButton then
local border = KeyRingButton:CreateTexture("KeyRingButton" .. "DMBorder", "OVERLAY")
border:SetTexture("Interface\\AddOns\\DarkMode\\media\\krbtn_border")
border:SetAllPoints(KeyRingButton)
border:SetTexCoord(0, 0.5625, 0, 0.609375)
border:SetDrawLayer("OVERLAY", 3)
DarkMode:UpdateColor(border, "ui")
end

if MinimapZoomIn and MinimapZoomOut then
local border = MinimapZoomIn:CreateTexture("MinimapZoomIn" .. "DMBorder", "OVERLAY")
border:SetTexture("Interface\\AddOns\\DarkMode\\media\\zoom_border")
border:SetAllPoints(MinimapZoomIn)
border:SetDrawLayer("OVERLAY", 3)
DarkMode:UpdateColor(border, "ui")
local border2 = MinimapZoomOut:CreateTexture("MinimapZoomOut" .. "DMBorder", "OVERLAY")
border2:SetTexture("Interface\\AddOns\\DarkMode\\media\\zoom_border")
border2:SetAllPoints(MinimapZoomOut)
border2:SetDrawLayer("OVERLAY", 3)
DarkMode:UpdateColor(border2, "ui")
end

if MiniMapTrackingFrame then
-- Classic Era
local border = MiniMapTrackingFrame:CreateTexture("MiniMapTrackingFrame" .. "DMBorder", "OVERLAY")
border:SetTexture("Interface\\AddOns\\DarkMode\\media\\mmicon_border")
border:SetPoint("TOPLEFT")
border:SetDrawLayer("OVERLAY", 3)
DarkMode:UpdateColor(border, "ui")
end

if MiniMapTrackingButton then
-- Wrath
local border = MiniMapTrackingButton:CreateTexture("MiniMapTrackingButton" .. "DMBorder", "OVERLAY")
border:SetTexture("Interface\\AddOns\\DarkMode\\media\\mmicon_border")
border:SetPoint("TOPLEFT", 0, 1)
border:SetDrawLayer("OVERLAY", 3)
border:SetScale(0.86)
DarkMode:UpdateColor(border, "ui")
end

if MiniMapWorldMapButton then
-- Wrath
local border = MiniMapWorldMapButton:CreateTexture("MiniMapWorldMapButton" .. "DMBorder", "OVERLAY")
border:SetTexture("Interface\\AddOns\\DarkMode\\media\\mmicon_border")
border:SetPoint("TOPLEFT", 0, 1)
border:SetDrawLayer("OVERLAY", 3)
border:SetScale(0.8)
DarkMode:UpdateColor(border, "ui")
end

if GameTimeFrame and DarkMode:GetWoWBuild() ~= "RETAIL" then
local border = GameTimeFrame:CreateTexture("GameTimeFrame" .. "DMBorder", "OVERLAY")
border:SetTexture("Interface\\AddOns\\DarkMode\\media\\gt_border")

if DarkMode:GetWoWBuild() == "WRATH" then
border:SetPoint("TOPLEFT", -1, 1)
border:SetScale(0.82)
else
border:SetPoint("TOPLEFT")
end

border:SetDrawLayer("OVERLAY", 3)
DarkMode:UpdateColor(border, "ui")
end

C_Timer.After(0.2, function()
if DMMMBTN then
for i, name in pairs(DMMMBTN:GetButtonList()) do
local btn = _G["LibDBIcon10_" .. name]

if btn then
local border = btn:CreateTexture(name .. "DMBorder", "OVERLAY")
border:SetTexture("Interface\\AddOns\\DarkMode\\media\\mmicon_border")
border:SetPoint("TOPLEFT", 0, 1)
border:SetParent(btn)
border:SetScale(0.84)
border:SetDrawLayer("OVERLAY", 3)
DarkMode:UpdateColor(border, "ui")
end
end
end
end)
end

local npf = CreateFrame("FRAME")
Expand All @@ -683,7 +772,6 @@ npf:SetScript("OnEvent", function(self, event, name, ...)
local id = string.sub(name, 10)

C_Timer.After(0.1, function()
--DarkMode:FindTexturesByName("NamePlate" .. id .. ".UnitFrame.healthBar", "uf")
DarkMode:FindTexturesByName("NamePlate" .. id .. ".UnitFrame.healthBar.border", "uf")
end)
end)
Expand Down
Binary file added media/gt_border.blp
Binary file not shown.
Binary file added media/gt_border.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added media/krbtn_border.blp
Binary file not shown.
Binary file added media/krbtn_border.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added media/mbtn_border.blp
Binary file not shown.
Binary file added media/mbtn_border.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added media/mmicon_border.blp
Binary file not shown.
Binary file added media/mmicon_border.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added media/zoom_border.blp
Binary file not shown.
Binary file added media/zoom_border.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
2 changes: 1 addition & 1 deletion settings.lua
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
local _, DarkMode = ...

local config = {
["title"] = format("DarkMode |T136122:16:16:0:0|t v|cff3FC7EB%s", "0.3.17")
["title"] = format("DarkMode |T136122:16:16:0:0|t v|cff3FC7EB%s", "0.3.18")
}

local searchStr = ""
Expand Down

0 comments on commit 38594e6

Please sign in to comment.