diff options
author | ByteHamster <info@bytehamster.com> | 2020-05-10 16:19:48 +0200 |
---|---|---|
committer | ByteHamster <info@bytehamster.com> | 2020-05-11 00:51:30 +0200 |
commit | 421f75ca8ac3cabfe17fff89aaebc8851087dd04 (patch) | |
tree | 17080967f8788afedd91926a65921e3c924709fb /app/src | |
parent | c0bca81cc6aa0aa6fe5b77a951db6028c75c3879 (diff) | |
download | AntennaPod-421f75ca8ac3cabfe17fff89aaebc8851087dd04.zip |
Fixed blue buttons with blue text
Diffstat (limited to 'app/src')
3 files changed, 19 insertions, 19 deletions
diff --git a/app/src/main/java/de/danoeh/antennapod/dialog/PlaybackControlsDialog.java b/app/src/main/java/de/danoeh/antennapod/dialog/PlaybackControlsDialog.java index 83debaecb..d1ffdc148 100644 --- a/app/src/main/java/de/danoeh/antennapod/dialog/PlaybackControlsDialog.java +++ b/app/src/main/java/de/danoeh/antennapod/dialog/PlaybackControlsDialog.java @@ -80,7 +80,7 @@ public class PlaybackControlsDialog extends DialogFragment { private void setupUi() { final SeekBar barPlaybackSpeed = dialog.findViewById(R.id.playback_speed); - final Button butDecSpeed = dialog.findViewById(R.id.butDecSpeed); + final TextView butDecSpeed = dialog.findViewById(R.id.butDecSpeed); butDecSpeed.setOnClickListener(v -> { if (controller != null && controller.canSetPlaybackSpeed()) { barPlaybackSpeed.setProgress(barPlaybackSpeed.getProgress() - 2); @@ -88,7 +88,7 @@ public class PlaybackControlsDialog extends DialogFragment { VariableSpeedDialog.showGetPluginDialog(getContext()); } }); - final Button butIncSpeed = (Button) dialog.findViewById(R.id.butIncSpeed); + final TextView butIncSpeed = dialog.findViewById(R.id.butIncSpeed); butIncSpeed.setOnClickListener(v -> { if (controller != null && controller.canSetPlaybackSpeed()) { barPlaybackSpeed.setProgress(barPlaybackSpeed.getProgress() + 2); diff --git a/app/src/main/res/layout/audio_controls.xml b/app/src/main/res/layout/audio_controls.xml index 6cb87282f..9a1c525a7 100644 --- a/app/src/main/res/layout/audio_controls.xml +++ b/app/src/main/res/layout/audio_controls.xml @@ -41,18 +41,22 @@ <LinearLayout android:layout_width="match_parent" android:layout_height="wrap_content" - android:orientation="horizontal"> + android:orientation="horizontal" + android:gravity="center_vertical"> - <Button + <TextView android:id="@+id/butDecSpeed" android:layout_width="32dp" android:layout_height="32dp" android:gravity="center" android:text="-" + android:clickable="true" + android:focusable="true" android:textStyle="bold" - android:textColor="?attr/colorAccent" android:textSize="24sp" - android:background="?attr/selectableItemBackgroundBorderless" /> + android:textColor="?attr/colorSecondary" + android:contentDescription="@string/decrease_volume" + android:background="?attr/selectableItemBackgroundBorderless"/> <SeekBar android:id="@+id/playback_speed" @@ -61,16 +65,18 @@ android:max="70" android:layout_weight="1" /> - <Button + <TextView android:id="@+id/butIncSpeed" android:layout_width="32dp" android:layout_height="32dp" - android:minWidth="0dp" android:gravity="center" android:text="+" + android:clickable="true" + android:focusable="true" android:textStyle="bold" - android:textColor="?attr/colorAccent" android:textSize="24sp" + android:textColor="?attr/colorSecondary" + android:contentDescription="@string/increase_volume" android:background="?attr/selectableItemBackgroundBorderless" /> </LinearLayout> diff --git a/app/src/main/res/layout/download_authentication_activity.xml b/app/src/main/res/layout/download_authentication_activity.xml index 58c2c10e6..e16a8b3a8 100644 --- a/app/src/main/res/layout/download_authentication_activity.xml +++ b/app/src/main/res/layout/download_authentication_activity.xml @@ -50,21 +50,15 @@ android:id="@+id/butCancel" android:layout_width="wrap_content" android:layout_height="wrap_content" - android:background="?android:attr/selectableItemBackground" - android:textColor="?attr/colorAccent" - android:paddingLeft="8dp" - android:paddingRight="8dp" - android:text="@string/cancel_label"/> + android:text="@string/cancel_label" + style="@style/Widget.MaterialComponents.Button.TextButton"/> <Button android:id="@+id/butConfirm" android:layout_width="wrap_content" android:layout_height="wrap_content" - android:background="?android:attr/selectableItemBackground" - android:textColor="?attr/colorAccent" - android:paddingLeft="8dp" - android:paddingRight="8dp" - android:text="@string/confirm_label"/> + android:text="@string/confirm_label" + style="@style/Widget.MaterialComponents.Button.TextButton"/> </LinearLayout> </LinearLayout>
\ No newline at end of file |