diff --git a/app/src/main/java/de/danoeh/antennapod/view/PlaybackSpeedIndicatorView.java b/app/src/main/java/de/danoeh/antennapod/view/PlaybackSpeedIndicatorView.java
index 4b20cc0de..54731a412 100644
--- a/app/src/main/java/de/danoeh/antennapod/view/PlaybackSpeedIndicatorView.java
+++ b/app/src/main/java/de/danoeh/antennapod/view/PlaybackSpeedIndicatorView.java
@@ -1,14 +1,15 @@
package de.danoeh.antennapod.view;
import android.content.Context;
+import android.content.res.TypedArray;
import android.graphics.Canvas;
-import android.graphics.Color;
import android.graphics.Paint;
import android.graphics.Path;
import android.graphics.RectF;
import android.util.AttributeSet;
import android.view.View;
import androidx.annotation.Nullable;
+import de.danoeh.antennapod.R;
public class PlaybackSpeedIndicatorView extends View {
private static final float DEG_2_RAD = (float) (Math.PI / 180);
@@ -39,13 +40,17 @@ public class PlaybackSpeedIndicatorView extends View {
}
private void setup() {
+ int[] colorAttrs = new int[] {R.attr.action_icon_color };
+ TypedArray a = getContext().obtainStyledAttributes(colorAttrs);
+ arcPaint.setColor(a.getColor(0, 0xffffffff));
+ indicatorPaint.setColor(a.getColor(0, 0xffffffff));
+ a.recycle();
+
arcPaint.setAntiAlias(true);
- arcPaint.setColor(Color.GRAY);
arcPaint.setStyle(Paint.Style.STROKE);
arcPaint.setStrokeCap(Paint.Cap.ROUND);
indicatorPaint.setAntiAlias(true);
- indicatorPaint.setColor(Color.GRAY);
indicatorPaint.setStyle(Paint.Style.FILL);
trianglePath.setFillType(Path.FillType.EVEN_ODD);
@@ -67,15 +72,15 @@ public class PlaybackSpeedIndicatorView extends View {
protected void onMeasure(int widthMeasureSpec, int heightMeasureSpec) {
super.onMeasure(widthMeasureSpec, heightMeasureSpec);
- paddingArc = getMeasuredHeight() / 5f;
- paddingIndicator = getMeasuredHeight() / 10f;
+ paddingArc = getMeasuredHeight() / 4.5f;
+ paddingIndicator = getMeasuredHeight() / 6f;
}
@Override
protected void onDraw(Canvas canvas) {
super.onDraw(canvas);
- float radiusInnerCircle = getWidth() / 8f;
+ float radiusInnerCircle = getWidth() / 10f;
canvas.drawCircle(getWidth() / 2f, getHeight() / 2f, radiusInnerCircle, indicatorPaint);
trianglePath.rewind();
diff --git a/core/src/main/res/values/attrs.xml b/core/src/main/res/values/attrs.xml
index aa93398f5..deeb0fa10 100644
--- a/core/src/main/res/values/attrs.xml
+++ b/core/src/main/res/values/attrs.xml
@@ -61,6 +61,7 @@
+
diff --git a/core/src/main/res/values/styles.xml b/core/src/main/res/values/styles.xml
index 9f72c9f6f..03309b523 100644
--- a/core/src/main/res/values/styles.xml
+++ b/core/src/main/res/values/styles.xml
@@ -70,8 +70,8 @@
- @drawable/ic_volume_adaption_grey
- @color/master_switch_background_light
- @color/highlight_light
-
- @style/PreferenceThemeOverlay.v14.Material
+ - #FF757575