diff --git a/.classpath b/.classpath
index 925078d1..aa361afe 100644
--- a/.classpath
+++ b/.classpath
@@ -8,6 +8,6 @@
-
+
diff --git a/res/values-v11/style.xml b/res/values-v11/style.xml
index d2adf334..d09304cd 100644
--- a/res/values-v11/style.xml
+++ b/res/values-v11/style.xml
@@ -1,99 +1,4 @@
-
-
-
-
-
-
-
-
-
diff --git a/res/values/arrays.xml b/res/values/arrays.xml
index 63e90184..3586c84c 100644
--- a/res/values/arrays.xml
+++ b/res/values/arrays.xml
@@ -4,12 +4,14 @@
- @string/theme_dark_gray
- @string/theme_light
- @string/theme_sepia
+ - @string/theme_system
- THEME_DARK
- THEME_DARK_GRAY
- THEME_LIGHT
- THEME_SEPIA
+ - THEME_SYSTEM
- @string/font_size_small
diff --git a/res/values/strings.xml b/res/values/strings.xml
index e4ef4831..24e3fc1f 100644
--- a/res/values/strings.xml
+++ b/res/values/strings.xml
@@ -201,4 +201,5 @@
%1$d unread articles
Headline text size
Mark all articles in %1$s as read?
+ Device Default (4.2+)
diff --git a/res/values/style.xml b/res/values/style.xml
index 4a8e93ba..31299fae 100644
--- a/res/values/style.xml
+++ b/res/values/style.xml
@@ -7,9 +7,9 @@
- @drawable/shadow_headlines
- #f0f0f0
- @android:color/transparent
- - #88b0f0
- - #ffffff
- - #f0f0f0
+ - @drawable/headline_row_selected
+ - @drawable/headline_row_unread
+ - @drawable/headline_row
- #88b0f0
- @android:color/primary_text_light
- #ffffff
@@ -32,8 +32,9 @@
- @drawable/shadow_feeds_sepia
- @drawable/shadow_headlines_sepia
- @drawable/paper_sepia
- - #f2eae8
- - #E5B0A0
+ - @drawable/headline_row_unread_sepia
+ - @drawable/headline_row_sepia
+ - @drawable/headline_row_selected_sepia
- #E5B0A0
- @drawable/paper_sepia
- @drawable/counter_background_sepia
@@ -70,7 +71,35 @@
- @drawable/counter_background_dark
- @drawable/counter_background_dark
-
+
+
+
-
+
diff --git a/src/org/fox/ttrss/CommonActivity.java b/src/org/fox/ttrss/CommonActivity.java
index 5edceb4e..dd426966 100644
--- a/src/org/fox/ttrss/CommonActivity.java
+++ b/src/org/fox/ttrss/CommonActivity.java
@@ -173,6 +173,7 @@ public class CommonActivity extends SherlockFragmentActivity {
String defaultTheme = "THEME_DARK";
return (m_prefs.getString("theme", defaultTheme).equals("THEME_DARK")) ||
+ m_prefs.getString("theme", defaultTheme).equals("THEME_SYSTEM") ||
m_prefs.getString("theme", defaultTheme).equals("THEME_DARK_GRAY");
}
@@ -181,6 +182,8 @@ public class CommonActivity extends SherlockFragmentActivity {
if (prefs.getString("theme", defaultTheme).equals("THEME_DARK")) {
setTheme(R.style.DarkTheme);
+ } else if (prefs.getString("theme", defaultTheme).equals("THEME_SYSTEM")) {
+ setTheme(R.style.SystemTheme);
} else if (prefs.getString("theme", defaultTheme).equals("THEME_SEPIA")) {
setTheme(R.style.SepiaTheme);
} else if (prefs.getString("theme", defaultTheme).equals("THEME_DARK_GRAY")) {