Skip to content

Commit

Permalink
v0.5.28
Browse files Browse the repository at this point in the history
  • Loading branch information
d4kir92 committed May 2, 2024
1 parent 27b0aa0 commit 4c21f91
Show file tree
Hide file tree
Showing 7 changed files with 19 additions and 19 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.27
## Version: 0.5.28
## 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.27
## Version: 0.5.28
## 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.27
## Version: 0.5.28
## 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.27
## Version: 0.5.28
## 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.27
## Version: 0.5.28
## 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
24 changes: 12 additions & 12 deletions core.lua
Original file line number Diff line number Diff line change
Expand Up @@ -1376,21 +1376,21 @@ function DarkMode:Event(event, ...)
btn,
"SetWidth",
function(sel, w)
if sel.dm_setwidth then return end
sel.dm_setwidth = true
if sel.dm_setsize then return end
sel.dm_setsize = true
border:SetWidth(w * scale)
sel.dm_setwidth = false
sel.dm_setsize = false
end
)

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

Expand Down Expand Up @@ -1423,21 +1423,21 @@ function DarkMode:Event(event, ...)
btn,
"SetWidth",
function(sel, w)
if sel.dm_setwidth then return end
sel.dm_setwidth = true
if sel.dm_setsize then return end
sel.dm_setsize = true
border:SetWidth(w * scale)
sel.dm_setwidth = false
sel.dm_setsize = false
end
)

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

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.27")
DMSettings.TitleText:SetText(format("DarkMode |T136122:16:16:0:0|t v|cff3FC7EB%s", "0.5.27"))
D4:SetVersion(AddonName, 136122, "0.5.28")
DMSettings.TitleText:SetText(format("DarkMode |T136122:16:16:0:0|t v|cff3FC7EB%s", "0.5.28"))
DMSettings.CloseButton:SetScript(
"OnClick",
function()
Expand Down

0 comments on commit 4c21f91

Please sign in to comment.