Skip to content

Commit 3fc9ba2

Browse files
committed
Increase avatar size and mod icon, decrease RoomPlayerButton vertical padding
1 parent e04ef7e commit 3fc9ba2

1 file changed

Lines changed: 5 additions & 4 deletions

File tree

src/com/osudroid/ui/v2/multi/RoomPlayerCard.kt

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -157,6 +157,7 @@ class RoomPlayerCard : UILinearContainer() {
157157
width = FillParent
158158
orientation = Orientation.Horizontal
159159
spacing = 12f
160+
padding = Vec4(12f, 8f)
160161

161162
bannerSprite = UIShapedSprite().apply {
162163
inheritAncestorsColor = false
@@ -181,7 +182,7 @@ class RoomPlayerCard : UILinearContainer() {
181182
inheritAncestorsColor = false
182183
anchor = Anchor.CenterLeft
183184
origin = Anchor.CenterLeft
184-
size = Vec2(40f)
185+
size = Vec2(50f)
185186

186187
shape = object : UIBox() {
187188
init {
@@ -250,7 +251,7 @@ class RoomPlayerCard : UILinearContainer() {
250251
modDisplay?.detachSelf()
251252

252253
modDisplay = UIText().apply {
253-
minHeight = 20f // Force to take space even if no mods are enabled
254+
minHeight = 24f // Force to take space even if no mods are enabled
254255
font = ResourceManager.getInstance().getFont("xs")
255256
applyTheme = { color = it.accentColor * 0.8f }
256257
}
@@ -264,8 +265,8 @@ class RoomPlayerCard : UILinearContainer() {
264265
modDisplay?.detachSelf()
265266

266267
modDisplay = ModsIndicator().apply {
267-
minHeight = 20f // Force to take space even if no mods are enabled
268-
iconSize = 20f
268+
minHeight = 24f // Force to take space even if no mods are enabled
269+
iconSize = 24f
269270
}
270271

271272
innerContainer += modDisplay!!

0 commit comments

Comments
 (0)