6628: Slightly increase font size of friend name r=def- a=Robyt3

![screenshot](https://github.com/ddnet/ddnet/assets/23437060/501ef1c3-1c54-4a6e-b679-6b3d43c8f407)

## Checklist

- [X] Tested the change ingame
- [X] Provided screenshots if it is a visual change
- [ ] Tested in combination with possibly related configuration options
- [ ] Written a unit test (especially base/) or added coverage to integration test
- [ ] Considered possible null pointers and out of bounds array indexing
- [ ] Changed no physics that affect existing maps
- [ ] Tested the change with [ASan+UBSan or valgrind's memcheck](https://github.com/ddnet/ddnet/#using-addresssanitizer--undefinedbehavioursanitizer-or-valgrinds-memcheck) (optional)


Co-authored-by: Robert Müller <robytemueller@gmail.com>
This commit is contained in:
bors[bot] 2023-05-19 18:33:54 +00:00 committed by GitHub
commit e13795cccf
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -1393,7 +1393,7 @@ void CMenus::RenderServerbrowserFriends(CUIRect View)
CUIRect Rect;
const auto &Friend = m_avFriends[FriendType][FriendIndex];
List.HSplitTop(10.0f + 10.0f + 2 * 2.0f + 1.0f + (Friend.ServerInfo() == nullptr ? 0.0f : 10.0f), &Rect, &List);
List.HSplitTop(11.0f + 10.0f + 2 * 2.0f + 1.0f + (Friend.ServerInfo() == nullptr ? 0.0f : 10.0f), &Rect, &List);
s_ScrollRegion.AddRect(Rect);
if(s_ScrollRegion.IsRectClipped(Rect))
continue;
@ -1416,7 +1416,7 @@ void CMenus::RenderServerbrowserFriends(CUIRect View)
if(Friend.ServerInfo())
Rect.HSplitBottom(10.0f, &Rect, &InfoLabel);
Rect.HSplitTop(20.0f, &Rect, nullptr);
Rect.HSplitTop(11.0f + 10.0f, &Rect, nullptr);
// tee
if(Friend.Skin()[0] != '\0')
@ -1450,10 +1450,10 @@ void CMenus::RenderServerbrowserFriends(CUIRect View)
RenderTools()->RenderTee(pIdleState, &TeeInfo, EMOTE_NORMAL, vec2(1.0f, 0.0f), TeeRenderPos);
}
Rect.HSplitMid(&NameLabel, &ClanLabel);
Rect.HSplitTop(11.0f, &NameLabel, &ClanLabel);
// name
UI()->DoLabel(&NameLabel, Friend.Name(), FontSize - 2.0f, TEXTALIGN_ML);
UI()->DoLabel(&NameLabel, Friend.Name(), FontSize - 1.0f, TEXTALIGN_ML);
// clan
UI()->DoLabel(&ClanLabel, Friend.Clan(), FontSize - 2.0f, TEXTALIGN_ML);