From 735fc51bc6a66f6c3cb79c063d07bc1cdfc6c0b0 Mon Sep 17 00:00:00 2001 From: ByteHamster Date: Mon, 11 May 2020 12:01:32 +0200 Subject: [PATCH] Made dark theme darker --- .../viewholder/EpisodeItemViewHolder.java | 2 +- .../main/res/layout/audioplayer_fragment.xml | 32 ++++++------------- .../res/layout/external_player_fragment.xml | 6 +--- .../main/res/layout/statistics_listitem.xml | 2 +- core/src/main/res/values/attrs.xml | 1 + core/src/main/res/values/colors.xml | 12 ++++--- core/src/main/res/values/styles.xml | 3 ++ 7 files changed, 24 insertions(+), 34 deletions(-) diff --git a/app/src/main/java/de/danoeh/antennapod/view/viewholder/EpisodeItemViewHolder.java b/app/src/main/java/de/danoeh/antennapod/view/viewholder/EpisodeItemViewHolder.java index 29378b148..8584befbc 100644 --- a/app/src/main/java/de/danoeh/antennapod/view/viewholder/EpisodeItemViewHolder.java +++ b/app/src/main/java/de/danoeh/antennapod/view/viewholder/EpisodeItemViewHolder.java @@ -106,7 +106,7 @@ public class EpisodeItemViewHolder extends RecyclerView.ViewHolder { isNew.setVisibility(item.isNew() ? View.VISIBLE : View.GONE); isFavorite.setVisibility(item.isTagged(FeedItem.TAG_FAVORITE) ? View.VISIBLE : View.GONE); isInQueue.setVisibility(item.isTagged(FeedItem.TAG_QUEUE) ? View.VISIBLE : View.GONE); - itemView.setAlpha(item.isPlayed() ? 0.5f : 1.0f); + itemView.setAlpha(item.isPlayed() ? 0.6f : 1.0f); ItemActionButton actionButton = ItemActionButton.forItem(item, true, true); actionButton.configure(secondaryActionButton, secondaryActionIcon, activity); diff --git a/app/src/main/res/layout/audioplayer_fragment.xml b/app/src/main/res/layout/audioplayer_fragment.xml index f66c16582..1935ce36c 100644 --- a/app/src/main/res/layout/audioplayer_fragment.xml +++ b/app/src/main/res/layout/audioplayer_fragment.xml @@ -30,9 +30,8 @@ android:layout_width="match_parent" android:layout_height="wrap_content" android:layout_alignParentTop="true" - android:background="?android:attr/windowBackground" + android:background="?attr/background_elevated" tools:layout_height="@dimen/external_player_height" - tools:background="@android:color/holo_green_light" android:elevation="8dp"/> + android:layoutDirection="ltr" /> + android:textSize="@dimen/text_size_micro"/> + android:background="?android:attr/selectableItemBackground"/> @@ -106,8 +101,7 @@ android:id="@+id/player_control" android:layout_width="match_parent" android:layout_height="wrap_content" - android:layout_marginBottom="24dp" - tools:background="@android:color/holo_purple"> + android:layout_marginBottom="24dp"> + tools:srcCompat="@drawable/ic_av_play_white_24dp"/> + tools:srcCompat="@drawable/ic_av_fast_rewind_white_48dp"/> + tools:srcCompat="@drawable/ic_playback_speed_white"/> + tools:srcCompat="@drawable/ic_av_fast_forward_white_48dp"/> + tools:srcCompat="@drawable/ic_av_skip_white_48dp"/> diff --git a/app/src/main/res/layout/external_player_fragment.xml b/app/src/main/res/layout/external_player_fragment.xml index 43b777d99..f36baec26 100644 --- a/app/src/main/res/layout/external_player_fragment.xml +++ b/app/src/main/res/layout/external_player_fragment.xml @@ -9,11 +9,6 @@ android:background="?attr/selectableItemBackground" android:orientation="vertical"> - - diff --git a/app/src/main/res/layout/statistics_listitem.xml b/app/src/main/res/layout/statistics_listitem.xml index 0b2f464d4..c41ace58b 100644 --- a/app/src/main/res/layout/statistics_listitem.xml +++ b/app/src/main/res/layout/statistics_listitem.xml @@ -20,7 +20,7 @@ android:layout_centerVertical="true" android:adjustViewBounds="true" android:cropToPadding="true" - android:scaleType="centerCrop" + android:scaleType="fitCenter" tools:src="@drawable/ic_antenna" tools:background="@android:color/holo_green_dark"/> diff --git a/core/src/main/res/values/attrs.xml b/core/src/main/res/values/attrs.xml index f8b545ac0..2d8cbb4cb 100644 --- a/core/src/main/res/values/attrs.xml +++ b/core/src/main/res/values/attrs.xml @@ -56,6 +56,7 @@ + diff --git a/core/src/main/res/values/colors.xml b/core/src/main/res/values/colors.xml index cc04db2dd..a86d61eba 100644 --- a/core/src/main/res/values/colors.xml +++ b/core/src/main/res/values/colors.xml @@ -13,14 +13,16 @@ #FFFFFF - #303030 - #DDDDDD - #414141 - #414141 + #EFEEEE + #21272b + #2D3337 + #46C6C6C6 + #43707070 + #43707070 #22777777 #0078C2 - #5C9DFF + #3D8BFF #008AB8 #DDDDDD diff --git a/core/src/main/res/values/styles.xml b/core/src/main/res/values/styles.xml index 2b7be1713..c72cd3e53 100644 --- a/core/src/main/res/values/styles.xml +++ b/core/src/main/res/values/styles.xml @@ -14,6 +14,7 @@ @color/accent_light @color/background_light @style/Widget.AntennaPod.ActionBar.Light + @color/background_elevated_light @color/master_switch_background_light @color/highlight_light @color/black @@ -85,6 +86,7 @@ @color/background_darktheme @color/background_darktheme @style/Widget.AntennaPod.ActionBar.Dark + @color/background_elevated_darktheme @color/white @style/ProgressBarDark @color/highlight_dark @@ -159,6 +161,7 @@ @color/black @color/black @color/black + @color/black