Fixed changelog background in light theme

Dialog background colors changed at some point, WebView needs to be full white
This commit is contained in:
Aidan Follestad 2015-08-24 10:50:41 -05:00
commit 48b63b7d78

View file

@ -80,7 +80,7 @@ public class ChangelogDialog extends LeakDetectDialogFragment {
webView.loadData(buf.toString()
.replace("{style-placeholder}", ThemeSingleton.get().darkTheme ?
"body { background-color: #444444; color: #fff; }" :
"body { background-color: #EDEDED; color: #000; }")
"body { background-color: #fff; color: #000; }")
.replace("{link-color}", colorToHex(ThemeSingleton.get().positiveColor.getDefaultColor()))
.replace("{link-color-active}", colorToHex(ColorUtil.shiftColorUp(ThemeSingleton.get().positiveColor.getDefaultColor())))
, "text/html", "UTF-8");
@ -93,4 +93,4 @@ public class ChangelogDialog extends LeakDetectDialogFragment {
private String colorToHex(int color) {
return Integer.toHexString(color).substring(2);
}
}
}