From 6f00e70ecc3a707954e8888810bca34d114758bc Mon Sep 17 00:00:00 2001 From: Udo Walter Date: Sat, 8 Aug 2020 02:16:14 +0200 Subject: Some UI changes: - add double click to select location and continue - add a preselected location (first one in the list without a password) - add logo above the location selection - remove redundant text at the bottom - the logo is now customizable via the guacamole.properties file (property name: slx-logo-url) --- src/main/java/de/bwlehrpool/bwlp_guac/SlxConfig.java | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) (limited to 'src/main/java/de/bwlehrpool/bwlp_guac/SlxConfig.java') diff --git a/src/main/java/de/bwlehrpool/bwlp_guac/SlxConfig.java b/src/main/java/de/bwlehrpool/bwlp_guac/SlxConfig.java index 48c707f..f93c965 100644 --- a/src/main/java/de/bwlehrpool/bwlp_guac/SlxConfig.java +++ b/src/main/java/de/bwlehrpool/bwlp_guac/SlxConfig.java @@ -20,6 +20,13 @@ public class SlxConfig { } }; + private static final StringGuacamoleProperty LOGO_URL = new StringGuacamoleProperty() { + @Override + public String getName() { + return "slx-logo-url"; + } + }; + static { Environment e; try { @@ -40,4 +47,13 @@ public class SlxConfig { } } + public static String logoUrl() { + try { + return ENVIRONMENT.getProperty(LOGO_URL); + } catch (GuacamoleException e) { + LOGGER.warn("Cannot get logo url from properties", e); + return null; + } + } + } -- cgit v1.2.3-55-g7522