Resize the diffy avatar to be 26x26
Avatar images are expected to be square 26x26 boxes when used in small comment regions. Resize the stock image used to identify the Gerrit server to be 26x26, centering the diffy logo in the middle of the region. Bug: issue 2051 Change-Id: Iddf93d0da8b64cddcd34f8d772fdf50e754c78a6
This commit is contained in:
@@ -71,7 +71,7 @@ public class AvatarImage extends Image implements LoadHandler {
|
|||||||
setVisible(false);
|
setVisible(false);
|
||||||
} else if (isGerritServer(account)) {
|
} else if (isGerritServer(account)) {
|
||||||
setVisible(true);
|
setVisible(true);
|
||||||
setResource(Gerrit.RESOURCES.gerritAvatar());
|
setResource(Gerrit.RESOURCES.gerritAvatar26());
|
||||||
} else if (account.has_avatar_info()) {
|
} else if (account.has_avatar_info()) {
|
||||||
setVisible(false);
|
setVisible(false);
|
||||||
AvatarInfo info = account.avatar(size);
|
AvatarInfo info = account.avatar(size);
|
||||||
|
|||||||
@@ -52,8 +52,8 @@ public interface GerritResources extends ClientBundle {
|
|||||||
@Source("addFileComment.png")
|
@Source("addFileComment.png")
|
||||||
public ImageResource addFileComment();
|
public ImageResource addFileComment();
|
||||||
|
|
||||||
@Source("diffy.png")
|
@Source("diffy26.png")
|
||||||
public ImageResource gerritAvatar();
|
public ImageResource gerritAvatar26();
|
||||||
|
|
||||||
@Source("draftComments.png")
|
@Source("draftComments.png")
|
||||||
public ImageResource draftComments();
|
public ImageResource draftComments();
|
||||||
|
|||||||
|
Before Width: | Height: | Size: 4.7 KiB After Width: | Height: | Size: 4.7 KiB |
BIN
gerrit-gwtui/src/main/java/com/google/gerrit/client/diffy26.png
Normal file
BIN
gerrit-gwtui/src/main/java/com/google/gerrit/client/diffy26.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 1.1 KiB |
Reference in New Issue
Block a user