Skip to content

Commit

Permalink
chore 🧹: online status display
Browse files Browse the repository at this point in the history
  • Loading branch information
SDIDSA committed Jul 21, 2023
1 parent b4ce3b5 commit 9b68e60
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -104,7 +104,7 @@ public PlayerCard(App owner, boolean host, int index) {

removeBy = ViewUtils.dipToPx(6, owner);
remove = new ColorIcon(owner, R.drawable.close);
remove.setSize(32);
remove.setSize(28);
remove.setCornerRadius(7);
remove.setTranslationY(-removeBy);
remove.setTranslationX(removeBy);
Expand All @@ -113,7 +113,7 @@ public PlayerCard(App owner, boolean host, int index) {
confirmKick.show();
}
});
ViewUtils.setPaddingUnified(remove, 5, owner);
ViewUtils.setPaddingUnified(remove, 4, owner);
ViewUtils.alignInFrame(remove, Gravity.TOP | Gravity.END);

addView(preAvatar);
Expand Down Expand Up @@ -406,6 +406,8 @@ public void applyStyle(Style style) {
avatarBack.setColor(style.getBackgroundTertiary());
avatarBack.setStroke(ViewUtils.dipToPx(1, getOwner()), style.getTextMuted());

avatarDisplay.setOnlineBackground(style.getBackgroundTertiary());

loading.setFill(style.getTextMuted());

remove.setBackgroundColor(style.getBackgroundTertiary());
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ public void setUser(User user) {
public void applyStyle(Style style) {
setBackground(style.getBackgroundPrimary());
setBorderColor(style.getTextMuted());
avatar.setBackground(style.getBackgroundPrimary());
avatar.setOnlineBackground(style.getBackgroundPrimary());
}

@Override
Expand Down

0 comments on commit 9b68e60

Please sign in to comment.