diff options
author | Andrew Dolgov <[email protected]> | 2013-04-16 10:35:48 +0400 |
---|---|---|
committer | Andrew Dolgov <[email protected]> | 2013-04-16 10:35:48 +0400 |
commit | 2bdcdae44fec646ea5ca9cfb0e12d86b7fe6ceef (patch) | |
tree | 797ab375735578bd147a235bbb8ca009696cf217 /src | |
parent | c1d6b71a8765018d2f4284df9a10ab74d4d54a95 (diff) |
initial support for better holo icons
Diffstat (limited to 'src')
-rw-r--r-- | src/org/fox/ttrss/ArticleFragment.java | 3 | ||||
-rw-r--r-- | src/org/fox/ttrss/CommonActivity.java | 5 |
2 files changed, 8 insertions, 0 deletions
diff --git a/src/org/fox/ttrss/ArticleFragment.java b/src/org/fox/ttrss/ArticleFragment.java index 79f07224..e84d712d 100644 --- a/src/org/fox/ttrss/ArticleFragment.java +++ b/src/org/fox/ttrss/ArticleFragment.java @@ -16,6 +16,7 @@ import android.annotation.SuppressLint; import android.app.Activity;
import android.content.Intent;
import android.content.SharedPreferences;
+import android.graphics.Typeface;
import android.net.Uri;
import android.os.Bundle;
import android.preference.PreferenceManager;
@@ -113,6 +114,8 @@ public class ArticleFragment extends Fragment implements GestureDetector.OnDoubl else
titleStr = m_article.title;
+
+ title.setTypeface(null, m_article.unread ? Typeface.BOLD : Typeface.NORMAL);
title.setText(Html.fromHtml(titleStr));
//title.setPaintFlags(title.getPaintFlags() | Paint.UNDERLINE_TEXT_FLAG);
title.setOnClickListener(new OnClickListener() {
diff --git a/src/org/fox/ttrss/CommonActivity.java b/src/org/fox/ttrss/CommonActivity.java index a01c7966..0566aaf8 100644 --- a/src/org/fox/ttrss/CommonActivity.java +++ b/src/org/fox/ttrss/CommonActivity.java @@ -30,6 +30,11 @@ public class CommonActivity extends FragmentActivity { protected SharedPreferences m_prefs;
+ protected boolean isDarkTheme() {
+ return m_prefs.getString("theme", "THEME_DARK").equals("THEME_DARK") ||
+ m_prefs.getString("theme", "THEME_DARK").equals("THEME_DARK_GRAY");
+ }
+
protected void setSmallScreen(boolean smallScreen) {
Log.d(TAG, "m_smallScreenMode=" + smallScreen);
m_smallScreenMode = smallScreen;
|