Fixed a bug with the font not loading

This commit is contained in:
Rsl1122 2019-08-30 15:51:12 +03:00
parent 184949efca
commit ff5b8882d2

View File

@ -87,13 +87,7 @@ public class Theme implements SubSystem {
private String getColor(ThemeVal variable) {
String path = variable.getThemePath();
try {
String value = themeConfig.getString(path);
if (value.contains(".")) {
return "url(\"" + value + "\")";
} else {
return value;
}
return themeConfig.getString(path);
} catch (Exception | NoSuchFieldError e) {
logger.error("Something went wrong with getting variable " + variable.name() + " for: " + path);
}