1
0
mirror of https://codeberg.org/Freeyourgadget/Gadgetbridge synced 2024-11-29 13:26:50 +01:00

Fix changelog background color to match dialog

This commit is contained in:
José Rebelo 2023-08-04 22:34:17 +01:00 committed by Arjan Schrijver
parent 225d466a7b
commit 88ebbdad7a
2 changed files with 2 additions and 3 deletions

View File

@ -472,8 +472,7 @@ public class ControlCenterv2 extends AppCompatActivity
String css = ChangeLog.DEFAULT_CSS;
css += "body { "
+ "color: " + AndroidUtils.getTextColorHex(getBaseContext()) + "; "
+ "background-color: " + AndroidUtils.getBackgroundColorHex(getBaseContext()) + ";" +
"}";
+ "}";
return new ChangeLog(this, css);
}

View File

@ -41,7 +41,7 @@ public class ChangeLog extends de.cketti.library.changelog.ChangeLog {
protected AlertDialog getMaterialDialog(boolean full) {
WebView wv = new WebView(mContext);
//wv.setBackgroundColor(0); // transparent
wv.setBackgroundColor(0); // transparent
wv.loadDataWithBaseURL(null, getLog(full), "text/html", "UTF-8", null);
MaterialAlertDialogBuilder builder = new MaterialAlertDialogBuilder(mContext);