2009-07-12 03:21:20 +00:00
|
|
|
package net.i2p.router.web;
|
|
|
|
|
|
|
|
public class ConfigUIHelper extends HelperBase {
|
|
|
|
public ConfigUIHelper() {}
|
|
|
|
|
|
|
|
public static final String PROP_THEME = "routerconsole.theme";
|
2009-07-13 16:13:22 +00:00
|
|
|
private static final String themes[] = {"classic", "dark", "light"};
|
2009-07-12 03:21:20 +00:00
|
|
|
|
|
|
|
public String getSettings() {
|
|
|
|
StringBuilder buf = new StringBuilder(512);
|
|
|
|
String current = _context.getProperty(PROP_THEME, "default");
|
|
|
|
for (String theme : themes) {
|
|
|
|
buf.append("<input type=\"radio\" name=\"theme\" ");
|
|
|
|
if (theme.equals(current))
|
|
|
|
buf.append("checked=\"true\" ");
|
|
|
|
buf.append("value=\"").append(theme).append("\"/>").append(theme).append("<br />\n");
|
|
|
|
}
|
|
|
|
return buf.toString();
|
|
|
|
}
|
|
|
|
}
|