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) { private String getColor(ThemeVal variable) {
String path = variable.getThemePath(); String path = variable.getThemePath();
try { try {
String value = themeConfig.getString(path); return themeConfig.getString(path);
if (value.contains(".")) {
return "url(\"" + value + "\")";
} else {
return value;
}
} catch (Exception | NoSuchFieldError e) { } catch (Exception | NoSuchFieldError e) {
logger.error("Something went wrong with getting variable " + variable.name() + " for: " + path); logger.error("Something went wrong with getting variable " + variable.name() + " for: " + path);
} }