added new spinner and improved stylesheet for displayng File Preview

task_20762
Francesco Mangiacrapa 4 years ago
parent d88ce70e93
commit 26b7497446

@ -420,6 +420,12 @@ public interface Icons extends ClientBundle {
@Source("icons/no-preview-available.png")
ImageResource previewNotAvailable();
@Source("icons/no-preview-available-no-border.png")
ImageResource previewNotAvailableNoBorder();
@Source("icons/spinner2.gif")
ImageResource spinner();
}

@ -466,6 +466,16 @@ public class Resources {
return AbstractImagePrototype.create(ICONS.notread());
}
/**
* Gets the icon not read.
*
* @return the icon not read
*/
public static AbstractImagePrototype getSpinner(){
return AbstractImagePrototype.create(ICONS.spinner());
}
/**
@ -1370,6 +1380,15 @@ public class Resources {
public static ImageResource getPreviewNotAvailable() {
return ICONS.previewNotAvailable();
}
/**
* Gets the preview not available.
*
* @return the preview not available
*/
public static ImageResource getPreviewNotAvailableNoBorder() {
return ICONS.previewNotAvailableNoBorder();
}
/**

Binary file not shown.

After

Width:  |  Height:  |  Size: 6.7 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.8 KiB

@ -192,9 +192,9 @@ public class DialogGetInfoBootstrap extends Composite {
private Map<String, List<String>> mapAllowedMimeTypesForPreview;
private Image spinnerImage = Resources.getIconLoading().createImage();
private Image spinnerImage = Resources.getSpinner().createImage();
private Image noPreviewAvailable = new Image(Resources.getPreviewNotAvailable());
private Image noPreviewAvailable = new Image(Resources.getPreviewNotAvailableNoBorder());
private Frame iFrameGDV = null;

@ -413,6 +413,12 @@ IN THE 'DETAILS' PANEL*/
display: flex;
align-items: center;
justify-content: center;
margin-left: 10px;
border: 1px solid #e6e6e6;
padding-top: 5px;
padding-bottom: 5px;
border-left: none;
border-right: none;
}
.preview-image-style img {
@ -424,6 +430,12 @@ IN THE 'DETAILS' PANEL*/
display: flex;
align-items: center;
justify-content: center;
margin-left: 10px;
border: 1px solid #e6e6e6;
padding-top: 5px;
padding-bottom: 5px;
border-left: none;
border-right: none;
}
.my-preview-doc {

Loading…
Cancel
Save