diff --git a/app/src/main/java/de/danoeh/antennapod/adapter/NavListAdapter.java b/app/src/main/java/de/danoeh/antennapod/adapter/NavListAdapter.java index befe142cc..59cde717e 100644 --- a/app/src/main/java/de/danoeh/antennapod/adapter/NavListAdapter.java +++ b/app/src/main/java/de/danoeh/antennapod/adapter/NavListAdapter.java @@ -202,17 +202,13 @@ public class NavListAdapter extends BaseAdapter v = getFeedView(position, convertView, parent); } if (v != null && viewType != VIEW_TYPE_SECTION_DIVIDER) { - TextView txtvTitle = v.findViewById(R.id.txtvTitle); TypedValue typedValue = new TypedValue(); if (position == itemAccess.getSelectedItemIndex()) { - txtvTitle.setTypeface(null, Typeface.BOLD); - v.getContext().getTheme().resolveAttribute(de.danoeh.antennapod.core.R.attr.drawer_activated_color, typedValue, true); + v.getContext().getTheme().resolveAttribute(R.attr.drawer_activated_color, typedValue, true); v.setBackgroundResource(typedValue.resourceId); - } else { - txtvTitle.setTypeface(null, Typeface.NORMAL); - v.getContext().getTheme().resolveAttribute(de.danoeh.antennapod.core.R.attr.nav_drawer_background, typedValue, true); + v.getContext().getTheme().resolveAttribute(android.R.attr.windowBackground, typedValue, true); v.setBackgroundResource(typedValue.resourceId); } } @@ -356,11 +352,6 @@ public class NavListAdapter extends BaseAdapter if(counter > 0) { holder.count.setVisibility(View.VISIBLE); holder.count.setText(String.valueOf(counter)); - if (itemAccess.getSelectedItemIndex() == position) { - holder.count.setTypeface(null, Typeface.BOLD); - } else { - holder.count.setTypeface(null, Typeface.NORMAL); - } } else { holder.count.setVisibility(View.GONE); } diff --git a/app/src/main/java/de/danoeh/antennapod/view/PagerIndicatorView.java b/app/src/main/java/de/danoeh/antennapod/view/PagerIndicatorView.java index 60ef820a9..53a95eede 100644 --- a/app/src/main/java/de/danoeh/antennapod/view/PagerIndicatorView.java +++ b/app/src/main/java/de/danoeh/antennapod/view/PagerIndicatorView.java @@ -86,11 +86,12 @@ public class PagerIndicatorView extends View { } private void drawCircle(Canvas canvas, int position, float frac) { - float circleRadiusSmall = canvas.getHeight() * 0.26f; - float circleRadiusBig = canvas.getHeight() * 0.35f; + float availableHeight = canvas.getHeight() - getPaddingTop() - getPaddingBottom(); + float circleRadiusSmall = availableHeight * 0.26f; + float circleRadiusBig = availableHeight * 0.35f; float circleRadiusDelta = (circleRadiusBig - circleRadiusSmall); - float start = 0.5f * (canvas.getWidth() - numPages * 1.5f * canvas.getHeight()); - paint.setStrokeWidth(canvas.getHeight() * 0.3f); + float start = 0.5f * (canvas.getWidth() - numPages * 1.5f * availableHeight); + paint.setStrokeWidth(availableHeight * 0.3f); if (position == disabledPage) { paint.setStyle(Paint.Style.STROKE); @@ -99,7 +100,7 @@ public class PagerIndicatorView extends View { } paint.setColor((Integer) new ArgbEvaluator().evaluate(frac, circleColor, circleColorHighlight)); - canvas.drawCircle(start + (position * 1.5f + 0.75f) * canvas.getHeight(), 0.5f * canvas.getHeight(), + canvas.drawCircle(start + (position * 1.5f + 0.75f) * availableHeight, 0.5f * availableHeight + getPaddingTop(), circleRadiusSmall + frac * circleRadiusDelta, paint); } } \ No newline at end of file diff --git a/app/src/main/res/layout/audio_controls.xml b/app/src/main/res/layout/audio_controls.xml index cb2c72143..0033156dd 100644 --- a/app/src/main/res/layout/audio_controls.xml +++ b/app/src/main/res/layout/audio_controls.xml @@ -43,7 +43,7 @@ android:gravity="center" android:text="-" android:textStyle="bold" - android:textColor="@color/status_progress" + android:textColor="?attr/colorAccent" android:textSize="24sp" android:background="?attr/selectableItemBackgroundBorderless" /> @@ -62,7 +62,7 @@ android:gravity="center" android:text="+" android:textStyle="bold" - android:textColor="@color/status_progress" + android:textColor="?attr/colorAccent" android:textSize="24sp" android:background="?attr/selectableItemBackgroundBorderless" /> diff --git a/app/src/main/res/layout/mediaplayerinfo_activity.xml b/app/src/main/res/layout/mediaplayerinfo_activity.xml index d434c3f13..212d8b9d8 100644 --- a/app/src/main/res/layout/mediaplayerinfo_activity.xml +++ b/app/src/main/res/layout/mediaplayerinfo_activity.xml @@ -4,44 +4,35 @@ xmlns:app="http://schemas.android.com/apk/res-auto" android:id="@+id/drawer_layout" android:layout_width="match_parent" - android:layout_height="match_parent" - tools:background="@android:color/holo_red_dark"> + android:layout_height="match_parent"> - - + android:theme="?attr/actionBarTheme" + android:layout_alignParentTop="true" + android:id="@+id/toolbar"/> - - - + diff --git a/app/src/main/res/layout/nav_list.xml b/app/src/main/res/layout/nav_list.xml index 2d044f548..e2c6919d2 100644 --- a/app/src/main/res/layout/nav_list.xml +++ b/app/src/main/res/layout/nav_list.xml @@ -5,7 +5,7 @@ android:layout_width="@dimen/drawer_width" android:layout_height="match_parent" android:layout_gravity="start" - android:background="?attr/nav_drawer_background" + android:background="?android:attr/windowBackground" android:orientation="vertical"> - diff --git a/core/src/main/res/values/colors.xml b/core/src/main/res/values/colors.xml index b162038cf..efbc75f34 100644 --- a/core/src/main/res/values/colors.xml +++ b/core/src/main/res/values/colors.xml @@ -9,18 +9,13 @@ #0099CC #248800 #B00020 - #E033B5E5 - #2C2C2C - #FFFFFF #669900 #80000000 #50000000 #FFFFFF - #212121 - #3B3B3B - #212121 + #303030 #DDDDDD #414141 #414141 diff --git a/core/src/main/res/values/styles.xml b/core/src/main/res/values/styles.xml index 03309b523..377347ebd 100644 --- a/core/src/main/res/values/styles.xml +++ b/core/src/main/res/values/styles.xml @@ -10,6 +10,7 @@ @color/holo_blue_light @style/ProgressBarLight @style/Widget.AntennaPod.Button + @color/primary_light @style/AntennaPod.Dialog.Light @color/grey600 @drawable/ic_sd_grey600_24dp @@ -41,7 +42,6 @@ @drawable/ic_list_grey600_24dp @drawable/ic_videocam_grey600_24dp @drawable/ic_drag_vertical_grey600_48dp - @color/white @color/highlight_light @drawable/ic_history_grey600_24dp @drawable/ic_folder_grey600_24dp @@ -82,6 +82,7 @@ @color/holo_blue_dark @color/primary_darktheme @color/primary_darktheme + @color/primary_darktheme @color/white @style/Widget.AntennaPod.Button @style/ProgressBarDark @@ -116,8 +117,7 @@ @drawable/ic_list_white_24dp @drawable/ic_videocam_white_24dp @drawable/ic_drag_vertical_white_48dp - @color/nav_drawer_background_dark - @color/nav_drawer_highlighted_dark + @color/highlight_dark @drawable/ic_history_white_24dp @drawable/ic_folder_white_24dp @drawable/ic_av_play_white_24dp @@ -157,7 +157,6 @@ @style/ProgressBarTrueBlack @drawable/ic_drag_vertical_white_48dp @drawable/ic_fab_edit_black - @color/black @color/highlight_trueblack @color/white @color/white