some more layout tweaks for consistency
remove some bad looking stuff from amber theme, make it darker
This commit is contained in:
parent
7a9ce35f2e
commit
7b8a517e95
@ -141,6 +141,11 @@ public class CommonActivity extends ActionBarActivity {
|
||||
super.onCreate(savedInstanceState);
|
||||
}
|
||||
|
||||
public int dpToPx(int dp) {
|
||||
float density = getResources().getDisplayMetrics().density;
|
||||
return Math.round((float)dp * density);
|
||||
}
|
||||
|
||||
public void setStatusBarTint() {
|
||||
if (android.os.Build.VERSION.SDK_INT == android.os.Build.VERSION_CODES.KITKAT &&
|
||||
!m_prefs.getBoolean("full_screen_mode", false)) {
|
||||
|
@ -332,6 +332,9 @@ public class HeadlinesFragment extends Fragment implements OnItemClickListener,
|
||||
// thanks google
|
||||
if (android.os.Build.VERSION.SDK_INT <= android.os.Build.VERSION_CODES.KITKAT) {
|
||||
list.setDividerHeight(0);
|
||||
|
||||
int px = m_activity.dpToPx(4);
|
||||
list.setPadding(px, px, px, px);
|
||||
}
|
||||
|
||||
if (m_prefs.getBoolean("headlines_mark_read_scroll", false)) {
|
||||
|
@ -310,6 +310,9 @@ public class OfflineHeadlinesFragment extends Fragment implements OnItemClickLis
|
||||
// thanks google
|
||||
if (android.os.Build.VERSION.SDK_INT <= android.os.Build.VERSION_CODES.KITKAT) {
|
||||
list.setDividerHeight(0);
|
||||
|
||||
int px = m_activity.dpToPx(4);
|
||||
list.setPadding(px, px, px, px);
|
||||
}
|
||||
|
||||
if (m_prefs.getBoolean("headlines_mark_read_scroll", false)) {
|
||||
|
@ -29,6 +29,7 @@
|
||||
</FrameLayout>
|
||||
|
||||
<FrameLayout
|
||||
android:elevation="4dp"
|
||||
android:id="@+id/headlines_fragment"
|
||||
android:layout_width="0dp"
|
||||
android:layout_height="match_parent"
|
||||
|
@ -32,6 +32,7 @@
|
||||
android:layout_width="0dp"
|
||||
android:layout_height="match_parent"
|
||||
android:layout_weight="0.6"
|
||||
android:elevation="4dp"
|
||||
android:background="?articleBackground" >
|
||||
</FrameLayout>
|
||||
</LinearLayout>
|
||||
|
@ -13,7 +13,6 @@
|
||||
android:orientation="horizontal">
|
||||
|
||||
<ImageView
|
||||
android:tint="?iconTintColor"
|
||||
android:id="@+id/icon"
|
||||
android:layout_gravity="center_vertical"
|
||||
android:layout_width="16dp"
|
||||
|
@ -14,7 +14,6 @@
|
||||
android:orientation="horizontal">
|
||||
|
||||
<ImageView
|
||||
android:tint="?iconTintColor"
|
||||
android:id="@+id/icon"
|
||||
android:layout_gravity="center_vertical"
|
||||
android:layout_width="16dp"
|
||||
|
@ -10,6 +10,7 @@
|
||||
android:layout_height="match_parent" >
|
||||
|
||||
<ListView
|
||||
android:padding="8dp"
|
||||
android:id="@+id/headlines_list"
|
||||
android:layout_width="match_parent"
|
||||
android:layoutAnimation="@anim/layout_headline"
|
||||
|
@ -153,7 +153,6 @@
|
||||
android:textStyle="italic" />
|
||||
|
||||
<ImageView
|
||||
android:tint="?iconTintColor"
|
||||
android:id="@+id/marked"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="16dp"
|
||||
@ -164,7 +163,6 @@
|
||||
android:src="@drawable/ic_star_empty" />
|
||||
|
||||
<ImageView
|
||||
android:tint="?iconTintColor"
|
||||
android:id="@+id/published"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="16dp"
|
||||
@ -175,7 +173,6 @@
|
||||
android:src="@drawable/ic_unpublished" />
|
||||
|
||||
<ImageView
|
||||
android:tint="?iconTintColor"
|
||||
android:id="@+id/article_menu_button"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="16dp"
|
||||
|
@ -154,7 +154,6 @@
|
||||
android:textStyle="italic" />
|
||||
|
||||
<ImageView
|
||||
android:tint="?iconTintColor"
|
||||
android:id="@+id/marked"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="16dp"
|
||||
@ -165,7 +164,6 @@
|
||||
android:src="@drawable/ic_star_empty" />
|
||||
|
||||
<ImageView
|
||||
android:tint="?iconTintColor"
|
||||
android:id="@+id/published"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="16dp"
|
||||
@ -176,7 +174,6 @@
|
||||
android:src="@drawable/ic_unpublished" />
|
||||
|
||||
<ImageView
|
||||
android:tint="?iconTintColor"
|
||||
android:id="@+id/article_menu_button"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="16dp"
|
||||
|
@ -155,7 +155,6 @@
|
||||
android:textStyle="italic" />
|
||||
|
||||
<ImageView
|
||||
android:tint="?iconTintColor"
|
||||
android:id="@+id/marked"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="16dp"
|
||||
@ -166,7 +165,6 @@
|
||||
android:src="@drawable/ic_star_empty" />
|
||||
|
||||
<ImageView
|
||||
android:tint="?iconTintColor"
|
||||
android:id="@+id/published"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="16dp"
|
||||
@ -177,7 +175,6 @@
|
||||
android:src="@drawable/ic_unpublished" />
|
||||
|
||||
<ImageView
|
||||
android:tint="?iconTintColor"
|
||||
android:id="@+id/article_menu_button"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="16dp"
|
||||
|
@ -154,7 +154,6 @@
|
||||
android:textStyle="italic" />
|
||||
|
||||
<ImageView
|
||||
android:tint="?iconTintColor"
|
||||
android:id="@+id/marked"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="16dp"
|
||||
@ -165,7 +164,6 @@
|
||||
android:src="@drawable/ic_star_empty" />
|
||||
|
||||
<ImageView
|
||||
android:tint="?iconTintColor"
|
||||
android:id="@+id/published"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="16dp"
|
||||
@ -176,7 +174,6 @@
|
||||
android:src="@drawable/ic_unpublished" />
|
||||
|
||||
<ImageView
|
||||
android:tint="?iconTintColor"
|
||||
android:id="@+id/article_menu_button"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="16dp"
|
||||
|
@ -28,5 +28,4 @@
|
||||
<attr name="articleHeader" format="reference|color" />
|
||||
<attr name="articleHeaderTextColor" format="reference|color" />
|
||||
<attr name="articleTextColor" format="reference|color" />
|
||||
<attr name="iconTintColor" format="reference|color" />
|
||||
</resources>
|
@ -29,7 +29,6 @@
|
||||
<item name="articleHeaderTextColor">@android:color/white</item>
|
||||
<item name="articleTextColor">@android:color/black</item>
|
||||
<item name="floatingActionButtonStyle">@style/FabTheme</item>
|
||||
<item name="iconTintColor">@android:color/transparent</item>
|
||||
|
||||
<item name="colorPrimary">#6482af</item>
|
||||
<item name="colorPrimaryDark">#526A8E</item>
|
||||
@ -62,7 +61,6 @@
|
||||
<item name="articleTextColor">#D2B944</item>
|
||||
<item name="linkColor">?colorAccent</item>
|
||||
|
||||
<item name="feedlistTextColor">?linkColor</item>
|
||||
<item name="unreadCounterColor">?colorPrimaryDark</item>
|
||||
|
||||
<item name="headlineUnreadTextColor">?linkColor</item>
|
||||
@ -75,10 +73,8 @@
|
||||
<item name="headlineUnreadBackground">@android:color/black</item>
|
||||
<item name="headlineSelectedBackground">#635200</item>
|
||||
|
||||
<item name="iconTintColor">?linkColor</item>
|
||||
|
||||
<item name="colorPrimary">@android:color/black</item>
|
||||
<item name="colorPrimaryDark">#A57100</item>
|
||||
<item name="colorPrimaryDark">@android:color/black</item>
|
||||
<item name="colorAccent">#EACF4C</item>
|
||||
</style>
|
||||
|
||||
@ -111,7 +107,6 @@
|
||||
<item name="articleHeaderTextColor">@android:color/white</item>
|
||||
<item name="floatingActionButtonStyle">@style/FabTheme</item>
|
||||
<item name="articleTextColor">#e0e0e0</item>
|
||||
<item name="iconTintColor">@android:color/transparent</item>
|
||||
|
||||
<item name="colorPrimary">#51698E</item>
|
||||
<item name="colorPrimaryDark">#445877</item>
|
||||
|
Loading…
x
Reference in New Issue
Block a user