I2P Address: [http://git.idk.i2p]

Skip to content
Snippets Groups Projects
Verified Commit 340df514 authored by zzz's avatar zzz
Browse files

Console: Fix theme selection

parent bec8feb0
No related branches found
No related tags found
No related merge requests found
...@@ -21,6 +21,7 @@ public class CSSHelper extends HelperBase { ...@@ -21,6 +21,7 @@ public class CSSHelper extends HelperBase {
/** @since 0.9.33 moved from ConfigUIHelper */ /** @since 0.9.33 moved from ConfigUIHelper */
public static final String PROP_THEME_PFX = PROP_THEME_NAME + '.'; public static final String PROP_THEME_PFX = PROP_THEME_NAME + '.';
public static final String DEFAULT_THEME = "light"; public static final String DEFAULT_THEME = "light";
public static final String ALT_THEME = "dark";
public static final String BASE_THEME_PATH = "/themes/console/"; public static final String BASE_THEME_PATH = "/themes/console/";
private static final String FORCE = "classic"; private static final String FORCE = "classic";
public static final String PROP_REFRESH = "routerconsole.summaryRefresh"; public static final String PROP_REFRESH = "routerconsole.summaryRefresh";
......
...@@ -76,6 +76,7 @@ public class ConfigUIHelper extends HelperBase { ...@@ -76,6 +76,7 @@ public class ConfigUIHelper extends HelperBase {
Set<String> rv = new TreeSet<String>(); Set<String> rv = new TreeSet<String>();
// add a failsafe even if we can't find any themes // add a failsafe even if we can't find any themes
rv.add(CSSHelper.DEFAULT_THEME); rv.add(CSSHelper.DEFAULT_THEME);
rv.add(CSSHelper.ALT_THEME);
File dir = new File(_context.getBaseDir(), "docs/themes/console"); File dir = new File(_context.getBaseDir(), "docs/themes/console");
File[] files = dir.listFiles(); File[] files = dir.listFiles();
if (files == null) if (files == null)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment