Skip to content

Commit

Permalink
v0.5.29
Browse files Browse the repository at this point in the history
  • Loading branch information
d4kir92 committed May 3, 2024
1 parent 4c21f91 commit 0744e68
Show file tree
Hide file tree
Showing 7 changed files with 7 additions and 51 deletions.
2 changes: 1 addition & 1 deletion DarkMode.toc
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
## Interface-Cata: 40400
## Interface: 100206

## Version: 0.5.28
## Version: 0.5.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_Cata.toc
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
## Interface: 40400
## Version: 0.5.28
## Version: 0.5.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_TBC.toc
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
## Interface: 20504
## Version: 0.5.28
## Version: 0.5.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: 11502
## Version: 0.5.28
## Version: 0.5.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.5.28
## Version: 0.5.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
44 changes: 0 additions & 44 deletions core.lua
Original file line number Diff line number Diff line change
Expand Up @@ -1372,28 +1372,6 @@ function DarkMode:Event(event, ...)
end
)

hooksecurefunc(
btn,
"SetWidth",
function(sel, w)
if sel.dm_setsize then return end
sel.dm_setsize = true
border:SetWidth(w * scale)
sel.dm_setsize = false
end
)

hooksecurefunc(
btn,
"SetHeight",
function(sel, h)
if sel.dm_setsize then return end
sel.dm_setsize = true
border:SetHeight(h * scale)
sel.dm_setsize = false
end
)

border:SetSize(sw * scale, sh * scale)
border:SetTexture("Interface\\AddOns\\DarkMode\\media\\border_thin")
border:SetPoint("CENTER", btn, "CENTER", 0, 0)
Expand All @@ -1419,28 +1397,6 @@ function DarkMode:Event(event, ...)
end
)

hooksecurefunc(
btn,
"SetWidth",
function(sel, w)
if sel.dm_setsize then return end
sel.dm_setsize = true
border:SetWidth(w * scale)
sel.dm_setsize = false
end
)

hooksecurefunc(
btn,
"SetHeight",
function(sel, h)
if sel.dm_setsize then return end
sel.dm_setsize = true
border:SetHeight(h * scale)
sel.dm_setsize = false
end
)

border:SetSize(sw * scale, sh * scale)
border:SetTexture("Interface\\AddOns\\DarkMode\\media\\default")
border:SetPoint("CENTER", btn, "CENTER", 0, 0)
Expand Down
4 changes: 2 additions & 2 deletions settings.lua
Original file line number Diff line number Diff line change
Expand Up @@ -287,8 +287,8 @@ function DarkMode:InitDMSettings()
DMSettings:Hide()
end

D4:SetVersion(AddonName, 136122, "0.5.28")
DMSettings.TitleText:SetText(format("DarkMode |T136122:16:16:0:0|t v|cff3FC7EB%s", "0.5.28"))
D4:SetVersion(AddonName, 136122, "0.5.29")
DMSettings.TitleText:SetText(format("DarkMode |T136122:16:16:0:0|t v|cff3FC7EB%s", "0.5.29"))
DMSettings.CloseButton:SetScript(
"OnClick",
function()
Expand Down

0 comments on commit 0744e68

Please sign in to comment.