From: Reimar Döffinger Date: Fri, 22 May 2020 07:35:54 +0000 (+0200) Subject: Also adjust link colour for dark theme HTML view. X-Git-Url: http://gitweb.fperrin.net/?p=Dictionary.git;a=commitdiff_plain;h=c804b0668d65dc901a248d358672826fd4da5fac Also adjust link colour for dark theme HTML view. --- diff --git a/src/com/hughes/android/dictionary/DictionaryActivity.java b/src/com/hughes/android/dictionary/DictionaryActivity.java index 15efdbe..4665192 100644 --- a/src/com/hughes/android/dictionary/DictionaryActivity.java +++ b/src/com/hughes/android/dictionary/DictionaryActivity.java @@ -1583,11 +1583,11 @@ public class DictionaryActivity extends AppCompatActivity { else if (typeface == Typeface.SANS_SERIF) { style = "font-family: sans-serif;"; } else if (typeface == Typeface.MONOSPACE) { style = "font-family: monospace;"; } if (application.getSelectedTheme() == DictionaryApplication.Theme.DEFAULT) - style += "background-color: black; color: white;"; + style += "body { background-color: black; color: white; } a { color: #00aaff; }"; // Log.d(LOG, "html=" + html); startActivityForResult( HtmlDisplayActivity.getHtmlIntent(getApplicationContext(), String.format( - "%s", style, html), + "%s", style, html), htmlTextToHighlight, false), 0); }