From b992b046b4e126f37100388687f27af00ca778ca Mon Sep 17 00:00:00 2001 From: Elitesparkle Date: Thu, 28 Mar 2024 14:55:52 +0100 Subject: [PATCH 1/2] Fix Bar Start After Icon This closes #700. --- frames/window_main.lua | 17 +++++++++++++++-- 1 file changed, 15 insertions(+), 2 deletions(-) diff --git a/frames/window_main.lua b/frames/window_main.lua index 9c3992df3..2a2980836 100644 --- a/frames/window_main.lua +++ b/frames/window_main.lua @@ -4806,6 +4806,7 @@ function Details:InstanceRefreshRows(instance) --icons local no_icon = self.row_info.no_icon local start_after_icon = self.row_info.start_after_icon + local start_after_icon_offset_x = 2 local isDesaturated = self.row_info.icon_grayscale local icon_offset_x, icon_offset_y = unpack(self.row_info.icon_offset) local iconMask = self.row_info.icon_mask @@ -4879,7 +4880,12 @@ function Details:InstanceRefreshRows(instance) row.icone_classe:Show() if (start_after_icon) then - row.statusbar:SetPoint("topleft", row.icone_classe, "topright") + row.statusbar:ClearAllPoints() + row.statusbar:SetPoint("left", row.icone_classe, "right", start_after_icon_offset_x, 0) + row.background:ClearAllPoints() + row.background:SetAllPoints(row.statusbar) + row.overlayTexture:ClearAllPoints() + row.overlayTexture:SetAllPoints(row.statusbar) else row.statusbar:SetPoint("topleft", row, "topleft") end @@ -4918,7 +4924,12 @@ function Details:InstanceRefreshRows(instance) row.icone_classe:Show() if (start_after_icon) then - row.statusbar:SetPoint("bottomright", row.icone_classe, "bottomleft") + row.statusbar:ClearAllPoints() + row.statusbar:SetPoint("right", row.icone_classe, "left", -start_after_icon_offset_x, 0) + row.background:ClearAllPoints() + row.background:SetAllPoints(row.statusbar) + row.overlayTexture:ClearAllPoints() + row.overlayTexture:SetAllPoints(row.statusbar) else row.statusbar:SetPoint("bottomright", row, "bottomright") end @@ -5036,6 +5047,8 @@ function Details:InstanceRefreshRows(instance) --backdrop if (lineBorderEnabled) then row.lineBorder:Show() + row.lineBorder:ClearAllPoints() + row.lineBorder:SetAllPoints(row.statusbar) row.lineBorder:SetVertexColor(unpack(lineBorderColor)) row.lineBorder:SetBorderSizes(lineBorderSize, lineBorderSize, lineBorderSize, lineBorderSize) row.lineBorder:UpdateSizes() From 1582c2f3be159568d230c12cd38123a7c14ff4f5 Mon Sep 17 00:00:00 2001 From: Elitesparkle Date: Thu, 28 Mar 2024 14:56:21 +0100 Subject: [PATCH 2/2] Fix Icon Size Offset This closes #702. --- frames/window_main.lua | 1 + 1 file changed, 1 insertion(+) diff --git a/frames/window_main.lua b/frames/window_main.lua index 2a2980836..af142cd7a 100644 --- a/frames/window_main.lua +++ b/frames/window_main.lua @@ -7437,6 +7437,7 @@ function Details:ChangeSkin(skin_name) end self:UpdateClickThrough() + self:ReajustaGump() end --update the window click through state