From 5c47d2afade672d13a484ed912e4026fe2746877 Mon Sep 17 00:00:00 2001 From: Fahim Date: Sun, 12 Dec 2021 23:58:10 +0600 Subject: [PATCH] 4376-P-Update_icon_colors issue: https://gitlab.e.foundation/e/backlog/-/issues/4376 --- res/drawable/ic_arrow_back.xml | 2 +- res/drawable/ic_foreground.xml | 2 +- res/drawable/ic_menu_refresh.xml | 2 +- res/drawable/ic_pause.xml | 2 +- res/drawable/ic_play.xml | 10 ++++++++++ res/drawable/ic_system_update.xml | 2 +- res/layout/activity_updates.xml | 4 +++- res/mipmap-anydpi/ic_launcher.xml | 2 +- res/values/colors.xml | 2 ++ res/values/styles.xml | 2 +- .../lineageos/updater/controller/UpdaterService.java | 4 ++-- 11 files changed, 24 insertions(+), 10 deletions(-) create mode 100644 res/drawable/ic_play.xml diff --git a/res/drawable/ic_arrow_back.xml b/res/drawable/ic_arrow_back.xml index 5847a590..5e98449d 100644 --- a/res/drawable/ic_arrow_back.xml +++ b/res/drawable/ic_arrow_back.xml @@ -5,6 +5,6 @@ android:viewportWidth="24" android:viewportHeight="24"> \ No newline at end of file diff --git a/res/drawable/ic_foreground.xml b/res/drawable/ic_foreground.xml index a2fa90ac..a4badaf3 100644 --- a/res/drawable/ic_foreground.xml +++ b/res/drawable/ic_foreground.xml @@ -6,7 +6,7 @@ diff --git a/res/drawable/ic_menu_refresh.xml b/res/drawable/ic_menu_refresh.xml index 3b47058a..9923bfb2 100644 --- a/res/drawable/ic_menu_refresh.xml +++ b/res/drawable/ic_menu_refresh.xml @@ -6,6 +6,6 @@ android:viewportHeight="24"> diff --git a/res/drawable/ic_pause.xml b/res/drawable/ic_pause.xml index 620beef0..3d75a6e1 100644 --- a/res/drawable/ic_pause.xml +++ b/res/drawable/ic_pause.xml @@ -4,6 +4,6 @@ android:viewportHeight="24.0" android:viewportWidth="24.0"> diff --git a/res/drawable/ic_play.xml b/res/drawable/ic_play.xml new file mode 100644 index 00000000..755f49b4 --- /dev/null +++ b/res/drawable/ic_play.xml @@ -0,0 +1,10 @@ + + + diff --git a/res/drawable/ic_system_update.xml b/res/drawable/ic_system_update.xml index 3daa577c..80fdbefd 100644 --- a/res/drawable/ic_system_update.xml +++ b/res/drawable/ic_system_update.xml @@ -5,6 +5,6 @@ android:viewportWidth="24.0" android:viewportHeight="24.0"> diff --git a/res/layout/activity_updates.xml b/res/layout/activity_updates.xml index 16f65baf..18677597 100644 --- a/res/layout/activity_updates.xml +++ b/res/layout/activity_updates.xml @@ -20,7 +20,7 @@ android:layout_height="match_parent" android:theme="@style/AppTheme.AppBarOverlay" app:collapsedTitleTextAppearance="@style/TextAppearanceInverted" - app:contentScrim="?attr/colorPrimary" + app:contentScrim="?attr/colorPrimaryDark" app:expandedTitleTextAppearance="@style/TextAppearanceTransparent" app:layout_scrollFlags="scroll|exitUntilCollapsed"> @@ -80,6 +80,7 @@ android:id="@+id/no_new_updates_view" android:layout_width="match_parent" android:layout_height="match_parent" + android:background="@color/theme_background" android:padding="46dp" app:layout_behavior="@string/appbar_scrolling_view_behavior"> @@ -95,6 +96,7 @@ android:id="@+id/recycler_view" android:layout_width="match_parent" android:layout_height="match_parent" + android:background="@color/theme_background" android:clipToPadding="false" android:paddingBottom="5dp" android:scrollbars="vertical" diff --git a/res/mipmap-anydpi/ic_launcher.xml b/res/mipmap-anydpi/ic_launcher.xml index a1fe9f8b..b0e9bde1 100644 --- a/res/mipmap-anydpi/ic_launcher.xml +++ b/res/mipmap-anydpi/ic_launcher.xml @@ -14,7 +14,7 @@ limitations under the License. --> - + diff --git a/res/values/colors.xml b/res/values/colors.xml index 9b0b700f..7829d587 100644 --- a/res/values/colors.xml +++ b/res/values/colors.xml @@ -1,5 +1,7 @@ + #333333 + @lineageos.platform:color/color_default_primary @lineageos.platform:color/color_default_primary_dark @lineageos.platform:color/color_default_accent diff --git a/res/values/styles.xml b/res/values/styles.xml index 829aa0f7..c07bd198 100644 --- a/res/values/styles.xml +++ b/res/values/styles.xml @@ -39,7 +39,7 @@ diff --git a/src/org/lineageos/updater/controller/UpdaterService.java b/src/org/lineageos/updater/controller/UpdaterService.java index 5a024eb6..606bb20c 100644 --- a/src/org/lineageos/updater/controller/UpdaterService.java +++ b/src/org/lineageos/updater/controller/UpdaterService.java @@ -292,7 +292,7 @@ public class UpdaterService extends Service { mNotificationStyle.bigText(text); mNotificationBuilder.setStyle(mNotificationStyle); mNotificationBuilder.setSmallIcon(R.drawable.ic_pause); - mNotificationBuilder.addAction(android.R.drawable.ic_media_play, + mNotificationBuilder.addAction(R.drawable.ic_play, getString(R.string.resume_button), getResumePendingIntent(update.getDownloadId())); mNotificationBuilder.setTicker(text); @@ -430,7 +430,7 @@ public class UpdaterService extends Service { mNotificationStyle.bigText(text); mNotificationBuilder.setStyle(mNotificationStyle); mNotificationBuilder.setSmallIcon(R.drawable.ic_pause); - mNotificationBuilder.addAction(android.R.drawable.ic_media_play, + mNotificationBuilder.addAction(R.drawable.ic_play, getString(R.string.resume_button), getResumeInstallationPendingIntent()); mNotificationBuilder.setTicker(text); -- GitLab