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
|
* @since 0.9.48
|
||||||
*/
|
*/
|
||||||
public String getThemeIconSet() {
|
public String getThemeIconSet() {
|
||||||
String iconset = "";
|
String iconset;
|
||||||
|
String theme = getTheme();
|
||||||
if (_log.shouldLog(Log.DEBUG))
|
if (_log.shouldLog(Log.DEBUG))
|
||||||
_log.debug("Theme was: " + this.getTheme());
|
_log.debug("Theme was: " + theme);
|
||||||
if (this.getTheme().equals("dark") || this.getTheme().equals("light")) {
|
if (theme.equals("dark") || theme.equals("light")) {
|
||||||
if (_log.shouldLog(Log.DEBUG))
|
if (_log.shouldLog(Log.DEBUG))
|
||||||
_log.debug("Using solid iconset.");
|
_log.debug("Using solid iconset.");
|
||||||
iconset = "solid/";
|
iconset = "solid/";
|
||||||
|
} else {
|
||||||
|
iconset = "";
|
||||||
}
|
}
|
||||||
return iconset;
|
return iconset;
|
||||||
}
|
}
|
||||||
|
@ -4206,7 +4206,7 @@ public class I2PSnarkServlet extends BasicServlet {
|
|||||||
* @since 0.8.2
|
* @since 0.8.2
|
||||||
*/
|
*/
|
||||||
private String toImg(String icon, String altText) {
|
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