forked from I2P_Developers/i2p.i2p
i2psnark: Version the file icons
Minor cleanup of icon set selector
This commit is contained in:
@ -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;
|
||||
}
|
||||
|
@ -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 + "\">";
|
||||
}
|
||||
|
||||
/**
|
||||
|
Reference in New Issue
Block a user