From f16095ce5383552d2276297a80b88c4b55e6070e Mon Sep 17 00:00:00 2001 From: Andrew Dolgov Date: Wed, 30 Nov 2011 19:04:31 +0300 Subject: [PATCH] use meta viewport for embedded webviews --- src/org/fox/ttrss/ArticleFragment.java | 8 ++++++-- src/org/fox/ttrss/HeadlinesFragment.java | 12 ++++++++---- 2 files changed, 14 insertions(+), 6 deletions(-) diff --git a/src/org/fox/ttrss/ArticleFragment.java b/src/org/fox/ttrss/ArticleFragment.java index 6a93967e..90c69dc7 100644 --- a/src/org/fox/ttrss/ArticleFragment.java +++ b/src/org/fox/ttrss/ArticleFragment.java @@ -102,15 +102,19 @@ public class ArticleFragment extends Fragment implements OnClickListener { String content; String cssOverride = ""; + web.setBackgroundColor(0x00000000); + if (m_prefs.getString("theme", "THEME_DARK").equals("THEME_DARK")) { - web.setBackgroundColor(android.R.color.black); - cssOverride = "body { background : black; color : #f0f0f0}\n"; + cssOverride = "body { background : transparent; color : #e0e0e0}\n"; + } else { + cssOverride = "body { background : transparent; }\n"; } content = "" + "" + "" + + "" + "