From 9b68ea504715ee3c33dd329283a8e79e0bdcc463 Mon Sep 17 00:00:00 2001 From: Edwin Kempin Date: Wed, 23 Dec 2015 15:49:21 +0100 Subject: [PATCH] ChangeScreen: Add icons for hashtags Replace 'Add' button with an icon. This is consistent with editing the topic which is also done by clicking on an icon. Also display an icon for each hashtag, instead of the '#' character. The tag_blue and tag_blue_add icons are taken from the silk icons [1]. [1] http://famfamfam.com/lab/icons/silk/ Change-Id: I50a095e3f489c92c2486bf6b112580584609779a Signed-off-by: Edwin Kempin --- .../com/google/gerrit/client/Resources.java | 6 ++++ .../com/google/gerrit/client/tag_blue.png | Bin 0 -> 586 bytes .../com/google/gerrit/client/tag_blue_add.png | Bin 0 -> 671 bytes .../gerrit/client/change/ChangeScreen.java | 1 + .../gerrit/client/change/ChangeScreen.ui.xml | 14 +++++++- .../google/gerrit/client/change/Hashtags.java | 34 ++++++++++++------ .../gerrit/client/change/Hashtags.ui.xml | 14 ++++---- 7 files changed, 49 insertions(+), 20 deletions(-) create mode 100644 gerrit-gwtui-common/src/main/resources/com/google/gerrit/client/tag_blue.png create mode 100644 gerrit-gwtui-common/src/main/resources/com/google/gerrit/client/tag_blue_add.png diff --git a/gerrit-gwtui-common/src/main/java/com/google/gerrit/client/Resources.java b/gerrit-gwtui-common/src/main/java/com/google/gerrit/client/Resources.java index b7e9699997..ae7114fcb7 100644 --- a/gerrit-gwtui-common/src/main/java/com/google/gerrit/client/Resources.java +++ b/gerrit-gwtui-common/src/main/java/com/google/gerrit/client/Resources.java @@ -24,6 +24,9 @@ public interface Resources extends ClientBundle { @Source("note_add.png") ImageResource addFileComment(); + @Source("tag_blue_add.png") + ImageResource addHashtag(); + @Source("user_add.png") ImageResource addUser(); @@ -58,6 +61,9 @@ public interface Resources extends ClientBundle { @Source("tick.png") ImageResource greenCheck(); + @Source("tag_blue.png") + ImageResource hashtag(); + @Source("lightbulb.png") ImageResource info(); diff --git a/gerrit-gwtui-common/src/main/resources/com/google/gerrit/client/tag_blue.png b/gerrit-gwtui-common/src/main/resources/com/google/gerrit/client/tag_blue.png new file mode 100644 index 0000000000000000000000000000000000000000..9757fc6ed6597438eb8e5a70a1ab2402cdebd5d1 GIT binary patch literal 586 zcmV-Q0=4~#P)6YY{78#rvt}vj%qrc zN=UU@y$E6COaj9&r1NAlaUpajQlL~SorN%pOwHs*2laYgHBA$?ZOd~4Rw@5yFm2?1ZIg`0V-$-;GT1Fi5dB7wUSNi^%`^Ge62m>OBeX610Nsukl}DhDG-mxT?nhyYH!4he7Ri8 zrq0Ti&UXUvqX&F@JcJAe14@BNBqAY_QZAPjF(Y3r7P9H_kB#@LgFAf>xz>Qp&n=|a z>ro1XLZK^nmO`PRh#C2OK0ktd7l6-A;O5?fz1gNnCX)yR00~-SI9%?%=X}23bKl`4NrEVf$mjFO<#Nbov&dvJ zNT<_CrBZ7ExK+Uw3I&YEL1 zq(%qHWHR0F_n|0?dQQMtEQVk(xD>*X>NJrR|6!IJgTVluzJkEFiIZBbhHyBHKp?OH z;YfLEc{Cb2#_Pl@g6c zwX8?E)9I*5#h(iF=`qaGA;gdY_^%U4sZ=5tu-olxvtB}>ke2l*x7+On$PNQM`eeub zw>sQ + button.openAdd { @@ -47,6 +48,7 @@ limitations under the License. font-weight: bold; } + .addHashtag, .cancel { float: right; } @@ -54,14 +56,10 @@ limitations under the License.
- - -
Add #...
-
+