From 8daeceeffaeae897374984fe144713b8c019adc3 Mon Sep 17 00:00:00 2001 From: anhefti Date: Wed, 28 Apr 2021 17:18:30 +0200 Subject: [PATCH] added fav icon --- .../ethz/seb/sebserver/gui/RAPConfiguration.java | 12 +++++++++++- src/main/resources/static/images/fav_icon.png | Bin 0 -> 6819 bytes 2 files changed, 11 insertions(+), 1 deletion(-) create mode 100644 src/main/resources/static/images/fav_icon.png diff --git a/src/main/java/ch/ethz/seb/sebserver/gui/RAPConfiguration.java b/src/main/java/ch/ethz/seb/sebserver/gui/RAPConfiguration.java index 68498bf3..6c1682e0 100644 --- a/src/main/java/ch/ethz/seb/sebserver/gui/RAPConfiguration.java +++ b/src/main/java/ch/ethz/seb/sebserver/gui/RAPConfiguration.java @@ -8,6 +8,8 @@ package ch.ethz.seb.sebserver.gui; +import java.io.IOException; +import java.io.InputStream; import java.util.HashMap; import java.util.Map; @@ -23,6 +25,7 @@ import org.eclipse.rap.rwt.application.EntryPoint; import org.eclipse.rap.rwt.application.EntryPointFactory; import org.eclipse.rap.rwt.client.WebClient; import org.eclipse.rap.rwt.internal.theme.ThemeUtil; +import org.eclipse.rap.rwt.service.ResourceLoader; import org.eclipse.rap.rwt.service.ServiceManager; import org.eclipse.swt.widgets.Composite; import org.slf4j.Logger; @@ -56,11 +59,18 @@ public class RAPConfiguration implements ApplicationConfiguration { application.addStyleSheet("sms", "resource/theme/default.css"); application.addStyleSheet("sms", "static/css/sms.css"); + application.addResource("fav_icon", new ResourceLoader() { + @Override + public InputStream getResourceAsStream(final String resourceName) throws IOException { + return RAPConfiguration.class.getClassLoader().getResourceAsStream("static/images/fav_icon.png"); + } + }); + final Map properties = new HashMap<>(); properties.put(WebClient.PAGE_TITLE, "SEB Server"); properties.put(WebClient.BODY_HTML, "Loading Application"); properties.put(WebClient.THEME_ID, DEFAULT_THEME_NAME); - // properties.put(WebClient.FAVICON, "icons/favicon.png"); + properties.put(WebClient.FAVICON, "fav_icon"); application.addEntryPoint(guiEntrypoint, new RAPSpringEntryPointFactory(), properties); application.addEntryPoint(proctoringEntrypoint, new RAPRemoteProcotringEntryPointFactory(), properties); diff --git a/src/main/resources/static/images/fav_icon.png b/src/main/resources/static/images/fav_icon.png new file mode 100644 index 0000000000000000000000000000000000000000..be622966e50b147dea48c26958d941548d809641 GIT binary patch literal 6819 zcmV;U8eHXxP)fK+g@R28 zG&CiK@(PgPkdQ$0vIFrWwq?oITbh}@|DA_NmK;m6L%X}V=Zt48-5K5c&G$d=KLea< zr`oCZzqpzHS_igr%cu3Sj8b-33&^$nL-v7T->PHlhfCR3 zuK}jv#g32#K)uO2pmH1g=T$mxZmbLZp9XN{i(LfNYIfMjS*C*`qX6(S`vJ{tYhm9v zw_G_R@D~B_M-Qwol_lxUWGb~ZnMmx8Mx(8FfBRpWJ)WZR0Jnzi?ogRFV$w$N*dIv( zQWE5NihrnoZWfe{joxH6X9Ld&Zh##SnCn_r&TRjz0o=|2Y!KN*lF20Eu^3{pSRj!| zw1{GA{rA83-S=|^bJa^6xck_gYO^tBo_K(7bCU;9D}D->6vnHTC1}Fs2n`C5MTwsx zb08HkwY|wI@J(=7V0KtxvIxV>OusozY`3mu)vWfD4&V>(f1tr+GHs`04qiNtR4TdiHbd-JpD7Z4}oa+I$*Y0MyLsyz+3zLRi`(f z6ad%#$9D!8fThH|KwyB_1_F}?#y*G5W`o6IWt*9SDe!ZMp~+-|_ASB1E0-otn^$TC zZ@Ks?t`fI$wqXQV+1N+>eZmapJb6BfrcT8@ z?q}hX{R+$E%q<)H+D(&jA8x@=P#70@v`PHZGMru~Too>;L)8dL?$6riubJDHFMvX} z51GzeO>E;JFb0wiBv43f7132d(gvsXV+MxzrDnBS;bwQcta~p^Z?@o(*Ah4y6rfsy z;l0K_!~bD8(8>(ReYkZ(!K05u{SovY@*^Hj4(mi&W*z~yU-sL54HLq^yT1O-BMyh7 zmOvaD8sy?jz%h{SX2A5>?e;G*CSEA(lOMjE_CGPxY-U!`tlT5IMujzudoB!*%Dz_N zEW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