Skip to content

Commit

Permalink
fix: upper customization in mural
Browse files Browse the repository at this point in the history
  • Loading branch information
ySnoopyDogy committed Nov 2, 2023
1 parent f1fd265 commit ee17710
Showing 1 changed file with 7 additions and 12 deletions.
19 changes: 7 additions & 12 deletions src/renderers/profiles/mural.go
Original file line number Diff line number Diff line change
Expand Up @@ -19,18 +19,7 @@ func RenderPersonalSpace(User *utils.UserData, I18n *utils.I18n, customEdits []s

ctx.SetHexColor(utils.ShadeColor(User.Color, 15))
ctx.DrawRectangle(182, 10, 580, 50)

if utils.GetProfileCustomization("textBoxFilled", customEdits) {
ctx.Fill()
} else {
ctx.Stroke()
}

ctx.MoveTo(235, 60)
ctx.LineTo(892, 60)
ctx.LineTo(1030, 130)
ctx.LineTo(892, 202)
ctx.LineTo(235, 202)
ctx.Fill()

ctx.SetHexColor(User.Color)
ctx.DrawCircle(131, 131, 130)
Expand All @@ -40,6 +29,12 @@ func RenderPersonalSpace(User *utils.UserData, I18n *utils.I18n, customEdits []s
ctx.DrawImageAnchored(userAvatar, 131, 131, 0.5, 0.5)
ctx.ResetClip()

ctx.MoveTo(235, 60)
ctx.LineTo(892, 60)
ctx.LineTo(1030, 130)
ctx.LineTo(892, 202)
ctx.LineTo(235, 202)

ctx.SetLineWidth(15)

if utils.GetProfileCustomization("textBoxFilled", customEdits) {
Expand Down

0 comments on commit ee17710

Please sign in to comment.