i2psnark: Version the file icons

Minor cleanup of icon set selector
This commit is contained in:
zzz
2020-10-11 13:22:26 +00:00
parent 9a1d7a2ae3
commit 22abf09bd7
2 changed files with 7 additions and 4 deletions

View File

@ -893,13 +893,16 @@ public class SnarkManager implements CompleteListener, ClientApp {
* @since 0.9.48
*/
public String getThemeIconSet() {
String iconset = "";
String iconset;
String theme = getTheme();
if (_log.shouldLog(Log.DEBUG))
_log.debug("Theme was: " + this.getTheme());
if (this.getTheme().equals("dark") || this.getTheme().equals("light")) {
_log.debug("Theme was: " + theme);
if (theme.equals("dark") || theme.equals("light")) {
if (_log.shouldLog(Log.DEBUG))
_log.debug("Using solid iconset.");
iconset = "solid/";
} else {
iconset = "";
}
return iconset;
}

View File

@ -4206,7 +4206,7 @@ public class I2PSnarkServlet extends BasicServlet {
* @since 0.8.2
*/
private String toImg(String icon, String altText) {
return "<img alt=\"" + altText + "\" height=\"16\" width=\"16\" src=\"" + _contextPath + WARBASE + "icons/" + _manager.getThemeIconSet() + icon + ".png\">";
return "<img alt=\"" + altText + "\" height=\"16\" width=\"16\" src=\"" + _contextPath + WARBASE + "icons/" + _manager.getThemeIconSet() + icon + ".png?" + CoreVersion.VERSION + "\">";
}
/**