mirror of
https://github.com/yairm210/Unciv.git
synced 2025-01-10 23:37:31 +07:00
NotificationsScroll: Made notifications dark blue with white text.
This commit is contained in:
parent
d970632b20
commit
63b8ba2e61
@ -30,12 +30,14 @@ class NotificationsScroll(internal val worldScreen: WorldScreen) : ScrollPane(nu
|
||||
|
||||
notificationsTable.clearChildren()
|
||||
for (notification in notifications.toList().reversed()) { // toList to avoid concurrency problems
|
||||
val label = notification.text.toLabel(Color.BLACK,30)
|
||||
val label = notification.text.toLabel(Color.WHITE,30)
|
||||
val listItem = Table()
|
||||
|
||||
listItem.add(ImageGetter.getCircle()
|
||||
.apply { color=notification.color }).size(20f).padRight(5f)
|
||||
listItem.background = ImageGetter.getRoundedEdgeTableBackground().apply { setScale(0.5f) }
|
||||
listItem.background = ImageGetter
|
||||
.getRoundedEdgeTableBackground(ImageGetter.getBlue().lerp(Color.BLACK, 0.5f))
|
||||
.apply { setScale(0.5f) }
|
||||
listItem.add(label)
|
||||
|
||||
// using a large click area with no gap in between each message item.
|
||||
|
Loading…
Reference in New Issue
Block a user