Skip to content

Commit

Permalink
fix unread message bar height see mixxorz#132
Browse files Browse the repository at this point in the history
  • Loading branch information
mohcow committed Apr 21, 2022
1 parent 2f9734f commit 169b677
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 6 deletions.
2 changes: 1 addition & 1 deletion Glass/Components/NewMessageAlertFrame.lua
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ function NewMessageAlertFrameMixin:Init()
self.text = self:CreateFontString(nil, "ARTWORK", "GlassMessageFont")
end
self.text:SetTextColor(Colors.apache.r, Colors.apache.g, Colors.apache.b)
self.text:SetPoint("BOTTOMLEFT", 30, 10)
self.text:SetPoint("BOTTOMLEFT", 30, 2)
self.text:SetText("Unread messages")

-- Alert line
Expand Down
9 changes: 4 additions & 5 deletions Glass/Components/ScrollOverlayFrame.lua
Original file line number Diff line number Diff line change
Expand Up @@ -15,11 +15,10 @@ local ScrollOverlayFrame = {}

function ScrollOverlayFrame:Init()
local overlayOpacity = 0.65
local topOffset = Core.db.profile.frameHeight - (Constants.DOCK_HEIGHT + 5 + 62)

self:SetHeight(64)
self:SetPoint("TOPLEFT", 0, -topOffset)
self:SetPoint("TOPRIGHT", 0, -topOffset)
self:SetHeight(16)
self:SetPoint("BOTTOMLEFT", 0, -1)
self:SetPoint("BOTTOMRIGHT", 0, -1)
self:SetFadeInDuration(0.3)
self:SetFadeOutDuration(0.15)

Expand All @@ -42,7 +41,7 @@ function ScrollOverlayFrame:Init()
end
self.icon:SetTexture("Interface\\Addons\\Glass\\Glass\\Assets\\snapToBottomIcon")
self.icon:SetSize(16, 16)
self.icon:SetPoint("BOTTOMLEFT", 15, 5)
self.icon:SetPoint("BOTTOMLEFT", 15, -1)

-- See new messages click area
if self.snapToBottomFrame == nil then
Expand Down

0 comments on commit 169b677

Please sign in to comment.