mirror of
https://github.com/plan-player-analytics/Plan.git
synced 2024-11-08 03:39:42 +01:00
Fixed a bug with the font not loading
This commit is contained in:
parent
184949efca
commit
ff5b8882d2
@ -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);
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user