I2PSnark tweaks:

- Replace theme selector with a message when universal theming is enabled
- Move DHT debug info into its own <tr>
This commit is contained in:
str4d
2017-05-14 12:26:17 +00:00
parent 6f60d642af
commit 5caefb5ea9
2 changed files with 31 additions and 17 deletions

View File

@@ -795,14 +795,17 @@ public class SnarkManager implements CompleteListener, ClientApp {
updateConfig();
}
public boolean getUniversalTheming() {
return _context.getBooleanProperty(RC_PROP_UNIVERSAL_THEMING);
}
/**
* Get current theme.
* @return String -- the current theme
*/
public String getTheme() {
String theme = _config.getProperty(PROP_THEME);
boolean universalTheming = _context.getBooleanProperty(RC_PROP_UNIVERSAL_THEMING);
if (universalTheming) {
if (getUniversalTheming()) {
// Fetch routerconsole theme (or use our default if it doesn't exist)
theme = _context.getProperty(RC_PROP_THEME, DEFAULT_THEME);
// Ensure that theme exists