forked from I2P_Developers/i2p.i2p
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:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user