Move resources from gerrit-gwtui to gerrit-gwtui-common

This allows plugins to use the standard Gerrit icons.

There is now a single place were icons are stored (in
com.google.gerrit.client in gerrit-gwtui-common). Before they were
distributed over different packages. An exception are a few icons in
com.google.gerrit.client.admin and com.google.gerrit.client.diff which
cannot be moved since they are referenced from a css file in the same
package (at least I don't know how to link to the icons in
gerrit-gwtui-common from the css files).

The icon names were made consistent, duplicate icons were deleted and
the icons are also moved from src/main/java/ to src/main/resources/.

In addition the only gif icon was converted to png.

Change-Id: Ibd9475ae175de6acc7c36bf2e40f96b003f2af10
This commit is contained in:
Phil Lello
2014-07-14 05:15:11 +01:00
committed by Edwin Kempin
parent 7c603dffde
commit 00d817a56a
52 changed files with 156 additions and 122 deletions

View File

@@ -24,9 +24,6 @@ public interface AdminResources extends ClientBundle {
@Source("admin.css")
AdminCss css();
@Source("editText.png")
public ImageResource editText();
@Source("deleteNormal.png")
public ImageResource deleteNormal();

View File

@@ -18,7 +18,7 @@ limitations under the License.
xmlns:ui='urn:ui:com.google.gwt.uibinder'
xmlns:g='urn:import:com.google.gwt.user.client.ui'
>
<ui:with field='res' type='com.google.gerrit.client.admin.AdminResources'/>
<ui:with field='ico' type='com.google.gerrit.client.GerritResources'/>
<ui:style>
.panel {
position: relative;
@@ -49,7 +49,7 @@ limitations under the License.
<g:HTMLPanel stylePrimaryName='{style.panel}'>
<g:Image
ui:field='editIcon'
resource='{res.editText}'
resource='{ico.edit}'
stylePrimaryName='{style.editIcon}'
title='Edit'>
<ui:attribute name='title'/>

Binary file not shown.

Before

Width:  |  Height:  |  Size: 409 B